/* /guidepakistan/assets/css/style.css */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #01411C;      /* Pakistan flag dark green */
    --secondary-color: #FFFFFF;    /* White */
    --accent-color: #1A8C4F;       /* Light green */
    --text-color: #2D3748;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    padding-top: 70px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--secondary-color) !important;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand .brand-text {
    color: var(--primary-color);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(1, 65, 28, 0.05);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 8px;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    transition: var(--transition);
}

.navbar .dropdown-item:hover {
    background-color: rgba(1, 65, 28, 0.05);
    color: var(--primary-color);
}

/* Search Bar */
.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-form .form-control {
    border: 2px solid var(--border-color);
    border-right: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 50px 0 0 50px !important;
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-form .btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 10px 25px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
}

.search-form .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 80px 0;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-section .search-form .form-control {
    border-color: transparent;
}

.hero-section .search-form .btn {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.hero-section .search-form .btn:hover {
    background-color: var(--light-bg);
    border-color: var(--light-bg);
}

/* ==================== CATEGORIES ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.category-card h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.category-card small {
    color: #718096;
    font-size: 0.85rem;
}

/* ==================== GUIDE CARDS ==================== */
.guide-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guide-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
}

.guide-card .card-body {
    padding: 20px;
}

.guide-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.guide-card .card-text {
    color: #718096;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    font-size: 0.85rem;
    color: #718096;
}

.guide-card .category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.guide-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* ==================== GUIDE DETAIL PAGE ==================== */
.guide-detail {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
}

.guide-detail h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.guide-detail .guide-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.guide-detail .guide-meta span {
    margin-right: 20px;
}

.guide-detail .guide-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 20px 0 30px;
}

.guide-detail .content-section {
    margin-bottom: 30px;
}

.guide-detail .content-section h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.guide-detail .content-section h3 {
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.guide-detail .info-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.guide-detail .info-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.guide-detail .step-list {
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
}

.guide-detail .step-list li {
    padding: 15px 20px 15px 60px;
    margin-bottom: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    position: relative;
    counter-increment: step-counter;
}

.guide-detail .step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item .faq-question {
    padding: 15px 20px;
    background: var(--light-bg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item .faq-question:hover {
    background: #EDF2F7;
}

.faq-item .faq-question .fa-chevron-down {
    transition: var(--transition);
}

.faq-item .faq-question.active .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-item .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item .faq-answer.open {
    padding: 20px;
    max-height: 1000px;
}

/* ==================== SIDEBAR ==================== */
.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar-widget .widget-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-widget ul {
    padding: 0;
    list-style: none;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-color);
    transition: var(--transition);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* ==================== PAGINATION ==================== */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #A0AEC0;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumb {
    background: transparent;
    padding: 20px 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: #718096;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-color) !important;
    color: white !important;
    margin-top: 60px;
}

.footer h5 {
    color: white !important;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer a.text-muted {
    transition: var(--transition);
}

.footer a.text-muted:hover {
    color: white !important;
}

.footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .guide-detail {
        padding: 20px;
    }
    
    .guide-detail h1 {
        font-size: 1.8rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .guide-detail .step-list li {
        padding: 15px 15px 15px 50px;
    }
    
    .guide-detail .step-list li::before {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        left: 12px;
        top: 15px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .guide-card .card-img-top {
        height: 150px;
    }
}
/* Fix for logo image */
.navbar-brand img {
    display: inline-block;
    width: auto;
    max-height: 40px;
}

/* If logo-white.png is not found, show a fallback */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}