/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root { 
  --primary-color: #22586a;       /* Deep teal */
  --secondary-color: #7b2a51;     /* Magenta */
  --background-color: #22586a;    /* Page background */
  --text-color: #ffebd1;          /* Cream text */
  --muted-text-color: #ffebd1;    /* Subheadings */
  
  /* New helpers */
  --overlay-color: rgba(34, 88, 106, 0.95); /* dark overlay for header */
  --card-bg: #1a3d4a;              /* slightly darker than primary */
  --border-color: #374151;         /* dark gray for subtle borders */
  --highlight-bg: #3a6b7d;         /* hover/active backgrounds */
}

html {
    scroll-behavior: smooth;
    font-size: 12px;
    scroll-padding-top: 100px; /* adjust based on your header height */
}


body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.card {
  padding-top: 15px;      /* Space above the content */
  padding-right: 100px;    /* Space to the right of the content */
  padding-bottom: 15px;   /* Space below the content */
  padding-left: 100px;     /* Space to the left of the content */
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 2rem 0;
}

.section__title {
    font-size: 2.0rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section__description {
    font-size: 1.125rem;
    color: var(--muted-text-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}
    
.btn--primary:hover {
    background-color: var(--text-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--secondary-color);
}
       
.btn--secondary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
}

.btn--secondary:hover {
    background-color:  var(--text-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.nav__logo-img {
    height: 40px;   /* adjust size */
    margin-right: 10px;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.nav__close {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero__title--accent {
    color: var(--text-color);
}

.hero__description {
    font-size: 1.25rem;
    color: var(--muted-text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-placeholder {
    max-width: 100%;
    height: auto;
}

/* ===== OVERVIEW SECTION ===== */
.overview {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* ===== OVERVIEW SECTION HEADING & DESCRIPTION ===== */
.overview__intro {
    text-align: center;
    margin-bottom: 2rem; /* reduced from 4rem to tighten spacing with tiles */
}

.overview__intro .section__title {
    font-size: 2rem;  /* keep consistent */
    margin-bottom: 0.75rem; /* slightly smaller spacing below title */
}

.overview__intro .section__description {
    font-size: 1rem; /* slightly smaller for better proportion */
    max-width: 700px; /* tighter than the previous 600-900px? adjust if needed */
    margin: 0 auto; 
    line-height: 1.6;
}

/* ===== OVERVIEW SECTION / WHY CHOOSE TILES ===== */
.overview__container {
    max-width: 900px; /* same as other sections */
    margin: 0 auto;
    padding: 0 2rem;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* similar to subjects grid */
    gap: 2rem;
}

.benefit {
    text-align: center;
    padding: 1.25rem; /* same as subject-card */
    border-radius: 1rem;
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4); /* same as subject-card hover */
}

.benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;  /* same as subject-card__icon */
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.benefit__title {
    font-size: 1.25rem; /* match subject-card__title */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.benefit__description {
    color: var(--muted-text-color);
    font-size: 0.95rem; /* match subject-card description */
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.about__container {
    max-width: 1000px;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about__image {
    display: flex;
    justify-content: center;
}

.about__image-placeholder {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    overflow: hidden;
}

.about__text .section__title {
    text-align: left;
    margin-bottom: 2rem;
}

.about__description p {
    margin-bottom: 1.5rem;
    color: var(--muted-text-color);
    line-height: 1.7;
}

.about__credentials {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
}

.about__credentials h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about__credentials ul {
    list-style: none;
}

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

.about__credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--texr-color);
    font-weight: bold;
}

/* ===== SUBJECTS SECTION ===== */
.subjects {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.subjects__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.subjects__header .section__title {
    font-size: 2rem;
    margin-bottom: 0.5rem; /* optional: tighten spacing if you have a description */
}

.subjects__header .section__description {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 1rem auto; /* tighter margin below description */
}

.subjects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.subject-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--secondary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.subject-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.subject-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.subject-card__description {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subject-card__details {
    list-style: none;
}

.subject-card__details li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--muted-text-color);
    border-bottom: 1px solid var(--secondary-color);
}

.subject-card__details li:last-child {
    border-bottom: none;
}

.subject-card__details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.testimonials__header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
}

.testimonial-card__content {
    margin-bottom: 1.5rem;
}

.testimonial-card__text {
    font-style: italic;
    color: var(--muted-text-color);
    line-height: 1.7;
    position: relative;
}

.testimonial-card__text::before {
    content: '"';
    font-size: 3rem;
    color: var(--muted-text-color);
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.testimonial-card__role {
    color: var(--muted-text-color);
    font-size: 0.875rem;
}

/* === CONTACT SECTION LAYOUT === */
.contact {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.contact__header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
}
.contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Each contact item (email, phone) */
.contact__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Keep icons centered with text */
.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tidy up titles */
.contact__item h4 {
  margin: 0;
  font-size: 1.1rem;
}

/* Link styling inherits global look */
.contact__item a {
  text-decoration: none;
  color: inherit;
}

/* === RESPONSIVE: side-by-side layout for wider screens === */
@media (min-width: 700px) {
  .contact__details {
    flex-direction: row;
    justify-content: center;
    text-align: left;  /* slightly better spacing on desktop */
  }

  .contact__item {
    flex-direction: row;
    text-align: left;
  }
}

/* ===== OLD CONTACT SECTION ===== */

.contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact__item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact__item p {
    color: var(--muted-text-color);
}

.contact__item a {
    color: var(--text-color);
    text-decoration: none;
}

.contact__item a:hover {
    text-decoration: underline;
}

.contact-booking {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.contact-booking h2 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.contact__form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* ===== FORM STYLES ===== */
.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(123, 42, 81, 0.3);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer__brand p {
    color: var(--muted-text-color);
    line-height: 1.6;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer__section ul {
    list-style: none;
}

.footer__section li {
    margin-bottom: 0.5rem;
}

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

.footer__section a:hover {
    color: var(--primary-color);
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--muted-text-color);
}

.footer__bottom p {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 4rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

/* ===== Global Page Margin & Width Fix ===== */

/* Constrain the main content width */
body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color, #22586a);
}

/* Apply consistent left/right padding to everything */
.container,
.section,
.overview__container,
.subjects__container {
  max-width: 900px;      /* total width limit */
  margin-left: auto;      /* centers the section horizontally */
  margin-right: auto;
  padding-left: 2rem;     /* adds side breathing space */
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Optional: reduce padding slightly on small screens */
@media (max-width: 768px) {
  .container,
  .section,
  .overview__container,
  .subjects__container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== PRICING SECTION ===== */
.pricing {
  background-color: var(--primary-color);
  color: var(--text-color);
  text-align: center;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing__card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.pricing__card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* ==== PAYMENT BUTTONS ==== */
.payment-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* space between buttons */
  flex-wrap: wrap;
  text-align: center;
  margin: 2rem auto 4rem;
}

.payment-buttons .btn {
  width: 250px; /* consistent button width */
  max-width: 80%;
  text-transform: none; /* keep natural capitalization */
}

/* ===== SCHEDULE SECTION ===== */
.schedule__placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  padding: 3rem 2rem;
  margin-top: 2rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
}

.schedule__placeholder p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.schedule__placeholder .btn {
  margin-top: 1rem;
}

/* ===== THANK YOU MESSAGE ===== */
.thank-you-message {
  background-color: rgba(0, 255, 128, 0.1);
  border: 2px solid rgba(0, 255, 128, 0.5);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  color: #00ff99;
  font-weight: 500;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
