:root{
    --primary-color: #0c4298;
    --secondary-color: #f28500;
    --text-color: #0A142A;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
    height: 100%;
}

body{
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    height: 100%;
    display: flex; /*Made this flex so that the footer stays at the bottom when page is on a larger screen*/
    flex-direction: column;
}

main{
    flex: 1;
}

i{
  color: var(--text-color);
}


button{
    cursor: pointer;
    color: white;
    background-color: var(--secondary-color);
    border: none;
    font-size: 1rem;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    font-weight: bold;
}
button:hover{
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation Bar */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    background:white;
    z-index: 100;
    position: relative
    
}
.nav-container.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#nav-logo {
    height: 70px;
    /* IMAGE PLACEHOLDER - Add logo here */
}

#nav-logo:hover{
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly; /* Spread items evenly */
    gap: 3rem;
}

.nav-links{
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-color);
    opacity: 80%;
    font-weight: bold;
    height: 50px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links:active{
    background-color: var(--accent-color);
    opacity: 50%;
    border-radius: 3px;
    color: white;
}

.nav-links:hover{
    background-color: var(--accent-color);
    opacity: 50%;
    border-radius: 3px;
    color: var(--primary-color);
}

.nav-links:current{
    background-color: var(--accent-color);
    opacity: 50%;
    border-radius: 3px;
    color: white;
}

@media (max-width: 768px) {
    .nav-menu{
        display: none;
    }
}

section{
    padding: 2rem;

}

#intro {
     background: linear-gradient(rgba(241, 237, 237, 0.5), rgba(246, 244, 244, 0.5)), 
                url("images/tutor.jpg") center/cover no-repeat;
    min-height: 80vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    margin-top: 0px; /* Adjust based on navbar height */
    height: 100vh;
    position: relative;
}



.intro img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--primary-color); /* Your blue color */
    opacity: 0.6; /* Adjust transparency: 0 = invisible, 1 = solid */
    clip-path: ellipse(70% 100% at 50% 0%);
    z-index: 1; /* Above background, below content */
    mix-blend-mode: multiply;

}

.intro h1{
    padding-top: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 1;
}


.carousel {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* Default fallback if images don't load */
.slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}

.slide h1 {
    font-size: 3.5rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.2;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
    max-width: 70%;
}

.slide p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.slide button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.1s;
}

.slide button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animation for text */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS-only carousel animation */
.slide {
    animation: carouselAnimation 30s infinite;
}

.slide-1 {
    animation-delay: 0s;
}

.slide-2 {
    animation-delay: 10s;
}

.slide-3 {
    animation-delay: 20s;
}

@keyframes carouselAnimation {
    0% {
        opacity: 0;
        z-index: 0;
    }
    5% {
        opacity: 1;
        z-index: 1;
    }
    30% {
        opacity: 1;
        z-index: 1;
    }
    35% {
        opacity: 0;
        z-index: 0;
    }
    100% {
        opacity: 0;
        z-index: 0;
    }
}

/* Pause animation on hover */
.carousel:hover .slide {
    animation-play-state: paused;
}


/* About Section - Picture and Learn side by side */
#about-section {
    padding: 4rem 2rem;
    background: white;
    position: relative;
    z-index: 1;
    margin-top: -1px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.picture-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    position: relative;
}

.circle-image {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.circle-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.learn-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.learn-content h2 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.learn-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.learn-content button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.learn-content button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Block styles */
.block {
    position: absolute;
    background-color: white;
    border: 5px solid var(--secondary-color);
    border-radius: 20px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.block:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.3);
}

.block-1 {
    width: 280px;
    height: 120px;
    top: 20px;
    left: -40px;
}

.block-2 {
    width: 280px;
    height: 120px;
    bottom: 50px;
    right: -40px;
}

.block p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0;
}

@media (max-width: 768px) {
    .block{
        display: none;
    }

    .picture-content{
        display: none;
    }
}

/* Subjects Carousel */
#subjects {
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
    position: relative;
}

#subjects h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.subjects-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; 
}

/* Carousel Track - Scrollable Container */
.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 1rem 2rem 1rem; /* Extra bottom padding for scrollbar */
    overflow-x: auto;
    overflow-y: hidden; /* Prevent vertical scrolling */
    scroll-behavior: smooth;
    scrollbar-width: auto; /* Firefox - always show scrollbar */
    scrollbar-color: var(--primary-color) #f1f1f1;
    
    /* Force scrollbar to always be visible */
    -ms-overflow-style: scrollbar; /* IE and Edge */
    
    /* Enable smooth scrolling with momentum */
    -webkit-overflow-scrolling: touch;
    
    /* Prevent scroll-snap for natural scrolling */
    scroll-snap-type: none;
    
    /* Make sure content can overflow */
    width: max-content;
    max-width: 100%;
}

