﻿/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.site-wrapper {
    width: 80%;
    margin: 0 auto;   /* centers the website */
}


/* Body Style */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Header */
header {
    background-color: rgb(180, 51, 255); /* Purple */
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 8px;
    position: relative; /* Relative positioning for the shine effect */
    overflow: hidden; /* Ensure the shine effect is contained */
}

/* Shine Line Effect */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off the left side */
    width: 150%; /* Wider than the header to allow for full coverage */
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shineAnimation 3s linear infinite; /* Continuous shine animation */
    transform: skewX(-30deg); /* Angle for the shine effect */
}

/* Continuous Shine Animation */
@keyframes shineAnimation {
    0% {
        left: -100%; /* Start off the left side */
    }
    100% {
        left: 100%; /* Move to the right side */
    }
}

/* Logo Container */
header .logo-container {
    position: absolute;
    left: 20px;
    top: 20px;
}

/* Logo Styles */
header .logo {
    position: relative; /* Needed for the shine effect positioning */
    width: 100%; /* Take full width of the container */
    max-width: 80px; /* Set a smaller maximum width */
    height: auto; /* Maintain the aspect ratio */
    border-radius: 50%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: logoRotate 10s ease-in-out infinite; /* Slower, smoother rotation */
    transform-style: preserve-3d; /* Enable 3D transformations */
}

/* Continuous Rotation Animation */
@keyframes logoRotate {
    0% {
        transform: rotateY(0deg); /* Start at 0 degrees on Y-axis */
    }
    50% {
        transform: rotateY(180deg); /* Halfway point */
    }
    100% {
        transform: rotateY(360deg); /* Complete rotation */
    }
}

/* Click Animation for Logo */
header .logo:active {
    animation: none; /* Disable rotation during the click */
    transform: scale(2) rotateY(0deg) translate(-50%, -50%); /* Enlarge and center */
    position: fixed; /* Make the logo fixed during animation */
    left: 50%; /* Center horizontally */
    top: 50%; /* Center vertically */
    z-index: 1000; /* Bring it to the front */
}

/* Entry Animation */
header .logo:active:before {
    content: '';
    animation: rotateIn 0.5s ease forwards; /* Animation for entering */
}

/* Animation for Entry */
@keyframes rotateIn {
    0% {
        transform: scale(0) rotateY(-90deg); /* Start small and rotated */
    }
    100% {
        transform: scale(1) rotateY(0deg); /* End at original size and position */
    }
}

/* Return to Original Position with Delay */
header .logo:active:after {
    content: '';
    animation: returnToOriginal 0.5s ease forwards 2s; /* 2 seconds delay before starting return animation */
}

/* Animation to Return Logo to Original Position */
@keyframes returnToOriginal {
    0% {
        transform: scale(2) translate(-50%, -50%); /* Start enlarged and centered */
    }
    100% {
        transform: scale(1) translate(0, 0); /* Return to original size and position */
    }
}

/* Subtle Hover Effect */
header .logo:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Softer shadow on hover */
}


/* Responsive adjustments */
@media (max-width: 600px) {
    header .logo-container {
        left: 10px;
        top: 10px;
    }

    header .logo {
        max-width: 60px; /* Further reduce size for smaller screens */
    }
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #f0f0f0, #d9d9d9); /* Light gray gradient */
    padding: 40px 20px;
    text-align: center;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* For positioning elements inside */
}


#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555; /* Slightly darker text for better readability */
}


/* Zoom-in animation */
@keyframes zoom-in {
    0% {
        opacity: 0; /* Start hidden */
        transform: scale(0.9); /* Slightly smaller */
    }
    100% {
        opacity: 1; /* Fully visible */
        transform: scale(1); /* Normal size */
    }
}


#hero h2 {
    font-size: 2.5rem;
    font-weight: bold;
    overflow: hidden; /* Ensure animation stays within bounds */
    line-height: 1.2;
    height: 3rem; /* Match single line height */
    position: relative;
    color: #333; /* Darker text for better readability */

}

#hero h2 span {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    animation: changeHeroText 9s infinite;
}

