@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

:root {
    --primary-accent: #3b82f6;
    --button-accent: #2563eb;
    --hover-accent: #93c5fd;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --light-bg: #f8fafc;
    --light-text: #1f2937;
    --light-secondary: #374151;
    --light-card: #ffffff;
    --border-color: #e2e8f0;
    --navbar-bg: #ffffff;
    --footer-bg: #2d3748;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    background: var(--light-bg);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--navbar-bg);
    padding: 5px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1200;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-accent);
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-text);
    padding: 8px 12px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary-accent);
    border-bottom: 2px solid var(--primary-accent);
}

/* Hero Section */
.hero-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: left;
    position: relative;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-section p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    color: var(--light-secondary);
    margin: 0 0 10px;
    max-width: 700px;
}

.hero-section .disclaimer {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--light-secondary);
    margin-bottom: 10px;
}

/* Breadcrumb — Tumhara original wapas */
.breadcrumb-section {
    padding: 10px 0;
    background: var(--light-bg);
}

.breadcrumb {
    margin-bottom: 0.5rem;
    background-color: transparent;
}

.breadcrumb-item a {
    color: var(--primary-accent);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--button-accent);
}

/* Footer — Tumhara original wapas */
.footer {
    background: var(--footer-bg);
    color: var(--text-primary);
    padding: 40px 0 10px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--hover-accent);
}

.footer-disclaimer p {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.footer-copyright {
    margin-top: 12px;
    font-size: 0.9rem;
}

/* Cards & General */
.card {
    background: var(--light-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: fit-content;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
     height: fit-content;
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

/* Buttons */
.btn-primary, .btn-outline-primary {
    border-radius: 50px;
    font-weight: 500;
}

/* Search Bar Fix */
.search-bar-section {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    background: var(--light-card);
}

.search-bar-section .form-control-lg {
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
}

.search-bar-section .btn-lg {
    border-radius: 0 50px 50px 0;
    padding: 1rem 2rem;
}

/* Mobile Fixes — Clean & Safe */
@media (max-width: 767px) {
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-img-top {
        height: 200px !important;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .search-bar-section .d-flex {
        flex-direction: column;
    }
    
    .search-bar-section .form-control-lg,
    .search-bar-section .btn-lg {
        border-radius: 50px !important;
        margin-bottom: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .card-img-top {
        height: 180px !important;
    }
}
/* Back to Top Button - Premium & Fixed */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--button-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

/* Mobile pe thoda chhota */
@media (max-width: 576px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
}
/* Mobile Optimization - All Critical Fixes */
@media (max-width: 991px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    .hero-section .row > div {
        margin-bottom: 1.5rem;
    }
    .hero-section img {
        max-height: 200px;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-img-top {
        height: 200px !important;
    }
    
    .search-bar-section .d-flex {
        flex-direction: column;
    }
    
    .search-bar-section .form-control-lg,
    .search-bar-section .btn-lg {
        border-radius: 50px !important;
        margin-bottom: 0.5rem;
    }
    
    .form-section .btn-primary,
    .form-section .btn-outline-primary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .sidebar {
        margin-top: 2rem;
        position: static !important;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .card-img-top {
        height: 180px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
