:root {
    --primary: #003366;
    --accent: #ff6600;
    --light: #f4f7f6;
}

* { margin:0; padding:0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

/* Top Bar */
.top-header {
    background: #002244;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px 10%;
    font-size: 13px;
}

.social-icons a { color: white; margin-left: 15px; transition: 0.3s; }
.social-icons a:hover { color: var(--accent); }

/* Navbar Tabs */
.navbar {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0; z-index: 100;
}

.logo { font-size: 24px; font-weight: bold; color: var(--primary); }
.logo span { color: var(--accent); }

.nav-tabs { display: flex; list-style: none; }
.nav-tabs li { margin-left: 25px; }
.nav-tabs a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
}

.nav-tabs a:hover, .nav-tabs a.active {
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('https://images.unsplash.com/photo-1491843330267-3050a2115f16?q=80&w=1470');
    background-size: cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.btn-primary { background: var(--accent); color: white; padding: 12px 25px; text-decoration: none; border-radius: 5px; margin: 10px; display: inline-block; }
.btn-secondary { border: 2px solid white; color: white; padding: 10px 25px; text-decoration: none; border-radius: 5px; margin: 10px; display: inline-block; }

/* Features */
.features { display: flex; justify-content: center; gap: 20px; padding: 50px 10%; margin-top: -50px; }
.feat-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); text-align: center; flex: 1; }
.feat-card i { font-size: 40px; color: var(--accent); margin-bottom: 15px; }

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Button Styling */
.dropbtn {
    cursor: pointer;
    padding-bottom: 10px; /* Gap fill karne ke liye */
}

/* The Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 100%; /* Theek button ke niche */
    left: 0;
    border-top: 3px solid #e67e22; /* Orange Accent Line */
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #e67e22; /* Hover color */
    color: white;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Navbar Tabs Alignment fix */
.nav-tabs {
    align-items: center; /* Items ko center mein rakhne ke liye */
}

/* study material stle */
/* Page Header */
.page-header {
    background: #003366; /* Drishti Blue */
    color: white;
    padding: 30px 8%;
    text-align: center;
}

/* Flex Container for Layout */
.container-flex {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 5%;
    gap: 30px;
    background: #f9f9f9;
}

/* Main Content (Left - 70%) */
.main-content {
    flex: 3;
    min-width: 300px;
}

/* Sidebar (Right - 30%) */
.sidebar {
    flex: 1;
    min-width: 250px;
}

/* Blog/Article Styling */
.blog-card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #e67e22; /* Orange Accent */
}

