/*
Theme Name: ShikshaSetu
Author: Aapka Naam
Description: Universal Study Portal Theme
Version: 5.0 (Firebase + Always Visible Menu)
*/

/* --- 1. RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- 2. HEADER & NAVBAR --- */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

/* LOGO */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo span { color: var(--text-dark); }

/* MENU LINKS (Always Visible) */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.nav-center a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}
.nav-center a:hover { color: var(--primary-color); }

/* AUTH BUTTONS */
.auth-buttons {
    flex: 0 0 auto;
    min-width: 150px;
    text-align: right;
}

.cta-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s;
    display: inline-block;
}

/* --- 3. MOBILE RESPONSIVE (STACK LAYOUT) --- */
@media (max-width: 768px) {
    
    .navbar {
        height: auto;
        padding: 15px;
        flex-direction: column; /* Upar-Neeche Stack karega */
        gap: 15px;
        align-items: center;
    }

    /* Logo adjustment */
    .logo {
        margin-bottom: 5px;
    }

    /* MENU: Hamesha dikhega (No Hamburger) */
    .nav-center {
        display: flex;
        flex-direction: column; /* List ki tarah */
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    /* Login Button */
    .auth-buttons {
        width: 100%;
        text-align: center;
    }
    
    .cta-btn {
        display: block;
        margin: 0 auto;
        width: 80%;
    }

    /* Hero Text Size */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
}

/* --- REST OF CSS --- */
.hero { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); padding: 100px 20px; text-align: center; color: white; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; }

.search-box { max-width: 650px; margin: 0 auto; display: flex; background: white; border-radius: 50px; padding: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.search-box input { flex: 1; padding: 15px 25px; border: none; outline: none; border-radius: 50px 0 0 50px; font-size: 16px; }
.search-box button { background-color: var(--accent-color); color: white; border: none; padding: 12px 40px; border-radius: 50px; cursor: pointer; font-weight: bold; font-size: 16px; }

.section { padding: 80px 20px; max-width: 1300px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.category-card { background: var(--bg-light); padding: 35px 20px; border-radius: 15px; text-align: center; transition: 0.3s; border: 1px solid transparent; }
.category-card:hover { background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-7px); border-color: var(--primary-color); }
.cat-icon { font-size: 45px; display: block; margin-bottom: 15px; }

.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.book-card { background: white; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: 0.3s; }
.book-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); transform: translateY(-5px); }
.book-thumb { height: 180px; background-color: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.book-info { padding: 20px; }
.download-btn { display: block; width: 100%; text-align: center; padding: 10px; background-color: var(--text-dark); color: white; text-decoration: none; border-radius: 8px; margin-top: 15px; }
.download-btn:hover { background-color: var(--primary-color); }

footer { background-color: #111827; color: white; padding: 70px 20px 30px; margin-top: 80px; }
.footer-content { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: #9ca3af; text-decoration: none; }