/* ===========================================================
   ✅ GLOBAL VARIABLES
   ----------------------------------------------------------- */
:root {
  --cream: #fff7de;
  --blue: #1c3b5a;
  --accent: #3ecacb;
  --accent-dark: #2bb3b4;

  --radius: 14px;
  --radius-small: 10px;

  --shadow-soft: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-medium: 0 6px 18px rgba(0,0,0,0.25);

  --max-width: 1100px;
  --content-width: 900px;
}

/* ===========================================================
   ✅ GLOBAL STYLES
   ----------------------------------------------------------- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--blue);
}

a, button, input {
  transition: 0.25s ease;
}

input[type="email"],
input[type="password"] {
  box-sizing: border-box;
}

/* ===========================================================
   ✅ HEADER
   ----------------------------------------------------------- */
.site-header {
  width: 100%;
  background-color: var(--blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.logo-container img {
  height: auto;
  width: 120px;
}

@media (max-width: 768px) {
  .logo-container img {
    height: auto;
    width: 120px;
  }
}

/* Language flag */
.lang-flag img {
  width: 28px;
  margin-left: 16px;
  cursor: pointer;
}
.lang-flag img:hover {
  opacity: 0.7;
}

/* Desktop nav */
.nav-center {
  display: flex;
  align-items: center;
}

.nav-center a {
  position: relative;
  padding: 0 24px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
}

.nav-center a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 1.5px;
  background-color: var(--cream);
  opacity: 0.7;
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
  .nav-center {
    display: none;
  }
}

/* ===========================================================
   UNIFIED HAMBURGER + MOBILE MENU
   =========================================================== */

/* Hide desktop logout button on mobile */
@media (max-width: 768px) {
  .header-right {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

/* Hamburger container */
.hamburger {
  height: 24px;
  width: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.line {
  height: 3px;
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3px 0;
  transition: transform 0.3s ease;
}

.line span {
  height: 3px;
  width: 24px;
  background: var(--cream);
  border-radius: 2px;
}

/* Perfect X animation */
.hamburger.open .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue);
  width: 100%;
  padding: 20px 0;
  position: fixed;
  top: 75px;
  left: 0;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.mobile-menu a {
  padding: 14px 0;
  font-size: 18px;
  text-align: center;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}

/* ===========================================================
   BUTTONS
   ----------------------------------------------------------- */
.logout-btn,
button,
.cta-button {
  background-color: var(--accent);
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.logout-btn:hover,
button:hover,
.cta-button:hover {
  background-color: var(--accent-dark);
}

/* ===========================================================
   HOMEPAGE SECTIONS
   ----------------------------------------------------------- */
/* HERO */
.hero-section {
    background-color: var(--cream);
    padding: 100px 20px;
    text-align: center;
}

.hero-inner-minimal {
    max-width: 1100px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-inner-minimal h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue);
    margin: 0;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--blue);
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.trust-badges .badge {
    font-size: 1.15rem;
    color: var(--blue);
    font-weight: 600;
} 

/* Mobile: stack badges vertically for better readability */
@media (max-width: 768px) {
    .trust-badges {
        flex-direction: column;
    }
}

/* Review Card in Hero */
.review-card-hero {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin: 16px 0;
    max-width: 730px; 
    width: 100%;
}

/* NEW: Horizontal layout for stars and author */
.review-card-hero .review-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.review-card-hero .stars {
    color: #FFB800;
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin: 0;
}

.review-card-hero .review-author {
    font-size: 0.95rem;
    color: var(--blue);
    opacity: 0.7;
    margin: 0;
}

.review-card-hero .review-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--blue);
    margin: 12px 0;
    line-height: 1.6;
}

.review-card-hero .review-link {
    color: var(--accent-dark);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
    display: inline-block;
    margin-top: 8px;
}

.review-card-hero .review-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* CTA Button */
.hero-inner-minimal .cta-button {
    background-color: var(--accent);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    transition: 0.25s ease;
}

.hero-inner-minimal .cta-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 202, 203, 0.4);
}

/* CTA Subtext */
.cta-subtext {
    font-size: 0.9rem;
    color: var(--blue);
    opacity: 0.65;
    margin: 8px 0 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-inner-minimal {
        max-width: 100%;
    }

    .hero-inner-minimal h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .review-card-hero {
        padding: 24px;
        max-width: 85%;
    }

    .review-card-hero .review-header {
        flex-direction: column;
        gap: 8px;
    }

    .hero-inner-minimal .cta-button {
        font-size: 1.05rem;
        padding: 14px 28px;
    }
}

/* ABOUT */
.about-section {
  background-color: var(--blue);
  padding: 80px 20px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.about-text {
  flex: 1;
  min-width: 300px;
  color: var(--cream);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 32px;
  color: var(--cream);
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.about-text strong {
  font-weight: 600;
  color: var(--accent) !important;
  position: relative;
}

.about-image {
  width: 280px;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-top: 100px;
}

.about-image:hover {
  transform: translateY(-5px);
}  

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .about-text h2 {
    font-size: 2rem;
  }
  .about-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
  }
}

/* FAQ */
.faq-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--blue);
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.faq-question {
    width: 100%;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 24px 60px 24px 24px;
    cursor: pointer;
    color: var(--blue);
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Plus/Minus icon */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
    background: rgba(62, 202, 203, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    margin-top: auto;
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
    border-top: 2px solid var(--accent);
    padding-top: 16px;
}

/* Remove any button styling artifacts */
.faq-question {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.faq-question:hover,
.faq-question:focus,
.faq-question:active {
    outline: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 20px 50px 20px 20px;
    }

    .faq-question::after {
        right: 20px;
        font-size: 1.6rem;
    }

    .faq-answer p {
        padding: 16px 20px 20px 20px !important;
        padding-top: 16px !important;  
        margin-top: 0 !important;  
        font-size: 1rem;
        line-height: 1.6;
        border-top: 2px solid var(--accent);
    }
}


/* REVIEWS */
.reviews-section {
    background-color: var(--blue);
    padding: 80px 20px;
}

.reviews-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.reviews-inner h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--cream);
}

