/* ==============================
   THEME COLORS (Updated to match styles.css)
============================== */
:root {
  --primary-color: #3b141c;
  --secondary-color: #f3961c;
  --light-color: #fff;
  --bg-color: #f8fafc;
  --light-pink-color: #faf4f5; 
  --dark-color: #252525;

  --border-radius-s: 8px;
  --border-radius-m: 16px;
  --border-radius-l: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);

  --font-size-n: 1rem;
  --font-size-s: 0.9rem;
  --font-size-l: 1.2rem;

  --space-xs: 0.3rem;
  --space-s: 0.6rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
}

/* ==============================
   GLOBAL FIX — prevents horizontal overflow on all screens
============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ==============================
   NAVIGATION
============================== */
nav {
    height: 80px;
    width: 100%;
    background: rgba(245, 230, 214, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-m);
    position: sticky;
    top: 0;
    z-index: 100;
}

.fiesta {
    width: 60px;
    height: 50px;
    object-fit: contain;
}

label.logo {
    color: var(--dark-color);
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    font-family: 'Playfair Display', Georgia, serif;
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--dark-color);
    font-size: var(--font-size-n);
    padding: var(--space-xs) var(--space-s);
    border: 2px solid transparent;
    text-transform: uppercase;
    border-radius: var(--border-radius-m);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

a.active,
a:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==============================
   DROPDOWN
============================== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-s);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: var(--dark-color);
    padding: var(--space-s) var(--space-m);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-s);
    text-transform: none;
    font-weight: var(--font-weight-normal);
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent;
}

.dropdown-content a:hover {
    background: var(--light-pink-color);
    color: var(--primary-color);
    transform: translateX(5px);
    border-color: transparent;
}

.dropdown-content a i {
    color: var(--secondary-color);
    width: 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ==============================
   SIDEBAR
============================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-xl) var(--space-l);
    overflow-y: auto;
}

.sidebar li {
    width: 100%;
    margin-bottom: var(--space-s);
}

.sidebar a {
    width: 100%;
    padding: var(--space-s);
    border-radius: var(--border-radius-s);
}

.materials-symbols-outlined {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==============================
   SIDEBAR DROPDOWN
============================== */
.sidebar-dropdown {
    width: 100%;
}

.sidebar-dropdown .sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: var(--space-s);
    border-radius: var(--border-radius-s);
    color: var(--dark-color);
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
}

.sidebar-dropdown .sidebar-link:hover {
    background: var(--secondary-color);
    color: #fff;
}

.sidebar-dropdown .arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.sidebar-submenu {
    display: none;
    flex-direction: column;
    margin-left: var(--space-m);
    margin-top: 0.3rem;
}

.sidebar-submenu li a {
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius-s);
    font-size: 0.9rem;
    color: var(--dark-color);
}

.sidebar-submenu li a:hover {
    background: var(--light-pink-color);
    color: var(--primary-color);
}

.sidebar-dropdown.open .sidebar-submenu {
    display: flex;
}

.sidebar-dropdown.open .arrow {
    transform: rotate(90deg);
}

/* ==============================
   HERO SECTION
============================== */
.page-hero {
  background: url('https://raw.githubusercontent.com/ethn-boyi/fiesta-site/main/images/hairbeauty.jpg') center/cover no-repeat;
  position: relative;
  text-align: center;
  padding: 120px 20px;
  color: var(--light-color);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(90, 56, 37, 0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  color: var(--light-color);
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #fcead8;
  max-width: 700px;
  margin: 0 auto;
}

/* ==============================
   COURSE OVERVIEW
============================== */
.course-overview {
  background: var(--bg-color);
  padding: 60px 20px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-stats {
  display: grid;
  gap: var(--space-m);
}

.stat-item {
  background: var(--light-color);
  padding: var(--space-m);
  border-radius: var(--border-radius-m);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-left: 5px solid var(--primary-color);
}

.stat-label {
  font-weight: var(--font-weight-medium);
  color: var(--secondary-color);
}

.stat-value {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.overview-content h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: var(--space-m);
}

.overview-content p {
  margin-bottom: var(--space-m);
  line-height: 1.6;
  color: var(--dark-color);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-m);
  margin-top: var(--space-m);
  /* REMOVED the broken left: -105px hack */
}

.highlight-item {
  background: var(--light-color);
  border-radius: var(--border-radius-m);
  padding: var(--space-m);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: var(--space-s);
}

.highlight-item h4 {
  color: var(--secondary-color);
  margin-bottom: 5px;
}

/* ==============================
   CURRICULUM TIMELINE
============================== */
.curriculum-section {
  padding: 80px 20px;
  background: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--dark-color);
}

