:root {
    --primary-color: #d63384;
    --secondary-color: #6f42c1;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --transition-speed: 0.4s;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}
/* ===== BASE FONT SIZE SETTINGS ===== */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    font-size: 1rem; /* Set base size to 16px */
    line-height: 1.6; /* Set base line-height */
}

/* Remove the problematic base rule */
/* body, .content-card, .info-section, .text-content, 
.scholarship-section, .philanthropy-section, 
.quiz-container, .content-container, .content-section {
    font-size: 1.25rem;
    line-height: 1.7;
} */

/* ===== DESKTOP FONT SIZING ===== */
@media (min-width: 768px) {
    /* Main content text */
    .content-card,
    .info-section,
    .text-content,
    .scholarship-section,
    .philanthropy-section,
    .quiz-container,
    .content-container,
    .content-section {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    /* Paragraphs */
    .content-card p, 
    .info-section p, 
    .text-content p,
    .scholarship-section p, 
    .philanthropy-section p,
    .quiz-container p, 
    .content-container p, 
    .content-section p,
    .structure-item p,
    .learning-features p,
    .summary-item p,
    .feature p,
    header p,
    footer p,
    footer .footer-about p,
    footer .footer-links p {
        font-size: 1.2rem;
        line-height: 1.7;
    }
    
    /* Scholarship specific elements */
    .scholarship-section .feature p,
    .scholarship-section .summary-item p {
        font-size: 1.1rem;
    }
    
    /* List items */
    .content-card li, .info-section li, .text-content li,
    .scholarship-section li, .philanthropy-section li,
    .quiz-container li, .content-container li, .content-section li {
        font-size: 1.2rem;
        line-height: 1.7;
    }
}

/* ===== MOBILE FONT SIZING ===== */
@media (max-width: 767px) {
    /* Main content text */
    .content-card,
    .info-section,
    .text-content,
    .scholarship-section,
    .philanthropy-section,
    .quiz-container,
    .content-container,
    .content-section {
        font-size: 1rem; /* 14px */
        line-height: 1.6;
    }

    /* Paragraphs */
    .content-card p, 
    .info-section p, 
    .text-content p,
    .scholarship-section p, 
    .philanthropy-section p,
    .quiz-container p, 
    .content-container p, 
    .content-section p,
    .structure-item p,
    .learning-features p,
    .summary-item p,
    .feature p,
    .scholarship-section .feature p,
    .scholarship-section .summary-item p,
    header p,
    footer p,
    footer .footer-about p,
    footer .footer-links p {
        font-size: 1rem; /* 14px */
        line-height: 1.6;
    }
    
    /* List items */
    .content-card li, .info-section li, .text-content li,
    .scholarship-section li, .philanthropy-section li,
    .quiz-container li, .content-container li, .content-section li {
        font-size: 1rem; /* 14px */
        line-height: 1.6;
    }
}

/* Header Styles */
header {
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 50px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    position: relative;
    color: var(--dark-color);
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Underline effect for nav items */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown menu styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    display: block;
    margin-top: 10px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    color: var(--dark-color);
}

.dropdown-item:hover {
    color: var(--primary-color);
    background-color: rgba(214, 51, 132, 0.05);
}

/* Underline effect for dropdown items */
.dropdown-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 1.5rem;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.dropdown-item:hover::after {
    width: calc(100% - 3rem);
}

/* Dropdown toggle styling */
.nav-item.dropdown .nav-link.dropdown-toggle {
    position: relative;
    padding-bottom: 5px;
}

.nav-item.dropdown .nav-link.dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after,
.nav-item.dropdown .nav-link.dropdown-toggle:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
    position: relative;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    width: 100%;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Mobile dropdown styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
}

.mobile-submenu {
    display: none;
    padding-left: 15px;
    list-style: none;
    margin: 0;
}