.review-row {
    background-color: var(--cream);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 32px;
    margin-bottom: 24px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Quotation mark decoration */
.review-row::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.review-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 12px;
}

.review-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .reviews-inner h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .review-row {
        padding: 28px 24px;
    }

    .review-row::before {
        font-size: 3rem;
        top: 12px;
        left: 16px;
    }

    .review-name {
        font-size: 1.1rem;
    }

    .review-text p {
        font-size: 1rem;
    }
}

/* CONTACT */
.contact-section {
    background: linear-gradient(135deg, var(--cream) 0%, #fff5d1 100%);
    padding: 80px 20px;
    text-align: center;
}

.contact-inner {
    max-width: 920px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 1.15rem;
    color: var(--blue);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Highlight box for value proposition */
.contact-highlight {
    background: white;
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    box-sizing: border-box;  
    display: inline-block
}

.contact-highlight p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue);
    margin: 0;
}

.contact-highlight p strong {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Email display - simple text, not clickable */
.contact-email-display {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 24px;
}

/* Button - consistent with rest of site */
.contact-section .cta-button {
    background-color: var(--accent);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.25s ease;
}

.contact-section .cta-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 202, 203, 0.4);
}

/* Response time note */
.response-note {
    font-size: 0.95rem;
    color: var(--blue);
    opacity: 0.7;
    margin-top: 16px;
}

/* Mobile responsive - FIXED */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 16px;  
    }

    .contact-inner {
        max-width: 100%;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-intro {
        font-size: 1.05rem;
    }

    .contact-highlight {
        padding: 18px 16px;  
        margin-bottom: 24px;
        border-width: 2px;
        box-sizing: border-box; 
    }

    .contact-highlight p {
        font-size: 0.95rem;  
        line-height: 1.5;
    }

    .contact-highlight p strong {
        font-size: 1rem;
    }

    .contact-email-display {
        font-size: 1rem;
        word-break: break-all;  
    }

    .contact-section .cta-button {
        font-size: 1.05rem;
        padding: 14px 28px;
    }
}

/* FOOTER */
.site-footer {
    background-color: var(--blue);
    color: var(--cream);
    padding: 50px 20px 30px;
    text-align: center;
    border-top: 3px solid var(--accent);
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    width: 120px;
    height: auto;
}

.footer-inner p {
    font-size: 1rem;
    margin: 16px 0;
    color: var(--cream);
}

.footer-inner a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-inner a:hover {
    opacity: 0.8;
}

.footer-credit {
    font-size: 0.9rem;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(243, 235, 207, 0.2);
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 24px;
    }

    .footer-logo img {
        width: 100px;
    }

    .footer-inner p {
        font-size: 0.95rem;
    }
}

/* ========== FIX 2: SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ========== FIX 3: UNIVERSAL BUTTON CONSISTENCY ========== */
.cta-button,
.contact-button,
button.cta-button,
a.cta-button {
    background-color: var(--accent);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(62, 202, 203, 0.2);
}

.cta-button:hover,
.contact-button:hover,
button.cta-button:hover,
a.cta-button:hover {
    background-color: #35b5b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 202, 203, 0.4);
}

.cta-button:focus,
.contact-button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cta-button,
    .contact-button,
    button.cta-button,
    a.cta-button {
        font-size: 1.05rem;
        padding: 14px 28px;
    }
}

/* ===========================================================
   DASHBOARD + PAYMENTS
   ----------------------------------------------------------- */

.content {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 20px;
}

/* Welcome block */
.welcome-hero {
  background: var(--cream);
  padding: 32px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.welcome-hero h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--blue);
}

.welcome-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin: 0;
}

/* Section cards */
.section-card {
  background: var(--blue);
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-medium);
  color: var(--cream);
}

.section-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Lesson cards */
.lesson-card {
  background: var(--cream);
  color: var(--blue);
  padding: 16px;
  border-radius: var(--radius-small);
  border: 2px solid var(--blue);
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  line-height: 1.5;
}

.lesson-card strong {
  font-size: 1.1rem;
}

.lesson-card a {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Teacher student list */
.teacher-student-list div {
  background: var(--cream);
  color: var(--blue);
  padding: 16px;
  border-radius: var(--radius-small);
  border: 2px solid var(--blue);
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.25s ease;
}

.teacher-student-list div:hover {
  background: var(--accent);
  color: white;
}

/* Viewing student label */
#viewing-student-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  margin: 12px 0 20px;
  text-align: center;
}

/* Payments page */
.payments-header {
  text-align: center;
  margin-bottom: 32px;
}

.payments-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.payments-header p {
  font-size: 1.15rem;
  color: var(--blue);
  opacity: 0.85;
  margin: 0;
}

/* Payment history items */
.payment-history-item {
  background: var(--cream);
  color: var(--blue);
  padding: 16px;
  border-radius: var(--radius-small);
  border: 2px solid var(--blue);
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

/* Empty states */
.payment-empty,
#no-lessons-msg {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.7;
  margin-top: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: center; /* centers the buttons horizontally */
  gap: 12px; /* spacing between the two buttons */
}

/* Mobile menu button improvements */
.mobile-menu .logout-btn {
  width: 100%;
  display: block;
  margin: 12px 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
}

/* Optional: differentiate the two buttons slightly */
#change-password-btn-mobile {
  background-color: #3ecacb;
  color: white;
}

#logout-btn-mobile {
  background-color: var(--accent);
  color: white;
}
