/* Reset and Base Styles */
:root {
    --primary-color: #1e40af;    /* Royal Blue */
    --secondary-color: #f97316;  /* Vibrant Orange */
    --accent-color: #10b981;     /* Green */
    --text-color: #1f2937;
    --light-text: #f3f4f6;
    --background: #ffffff;
    --light-background: #f9fafb;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--background);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.5rem 1rem;
    display: block;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--light-background);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card .news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.feature-card .news-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Study Material Section */
.study-material {
    padding: 4rem 0;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.material-card {
    background: var(--light-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.material-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.material-card ul {
    list-style: none;
}

.material-card ul li {
    margin-bottom: 0.5rem;
}

.material-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.material-card a:hover {
    color: var(--secondary-color);
}

/* Competitive Exams Links */
.material-card ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.material-card ul li a i {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: var(--transition);
}

.material-card ul li a:hover i {
    opacity: 1;
    transform: translateX(2px);
}

.material-card ul li a:hover {
    color: var(--primary-color);
}

/* Mock Test Section */
.mock-test {
    background: var(--light-background);
    padding: 4rem 0;
}

.test-container {
    background: var(--background);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    overflow: hidden;
}

.timer {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.question {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--light-background);
    border-radius: 3px;
    margin-left: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.option-btn:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.option-btn.correct {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--light-text);
}

.option-btn.incorrect {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-text);
}

.option-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 1rem;
    font-weight: 600;
}

.option-text {
    flex: 1;
    text-align: left;
}

/* Test Results */
.test-results {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    animation: pulse 2s infinite;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.score-details {
    background: var(--light-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    max-width: 400px;
    text-align: left;
}

.score-details p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.score-details p:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--primary-color);
}

/* File Upload Styles */
.file-upload-section {
    margin-bottom: 2rem;
    text-align: center;
}

.file-upload-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.file-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

.file-label {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.file-label:hover {
    background: var(--secondary-color);
}

.file-name {
    flex: 1;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.separator span {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--nav-bg);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    transition: var(--transition);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}

/* Privacy Policy Styles */
.privacy-policy {
    padding: 8rem 0 4rem;
    background: var(--light-background);
}

.privacy-policy h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.policy-content {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.policy-section h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: var(--light-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.mock-test-frame {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.test-container {
    background: var(--background);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    overflow: hidden;
}

/* Mock Test Preview */
.mock-test-preview {
    text-align: center;
    padding: 3rem 2rem;
}

.mock-test-preview h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mock-test-preview p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mock-test-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.mock-test-button {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mock-test-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.mock-test-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mock-test-button:hover i {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Answer Review Styles */
.answer-review-section {
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
}

.answer-review-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.answer-review {
    background: var(--light-background);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.answer-review.correct {
    border-left-color: var(--accent-color);
}

.answer-review.incorrect {
    border-left-color: var(--secondary-color);
}

.answer-review p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.answer-review p:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.answer-review.correct p:first-child {
    color: var(--accent-color);
}

.answer-review.incorrect p:first-child {
    color: var(--secondary-color);
}

/* Enhanced Score Details */
.score-details {
    background: var(--light-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    max-width: 400px;
}

.score-details p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.score-details p:last-child {
    border-bottom: none;
    font-weight: 600;
}

.score-details .correct-answers {
    color: var(--accent-color);
    font-weight: 600;
}

.score-details .wrong-answers {
    color: var(--secondary-color);
    font-weight: 600;
}

.score-details .final-score {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Terms of Service Styles */
.terms-policy {
    padding: 8rem 0 4rem;
    background: var(--light-background);
}

.terms-policy h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.terms-policy .policy-content {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-policy .policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.terms-policy .policy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-policy h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.terms-policy h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.terms-policy p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.terms-policy ul {
    list-style: disc;
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-color);
}

.terms-policy ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.terms-policy .contact-info {
    background: var(--light-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.terms-policy .contact-info p {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .terms-policy {
        padding: 6rem 0 3rem;
    }

    .terms-policy h1 {
        font-size: 2rem;
    }

    .terms-policy .policy-content {
        padding: 1.5rem;
    }

    .terms-policy h2 {
        font-size: 1.5rem;
    }

    .terms-policy h3 {
        font-size: 1.2rem;
    }
}

/* Contact Section Styles */
.contact-info {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-details {
    display: inline-block;
    text-align: left;
    background: var(--light-background);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-details p {
    margin: 1rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-details {
        padding: 1rem;
        width: 100%;
    }
    
    .contact-details p {
        font-size: 1rem;
    }
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social-links a[title*="Facebook"]:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.social-links a[title*="Instagram"]:hover {
    color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.social-links a[title*="Twitter"]:hover {
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.social-links a[title*="YouTube"]:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.social-links a[title*="Telegram"]:hover {
    color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        background: var(--light-background);
        margin: 0.5rem 0;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Features Section Mobile */
    .features .container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    /* Study Material Section Mobile */
    .material-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .material-card {
        padding: 1.5rem;
    }

    /* Contact Form Mobile */
    .contact-form {
        padding: 0 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Enhanced Dropdown Styles */
.dropdown-content {
    min-width: 220px;
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1001;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    padding: 0.8rem 1.2rem;
    display: block;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--light-background);
    color: var(--primary-color);
}

/* Active State for Mobile Navigation */
.nav-links li.active > a {
    color: var(--primary-color);
}

.dropdown.active > a {
    color: var(--primary-color);
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .book-image {
        height: 200px;
    }

    .footer-bottom {
        font-size: 0.9rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .features .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Header Scroll Effects */
header {
    transition: transform 0.3s ease;
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced Mobile Navigation */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: block;
        padding: 0.5rem;
        z-index: 1002;
    }

    .nav-toggle i {
        font-size: 1.5rem;
        color: var(--primary-color);
        transition: var(--transition);
    }

    .nav-links {
        background: var(--background);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-content {
        width: 100%;
        margin-left: 1rem;
        border-left: 2px solid var(--primary-color);
    }

    .dropdown > a i {
        transition: transform 0.3s ease;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }

    /* Enhanced Touch Targets */
    .nav-links a,
    .dropdown-content a,
    .cta-button,
    .social-links a {
        min-height: 44px;
        padding: 0.8rem 1rem;
    }

    /* Improved Form Elements */
    input,
    textarea,
    select {
        font-size: 16px;
        padding: 0.8rem;
    }

    /* Section Spacing */
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Books Grid */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-card {
        margin: 0;
    }

    /* Mock Test Button */
    .mock-test-button {
        width: 100%;
        justify-content: center;
        margin: 1rem 0;
    }
} 

/* Ad Space Styles */
.ad-space {
    width: 100%;
    margin: 2rem auto;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light-background);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.ad-space.horizontal {
    max-width: 728px;
    min-height: 90px;
}

.ad-space.vertical {
    max-width: 300px;
    min-height: 600px;
    float: right;
    margin: 0 0 1rem 1rem;
}

.ad-space.square {
    max-width: 300px;
    min-height: 250px;
}

.ad-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Responsive Ad Spaces */
@media screen and (max-width: 1024px) {
    .ad-container {
        grid-template-columns: 1fr;
    }
    
    .ad-space.vertical {
        float: none;
        margin: 2rem auto;
        max-width: 728px;
        min-height: 90px;
    }
}

@media screen and (max-width: 768px) {
    .ad-space {
        margin: 1.5rem auto;
    }

    .ad-space.horizontal {
        min-height: 60px;
    }

    .ad-space.square {
        min-height: 250px;
    }
}

/* Section Spacing for Ads */
section {
    position: relative;
    padding: 4rem 0;
}

section + .ad-space {
    margin-top: -2rem;
    margin-bottom: 2rem;
}

/* Content Layout Adjustments */
.content-with-ads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media screen and (min-width: 1200px) {
    .content-with-ads {
        grid-template-columns: 1fr 300px;
    }
}

/* Crossword Game Styles */
.crossword-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.crossword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 2px;
    max-width: 100%;
    overflow-x: auto;
}

.crossword-cell {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
    text-align: center;
    font-size: 16px;
    line-height: 30px;
}

@media (max-width: 768px) {
    .crossword-cell {
        width: 20px;
        height: 20px;
        font-size: 12px;
        line-height: 20px;
    }
}

.games-shortcut {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #ff4081;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.games-shortcut i {
    font-size: 24px;
}

.games-shortcut:hover {
    transform: scale(1.1);
    background-color: #f50057;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* For mobile devices */
@media (max-width: 768px) {
    .games-shortcut {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .games-shortcut i {
        font-size: 20px;
    }
}

.game-btn {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-btn:active {
    transform: translateY(2px);
}

.game-btn i {
    margin-left: 15px;
    font-size: 28px;
    vertical-align: middle;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .game-btn {
        padding: 15px 30px;
        font-size: 20px;
    }
    
    .game-btn i {
        font-size: 24px;
    }
}