/* --- Basic Reset & Root Variables --- */
:root {
    --primary-color: #005A9C; /* Example Blue - Choose your specific blue */
    --secondary-color: #00A8E8; /* Example Teal/Light Blue Accent */
    --accent-color: #FF6F61; /* Example Warm Orange Accent */
    --dark-text: #333333;
    --light-text: #ffffff;
    --bg-light: #dcf8ff;
    --border-color: #dee2e6;

    --font-primary: 'Lato', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --container-width: 1140px;
    --padding-standard: 60px 0; /* Standard padding for sections */
}

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

html {
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    background-color: #fff;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px; /* Padding for smaller screens */
}

.section-padding {
    padding: var(--padding-standard);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary-gradient {
     background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
     color: var(--light-text);
}

.bg-primary-gradient h1,
.bg-primary-gradient h2,
.bg-primary-gradient h3,
.bg-primary-gradient h4 {
    color: var(--light-text);
}

.text-center {
    text-align: center;
}

.sr-only { /* Screen Reader only */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--primary-color); /* Default heading color */
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem;}
h3 { font-size: 1.5rem; color: var(--secondary-color); } /* Accent for H3 */
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

ul, ol {
    list-style: none;
    padding-left: 0;
}


/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 25px; /* Rounded buttons */
    font-family: var(--font-secondary);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.button-primary {
    background-color: var(--accent-color); /* Use accent for primary actions */
    color: var(--light-text);
}
.button-primary:hover {
    background-color: #e65a4f; /* Darker accent */
    color: var(--light-text);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.button-light { /* For dark backgrounds */
    background-color: var(--light-text);
    color: var(--primary-color);
}
.button-light:hover {
    background-color: #eee;
    color: var(--primary-color);
}


/* --- Header --- */
.site-header {
    padding: 15px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo img {
    max-height: 150px; /* Adjust as needed */
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-links li {
    text-align: center;
    min-width: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1.15;
    width: 100%;
    min-height: 52px;
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    position: relative;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    background-color: transparent;
    color: var(--primary-color);
}
.nav-links a::after { /* Underline effect on hover */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 4px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a:focus::after {
    width: calc(100% - 8px);
}

.mobile-nav-toggle { /* Hide mobile toggle on desktop */
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (min-width: 769px) and (max-width: 1080px) {
    .header-flex {
        gap: 10px;
    }

    .logo img {
        max-height: 110px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        min-height: 48px;
        padding: 6px 3px;
        font-size: 0.96rem;
    }

    .header-cta {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}


/* --- Hero Section --- */
.hero-section {
    background-color: var(--bg-light); /* Placeholder background */
    background-image:
        radial-gradient(circle at 18% 22%, rgba(0, 168, 232, 0.055) 0 1px, transparent 1px),
        radial-gradient(circle at 78% 36%, rgba(0, 90, 156, 0.04) 0 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.08));
    background-size: 34px 34px, 48px 48px, 100% 100%;
    background-position: 0 0, 18px 14px, center;
    padding: 100px 0; /* Adjust padding */
    color: var(--dark-text); /* Change if using dark background image */
    text-align: center; /* Center content if no image block */
}

.hero-content h1 {
    color: var(--primary-color); /* Or light-text if dark bg */
    font-size: 3.2rem; /* Larger heading for hero */
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* --- How It Works Snippet (Homepage Specific Section) --- */
.how-it-works-snippet { /* Applied to the section on index.html */
    position: relative; /* Needed for positioning the pseudo-element overlay */
    background-image: url('../Images/HomeOverlay.png'); /* Relative path from css/ to Images/ */
    background-size: cover; /* Scale image to cover the section */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat;
    z-index: 0; /* Base stacking context */
    background-color: transparent; /* Ensure no other background color interferes */
    overflow: hidden; /* Optional: ensure ::before doesn't peek out */
}

/* Add a semi-transparent color overlay */
.how-it-works-snippet::before {
    content: ""; /* Required for pseudo-elements */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Adjust color and opacity: Using primary blue at 75% opacity */
    background-color: rgba(0, 90, 156, 0.75); /* Example: var(--primary-color) with alpha */
    /* Alternative: Use a dark overlay */
    /* background-color: rgba(0, 0, 0, 0.6); */
    z-index: 1; /* Place overlay above the background image */
}

/* Ensure content (.container) is above the overlay */
.how-it-works-snippet .container {
    position: relative; /* Needed to stack above the ::before pseudo-element */
    z-index: 2; /* Place content above the overlay */
}

/* Adjust text colors within this section for readability */
.how-it-works-snippet h2 {
    color: var(--light-text); /* Make heading white/light */
    /* Optional: Add text shadow for better contrast */
    /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); */
}

/* Style step cards specifically within this overlay section */
/* Note: General .step-card styles are defined below */
.how-it-works-snippet .step-card {
    /* Keep the white background to contrast with overlay */
    background-color: #fff;
    /* Text colors inside should still be dark (using defaults/variables) */
}
.how-it-works-snippet .step-card h3 {
     color: var(--secondary-color); /* Or keep default */
}
.how-it-works-snippet .step-card p {
    color: var(--dark-text); /* Keep default */
}

/* Adjust 'Learn More' button style specifically within this section */
.how-it-works-snippet .button-secondary {
     border-color: var(--light-text); /* Light border */
     color: var(--light-text); /* Light text */
     background-color: transparent;
}
.how-it-works-snippet .button-secondary:hover {
    background-color: var(--light-text); /* Light background on hover */
    color: var(--primary-color); /* Dark text on hover */
}


/* --- General Steps Container Style --- */
/* (Used by homepage snippet AND how-it-works page) */
.steps-container {
    display: grid;
    gap: 30px;
    margin-bottom: 2rem;
    text-align: center;
    /* Default grid setup - overridden where needed */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* General Step Card Style */
.step-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--secondary-color); /* Top border accent */
}
/* General Step Card Heading Style */
.step-card h3 {
    margin-top: 1rem; /* Add space if using icons */
    margin-bottom: 0.5rem;
     /* Default color is var(--secondary-color) from general h3 rule */
}


/* --- Services Snippet --- */
.services-snippet .container {
    max-width: 1160px;
}

.services-snippet p.text-center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 2rem auto;
    text-align: center;
}

.service-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    background-color: #fff;
    padding: 18px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 90, 156, 0.12);
    box-shadow: 0 10px 24px rgba(0, 90, 156, 0.07);
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-list li:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 168, 232, 0.35);
    box-shadow: 0 16px 30px rgba(0, 90, 156, 0.12);
}