#hero h2 span:nth-child(1) {
    animation-delay: 0s;
}
#hero h2 span:nth-child(2) {
    animation-delay: 3s;
}
#hero h2 span:nth-child(3) {
    animation-delay: 6s;
}

@keyframes changeHeroText {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    40% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.btn {
    padding: 12px 24px;
    background-color: rgb(180, 51, 255); /* Purple */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #4a0f6b; /* Darker purple */
}



/* General Styles */
#about {
    padding: 0px 40px 80px;
    background-color: #f4f4f4;
    color: #333;
    overflow: hidden;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* General Styling for Sections */
.about-highlight,
.features,
.vision-section,
.statistics,
.team-section,
.call-to-action {
    margin-bottom: 50px;
    text-align: center;
    font-size: 1.2rem;
    color: #444;
}

/* Responsive Grid Layout */
.features-grid,
.stats-grid,
.team-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Feature, Stats, Team Member Styling */
.feature-item,
.stat-item,
.team-member {
    flex: 1 1 calc(30% - 25px);
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.feature-item:hover,
.stat-item:hover,
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Icons & Stats Styling */
.feature-item i,
.stat-item h4 {
    font-size: 3rem;
    color: #6c5ce7;
    margin-bottom: 15px;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2980b9;
}

/* Team Member Photo */
.team-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid #6c5ce7;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: #6c5ce7;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease-in-out;
}

.cta-button:hover {
    background: #5a4bcc;
    transform: scale(1.05);
}


/* Main container for layout */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    background: #f4f4f4;
    border-radius: 12px;
}

/* Logo Container with Animated Border */
.logos-container {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgb(180, 51, 255), rgba(180, 51, 255, 0.6));
    animation: sine-shine 2.5s infinite ease-in-out;
}

/* Actual Logo */
.logos {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff; /* White background to separate from border */
}

/* Sine Wave Shine Animation */
@keyframes sine-shine {
    0% {
        box-shadow: 0 0 10px rgba(180, 51, 255, 0.4);
        background: linear-gradient(0deg, rgb(180, 51, 255), rgba(180, 51, 255, 0.6));
    }
    50% {
        box-shadow: 0 0 25px rgba(180, 51, 255, 0.8);
        background: linear-gradient(180deg, rgb(180, 51, 255), rgba(180, 51, 255, 0.4));
    }
    100% {
        box-shadow: 0 0 10px rgba(180, 51, 255, 0.4);
        background: linear-gradient(360deg, rgb(180, 51, 255), rgba(180, 51, 255, 0.6));
    }
}

/* Text Styling */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    text-align: right;
    flex: 1;
    max-width: 600px;
    line-height: 1.5;
    letter-spacing: 0.6px;
    text-transform: capitalize;
}

/* Highlight "SIPHALA LK" in Purple */
.section-title span {
    color: rgb(180, 51, 255);
    font-weight: 800;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .logos-container {
        width: 150px;
        height: 150px;
    }

    .logos {
        width: 130px;
        height: 130px;
    }

    .section-title {
        text-align: center;
        font-size: 100%;
        padding-top:20px;
    }
}