.mobile-dropdown.active .mobile-submenu {
    display: block;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    margin-left: 8px;
    font-size: 0.8em;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle::after,
.mobile-dropdown-toggle:hover::after {
    width: 100%;
}

.mobile-submenu a {
    position: relative;
}

.mobile-submenu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.mobile-submenu a:hover::after {
    width: 100%;
}

/* Remove Bootstrap's default dropdown caret */
.dropdown-toggle::after {
    display: none !important;
}

/* Main Content */
.title {
    font-size: 2.9rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Cards */
.flip-card {
    perspective: 1000px;
    margin-bottom: 2rem;
    height: 300px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform var(--transition-speed) ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.flip-card-front {
    background: white;
    color: var(--dark-color);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.flip-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.flip-card-back .flip-title {
    color: white;
}

.short-desc {
    font-size: 1.2rem;
    color: #666;
}

.flip-card-btn {
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(244, 238, 238, 0.687);
    transition: all 0.3s ease;
}

.flip-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 235, 235, 0.594);
}

/* Info Section */
.info-section {
    margin: 5rem 0;
    font-size: 1.1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.info-img {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 5rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    color: white;
    text-align: center;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .title {
        font-size: 2.4rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .flip-card {
        height: 280px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .flip-card {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .flip-card-inner {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .info-section {
        margin: 2.5rem 0;
    }
    
    .info-section .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-section .col-md-6:has(img) {
        display: none;
    }
    
    .info-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 90%;
        margin-bottom: 1rem;
        padding: 0 15px;
    }
    
    .section-title {
        margin-bottom: 1rem;
    }
    
    .container.text-center.mt-5.py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mobile-menu {
        width: 85%;
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 1.8rem;
    }
    
    .flip-card {
        height: 220px;
    }
    
    .flip-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .info-section {
        margin: 1.5rem 0;
    }
    
    .info-section .row {
        gap: 0.5rem;
    }
}

/* Desktop Dropdown Hover Styles */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    margin-top: 10px;
    display: block; /* Always show, just hide with opacity */
}

/* Mobile Dropdown Active State */
.mobile-dropdown.active .mobile-submenu {
    display: block;
}

/* Remove Bootstrap's default dropdown caret */
.dropdown-toggle::after {
    display: none !important;
}

/* Extended home section */
   .extended-section {
            background-color: #f8f9fa;
            padding: 3rem 0;
        }
        
        .content-card {
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            padding: 25px;
            margin-bottom: 25px;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .section-title {
            position: relative;
            padding-bottom: 20px;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: #f97316;
            border-radius: 2px;
        }
        
        .highlight-box {
            background-color: rgba(37, 99, 235, 0.05);
            border-left: 4px solid #2563eb;
            padding: 20px;
            border-radius: 0 8px 8px 0;
            margin: 25px 0;
        }
        
        .challenge-item {
            background: rgba(249, 115, 22, 0.08);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            border-left: 3px solid #f97316;
        }
        
        .action-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(37, 99, 235, 0.03);
            border-radius: 8px;
        }
        
        .action-icon {
            background: #2563eb;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        /* Updated Image alignment */
.img-container {
    margin: 40px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-align: center;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.03);
}

/* Desktop alignment - left aligned and smaller */
@media (min-width: 768px) {
    .img-container {
        max-width: 55%;
        margin: 40px 0;
        text-align: left; /* Align container content to left */
    }
    
    .img-container img {
        max-width: 100%;
    }
}
        
        .quote-box {
            font-style: italic;
            border-left: 3px solid #2563eb;
            padding: 15px 20px;
            margin: 25px 0;
            background: rgba(37, 99, 235, 0.05);
            border-radius: 0 8px 8px 0;
        }
        
        .definition-box {
            background: rgba(15, 23, 42, 0.03);
            padding: 20px;
            border-radius: 8px;
            margin: 25px 0;
            border: 1px dashed #2563eb;
        }
        
        .motive-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            height: 100%;
            transition: all 0.3s ease;
            border-top: 4px solid #2563eb;
        }
        
        .motive-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        
        .motive-number {
            width: 40px;
            height: 40px;
            background: #2563eb;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-bottom: 15px;
        }
        
        /* Added caption styling */
        .img-caption {
            font-style: italic;
            color: #666;
            margin-top: 10px;
            font-size: 0.9rem;
        }
        
        /* ===== PHILANTHROPY PAGE - SEAMLESS DESIGN ===== */
.philanthropy-section {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.philanthropy-section .container {
    max-width: 1200px;
}

/* Unified content container */
.content-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Section styling */
.content-section {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: #2563eb;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f97316;
    border-radius: 2px;
}

/* Image/text layout */
.image-text-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
}

.img-container {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-align: center;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.03);
}

.img-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.text-content {
    flex: 1;
    min-width: 300px;
}

/* Structures section */
.structures-intro {
    background: rgba(249, 115, 22, 0.08);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #f97316;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.structure-item {
    padding: 25px;
    background: rgba(37, 99, 235, 0.03);
    border-radius: 10px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
    height: 100%;
}

.structure-item:hover {
    background: rgba(37, 99, 235, 0.07);
    transform: translateY(-5px);
}

.structure-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.icon-circle i {
    color: #2563eb;
    font-size: 1.5rem;
}

.structure-item h3 {
    color: #1e40af;
    margin: 0;
    font-size: 1.4rem;
}

.structure-item ul {
    padding-left: 20px;
    margin-top: 15px;
}

.structure-item li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .content-container {
        padding: 30px;
    }
    
    .structure-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .image-text-container {
        flex-direction: column;
    }
    
    .img-container {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .content-container {
        padding: 25px 20px;
    }
    
    .section-title {
        text-align: left;
    }
    
    .section-title::after {
        left: 0;
        transform: none;
    }
}
/* === QUIZ SECTION === */
:root {
    --primary: #2563eb;
    --secondary: #f97316;
    --success: #10b981;
    --error: #ef4444;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
}

.quiz-container {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.quiz-header {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.quiz-header h1 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
}

.quiz-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.quiz-content {
    padding: 40px;
}

.quiz-intro {
    text-align: center;
    margin-bottom: 50px;
}

.quiz-intro h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2.2rem;
}

.quiz-intro p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
    line-height: 1.7;
}

.quiz-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.quiz-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
}

.quiz-card-header {
    padding: 25px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.1));
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.quiz-card-header h3 {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
}