@media (max-width: 1000px) {
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* --- Testimonial Highlight Snippet --- */
.testimonial-highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.testimonial-highlight .container {
    max-width: 920px;
}

.testimonial-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 18px;
    margin-top: 1.5rem;
}

.testimonial-track {
    display: grid;
    min-height: 245px;
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 42px 48px;
    border: 1px solid rgba(0, 90, 156, 0.12);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 18px 45px rgba(0, 90, 156, 0.08);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.testimonial-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
}

.testimonial-slide p {
    color: var(--dark-text);
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    line-height: 1.55;
    margin-bottom: 1.4rem;
}

.testimonial-slide cite {
    color: var(--primary-color);
    font-style: normal;
    font-weight: 700;
}

.testimonial-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 90, 156, 0.18);
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 90, 156, 0.08);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.testimonial-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 90, 156, 0.22);
    cursor: pointer;
    padding: 0;
}

.testimonial-dot.is-active {
    background-color: var(--secondary-color);
}


/* --- Contact Form Section --- */
.contact-form-section h2,
.contact-form-section p {
    color: var(--light-text);
}
.contact-form-section h2 {
    margin-bottom: 1rem;
}
.contact-form-section p {
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}



/* --- Footer --- */
.site-footer {
    background-color: var(--dark-text);
    color: #ccc; /* Lighter gray for footer text */
    padding: 40px 0 0;
    font-size: 0.9rem;
}

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

.footer-logo {
    max-height: 110px;
    margin-bottom: 1rem;
}