/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Keyframes for logo */
@keyframes logoAnimation {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.team-member .card-icon {
    animation: logoAnimation 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

.features-grid .animate:nth-child(1),
.stats-grid .animate:nth-child(1),
.team-grid .animate:nth-child(1) {
    animation-delay: 0.3s;
}

.features-grid .animate:nth-child(2),
.stats-grid .animate:nth-child(2),
.team-grid .animate:nth-child(2) {
    animation-delay: 0.6s;
}

.features-grid .animate:nth-child(3),
.stats-grid .animate:nth-child(3) {
    animation-delay: 0.9s;
}

/* Styling for all h3 elements */
h3 {
    font-size: 2rem;  /* Larger font size */
    color: #6c5ce7;  /* Custom color (purple or adjust as needed) */
    font-weight: bold;
    margin-bottom: 20px;  /* Add some space below the h3 */
    text-align: center;  /* Center the heading */
}
/* Vision Content Card Styling */
.vision-section {
    padding: 40px 20px;
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}



/* Card Styling for the Vision Content */
.vision-content-card {
    padding: 20px;
    background-color: #ffffff;
    color: #333;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}



.vision-content-card p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .features-grid,
    .stats-grid,
    .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item,
    .stat-item,
    .team-member {
        flex: 1 1 100%;
    }
}

/* Team Grid Layout */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Each Team Member Card */
.team-member {
    flex: 1 1 calc(50% - 20px); /* Two cards side by side */
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member .card-content img.card-icon {
    width: 80px; /* Adjust the image size */
    height: 80px;
    margin-bottom: 20px;
}

.team-member .card-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.team-member .card-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.team-member .cta-button {
    padding: 10px 20px;
    background: #6c5ce7;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.team-member .cta-button:hover {
    background: #4b4dfe;
}

/* Hover effect */
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}





.video-preview {
    text-align: center;
    margin: 40px 0; /* Increased margin for better spacing */
}

.video-preview h2 {
    font-size: 28px; /* Increased font size for the title */
    color: #333; /* Title color */
    margin-bottom: 20px; /* Spacing below the title */
    font-family: 'Arial', sans-serif; /* Use a professional font */
}

.video-container {
    display: flex; /* Use flexbox to align videos side by side */
    justify-content: center; /* Center the videos horizontally */
    gap: 30px; /* Increased gap between videos */
    align-items: center; /* Centers the item vertically */

}

.video-item {
    position: relative;
    width: 320px; /* Set a fixed width for each video container */
    height: 180px; /* Set a fixed height to maintain aspect ratio */
    border-radius: 8px; /* Rounded corners for a softer look */
    overflow: hidden; /* Ensure rounded corners apply to iframe */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Transition for hover effect */
}

.video-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Removes the border around the iframe */
}

.video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure the link is on top */
    display: block; /* Make the link cover the iframe */
}


/* Footer */
footer {
    background-color: rgb(180, 51, 255);
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif; /* Consider using a more elegant font */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px; /* Limiting max-width for a cleaner look */
    margin: 0 auto; /* Centering footer */
}

.footer-section {
    flex: 1 1 200px; /* Responsive behavior */
    margin: 20px;
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.2em; /* Increased font size for headers */
}

.footer-section p,
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.footer-section a:hover {
    color: rgba(255, 255, 255, 0.7); /* Lighter color on hover */
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 20px;
}

.newsletter {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter h4 {
    margin-bottom: 10px;
    font-weight: bold;
}

.newsletter form {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.newsletter input[type="email"] {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px; /* Rounded corners */
    outline: none; /* Remove outline */
}

.newsletter button {
    padding: 10px 15px;
    border: none;
    background-color: white;
    color: rgb(180, 51, 255);
    border-radius: 0 5px 5px 0; /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth background transition */
}

.newsletter button:hover {
    background-color: rgba(255, 255, 255, 0.8); /* Lighter background on hover */
}

/* Social Media Links */
/* Social Media Section */
.social-media {
    text-align: center;
    padding: 30px 0;
    background: #f8f9fa; /* Light background */
    border-radius: 10px;
}

/* Social Icons Wrapper */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Remove Underline from Links */
.social-link {
    text-decoration: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: white;
}

/* YouTube */
.youtube {
    color: #FF0000;
}
.youtube:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}

/* Facebook */
.facebook {
    color: #1877F2;
}
.facebook:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4);
}

/* Telegram */
.telegram {
    color: #0088cc;
}
.telegram:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.4);
}

/* Responsive Design */
@media (max-width: 600px) {
    .social-icons {
        gap: 15px;
    }
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}



@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-in-text {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styling */
@media screen and (max-width: 768px) {

    /* General Body Padding Reduction */
    body {
        padding: 10px;
    }

    /* Header - Smaller Padding and Font Size */
    header {
        padding: 10px 0;
    }

    header h1 {
        font-size: 1.8rem;
    }


    /* Hero Section */
    #hero {
        padding: 20px 10px;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }


    /* Logo Container */
    header .logo {
        width: 50px;
    }
}

    
.tabs {
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: center; /* Center the tabs */
    margin: 20px 0; /* Add some margin */
    position: relative; /* Set position relative for absolute positioning of the active line */
}

