/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to right, #eae8ef, #bc9ed6);
    color: #fff;
}

/* Navbar */
.fixed-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #2A0E61, #1B1E4B);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo-text a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text a:hover {
    color: #c8d2dd;
    transition: 0.3s ease-in-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease-in-out;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease-in-out, font-size 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #ffcc00;
    font-size: 19px;
}

/* Hamburger Menu for Mobile and Tablet */
.menu-toggle {
    display: none; /* Hidden on larger screens */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100; /* Ensure it's above other elements */
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) { /* For tablet and below */
    .menu-toggle {
        display: flex; /* Show hamburger menu */
    }

    .nav-links {
        display: none; /* Hide links initially */
        flex-direction: column;
        gap: 10px;
        background-color: #2A0E61;
        position: absolute;
        top: 60px;
        left: 20px; /* Align to the left */
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex; /* Show links when active */
    }

    .logo-container {
        flex: 1;
    }
}

/* Mobile Design (Smaller Screens) */
@media (max-width: 768px) {
    .menu-toggle {
        justify-content: flex-start; /* Align hamburger to the left */
    }

    .nav-links {
        left: 10px; /* Slightly adjust for smaller screens */
        top: 60px;
        width: calc(100% - 20px); /* Center dropdown width */
    }

    .nav-links a {
        font-size: 16px; /* Slightly smaller font for mobile */
    }
}




/* Container */
.container {
    width: 80%;
    margin: auto;
    padding: 20px;
    padding-top: 150px;
    color: #39135c;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    width: 300px;
}

button#closeModal {
    padding: 10px 20px;
    background: blue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Locked content styling */
.locked {
    color: gray;
    cursor: not-allowed;
}

.locked .premium-lock {
    color: red;
    font-weight: bold;
    margin-left: 8px; /* Added margin for spacing between text and lock icon */
}

/* General container styling */
.container h1 {
    text-align: center;
    font-size: 2.5rem; /* Larger font for desktop */
}

/* Section Styling */
.section {
    margin: 20px 0;
    text-align: left;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.section:hover {
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

/* Heading */
h2 {
    background: linear-gradient(to right, #6A0DAD, #4B0082);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 22px;
    text-align: center;
}

/* Subject Cards */
.subject {
    background: linear-gradient(to right, #FFD700, #FFA500);
    color: #333;
    padding: 15px;
    margin: 8px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.subject:hover {
    background: linear-gradient(to right, #FFA500, #FFD700);
    transform: scale(1.03);
}

/* Links */
.links {
    display: none;
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;  /* Smooth transition for display */
}

.links a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #4B0082;
    font-weight: 500;
    transition: 0.3s ease-in-out;
}

.links a:hover {
    color: #6A0DAD;
    font-weight: bold;
    text-decoration: underline;
}

/* Active Subject */
.subject.active .links {
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) { /* Tablet Screens */
    .container {
        width: 90%;
        padding-top: 100px;
    }

    h1 {
        font-size: 2rem; /* Adjust heading size for tablets */
    }

    h2 {
        font-size: 20px; /* Smaller font for headings */
    }

    .subject {
        font-size: 16px; /* Adjust subject card size */
        padding: 12px;
    }

    .section {
        padding: 15px;
    }
}

@media (max-width: 768px) { /* Mobile Screens */
    .container {
        width: 95%;
        padding-top: 80px;
    }

    h1 {
        font-size: 1.8rem; /* Smaller font for mobile */
    }

    h2 {
        font-size: 18px;
        padding: 10px;
    }

    .subject {
        font-size: 14px; /* Compact subject card */
        padding: 10px;
    }

    .section {
        padding: 12px;
        margin: 10px 0;
    }
}

@media (max-width: 480px) { /* Small Mobile Screens */
    h1 {
        font-size: 1.5rem; /* Further reduce font size */
    }

    h2 {
        font-size: 16px;
        padding: 8px;
    }

    .subject {
        font-size: 12px;
        padding: 8px;
    }

    .section {
        padding: 10px;
    }
}

/* Keep Moving Section */
.keep-moving {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #6A0DAD, #4B0082);
    color: white;
}

.keep-moving h2 {
    font-size: 32px;
    color: white;
}

.keep-moving p {
    font-size: 18px;
}


/* Footer Styling */
footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #4B0082, #6A0DAD);
    color: white;
    font-size: 16px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sections */
.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

/* Headings */
.footer-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.youtube:hover { background: #FF0000; }
.facebook:hover { background: #1877F2; }
.instagram:hover { background: #C13584; }
.whatsapp:hover { background: #25D366; }
.email:hover { background: #FFD700; }

/* Policies */
.policies ul {
    list-style: none;
    padding: 0;
}

.policies ul li {
    margin: 8px 0;
}

.policies ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

.policies ul li a:hover {
    text-decoration: underline;
    color: #FFD700;
}

/* Copyright */
.copyright {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

a.unlocked {
    color: #4B0082 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-decoration: none !important;
}