/* Modern CSS for PadhaKuBeta */
:root {
    --primary: #2563eb;      /* Blue */
    --secondary: #7c3aed;    /* Purple */
    --accent: #f59e0b;       /* Orange */
    --success: #10b981;      /* Green */
    --danger: #ef4444;       /* Red */
    --dark: #1f2937;         /* Dark gray */
    --light: #f8fafc;        /* Light gray */
    --white: #ffffff;
    --text: #374151;
    --text-light: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* Hide search bar in header navigation - Desktop and Mobile */
.header .nav .search-box,
.header .nav input[type="search"],
.header .nav input[type="text"].search-input,
.header .nav .header-search,
.nav .search-box,
.nav .search-input,
.mobile-sidebar .search-box,
.mobile-sidebar input[type="search"],
.mobile-sidebar input[type="text"].search-input,
.mobile-nav .search-box,
.mobile-nav .search-input,
.header-content .search-box,
.header-content input[type="search"],
.header-content input[type="text"].search-input {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.dropdown:hover .dropdown-toggle::after {
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 99999;
    padding: 0.5rem 0;
    border: 1px solid #e5e7eb;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-content a::after {
    display: none;
}

/* Dropdown sections for grouped submenus */
.dropdown-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section strong {
    display: block;
    padding: 0.5rem 1rem 0.75rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-section a {
    padding-left: 1.5rem;
}

/* Ensure dropdown is visible on hover */
.dropdown:hover,
.dropdown.active {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 4px;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeIn 0.2s ease-in-out;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
    
    .nav {
        display: flex !important;
    }
}

.mobile-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Animation */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 0 0 20px 0;
    border-left: 1px solid #e5e7eb;
    display: none; /* Hidden by default */
}

/* Show mobile sidebar only on mobile */
@media (max-width: 768px) {
    .mobile-sidebar {
        display: block;
    }
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: var(--light);
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.mobile-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none; /* Hidden by default */
}

/* Show mobile sidebar overlay only on mobile */
@media (max-width: 768px) {
    .mobile-sidebar-overlay {
        display: block;
    }
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 15px 25px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.mobile-nav a:hover {
    background: var(--light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-nav .btn {
    margin: 10px 25px;
    text-align: center;
    display: block;
    padding: 12px 20px;
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.mobile-dropdown-toggle:hover {
    background: var(--light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
}

.mobile-dropdown-content.active {
    max-height: 200px;
}

.mobile-dropdown-content a {
    padding: 12px 25px 12px 45px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.mobile-dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

/* Mobile dropdown sections for grouped submenus */
.mobile-dropdown-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-dropdown-section:last-child {
    border-bottom: none;
}

.mobile-dropdown-section strong {
    display: block;
    padding: 0.75rem 25px 0.5rem 45px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-dropdown-section a {
    padding-left: 60px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons .btn {
    min-width: 150px;
    text-align: center;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: #d97706;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    background: #d97706;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Slider */
.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.slider-slide.active {
    opacity: 1;
}

.slider-content {
    text-align: center;
    color: var(--white);
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 8px;
}

.slider-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e5e7eb;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.card a:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Stats */
.stats {
    background: var(--light);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Login/Signup Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: 200px;
}

/* Signup specific styles */
.auth-card.signup {
    max-width: 380px;
    min-height: 180px;
    padding: 0.4rem;
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* Auth Button Styles */
.auth-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    border-radius: 5px;
    font-weight: 500;
}

.auth-btn-small {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.auth-btn-tiny {
    padding: 3px 10px;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: 500;
}

/* Search and Filter Styles */
.search-filter-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 8px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    border-color: var(--primary);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

/* Responsive */
@media (max-width: 768px) {
    .header .nav {
        display: none !important;
    }
    
    .header .mobile-menu {
        display: flex !important;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .mobile-sidebar {
        width: 280px;
    }
    
    .mobile-nav a {
        padding: 12px 20px;
    }
    
    .mobile-nav .btn {
        margin: 8px 20px;
        padding: 10px 16px;
    }
    
    .mobile-sidebar-header {
        padding: 15px 20px;
    }
    
    .mobile-sidebar-header h3 {
        font-size: 1.1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .slider-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Search and Filter Responsive */
    .search-filter-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .search-box input {
        font-size: 0.9rem;
        padding: 10px 45px 10px 15px;
    }
    
    /* Auth responsive styles */
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        max-width: 100%;
        padding: 0.4rem;
        min-height: 180px;
    }
    
    .auth-card.signup {
        max-width: 100%;
        min-height: 160px;
        padding: 0.3rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header .nav {
        display: none !important;
    }
    
    .header .mobile-menu {
        display: flex !important;
    }
    
    .mobile-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .mobile-nav a {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .mobile-nav .btn {
        margin: 10px 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card {
        padding: 0.3rem;
        min-height: 150px;
    }
    
    .auth-card.signup {
        padding: 0.2rem;
        min-height: 130px;
    }
    
    .auth-title {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}

