/* Color Palette */
:root {
    --color-white: #FFFFFF;
    --color-light-gray: #F8F8F8;
    --color-dark-blue-primary: #0A1128; /* Very dark blue for text, main elements */
    --color-mid-blue-gradient-start: #1E3F66; /* Mid blue for gradients */
    --color-light-blue-gradient-end: #2B88D8; /* Lighter blue for gradients, accents */
    --color-button-hover-start: #2B88D8; /* Slightly different gradient for hover */
    --color-button-hover-end: #1E3F66;
    --color-text-body: #444; /* General body text color */
}

/* Global Styles & Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for navigation links */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-dark-blue-primary);
    background-color: var(--color-light-gray); /* Professional light background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--color-dark-blue-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-mid-blue-gradient-start), var(--color-light-blue-gradient-end));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Header */
.header {
    background-color: var(--color-white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px; /* Adjust as needed */
    margin-right: 15px;
}

.logo-text {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-dark-blue-primary);
    background: linear-gradient(to right, var(--color-mid-blue-gradient-start), var(--color-light-blue-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    white-space: nowrap; /* Prevent wrapping for long text */
}

.nav a {
    color: var(--color-dark-blue-primary);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-light-blue-gradient-end);
}

/* Buttons (Pill-shaped with Gradient) */
.button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.1em;
    background-image: linear-gradient(45deg, var(--color-mid-blue-gradient-start) 0%, var(--color-light-blue-gradient-end) 100%);
    background-size: 200% auto; /* For hover effect */
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-position: right center; /* Shift gradient on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background-color: var(--color-white);
    text-align: center;
    padding: 100px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* For potential background effects if desired */
}

/* Subtle background gradient pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle at top left, rgba(43, 136, 216, 0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(30, 63, 102, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.hero-section .container {
    position: relative; /* Ensure content is above the pseudo-element */
    z-index: 1;
}

/* Initial state for hero elements animation */
.hero-slogan, .hero-tagline, .hero-button, .hero-image-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-slogan {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--color-dark-blue-primary) 0%, var(--color-mid-blue-gradient-start) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.5em;
    color: var(--color-dark-blue-primary);
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 300;
    text-align: left; /* CHANGED */
}

.hero-button {
    padding: 18px 40px;
    font-size: 1.2em;
}

.hero-image-wrapper {
    margin-top: 40px;
    max-width: 600px; /* Control max width of image */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden; /* Hide any overflow if image has border-radius */
    border-radius: 12px; /* Soften edges of the image */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Subtle shadow for the image */
}

.photo {
    width: 100%; /* Make image fill its wrapper */
    height: auto;
    display: block; /* Remove extra space below image */
}


/* Services Section (on index.html) */
.services-section {
    background-color: var(--color-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none; /* Remove underline for links */
    color: inherit; /* Inherit text color */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3em;
    color: var(--color-light-blue-gradient-end);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--color-dark-blue-primary);
}

.service-card p {
    font-size: 1em;
    color: var(--color-text-body);
    text-align: left; /* CHANGED */
}

.cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* About Section */
.about-section {
    background-color: var(--color-light-gray);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 50px; /* Margin to separate bio from testimonials */
}

.about-content p {
    font-size: 1.1em;
    color: var(--color-text-body);
    margin-bottom: 20px;
    text-align: left; /* CHANGED */
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Testimonial Carousel */
.testimonials-title {
    margin-top: 80px; /* Space between bio and testimonials */
    margin-bottom: 40px;
}

.testimonial-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px; /* Space for layout */
    overflow: hidden; /* Important for hiding extra slides */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--color-white);
    padding: 30px; /* Inner padding for content */
}

.testimonial-carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out; /* Smooth sliding animation */
}

.testimonial-slide {
    flex: 0 0 100%; /* Each slide takes 100% width of the container */
    padding: 20px;
    text-align: center;
    color: var(--color-text-body);
}

.testimonial-quote-icon {
    font-size: 2.5em;
    color: var(--color-light-blue-gradient-end);
    margin-bottom: 15px;
}

.testimonial-slide p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic; /* Emphasize quotes */
    text-align: justify; /* KEPT AS IS per request */
    text-align-last: center; /* helps with short lines */
}