.footer-about p {
    margin-bottom: 0;
    font-size: 1.12rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}

.site-footer h4,
.footer-links h4,
.footer-social h4 {
    color: #fff;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
}
.footer-links a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
}
.footer-social img {
    height: 40px;
    width: 40px;
    filter: grayscale(100%) brightness(2); /* Make icons white/gray */
    transition: filter 0.3s ease;
}
.footer-social a:hover img {
    filter: none; /* Show color on hover */
}


.footer-bottom {
    border-top: 1px solid #555;
    padding: 15px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* --- Page Header Section --- */ /* General Style for Page Headers */
.page-header-section {
    padding: 40px 0; /* Smaller padding than hero */
}
.page-header-section h1 {
    margin-bottom: 0.5rem;
}
.page-header-section p.lead { /* Style for the subtitle */
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}


/* --- How It Works Detailed Section (how-it-works.html Page) --- */
.how-it-works-detailed {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.how-it-works-detailed .container {
    max-width: 1200px; /* Allow slightly wider for 4 columns */
}

/* Style the grid container specifically for 4 columns on how-it-works page */
.steps-container.steps-four-columns {
    display: grid;
    gap: 24px; /* Space between cards */
    /* Default to 1 column on small screens - overridden by media queries below */
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

/* Style individual step cards within the how-it-works detailed section */
/* Note: Uses general .step-card styles, this adds specific overrides if needed */
.step-card.step-card-how-works {
    text-align: left;
    display: flex; /* Use flexbox for vertical alignment inside card */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start;
    height: 100%; /* Make cards in a row the same height */
    min-height: 410px;
    padding: 30px 24px 28px;
    border: 1px solid rgba(0, 90, 156, 0.10);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 90, 156, 0.08);
    background: rgba(255, 255, 255, 0.96);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card.step-card-how-works::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.step-card.step-card-how-works:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 232, 0.32);
    box-shadow: 0 24px 55px rgba(0, 90, 156, 0.14);
}

/* Style for the IMG tag icon on how-it-works page */
.step-card-icon {
    display: block;         /* Treat as block for margin auto */
    width: 56px;            /* Explicit width of the square */
    height: 56px;           /* Explicit height (equal to width for 1:1) */
    object-fit: cover;      /* Scales image to cover the 56x56 area, maintains aspect ratio, crops if needed */
    object-position: center center; /* Centers the image within the frame */
    margin: 0 0 1.4rem 0; /* Add space below */
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0, 90, 156, 0.16);
    filter: hue-rotate(162deg) saturate(1.45) brightness(0.9);
    transition: filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card.step-card-how-works:hover .step-card-icon {
    filter: hue-rotate(162deg) saturate(1.65) brightness(0.95);
    transform: scale(1.04);
    box-shadow: 0 14px 28px rgba(0, 90, 156, 0.22);
}

/* Styles for text elements below the icon on how-it-works page */
.step-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background-color: rgba(0, 168, 232, 0.10);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-color); /* Use accent color for number */
    margin-bottom: 0;
}

.step-card-how-works h3 {
    color: var(--primary-color); /* Ensure heading color */
    font-size: 1.22rem; /* Adjust heading size */
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.85rem; /* Space below heading */
    width: 100%;
}

.step-card-how-works p {
    font-size: 0.92rem;
    line-height: 1.58;
    color: var(--dark-text);
    margin-bottom: 0.8rem; /* Space between paragraphs */
    width: 100%;
}
.step-card-how-works p:last-of-type {
    margin-bottom: 0; /* Remove margin on last paragraph */
}
.step-card-how-works p small { /* Style the small clarification text */
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #666;
}

/* --- Responsive Grid Layout for How-It-Works Detailed Steps --- */
@media (min-width: 600px) {
    .steps-container.steps-four-columns {
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    }
}

@media (min-width: 992px) {
    .steps-container.steps-four-columns {
        grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    }
}