.meta-date { font-size: 12px; color: #777; margin-bottom: 10px; }
.read-more { color: #003366; font-weight: bold; text-decoration: none; }

/* PDF Section Styling */
.pdf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pdf-info strong { display: block; color: #333; }
.pdf-info span { font-size: 12px; color: #666; }

.btn-download {
    background: #27ae60; /* Green color for download */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.btn-download:hover { background: #219150; }

/* Sidebar Widgets */
.widget {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget h4 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; color: #003366; }

/* Advertisement Styling */
.ad-box {
    background: #eee;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 1px dashed #ccc;
}

/* Affiliate Book Styling */
.book-card {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.book-card img { width: 80px; height: auto; margin-bottom: 10px; }
.btn-amazon {
    display: block;
    background: #ff9900; /* Amazon Yellow/Orange */
    color: black;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
}
.btn-amazon:hover { background: #e68a00; }

/* Responsive: Mobile par Sidebar niche aa jayega */
@media (max-width: 768px) {
    .container-flex { flex-direction: column; }
}
/*unlock popup */
/* Modal Background (Overlay) */
.modal {
    display: none; /* Default hidden */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Black background with opacity */
    backdrop-filter: blur(5px); /* Background blur effect */
}

/* Modal Content Box */
.modal-content {
    background-color: white;
    margin: 10% auto; /* Top se thoda niche */
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {top: -50px; opacity: 0;}
    to {top: 0; opacity: 1;}
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: #000; }

/* Form Inputs */
#userEmail {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}
#userEmail:focus { border-color: #e67e22; outline: none; }

/* Unlock Button */
.btn-unlock {
    background: #003366;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-unlock:hover { background: #e67e22; }

/* Footer */
footer { background: #222; color: white; padding: 20px 8% 8px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.footer-links ul { list-style: none; margin-top: 15px; }
.footer-links li { margin-bottom: 10px; color: #ccc; cursor: pointer; }
.copyright { text-align: center; margin-top: 40px; border-top: 1px solid #444; padding-top: 20px; font-size: 13px; }

/* --- Popular Courses Section --- */
.popular-courses-area {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 5px;
}

.section-title p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Grid Layout */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Mobile pe 1, Desktop pe 3 */
    gap: 20px;
}

/* Card Design */
.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.course-card:hover {
    transform: translateY(-5px); /* Upar uthne ka effect */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Badge (Best Seller/New) */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e67e22; /* Orange */
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

.card-badge.new {
    background: #27ae60; /* Green for New */
}

/* Image */
.course-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Card Body */
.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Meta Info (Rating & Students) */
.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.course-meta i { color: #f1c40f; /* Star Yellow */ }

/* Price Section */
.price-box {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-right: 8px;
}

.new-price {
    font-size: 18px;
    font-weight: bold;
    color: #003366;
}

/* Button */
.btn-course {
    display: block;
    width: 100%;
    text-align: center;
    background: #003366; /* Blue */
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-course:hover {
    background: #e67e22; /* Orange on Hover */
}

/* Divider Line */
.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 30px 0;
}

/* --- FOOTER CSS START --- */

.site-footer {
    background-color: #1a252f; /* Darker than primary for depth */
    color: #ecf0f1;
    padding-top: 60px;
    font-size: 0.95rem;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Columns */
    gap: 40px;
}

/* Column Styling */
.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Underline effect for headings */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #e67e22; /* Orange Accent */
}

/* Logo Styling */
.footer-logo {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}
.footer-logo span {
    color: #e67e22;
}

.footer-desc {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Links Styling */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover Effect: Turns Orange and moves right */
.footer-links a:hover {
    color: #e67e22;
    transform: translateX(5px);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-icon:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

/* Contact Info */
.contact-info p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

/* App Buttons */
.app-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-app {
    background: transparent;
    border: 1px solid #bdc3c7;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-app:hover {
    background: white;
    color: #1a252f;
    border-color: white;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #151e26;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid #34495e;
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .footer-container {
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%); /* Center the underline on mobile */
    }
    .social-links {
        justify-content: center;
    }
    .app-buttons {
        justify-content: center;
    }
}
/* ================= GLOBAL & RESET ================= */
:root {
    --primary: #1e3c72;
    --primary-dark: #122852;
    --accent: #ff9800;
    --text: #333;
    --light-bg: #f4f7f6;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: var(--light-bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* ================= HEADER & NAV ================= */
.top-header { background: var(--primary-dark); color: var(--white); padding: 8px 5%; display: flex; justify-content: space-between; font-size: 0.9rem; }
.social-icons a { margin-left: 15px; color: var(--white); }
.social-icons a:hover { color: var(--accent); }

.navbar { background: var(--white); padding: 0 5%; height: 80px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; }
.nav-links li { margin-left: 20px; position: relative; }
.nav-links a { font-weight: 600; color: var(--text); }
.nav-links a:hover { color: var(--primary); }

/* Dropdown */
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 10px 15px; border-bottom: 1px solid #eee; }
.dropdown-content a:hover { background: #f9f9f9; padding-left: 20px; }

/* Auth Buttons */
.auth-buttons { display: flex; gap: 10px; margin-left: 20px; }
.btn-login { border: 2px solid var(--primary); color: var(--primary); padding: 5px 15px; border-radius: 20px; font-weight: bold; }
.btn-login:hover { background: var(--primary); color: var(--white); }
.btn-reg { background: var(--accent); color: var(--white); padding: 7px 15px; border-radius: 20px; font-weight: bold; }
.btn-reg:hover { background: #e68900; }

/* Mobile Menu Icon */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* ================= HERO SECTION ================= */
.hero { height: 80vh; background: linear-gradient(rgba(30,60,114,0.8), rgba(30,60,114,0.8)), url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?w=1200'); background-size: cover; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.btn-cta { background: var(--accent); color: var(--white); padding: 12px 30px; border-radius: 5px; font-size: 1.1rem; display: inline-block; margin-top: 20px; }

/* ================= INNER PAGE HEADER ================= */
.page-header { background: var(--primary); color: var(--white); padding: 60px 5%; text-align: center; }
.page-header h1 { font-size: 2.5rem; }

/* ================= CONTENT CONTAINER ================= */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

/* Grid for Courses/Features */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card h3 { color: var(--primary); margin-bottom: 10px; }
.card-btn { color: var(--accent); font-weight: bold; margin-top: 10px; display: inline-block; }

/* ================= FORMS (Login/Contact) ================= */
.form-box { max-width: 400px; margin: 0 auto; background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.btn-submit { width: 100%; background: var(--primary); color: var(--white); border: none; padding: 10px; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.btn-submit:hover { background: var(--primary-dark); }

/* ================= FOOTER ================= */
footer { background: #222; color: #aaa; padding: 50px 5% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-grid h3 { color: var(--white); margin-bottom: 20px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow); }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; width: 100%; text-align: center; }
    .auth-buttons { flex-direction: column; margin: 10px 0; width: 100%; }
    .btn-login, .btn-reg { display: block; text-align: center; }
}
/* --- logo --- */
/* ================= LOGO STYLES ================= */

/* Logo Container Adjustments */
.logo a {
    display: flex;
    align-items: center;
}

/* Logo Image Sizing */
.logo img {
    height: 55px; /* Navbar ki height 80px hai, toh 55px best rahega */
    width: auto;  /* Aspect ratio banaye rakhega */
    object-fit: contain; /* Image kategi nahi */
    transition: transform 0.3s ease;
}

/* Hover Effect (Optional) */
.logo img:hover {
    transform: scale(1.05); /* Mouse le jaane par thoda bada hoga */
}

/* Mobile Responsiveness for Logo */
@media (max-width: 768px) {
    .logo img {
        height: 45px; /* Mobile par thoda chhota logo */
    }
}