.testimonial-author {
    display: block;
    font-weight: 600;
    color: var(--color-dark-blue-primary);
    margin-top: 10px;
    font-size: 1.1em;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 63, 102, 0.7); /* Semi-transparent background */
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10; /* Ensure buttons are above slides */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
    background-color: var(--color-light-blue-gradient-end);
    transform: translateY(-50%) scale(1.05); /* Slight scale on hover */
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(30, 63, 102, 0.4); /* Faded color for inactive dots */
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: var(--color-light-blue-gradient-end); /* Active dot color */
    transform: scale(1.2); /* Slightly larger active dot */
}

/* Contact Section */
.contact-section {
    background-color: var(--color-white);
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: var(--color-text-body);
    text-align: left; /* CHANGED */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    text-align: center;
    font-size: 1.1em;
    margin-top: 50px; /* Increased margin to space from button */
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--color-text-body);
}

.contact-info a {
    color: var(--color-dark-blue-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-light-blue-gradient-end);
}

.contact-info i {
    margin-right: 10px;
    color: var(--color-mid-blue-gradient-start);
}

/* Footer */
.footer {
    background-color: var(--color-dark-blue-primary);
    color: var(--color-white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}


/* NEW: Dedicated Service Page Styles */
.service-page-section {
    background-color: var(--color-white);
    padding: 80px 0;
}

.service-page-section h2 {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--color-dark-blue-primary) 0%, var(--color-mid-blue-gradient-start) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.service-page-section p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: left; /* CHANGED */
    color: var(--color-text-body);
}

.sub-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sub-service-card {
    background-color: var(--color-light-gray);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.sub-service-card:hover {
    transform: translateY(-5px);
}

.sub-service-card h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--color-dark-blue-primary);
    position: relative;
    padding-left: 30px; /* Space for icon */
}

.sub-service-card h4::before {
    content: '\f0eb'; /* Lightbulb icon from Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-light-blue-gradient-end);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
}

.sub-service-card p {
    font-size: 0.95em;
    text-align: left; /* CHANGED */
    margin: 0;
    color: var(--color-text-body);
}

/* For list-based sections (e.g., Subject Tutoring) */
.content-columns {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 40px;
    max-width: 900px;
    margin: 50px auto;
}
@media (min-width: 768px) {
    .content-columns {
        grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
    }
}

.content-column h3 {
    font-size: 1.6em;
    color: var(--color-mid-blue-gradient-start);
    margin-bottom: 20px;
    text-align: center;
}

.content-column ul {
    list-style: none; /* Remove default list style */
    padding: 0;
}

.content-column ul li {
    background-color: var(--color-light-gray);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    color: var(--color-text-body); /* Ensure list item text color is consistent */
}

.content-column ul li i {
    color: var(--color-light-blue-gradient-end);
    margin-right: 15px;
    font-size: 1.2em;
}

/* FAQ styles */
.faq-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background-color: var(--color-light-gray);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-dark-blue-primary);
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--color-light-gray);
    color: var(--color-text-body);
    font-size: 1em;
}

.faq-answer.active {
    max-height: 200px; /* Adjust max-height to fit content, a generous value often works */
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-slogan {
        font-size: 3em;
    }
    .hero-tagline {
        font-size: 1.3em;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .service-page-section h2 {
        font-size: 2.5em;
    }
    /* Adjust carousel buttons for smaller screens */
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    .carousel-prev {
        left: 5px;
    }
    .carousel-next {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .nav {
        margin-top: 15px;
    }
    .nav a {
        margin: 0 10px; /* Reduced margin for smaller screens */
        font-size: 0.95em;
    }
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    .header-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .logo-text {
        font-size: 1.5em;
        white-space: normal; /* Allow wrapping */
    }
    .hero-slogan {
        font-size: 2.5em;
    }
    .hero-tagline {
        font-size: 1.1em;
    }
    .section-padding {
        padding: 60px 0;
    }
    .service-card {
        padding: 30px;
    }
    .sub-service-grid {
        grid-template-columns: 1fr;
    }
    .sub-service-card h4 {
        padding-left: 0;
    }
    .sub-service-card h4::before {
        display: none;
    }
    /* Adjust carousel buttons for mobile */
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    .carousel-prev {
        left: 0px;
    }
    .carousel-next {
        right: 0px;
    }
    .testimonial-carousel-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2em;
    }
    .nav a {
        display: block;
        margin: 8px 0;
    }
    .hero-slogan {
        font-size: 2em;
    }
    .hero-tagline {
        font-size: 1em;
    }
    .button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .service-page-section h2 {
        font-size: 2em;
    }
    .testimonial-slide p {
        font-size: 1em;
    }
}