/* --- Services Detailed Section --- */
.services-detailed .container {
    max-width: 1160px; /* Wider layout for two service segments per row */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.service-category {
    display: block;
    min-height: 100%;
    margin-bottom: 0;
    padding: 26px;
    background-color: #fff;
    border: 1px solid rgba(0, 90, 156, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 90, 156, 0.08);
}

.service-icon {
    font-size: 2.5rem; /* Size of the icon/placeholder */
    color: var(--secondary-color); /* Icon color */
    margin-top: 5px; /* Adjust vertical alignment */
    flex-shrink: 0;
    width: 50px; /* Give icon area a fixed width */
    text-align: center;
}

.services-detailed .service-icon {
    display: none;
}

.service-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.45rem;
}

.service-content ul {
    list-style: disc; /* Use standard bullets */
    margin-left: 20px; /* Indent bullet points */
    padding-left: 10px;
}

.service-content li {
    margin-bottom: 0.4rem; /* Space between list items */
}

.section-divider { /* Style for the optional horizontal rule */
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5rem auto; /* Space around the divider */
    width: 80%; /* Make it slightly narrower than full width */
}

.services-detailed .section-divider {
    display: none;
}


/* Default styling applied to all service images */
.service-content img {
    display: block;
    margin: 1rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 420px;
    height: auto;
    opacity: 0.9;
}

/* Optional hover effect */
.service-content img:hover {
    opacity: 1;
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .services-detailed .container {
        grid-template-columns: 1fr;
    }

    .service-content img {
        margin-left: auto;
        margin-right: auto;
    }
}


/* --- Tutor Listing Section --- */
.ceo-section {
    background-color: #fff;
}

.ceo-layout {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 40px;
    align-items: center;
}

.ceo-image-wrap {
    text-align: center;
}

.ceo-image {
    width: 100%;
    max-width: 340px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ceo-content h1 {
    margin-bottom: 1rem;
}

.ceo-content p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.tutor-listing .container {
    max-width: 1200px; /* Allow a bit wider container for grid */
}

.tutor-grid {
    display: grid;
    /* Creates responsive columns: minimum 280px wide, fits as many as possible, equal width */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Adjust spacing between cards */
}

.tutor-card {
    background-color: #fff; /* White background for cards */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center; /* Center align content within the card */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tutor-card img {
    width: 130px; /* Fixed width for tutor photo */
    height: 130px; /* Fixed height */
    border-radius: 50%; /* Make image circular */
    object-fit: cover; /* Crop image nicely within the circle */
    margin: 0 auto 15px auto; /* Center image and add space below */
    display: block;
    border: 4px solid var(--bg-light); /* Optional light border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow on image */
}

.tutor-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.tutor-card .tutor-specialties {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    min-height: 40px; /* Helps align cards if specialties vary in length */
}

.tutor-card .tutor-specialties strong {
    color: var(--dark-text); /* Make label slightly darker */
}

.tutor-card .tutor-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-text);
    margin-bottom: 1.5rem; /* Space before optional button */
}

/* Styling for optional small button */
.button.button-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* --- Why Tutor Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    /* Optional: background-color: #fdfdfd; */
    /* Optional: border: 1px solid var(--border-color); */
    /* Optional: border-radius: 8px; */
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.benefit-icon img {
    width: 70px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Requirements Section --- */
.requirements-section .lead-small { /* Slightly smaller lead paragraph */
    font-size: 1.1rem;
    color: #555;
    max-width: 750px;
    margin: 0 auto 2rem auto;
}

.requirements-list ul {
    list-style: none;
    padding-left: 0;
    max-width: 700px; /* Constrain width for readability */
    margin: 0 auto; /* Center the list */
}

.requirements-list li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    display: flex; /* Align icon and text */
    align-items: flex-start;
}

.check-icon {
    color: var(--secondary-color); /* Or a green color */
    font-weight: bold;
    margin-right: 10px;
    margin-top: 2px; /* Align with text */
}

/* --- Payment Section --- */
.payment-section .payment-container {
    max-width: 650px; /* Narrower container for focus */
    margin: 0 auto;
    text-align: center;
    background-color: #fff; /* Optional: White background box */
    padding: 40px; /* Padding inside the box */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Add shadow for emphasis */
}