.nav-item {
    margin: 0 15px; /* Space out the tabs */
    padding: 10px; /* Add padding for a clickable area */
    text-decoration: none; /* Remove underline from links */
    color: black; /* Set the text color to black */
    position: relative; /* Set position for the underline */
    transition: color 0.3s ease; /* Transition for text color change */
}

/* Change color on hover */
.nav-item:hover {
    color: purple; 
}

/* Create the purple line effect */
.nav-item:after {
    content: '';
    display: block;
    height: 3px; /* Height of the underline */
    background: purple; /* Color of the underline */
    position: absolute;
    left: 50%; /* Start from the center */
    transform: translateX(-50%); /* Center it */
    bottom: -5px; /* Position below the tab */
    width: 0; /* Start width of the underline */
    transition: width 0.3s ease, left 0.3s ease; /* Animation effect */
}

/* Show the purple line when the tab is selected */
.nav-item.active:after {
    width: 100%; /* Full width when active */
}

/* Style for the active tab */
.nav-item.active {
    color: purple; /* Change text color for active tab */
}
/* Basic Styling */
#lessons h2 {
    text-align: center;
    font-size: 2em;
    color: #111111; /* Purple color for titles */
    margin-bottom: 20px;
}

/* Video Container Styling */
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Video Card Styling */
.video-card {
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    text-align: center;
}

.video-card iframe {
    width: 100%;
    height: 180px;
    border: none;
}

.video-card p {
    padding: 10px;
    background-color: #4B0082; /* Purple background for video title */
    color: white;
    font-size: 1.1em;
    margin: 0;
    text-align: center;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }
}


#select-grade {
    text-align: center;
    margin: 20px 0; /* Add vertical spacing */
    font-family: Arial, sans-serif; /* Use a clean font */
}

.grade-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center the items */
    margin: 20px 0; /* Add some margin for spacing */
}

.grade-image {
    background-image: linear-gradient(to bottom right, #9b59b6, #6a0dad); /* Gradient background */
    color: white;
    border-radius: 100%; /* Circle shape */
    width: 150px; /* Circle diameter */
    height: 150px; /* Circle diameter */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px; /* Font size for the grade number */
}

.grade-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

.grade-card {
    margin: 10px; /* Space between cards */
    text-align: center;
    width: 200px; /* Set to desired width */
    height: 250px; /* Set to desired height */
    background-image: linear-gradient(to bottom right, #f8f9fa, #e0e0e0); /* Gradient background for cards */
    border: 1px solid #dee2e6; /* Subtle border */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center the content horizontally */
    justify-content: center; /* Center the content vertically */
}


/* Media query for mobile devices */
@media (max-width: 768px) {
    .grade-card {
        width: 120px; /* Smaller width for mobile */
        height: 150px; /* Smaller height for mobile */
        flex: 0 0 calc(33.33% - 20px); /* 3 cards in a row with spacing */
        box-sizing: border-box; /* Include padding and border in width */
    }

    .grade-image {
        width: 80px; /* Smaller circle diameter */
        height: 80px; /* Smaller circle diameter */
        font-size: 40px; /* Smaller font size for the grade number */
    }
}

/* Go Back Button Styling */
button {
    background-color: transparent; /* Transparent background */
    border: 2px solid #6c63ff; /* Purple border */
    color: #6c63ff; /* Purple text and icon color */
    padding: 8px 16px; /* Padding around the button */
    font-size: 18px; /* Font size of the button text */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    display: flex; /* Flexbox for aligning icon and text */
    align-items: center; /* Center the content vertically */
    gap: 8px; /* Space between icon and text */
    transition: all 0.3s ease; /* Smooth transition effect on hover */
}

/* Style for the icon inside the button */
button i {
    font-size: 20px; /* Icon size */
}

/* Hover effect */
button:hover {
    background-color: #6c63ff; /* Purple background on hover */
    color: white; /* White text and icon color on hover */
    border-color: #6c63ff; /* Same border color on hover */
}

/* Focus effect */
button:focus {
    outline: none; /* Remove default outline */
    box-shadow: 0 0 5px 2px rgba(108, 99, 255, 0.5); /* Subtle glow effect on focus */
}


/* Base styles for the subject images */
#all-subjects {
    text-align: center;
    margin: 20px auto; /* Center the section and add margin */
    font-family: 'Roboto', sans-serif; /* Use the Roboto font */
}

.subject-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center the items */
}