/* FORCE VISIBLE SCROLLBAR - Webkit browsers (Chrome, Safari, Edge) */
.carousel-track::-webkit-scrollbar {
    height: 14px !important; /* Thick scrollbar */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.carousel-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 0 1rem;
    border: 1px solid #ddd;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-color), #4a6fc1);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    min-height: 40px; /* Minimum thumb size */
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0a3a8a, #3a5cb5);
    cursor: grab;
}

.carousel-track::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar-button {
    width: 16px;
    background-color: #f1f1f1;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.carousel-track::-webkit-scrollbar-button:hover {
    background-color: #e0e0e0;
}

.carousel-track::-webkit-scrollbar-button:single-button:start {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230c4298' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
}

.carousel-track::-webkit-scrollbar-button:single-button:end {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230c4298' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
}



.subject-card {
    position: relative; 
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    text-align: left; 
    border: 3px solid transparent;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.subject-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-right: 40px; /* Space for icon */
    width: calc(100% - 40px); /* Ensure text doesn't go under icon */
}

.subject-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-right: 40px; /* Space for icon */
    width: calc(100% - 40px); /* Ensure text doesn't go under icon */
}


/* Carousel Navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -60px; /* Half outside container */
}

.carousel-next {
    right: -60px; /* Half outside container */
}

/* Subject indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--secondary-color);
}
/* Chrome-specific scrollbar styles */
.chrome-scrollbar {
    overflow-x: scroll !important;
    overflow-y: hidden !important;
}

.chrome-scrollbar::-webkit-scrollbar {
    height: 14px !important;
    display: block !important;
}

.chrome-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
    margin: 0 1rem !important;
    border: 1px solid #ddd !important;
}

.chrome-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-color), #4a6fc1) !important;
    border-radius: 10px !important;
    border: 2px solid #f1f1f1 !important;
}




/* Font Awesome Icons Style */
.subject-card .fa, 
.subject-card .fas, 
.subject-card .far {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 100px;
    color: rgba(12, 66, 152, 0.10); /* Always visible but subtle */
    z-index: 1;
    transition: all 0.3s ease;
}

.subject-card:hover .fa,
.subject-card:hover .fas,
.subject-card:hover .far {
    color: rgba(12, 66, 152, 0.10);
    transform: scale(1.1);
}

/* Simple Features Section */
.simple-features {
    padding: 0 20px;
    background: var(--primary-color);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 0;
}

.feature {
    text-align: center;
    padding: 10px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}


.feature-icon {
    margin: 0 auto 20px;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8f9fa;
}

.feature p {
    font-size: 1rem;
    color: #f8f9fa;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}
/* Pricing Section */
#pricing-secondary {
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
}

.pricing-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.pricing-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

/* Primary Color Card */
.primary-card {
    background: var(--primary-color);
    color: white;
    border: 3px solid var(--primary-color);
}

.primary-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.primary-card .price {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.primary-card .price span {
    font-size: 1.2rem;
    opacity: 0.9;
}

.primary-card .description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.primary-card .features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
    width: 100%;
}

.primary-card .features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 1.5rem;
}

.primary-card .features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* White Card */
.white-card {
    background: white;
    color: var(--text-color);
    border: 3px solid var(--primary-color);
}

.white-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.white-card .price {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.white-card .price span {
    font-size: 1.2rem;
    color: #666;
}

.white-card .description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.white-card .features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
    width: 100%;
}

.white-card .features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.white-card .features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Pricing Buttons */
.pricing-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    width: 100%;
    margin-top: 1.5rem;
}

.pricing-btn a{
    text-decoration: none;
}

#individual{
    color: white;
}

#group{
    color: var(--primary-color);
}

#group:hover{
    color: white;
}

.pricing-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.primary-card .pricing-btn {
    background-color: white;
    color: var(--primary-color);
}

.primary-card .pricing-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Simple Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.footer-column {
    flex: 1;
    max-width: fit-content;
}

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-color);
}

.logo-column {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px; /* Smaller width for logo */
}

#footer-logo {
    width: 120px;
    height: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: white;
}

.social-link {
    color: white;
    font-size: 1.2rem;
}