.curriculum-timeline {
  display: grid;
  gap: var(--space-l);
  max-width: 1100px;
  margin: 0 auto;
}

.month-card {
  background: var(--bg-color);
  border-radius: var(--border-radius-m);
  padding: var(--space-l);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.month-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.month-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-m);
}

.month-number {
  background: var(--primary-color);
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-m);
  flex-shrink: 0; /* FIX: prevents circle from squishing on small screens */
}

.month-info h3 {
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.month-topics .topic-group {
  margin-bottom: var(--space-m);
}

.topic-group h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-group ul {
  padding-left: 20px;
  color: var(--dark-color);
  line-height: 1.5;
}

/* ==============================
   CTA SECTION
============================== */
.cta-section {
  background: var(--secondary-color);
  color: var(--light-color);
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: var(--space-m);
  font-family: 'Playfair Display', serif;
}

.cta-buttons {
  margin-top: var(--space-m);
  display: flex;
  justify-content: center;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.cta-btn {
  padding: 12px 24px;
  border-radius: var(--border-radius-m);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: var(--primary-color);
  color: #fff;
}

.cta-btn.primary:hover {
  background: #cf6c18;
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid var(--light-color);
  color: #fff;
}

.cta-btn.secondary:hover {
  background: #fff;
  color: var(--secondary-color);
}

/* ==============================
   FOOTER
============================== */
footer {
    background: linear-gradient(135deg, #00093c, #2d0b00);
    color: white;
    padding: var(--space-xl) var(--space-l);
    font-size: var(--font-size-s);
    line-height: 1.6;
}

.row {
    max-width: var(--site-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-l);
}

.col {
    padding: var(--space-s);
}

.col h3 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-m);
    margin-bottom: var(--space-m);
    color: white;
}

.email-id {
    border-bottom: 1px solid var(--medium-grey-color);
    margin: var(--space-m) 0;
    padding-bottom: var(--space-xs);
}

ul li {
    margin-bottom: var(--space-s);
}

.col ul li a {
    color: var(--medium-grey-color);
    transition: color 0.3s ease;
}

.col ul li a:hover {
    color: white;
}

.social-icons {
    margin-top: var(--space-m);
}

.social-icons .fab {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-circle);
    text-align: center;
    line-height: 44px;
    font-size: var(--font-size-m);
    color: var(--dark-color);
    background: white;
    margin-right: var(--space-s);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icons .fab:hover {
    transform: translateY(-2px);
}

footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: var(--space-l) 0;
}

.terms {
    text-align: center;
    margin-top: var(--space-l);
    font-size: var(--font-size-s);
    color: var(--medium-grey-color);
}

/* ==============================
   RESPONSIVE BREAKPOINTS
============================== */

/* Tablet and below */
@media (max-width: 1100px) {
    .hideonMobile {
        display: none;
    }
    .materials-symbols-outlined {
        display: block;
    }
    /* FIXED: removed broken left: -105px hack */
    .highlights {
        padding-right: 0;
        position: static;
        left: auto;
    }
}

/* Stack the overview grid on medium screens */
@media (max-width: 900px) {
    .logo {
        font-size: var(--font-size-s);
    }
    /* FIX: stack overview grid vertically instead of side by side */
    .overview-grid {
        grid-template-columns: 1fr;
    }
    /* FIX: stats row becomes horizontal on tablet */
    .overview-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    /* FIX: full-width stat items on mobile */
    .overview-stats {
        grid-template-columns: 1fr;
    }
    /* FIX: highlights single column on mobile */
    .highlights {
        grid-template-columns: 1fr;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .dropdown-content {
        min-width: 250px;
    }
    /* FIX: reduce padding on cards for mobile */
    .month-card {
        padding: var(--space-m);
    }
    .curriculum-section {
        padding: 40px 15px;
    }
    .course-overview {
        padding: 40px 15px;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .terms {
        text-align: center;
        padding: 0 var(--space-s);
    }
    nav {
        padding: 0 var(--space-s);
    }
    .hero-content {
        padding: 0 var(--space-s);
    }
    .hero-title {
        font-size: 1.5rem;
    }
}