/* Styles for subject images */
.subject-image {
    width: 150px; /* Set desired width for subject images */
    height: 150px; /* Set desired height for subject images */
    margin: 10px; /* Space between images */
    background-image: linear-gradient(to top left, #9b59b6, #6a0dad); /* Gradient from bottom right to top left */
    border-radius: 8px; /* Rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Use rem for responsive font size */
    color: #ffffff; /* White text color for contrast */
    font-weight: 700; /* Bold font weight for emphasis */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
    text-align: center; /* Center align text */
}

.subject-image:hover {
    transform: scale(1.05); /* Slight scale on hover */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .subject-image {
        width: 100px; /* Adjust width for mobile */
        height: 100px; /* Adjust height for mobile */
        font-size: 1.2rem; /* Adjust font size for mobile */
    }
}

/* Optional: Additional responsiveness */
@media (max-width: 480px) {
    .subject-image {
        width: 80px; /* Further adjust width for small screens */
        height: 80px; /* Further adjust height for small screens */
        font-size: 1rem; /* Further adjust font size for small screens */
    }
}


.lesson-list {
    text-align: left; /* Align text to the left */
    padding: 0 10px; /* Horizontal padding */
}

.lesson-list h3 {
    font-size: 18px; /* Lesson title size */
    margin: 10px 0; /* Margin for the title */
}

.lesson-list ul {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
}

.lesson-list li {
    font-size: 14px; /* Lesson item size */
    margin: 5px 0; /* Space between lesson items */
}

/* Back button styles */
#back-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #6a0dad; /* Button background color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#back-button:hover {
    background-color: #580a8c; /* Darker shade for hover effect */
}
.lesson-container {
    display: flex;
    flex-wrap: wrap; /* Allow lesson cards to wrap */
    justify-content: center; /* Center the lesson cards */
    margin-top: 20px; /* Add some margin for spacing */
    background-image: linear-gradient(to right, #6a0dad, #9b59b6); /* Gradient background color */
    padding: 20px; /* Add padding for spacing around cards */
    border-radius: 12px; /* Rounded corners for the container */
}

.lesson-card {
    margin: 10px; /* Space between cards */
    width: 160px; /* Set desired width */
    height: 120px; /* Set desired height */
    background-image: linear-gradient(to bottom right, #9b59b6, #6a0dad); /* Gradient background for cards */
    border: none; /* Remove border for a cleaner look */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Soft shadow */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center content */
    justify-content: center; /* Center content */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
    cursor: pointer; /* Pointer on hover */
    text-align: center; /* Center text */
    color: #ffffff; /* White text for contrast */
}

.lesson-card:hover {
    transform: translateY(-4px); /* Lift effect on hover */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

.lesson-card h4 {
    margin: 0; /* Remove margin */
    font-size: 18px; /* Increase lesson title size */
    color: #ffffff; /* White text for better readability */
    font-family: 'Roboto', sans-serif; /* Use a professional font */
    transition: color 0.3s ease; /* Transition for text color */
}

.lesson-card:hover h4 {
    color: #ffec40; /* Change text color on hover for a fun effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    .lesson-card {
        width: calc(50% - 20px); /* Two cards in one line on smaller screens */
        height: 100px; /* Adjust height for mobile */
    }
}

@media (max-width: 480px) {
    .lesson-card {
        width: calc(100% - 20px); /* One card in line for very small screens */
    }
}

/* Notification styles */
.notification {
    display: none; /* Hide by default */
    position: fixed; /* Fixed position */
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right */
    background-color: #f9f9f9; /* Light background */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    width: 300px; /* Width of the notification */
    padding: 15px; /* Padding */
    z-index: 1000; /* High z-index to show above other elements */
    animation: slide-in 0.5s ease forwards; /* Slide-in animation */
}

/* Notification content styles */
.notification-content h3 {
    margin: 0; /* Remove default margin */
    color: #333; /* Dark text color */
}

.notification-content p {
    margin: 5px 0 10px; /* Margin for paragraph */
    color: #555; /* Slightly darker grey for text */
}

/* Close button styles */
#close-message {
    background-color: #2980b9; /* Blue background for the button */
    color: white; /* White text color */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    padding: 8px 12px; /* Padding for the button */
    cursor: pointer; /* Cursor changes to pointer */
}

/* Hover effect for the button */
#close-message:hover {
    background-color: #1c598a; /* Darker blue on hover */
}

