/* ==========================================================================
   NYCTC Global Stylesheet
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #1e293b;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.top-bar {
  background-color: #F5A623;
  color: #0f172a;
  text-align: center;
  padding: 8px 15px;
  font-weight: bold;
  font-size: 14px;
}

/* Site Header & Navigation */
.site-header {
  background: #0D3B8E;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #0a2e70;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  background: #0D3B8E;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.1;
}

.logo-text span {
  color: #f5a623;
  font-weight: 600;
  font-size: 0.8rem;
  display: block;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #F5A623;
  transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #F5A623;
}

/* Nav Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 8px 0;
  z-index: 1000;
  border: 1px solid #e2e8f0;
  margin-top: 6px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
  animation: navDropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown .dropdown-menu a:after {
  display: none !important;
}

.nav-dropdown .dropdown-menu a:hover,
.nav-dropdown .dropdown-menu a.active {
  background: #f1f5f9;
  color: #0D3B8E;
  padding-left: 22px;
}

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

.header-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 5px;
}

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover:before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: #F5A623;
  color: white;
  box-shadow: 0 4px 10px rgba(13, 59, 142, 0.2);
}

.btn-primary:hover {
  background: #e09315;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 59, 142, 0.3);
}

.btn-outline {
  background: transparent;
  color: #F5A623;
  border: 2px solid #F5A623;
}

.btn-outline:hover {
  border-color: #F5A623;
  background: #F5A623;
  color: #0D3B8E;
  transform: translateY(-2px);
}

.btn-accent {
  background: #0D3B8E;
  color: #fff;
  box-shadow: 0 4px 10px rgba(244, 162, 97, 0.2);
}

.btn-accent:hover {
  background: #082967;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.3);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 80%);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.slide-text {
  flex: 1 1 500px;
  animation: fadeInUp 1s ease;
}

.slide-text h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: #0f172a;
  line-height: 1.2;
}

.slide-text .highlight {
  color: #0D3B8E;
  border-bottom: 4px solid #f5a623;
}

.slide-text p {
  font-size: 1.15rem;
  color: #334155;
  margin: 20px 0 30px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.slide-image {
  flex: 1 1 380px;
  background: #e0e9f5;
  border-radius: 40px;
  padding: 40px 30px;
  text-align: center;
  color: #0D3B8E;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide-image i {
  font-size: 5.5rem;
  margin-bottom: 15px;
}

.slide-image p {
  font-weight: 700;
  font-size: 1.5rem;
}

.slider-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(13, 59, 142, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #0D3B8E;
  transform: scale(1.3);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
  color: #0D3B8E;
  font-size: 1.1rem;
}

.slider-arrow:hover {
  background: #0D3B8E;
  color: white;
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Sections */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #0f172a;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: #f5a623;
  margin-top: 10px;
  border-radius: 4px;
  transition: width 0.8s ease;
}

section.visible .section-title:after {
  width: 110px;
}

.subhead {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 40px;
  max-width: 700px;
}

/* About Section */
.about-grid {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.about-text { flex: 2 1 400px; }

.about-stats {
  flex: 1 1 250px;
  background: #f1f5f9;
  border-radius: 32px;
  padding: 40px 30px;
  text-align: center;
}

.stat-item {
  margin: 25px 0;
  transition: all 0.6s ease;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0D3B8E;
}

/* Courses Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.course-card {
  background: #f9fbfc;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f3f7;
  transition: all 0.4s ease;
}

.course-card:hover {
  border-color: #0D3B8E;
  box-shadow: 0 15px 30px rgba(13, 59, 142, 0.15);
  transform: translateY(-8px);
}

.course-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

/* Franchise Banner */
.franchise-banner {
  background: #0f172a;
  color: white;
  border-radius: 40px;
  padding: 50px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.franchise-content { flex: 2 1 350px; }

.franchise-bullets {
  flex: 1 1 250px;
  list-style: none;
}

.franchise-bullets li {
  margin: 14px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.franchise-bullets i {
  color: #f5a623;
  font-size: 1.4rem;
}

/* Centers Map */
.centers-map {
  background: #e6edf7;
  border-radius: 30px;
  padding: 40px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.map-placeholder {
  flex: 1 1 250px;
  background: #cbd5e1;
  height: 180px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-weight: 600;
  font-size: 1.2rem;
  border: 2px dashed #0D3B8E;
}

.locations-list { flex: 1 1 250px; }

.locations-list span {
  display: inline-block;
  background: white;
  padding: 8px 16px;
  border-radius: 30px;
  margin: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.locations-list span:hover {
  background: #0D3B8E;
  color: white;
}

/* Testimonials */
.testimonials-grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  flex: 1 1 280px;
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(13, 59, 142, 0.1);
}

.testimonial-card i {
  color: #f5a623;
  font-size: 1.8rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: #0D3B8E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Site Footer */
.site-footer {
  background: #0d3b8e;
  color: #cbd5e1;
  padding: 60px 0 30px;
  border-radius: 30px 30px 0 0;
  margin-top: 40px;
}

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

.footer-col h4 {
  color: white;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  margin: 8px 0;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: #f5a623;
  transform: translateX(4px);
}

.social-icons {
  display: flex;
  gap: 16px;
  font-size: 1.3rem;
  margin-top: 15px;
}

.social-icons a {
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #f5a623;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #1e4bb0;
  padding-top: 25px;
  text-align: center;
  font-size: 0.9rem;
}

/* Login Pages Styling */
.login-bg {
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0D3B8E, #1E90FF);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  animation: float 6s infinite ease-in-out;
}

.shape1 {
  width: 220px;
  height: 220px;
  background: #F5A623;
  top: 8%;
  left: 8%;
}

.shape2 {
  width: 160px;
  height: 160px;
  background: #2ECC71;
  bottom: 8%;
  right: 10%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.glass {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-wrapper {
  width: 100%;
  max-width: 950px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-left {
  flex: 1;
  background: #0D3B8E;
  color: white;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-logo-big {
  width: 90px;
  margin-bottom: 20px;
}

.login-right {
  flex: 1;
  background: white;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-form-box {
  width: 100%;
  max-width: 340px;
}

.login-form-box h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #0D3B8E;
}

.login-form-box .input-group {
  position: relative;
  margin-bottom: 18px;
}

.login-form-box .input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0D3B8E;
}

.login-form-box .input-group input {
  width: 100%;
  padding: 12px 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

.login-form-box .input-group input:focus {
  border-color: #0D3B8E;
  box-shadow: 0 0 0 3px rgba(13, 59, 142, 0.15);
}

.password-group { position: relative; }

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748b;
}

.login-form-box button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #F5A623, #ff9800);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-form-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 166, 35, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #0D3B8E;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 0 12px;
    align-items: flex-start;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-top: 5px;
    padding: 6px 0;
    width: 100%;
    animation: none;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-dropdown .dropdown-menu a {
    color: #ffffff;
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .nav-dropdown .dropdown-menu a:hover,
  .nav-dropdown .dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #F5A623;
    padding-left: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .slide-text h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .header-buttons {
    display: none;
  }

  .login-wrapper {
    flex-direction: column;
  }

  .login-left, .login-right {
    padding: 30px 20px;
  }

  .hero-slider {
    min-height: auto;
  }
}