.payment-instructions .lock-icon {
    font-size: 2.5rem;
    color: var(--secondary-color); /* Or a green/secure color */
    display: block;
    margin-bottom: 1rem;
}

.payment-instructions h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.payment-instructions p {
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    line-height: 1.6;
}

.payment-action {
    margin: 2.5rem 0; /* Space above and below the button/embed */
}

/* Style for a larger payment button */
.button.button-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Optional styling for GoDaddy embed container */
.godaddy-payment-embed {
    /* Add specific styles here if using an embed */
    /* E.g., border: 1px solid var(--border-color); padding: 20px; */
    min-height: 200px; /* Example minimum height */
}

.payment-security-info {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.payment-security-info p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.payment-security-info p small {
    font-size: inherit; /* Ensure small tag inherits size */
}
.payment-security-info a {
    color: var(--primary-color); /* Link color consistent */
}


/* --- Form Styles --- */

/* Style the labels for clarity and positioning */
.godaddy-form-placeholder label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-text);
}

/* Style input fields, select, and textarea for consistency */
.godaddy-form-placeholder input[type="text"],
.godaddy-form-placeholder input[type="email"],
.godaddy-form-placeholder input[type="tel"],
.godaddy-form-placeholder input[type="file"],
.godaddy-form-placeholder select,
.godaddy-form-placeholder textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--dark-text);
    background-color: #fff;
}

.godaddy-form-placeholder input[type="file"] {
    cursor: pointer;
}

/* Specific styling for the textarea */
.godaddy-form-placeholder textarea {
    height: 150px;
    resize: vertical; /* Allows vertical resizing only */
}

/* Customize the select dropdown appearance */
.godaddy-form-placeholder select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5"><polygon points="0,0 10,0 5,5" fill="%23333"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px; /* Space for the custom arrow */
}

/* Add spacing between form groups */
.godaddy-form-placeholder p {
    margin-bottom: 1.5rem;
}

.form-note {
    display: block;
    margin-top: 6px;
    color: #555;
    font-size: 0.9rem;
    text-align: left;
}

/* Enhance accessibility with focus states */
.godaddy-form-placeholder input:focus,
.godaddy-form-placeholder select:focus,
.godaddy-form-placeholder input[type="file"]:focus,
.godaddy-form-placeholder textarea:focus,
.godaddy-form-placeholder button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Style placeholder text for guidance */
.godaddy-form-placeholder input::placeholder,
.godaddy-form-placeholder textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* --- Only the form-wrapper tweaks --- */
.godaddy-form-placeholder {
    background-color: rgba(255,255,255,0.9) !important;
    padding: 30px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border: 1px solid #dee2e6 !important;  /* faint gray border */
    max-width: 600px !important;            /* cap the width */
    margin: 0 auto !important;              /* center it */
  }
  
/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-section { padding: 60px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .header-flex { flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; }
    .header-cta { order: 2; }
    .mobile-nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        background-color: #f1f1f1;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .nav-links a {
        width: 100%;
        height: auto;
        padding: 0.75rem 1rem;
        border: 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        background-color: transparent;
        line-height: 1.25;
    }
    .nav-links li:last-child a {
        border-bottom: 0;
    }
    .nav-links[data-visible="true"] { display: flex; }
    .steps-container, .service-list, .tutor-preview-grid, .footer-grid, .benefits-grid, .tutor-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-carousel {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 10px;
    }
    .testimonial-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .testimonial-slide {
        padding: 30px 22px;
    }
    .testimonial-slide p {
        font-size: 1.05rem;
    }
    .ceo-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .ceo-content p {
        text-align: left;
    }
    .service-category {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .service-icon { margin: 0 0 0.5rem 0; }
    .service-content h3 { text-align: center; }
    .service-content ul { margin-left: 0; padding-left: 20px; text-align: left; display: inline-block; }

    /* Center footer content */
    .footer-grid > div {
        text-align: center;
    }
    .footer-logo { margin-left: auto; margin-right: auto;}
}