/* Slide-in animation */
@keyframes slide-in {
    from {
        transform: translateY(-20px); /* Start above the viewport */
        opacity: 0; /* Start invisible */
    }
    to {
        transform: translateY(0); /* End in place */
        opacity: 1; /* End visible */
    }
}

.tab.active {
    font-weight: bold;
    color: #6c63ff;
}
/* Container for Course Cards */
.course-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center; /* Center cards horizontally */
    align-content: center;  /* Center cards vertically */
    min-height: 50vh;       /* Ensure container takes up some vertical space */
    place-items: center;    /* Centers both horizontally and vertically if grid items are fewer */
}


/* Individual Course Card */
.course-card {
        display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    : center
}

/* Course Image */
.course-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Card Body */
.course-card-body {
    padding: 20px;
}

/* Course Title */
.course-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Course Description */
.course-description {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

/* Button Style */
.course-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Hover Effect on Course Card */
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Hover Effect on Course Image */
.course-card-img:hover {
    transform: scale(1.05);
}

/* Hover Effect on Button */
.course-btn:hover {
    background-color: #45a049;
}
.error-message {
    color: red;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 50px;
}
/* Course Content Section */
#course-content {
    display: none; /* Hidden by default */
    padding: 20px;
    background-color: #f9f9f9; /* Light background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    color: #333;
}

#content-display h3 {
    font-size: 24px;
    color: #4a90e2; /* Subtle blue for headings */
    margin-bottom: 15px;
}

#content-display p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

#content-display ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

#content-display ul li {
    margin-bottom: 10px;
}

#content-display iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Frame shadow */
    margin: 0 auto;
}

/* Back Button Styling */
#course-content .back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4a90e2; /* Button color */
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#course-content .back-btn:hover {
    background-color: #357ab8; /* Darker shade on hover */
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    #content-display iframe {
        height: 250px; /* Smaller height for mobile */
    }

    #content-display h3 {
        font-size: 20px;
    }

    #content-display p {
        font-size: 14px;
    }

    #course-content .back-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}
/* Featured Courses Section */
.featured-courses {
    margin: 2rem auto;
    text-align: center;
    max-width: 90%;
}

.featured-courses h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #6200ea;
}

.carousel {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #fdfdfd 0%, #f0f4ff 100%);
  border-radius: 20px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    inset 0 0 60px rgba(98, 0, 234, 0.05);
  transition: background 0.5s ease;
}

.carousel:hover {
  background: linear-gradient(135deg, #f5f7ff 0%, #e4e9ff 100%);
}

.carousel-item {
  flex: 1 1 320px;
  max-width: 340px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.07),
    0 4px 12px rgba(98, 0, 234, 0.1);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    filter 0.4s ease;
  will-change: transform, box-shadow, filter;
  outline-offset: 4px;
}

.carousel-item:focus-visible {
  outline: 3px solid #6200ea;
  outline-offset: 4px;
}