.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(12, 66, 152, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(242, 133, 0, 0.4);
}

.testimonial-container {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-bottom: 2rem;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}


.testimonial-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.testimonial-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: right;
    font-style: italic;
}

.testimonial {
    background-color: white;
    color: var(--text-color);
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(12, 66, 152, 0.3);
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 300px;
}
.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}



.testimonial p:first-of-type {
    margin-top: 1.5rem;
    flex-grow: 1;
}

.quote-icon {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 3rem;
    color: rgba(12, 66, 152, 0.2);
    font-family: Georgia, serif;
    font-weight: bold;
}

.testimonial-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}



@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .pricing-options {
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 350px;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 1024px) {
    .carousel-prev {
        left: -40px;
    }
    
    .carousel-next {
        right: -40px;
    }
    
    .subject-card {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    .subjects-carousel {
        padding: 0 1rem;
        overflow: hidden; /* Keep hidden on mobile for scrolling */
    }
    
    .carousel-track {
        gap: 1rem;
        padding: 0.5rem;
        overflow-x: auto; /* Enable scrolling on mobile */
        width: auto; /* Reset width for mobile */
        scrollbar-width: thin;
        scrollbar-color: var(--secondary-color) #f1f1f1;
    }
    
    .carousel-track::-webkit-scrollbar {
        height: 6px;
        display: block;
    }
    
    .carousel-track::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .carousel-track::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 10px;
    }
    
    .subject-card {
        flex: 0 0 240px;
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .subject-card .fa,
    .subject-card .fas,
    .subject-card .far {
        font-size: 24px !important;
        top: 12px;
        right: 12px;
    }
    
    .subject-card h3 {
        font-size: 1.5rem;
        margin-right: 30px;
        width: calc(100% - 30px);
    }
    
    .subject-card p {
        font-size: 0.95rem;
        margin-right: 30px;
        width: calc(100% - 30px);
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .carousel-indicators {
        display: none;
    }
}

@media (max-width: 480px) {
    .subject-card {
        flex: 0 0 200px;
        min-height: 160px;
        padding: 1rem;
    }
    
    .subject-card h3 {
        font-size: 1.3rem;
        margin-right: 25px;
        width: calc(100% - 25px);
    }
    
    .subject-card p {
        font-size: 0.9rem;
        margin-right: 25px;
        width: calc(100% - 25px);
    }
    
    .subject-card .fa,
    .subject-card .fas,
    .subject-card .far {
        font-size: 20px !important;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .slide h1 {
        font-size: 2rem;
        width: 100%;
    }
    
    .slide p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .slide button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .circle-image {
        width: 250px;
        height: 250px;
    }
    
    .block p {
        font-size: 1.1rem;
    }
    
    .learn-content h2 {
        font-size: 1.8rem;
    }
    
    .learn-content p {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .circle-image {
        width: 400px;
        height: 400px;
    }
    
    .block-1,
    .block-2 {
        width: 240px;
        height: 100px;
    }
    
    .block p {
        font-size: 1.2rem;
    }
}


@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;       /* stack items vertically */
    gap: 2rem;                     /* smaller gap on mobile */
  }

  .picture-content,
  .learn-content {
    flex: 1 1 90%;                /* allow items to shrink and fit screen */
    min-width: 0;                 /* critical: prevents horizontal scroll */
    max-width: 100%;              /* let it fill the container width */
    margin: 0 auto;               /* center horizontally */
  }

  .circle-image {
    width: auto;                   /* scale image down */
    height: 20%;                 /* keep aspect ratio */
  }

  .circle-image img {
    width: 100%;
    height: auto;
    object-fit: cover;                /* responsive image */
  }
    
    .learn-content h2 {
        font-size: 2rem;
    }
}

.curved-underline {
  position: relative;
  display: inline-block; /* Important for proper width calculation */
}

.curved-underline::after {
  content: "";
  position: absolute;
  bottom: -10px; /* Adjust vertical position */
  left: 0;
  height: 10px; /* Adjust height to control the arc depth */
  width: 100%;
  border-top: solid 5px #0c4298; /* Style and color of the line */
  border-color: #0c4298 transparent transparent transparent; /* Make side borders transparent */
  border-radius: 60%; /* Create the curved shape */
}
/* Simple Blue About Us Section */
#about-us {
    padding: 4rem 2rem;
    background-color: var(--primary-color);
    color: white;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

#about-us p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

/* Add a subtle pattern background */
#about-us {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-color: var(--primary-color);
}