.quiz-card-header i {
    margin-right: 15px;
    font-size: 1.8rem;
}

.quiz-card-body {
    padding: 25px;
    flex-grow: 1;
}

.quiz-question {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.quiz-question h5 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.quiz-question ul {
    padding-left: 25px;
}

.quiz-question li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.quiz-card-footer {
    padding: 0 25px 25px;
    text-align: center;
}

.btn-quiz {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    display: inline-block;
    text-decoration: none;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.btn-quiz:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

.quiz-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.quiz-modal-header {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    padding: 25px;
    position: relative;
}

.quiz-modal-header h2 {
    font-weight: 700;
    font-size: 1.8rem;
}

.quiz-progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background-color: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quiz-modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin: 15px 0;
    padding: 17px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1.05rem;
    position: relative;
}

.option-btn:hover {
    background-color: #edf2f7;
    transform: translateX(5px);
}

.option-btn.selected {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
}

.option-btn.correct {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--success);
}

.option-btn.incorrect {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.feedback-container {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
    font-size: 1.05rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-correct {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.feedback-incorrect {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.results-container {
    text-align: center;
    padding: 30px 20px;
    animation: fadeIn 0.8s ease;
}

.results-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.results-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.results-message {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
    line-height: 1.7;
}

.detailed-results {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detailed-results h4 {
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e2e8f0;
}

.result-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-question {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.user-answer {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-answer.correct {
    color: var(--success);
}

.user-answer.incorrect {
    color: var(--error);
}

.correct-answer {
    display: flex;
    align-items: center;
    color: var(--success);
}

.icon-container {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.correct-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.incorrect-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.btn-offer {
    background: linear-gradient(135deg, var(--secondary), #ea580c);
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.3);
    font-size: 1.1rem;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
}

.btn-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    color: white;
}

.question-counter {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.question-counter::before {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary);
    margin-right: 15px;
    border-radius: 2px;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 767px) {
    .image-text-container {
        flex-direction: column;
    }
    
    .img-container {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .image-text-container .text-content {
        order: 1;
        margin-bottom: 15px;
    }
    
    .image-text-container .img-container {
        order: 2;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .quiz-header h1 {
        font-size: 2.2rem;
    }
    
    .quiz-content {
        padding: 30px 20px;
    }
    
    .quiz-cards {
        grid-template-columns: 1fr;
    }
    
    .results-score {
        font-size: 2.8rem;
    }
}
/* ===== SCHOLARSHIP PAGE ===== */
.scholarship-section {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.scholarship-section .content-card {
    padding: 30px;
    margin-bottom: 30px;
}

.scholarship-section .section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
    color: #2563eb;
}

.scholarship-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f97316;
    border-radius: 2px;
}

.scholarship-section .img-container {
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-align: center;
    max-width: 100%;
}

.scholarship-section .img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.scholarship-section .img-container:hover img {
    transform: scale(1.03);
}

.scholarship-section .img-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.scholarship-section .learning-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.scholarship-section .feature {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.03);
    transition: all 0.3s ease;
}

.scholarship-section .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.scholarship-section .feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.scholarship-section .feature h5 {
    color: #2563eb;
    margin-bottom: 10px;
}

.scholarship-section .summary-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.scholarship-section .summary-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.03);
}

.scholarship-section .summary-item i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.scholarship-section .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.scholarship-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .scholarship-section .img-container {
        max-width: 45%;
        margin: 0 2.5% 20px 0;
    }
    
    .scholarship-section .col-md-6 {
        width: 45%;
        float: left;
        margin-right: 10%;
    }
    
    .scholarship-section .col-md-6:last-child {
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .scholarship-section .img-container {
        max-width: 90%;
        margin: 30px auto;
    }
    
    .scholarship-section .col-md-6 {
        width: 100%;
    }
    
    .scholarship-section .content-card {
        padding: 20px;
    }
    
    .scholarship-section .section-title {
        font-size: 1.5rem;
    }
    
    .scholarship-section .learning-features {
        grid-template-columns: 1fr;
    }
}