.carousel-item:hover,
.carousel-item:focus {
  transform: translateY(-15px) scale(1.05);
  box-shadow:
    0 25px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(98, 0, 234, 0.25);
  filter: drop-shadow(0 6px 6px rgba(98, 0, 234, 0.15));
}

.carousel-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
  transition: filter 0.4s ease;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.carousel-item:hover img,
.carousel-item:focus img {
  filter: brightness(0.92);
}

.carousel-item h4 {
  font-size: 1.45rem;
  color: #1a1a1a;
  margin: 1.25rem 1.5rem 0.6rem;
  font-weight: 700;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.25;
  user-select: none;
  transition: color 0.3s ease;
}

.carousel-item:hover h4,
.carousel-item:focus h4 {
  color: #6200ea;
}

.carousel-item p {
  font-size: 1rem;
  color: #555555;
  margin: 0 1.5rem 1.75rem;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  flex-grow: 1;
  user-select: text;
  transition: color 0.3s ease;
}

.carousel-item:hover p,
.carousel-item:focus p {
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel {
    gap: 1.5rem;
  }
  .carousel-item {
    max-width: 100%;
  }
}

.bag-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2.5rem 3rem 3rem;
  background: linear-gradient(145deg, #d1c4e9, #a285d6);
  border-radius: 40px 40px 80px 80px / 60px 60px 120px 120px;
  box-shadow:
    0 20px 40px rgba(98, 0, 234, 0.35),
    inset 0 -10px 40px rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: visible;
  border: 4px solid #5e35b1;
}



/* (Use your professional carousel styles inside) */


.testimonials {
  max-width: 650px;
  margin: 3rem auto;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.testimonials h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #5a2ddb;
  font-weight: 700;
  letter-spacing: 1px;
}

.testimonial-slider {
  position: relative;
  height: 140px; /* adjust based on content */
  overflow: hidden;
}

/* Stack all testimonial items */
.testimonial-item {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  padding: 1.8rem 2rem;
  border-left: 6px solid #5a2ddb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(90,45,219,0.1);
  color: #333;
  font-style: italic;
  line-height: 1.5;
  
  opacity: 0;
  transform: translateX(100%);
  transition: none;
  pointer-events: none;
}

/* Normal text style for author */
.testimonial-item h4 {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  text-align: right;
  margin-top: 1rem;
}

/* Animation setup: each testimonial slides in from right (wipe left), stays, then slides out left */

/* 12 seconds total cycle, each testimonial visible for 4s */

.testimonial-item:nth-child(1) {
  animation: wipeLeft 12s infinite;
  animation-delay: 0s;
}
.testimonial-item:nth-child(2) {
  animation: wipeLeft 12s infinite;
  animation-delay: 4s;
}
.testimonial-item:nth-child(3) {
  animation: wipeLeft 12s infinite;
  animation-delay: 8s;
}

@keyframes wipeLeft {
  0% {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
  }
  8% {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  33% {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  41% {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
  }
}

/* Quick Links Section */
.quick-links {
    margin: 2rem auto;
    text-align: center;
    max-width: 90%;
}

.quick-links h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #6200ea;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links ul li {
    margin: 0.5rem 0;
}

.quick-links ul li a {
    text-decoration: none;
    color: #6200ea;
    font-size: 1rem;
    transition: color 0.3s;
}

.quick-links ul li a:hover {
    color: #bb86fc;
}

/* FAQ Section - Professional Style */
.faq {
    margin: 3rem auto;
    max-width: 700px;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
}

.faq h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #6200ea;
    font-weight: 700;
    border-bottom: 3px solid #6200ea;
    padding-bottom: 0.5rem;
}

.faq details {
    background: #fff;
    box-shadow: 0 3px 6px rgba(98, 0, 234, 0.15);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.faq details:hover {
    box-shadow: 0 6px 12px rgba(98, 0, 234, 0.3);
}

.faq summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a0ca3;
    outline: none;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before {
    content: "➤";
    color: #6200ea;
    display: inline-block;
    margin-right: 0.8rem;
    transition: transform 0.3s ease;
}

.faq details[open] summary::before {
    transform: rotate(90deg);
}

.faq p {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    padding-left: 1.8rem;
}


/* Social Media Section */
.social-media {
    margin: 2rem auto;
    text-align: center;
    max-width: 90%;
}

.social-media h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #6200ea;
}

