/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(70, 70, 70, 0.15);
  tap-highlight-color: rgba(70, 70, 70, 0.15);
  transition: background-color 0.3s ease, color 0.2s ease;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.logo img {
  height: clamp(40px, 6vw, 70px);
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: 'Anton', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: black;
  margin-left: -5px;
  white-space: nowrap;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px;
  color: black;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0.5px 0 0 currentColor;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 8px;
  height: 2px; width: 100%;
  background: #444;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links li a:hover::after { transform: scaleX(1); }

/* DROPDOWN (desktop) - FIXED */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: block;
  position: absolute;
  background: #fff;
  min-width: 180px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  z-index: 999;
  border: 1px solid #e0e0e0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-content li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.95rem;
  color: #000;
  text-align: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.dropdown-content li a:hover {
  background: #f5f5f5;
  color: #000;
}

/* Create invisible hover bridge */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.nav-links li.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* DROPDOWN ARROW STYLES */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 2px;
}

.nav-links li.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Point down when dropdown is active/tapped */
.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* BURGER MENU */
.burger {
  position: absolute;
  right: clamp(0.8rem, 3vw, 1.2rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(36px, 7vw, 64px);
  height: clamp(36px, 7vw, 64px);
  z-index: 1101;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 0.9vw, 8px);
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 100%;
  height: clamp(3px, 0.6vw, 4px);
  background: black;
  border-radius: 2px;
  transition: 0.3s ease;
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* MOBILE NAV */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem 1rem;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.mobile-nav a {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: black;
  display: block;
  padding: 10px 0;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0.5px 0 0 currentColor;
}

/* MOBILE DROPDOWN STYLES - FIXED */
.mobile-nav .dropdown-content {
  display: none;
  position: static;
  background: transparent;
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  max-height: none;
  overflow: visible;
}

.mobile-nav .mobile-dropdown.active .dropdown-content {
  display: block;
}

.mobile-nav .dropdown-content li a {
  font-size: 1.2rem;
  color: #000;
  padding: 8px 0;
  opacity: 1;
  visibility: visible;
  font-weight: 600;
}

.mobile-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-nav .dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.mobile-nav .mobile-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* TIMETABLE PAGE STYLES */

/* INSTRUCTORS HERO SECTION - FIXED */
.instructors-hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/instructors/instructors-hero.jpg') center/cover;
  margin-top: 80px;
}

.instructors-hero .hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  z-index: 3;
  position: relative;
}

.instructors-hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.instructors-hero p {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Timetable Section */
.timetable-section {
  padding: 4rem 1rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #000;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
}

/* Timetable Container */
.timetable-container {
  margin-bottom: 4rem;
}

.timetable {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Day Card */
.timetable-day {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timetable-day:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.day-header {
  background: #b71c1c;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.day-header h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.day-classes {
  padding: 1.5rem;
}

/* Class Cards */
.class-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid #b71c1c;
  transition: background-color 0.3s ease;
}

.class-card:hover {
  background: #e9ecef;
}

.class-card:last-child {
  margin-bottom: 0;
}

.class-time {
  font-weight: 700;
  color: #b71c1c;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.class-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #000;
}

.class-age {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* No Classes */
.no-classes {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 200px;
}

.no-classes p:first-child {
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: #333;
}

.no-classes p:last-child {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.8;
}

/* Additional Info */
.timetable-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

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

.info-card i {
  font-size: 2.5rem;
  color: #b71c1c;
  margin-bottom: 1rem;
}

.info-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}

.info-card p {
  color: #666;
  margin: 0;
}

.info-card a {
  color: #b71c1c;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: #8a1515;
}

/* CTA SECTION */
.instructors-cta {
  padding: 80px 20px;
  text-align: center;
  background: #c00;
  color: white;
}

.instructors-cta .content h2 {
  color: white;
}

.instructors-cta p {
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: white;
  color: #c00;
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* FOOTER - UPDATED LAYOUT */
.footer {
  background:#111;color:#fff;padding:3rem 1.5rem 1.5rem;margin-top:3rem;font-size:0.95rem;
}
.footer-container {
  display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:2rem;max-width:1200px;margin:0 auto;
}

/* Consistent heading sizes */
.footer h3, .footer h4 {
  font-family:'Anton',sans-serif;
  margin-bottom:0.8rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer p,.footer a{color:#ccc;line-height:1.6;}
.footer a:hover{color:#b71c1c;}

/* Fixed footer brand alignment */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.footer-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.8rem;
  width: 100%;
}
.footer-logo-container img {
  max-height: 3rem;
  width: auto;
}
.footer-logo-container h3 {
  font-size: 1.5rem;
  margin: 0;
}
.footer-brand .tagline {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color:#bbb;
  width: 100%;
  text-align: center;
}

.footer-links ul{list-style:none;}
.footer-links li{margin-bottom:0.5rem;}
.footer-links a{font-weight:600;}

/* SOCIAL MEDIA SECTION */
.footer-social-media {
  display: flex;
  flex-direction: column;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1rem;
}
.footer-socials a:hover {
  background: #b71c1c;
  transform: scale(1.1);
  color: #fff;
}

/* CONTACT SECTION */
.footer-contact p{margin-bottom:0.4rem;}
.footer-contact a{border-bottom:2px solid transparent;transition:border-color 0.3s ease;}
.footer-contact a:hover{border-bottom-color:#b71c1c;}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.footer-contact-icon {
  color: #b71c1c;
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom{
  text-align:center;
  margin-top:2.5rem;
  font-size:0.85rem;
  color:#999;
  border-top:1px solid #333;
  padding-top:1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creator {
  font-size: 0.8rem;
  color: #777;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .timetable-section {
    padding: 3rem 1rem;
  }
  
  .timetable {
    grid-template-columns: 1fr;
  }
  
  .timetable-info {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-contact-item {
    justify-content: center;
    text-align: center;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .timetable-hero h1 {
    font-size: 2rem;
  }
  
  .timetable-hero p {
    font-size: 1rem;
  }
  
  .class-card {
    padding: 1rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-container {
    gap: 2rem;
  }
}