.social-media a {
    font-size: 2rem;
    color: #6200ea;
    margin: 0 0.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-media a:hover {
    color: #bb86fc;
    transform: scale(1.1);
}
h2 {
    text-align: center;
    color: #4A90E2;
}

.subject-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.subject {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subject h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.subject p {
    font-size: 14px;
}
.grade-card-link {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Ensures the text color remains the same as the card */
}

/* Donation Section */
#donate {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 900px;
}

#donate h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

#donate p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Donation Button */
/* Donation Button */
#donate .btn {
    background-color: #28a745;
    color: #fff;
    padding: 14px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin: 0 auto;
}

/* Center the form and button container */
#donate form {
    text-align: center;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    #donate .btn {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }
}

#donate .btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    #donate {
        padding: 60px 15px;
        margin: 30px 15px;
    }

    #donate h2 {
        font-size: 2rem;
    }

    #donate p {
        font-size: 1.05rem;
        max-width: 100%;
        margin-bottom: 25px;
    }

    #donate .btn {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }
}
#donateBtn {
  background-color: #22c55e;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

#donateBtn:hover {
  background-color: #16a34a;
}

#bankDetails {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  line-height: 1.6;
}



#facebook-app {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 20px;
  margin: 30px auto;
  max-width: 370px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

#facebook-app h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1877f2;
}



* {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


    /* Modal styles */
    .modal {
        display: none; /* Hidden by default */
        position: fixed;
        z-index: 1; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
        padding-top: 260px;
    }

    .modal-content {
        background-color: #fff;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%; /* Set modal width */
        max-width: 400px; /* Max width */
        text-align: center;
        border-radius: 8px;
            animation: fadeIn 0.5s ease-out forwards, scaleIn 0.5s ease-out forwards; /
    }

        /* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}


/* Animation */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}



/* Vision Section */
.vision-section {
    margin: 40px 0;
    text-align: center;
}


.vision-content-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vision-content-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Mobile Responsive: Font & Padding Adjustments */
@media (max-width: 768px) {
    .vision-section h3 {
        font-size: 1.6rem;
    }

    .vision-content-card {
        padding: 20px 15px;
    }

    .vision-content-card p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .vision-section h3 {
        font-size: 1.4rem;
    }

    .vision-content-card p {
        font-size: 0.95rem;
    }
}



/* Our Impact / Statistics Section */
.statistics {
    margin: 40px 0;
    text-align: center;
}

.statistics h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;  /* no wrapping */
}

/* Stat Card Styling */
.stat-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 0 calc((100% - 30px) / 3); /* exactly 3 cards in one row with gap */
    max-width: calc((100% - 30px) / 3);
    height: 260px;  /* fixed height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item h4 {
    font-size: 1.8rem;
    color: #e67e22;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: #555;
    margin: 0 auto;
}

/* Responsive font size adjustments */
@media (max-width: 480px) {
    .statistics h3 {
        font-size: 1.4rem;
    }

    .stat-item h4 {
        font-size: 1.3rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .stat-item {
        height: 220px;
        padding: 15px;
    }
}


/* Base layout */
.pastpapers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
    flex-wrap: wrap;       /* allow wrapping on smaller screens */
}

.pastpapers .carousel-item {
    background: white;
    border: 2px solid #00c3c7;
    padding: 25px 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    min-width: 10px;      /* ensures balanced cards */
    flex: 1 1 250px;       /* responsive resizing */
    max-width: 200px;      /* keeps cards same size */
}

.pastpapers .carousel-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.pastpapers h4 {
    color: #009fa5;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}


/* Mobile <600px */
@media (max-width: 600px) {
    .pastpapers {
        flex-direction: column;   /* stack vertically */
        gap: 20px;
    }

    .pastpapers .carousel-item {
        width: 90%;               /* fill mobile screen */
        max-width: none;
    }
}
