/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a0a23;
  --amber: #c8860a;
  --card-dark: #1a1a4e;
  --card-brown: #5c3a1e;
  --dark-bg: #111111;
  --white: #ffffff;
  --gold-light: #e6a817;
  --text-muted: #b0b0b0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 35, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-placeholder {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--amber);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: absolute;
  right: 1rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  background: rgba(10, 10, 35, 0.98);
}

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

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-swiper .swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--amber);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(10,10,35,0.3) 0%, rgba(10,10,35,0.7) 100%);
  z-index: 10;
  pointer-events: none;
  padding: 0 1rem;
}

.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.6);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-shadow: 1px 2px 10px rgba(0,0,0,0.5);
}

/* ========== PROGRAMS ========== */
.programs {
  padding: 4rem 2rem;
  background: var(--navy);
  margin-top: -80px;
  position: relative;
  z-index: 20;
}

.programs-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.program-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.card-dark {
  background: var(--card-dark);
}

.card-amber {
  background: #3d2800;
}

.card-brown {
  background: var(--card-brown);
}

.program-img {
  height: 200px;
  overflow: hidden;
}

.program-info {
  padding: 1.5rem;
}

.program-info h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--white);
}

.program-info ul {
  margin-bottom: 1.2rem;
}

.program-info li {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.program-info li strong {
  color: var(--amber);
  font-weight: 600;
}

.btn-brochure {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--amber);
  color: var(--amber);
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-brochure:hover {
  background: var(--amber);
  color: var(--navy);
}

/* ========== STAY CONNECTED ========== */
.stay-connected {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--white);
  color: var(--navy);
}

.stay-connected h2 {
  font-size: 2rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icons a {
  font-size: 2.2rem;
  color: var(--navy);
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: var(--amber);
  transform: scale(1.15);
}

/* ========== PARTNERS ========== */
.partners {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--white);
  color: var(--navy);
}

.partners h2 {
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
}

.partners-row {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.partner-logo {
  width: 120px;
  height: 50px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
  position: relative;
  background: var(--dark-bg);
  padding: 4rem 2rem;
  overflow: hidden;
}

.gallery-overlay {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.gallery-overlay h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 6px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.btn-gallery {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s;
}

.btn-gallery:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gi-1 { grid-column: span 1; grid-row: span 1; }
.gi-2 { grid-column: span 1; grid-row: span 1; }
.gi-3 { grid-column: span 1; grid-row: span 2; }
.gi-4 { grid-column: span 1; grid-row: span 1; }
.gi-5 { grid-column: span 2; grid-row: span 1; }
.gi-6 { grid-column: span 1; grid-row: span 1; }
.gi-7 { grid-column: span 1; grid-row: span 1; }
.gi-8 { grid-column: span 1; grid-row: span 1; }
.gi-9 { grid-column: span 1; grid-row: span 1; }
.gi-10 { grid-column: span 1; grid-row: span 2; }
.gi-11 { grid-column: span 1; grid-row: span 1; }
.gi-12 { grid-column: span 1; grid-row: span 1; }

/* ========== FACILITIES ========== */
.facilities {
  padding: 5rem 2rem;
  background: var(--white);
  color: var(--navy);
}

.facilities-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.facilities-list h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--navy);
}

.facilities-list ul {
  margin-bottom: 1.5rem;
}

.facilities-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: #c8860a;
  border-bottom: 1px solid #eee;
}

.facility-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.software-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.software-icons i {
  font-size: 1.5rem;
  color: var(--navy);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.software-icons i:hover {
  opacity: 1;
}

.facilities-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.facilities-photos img {
  border-radius: 10px;
  height: 200px;
  transition: transform 0.3s;
}

.facilities-photos img:hover {
  transform: scale(1.03);
}

/* ========== ACCOMMODATION ========== */
.accommodation {
  padding: 5rem 2rem;
  background: #f9f6f1;
  color: var(--navy);
}

.accommodation-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.accommodation-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.accommodation-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.accommodation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--navy);
  color: var(--amber);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.accommodation-badge i {
  font-size: 1.2rem;
}

.accommodation-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.accommodation-photos img {
  border-radius: 10px;
  height: 200px;
  transition: transform 0.3s;
}

.accommodation-photos img:hover {
  transform: scale(1.03);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-bg);
  color: var(--text-muted);
  padding: 4rem 2rem 0;
}

.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #333;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.footer-logo i {
  font-size: 1.8rem;
  color: var(--amber);
}

.footer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.85rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--amber);
}

/* ========== FORM VALIDATION ========== */
.field-error {
  display: none;
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 0.3rem;
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 134, 10, 0.15);
}

/* intl-tel-input overrides */
.iti {
  width: 100%;
}

.iti__tel-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  width: 100%;
}

.iti__tel-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 134, 10, 0.15);
}

.iti__tel-input.invalid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

/* Fix white text in intl-tel-input dropdowns */
.iti__dropdown-content {
  color: #333;
  background: #fff;
}

.iti__search-input {
  color: #333 !important;
  background: #fff !important;
}

.iti__country-name,
.iti__dial-code {
  color: #333 !important;
}

.iti__country-list {
  color: #333;
  background: #fff;
}

.iti__selected-dial-code {
  color: var(--navy) !important;
}

/* ========== NAV APPLY BUTTON ========== */
.nav-apply {
  background: var(--amber) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.3s;
}

.nav-apply:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
  transform: scale(1.05);
}

.mobile-menu .nav-apply {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ========== APPLY PAGE HERO ========== */
.apply-hero {
  height: 300px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a1a4e 50%, #2d1b4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
}

.apply-hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.apply-hero-overlay p {
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ========== APPLICATION FORM ========== */
.apply-section {
  padding: 4rem 2rem;
  background: #f4f4f8;
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.apply-card {
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.apply-card h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.apply-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: #e74c3c;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input::placeholder {
  color: #aaa;
}

.form-group input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 134, 10, 0.15);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ========== SUCCESS TOAST ========== */
.success-toast {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.success-toast.show {
  display: flex;
}

.success-toast i {
  font-size: 1.3rem;
  color: #28a745;
  flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-container,
  .accommodation-container {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 150px;
  }

  .gi-3 { grid-row: span 1; }
  .gi-5 { grid-column: span 1; }
  .gi-8 { grid-column: span 1; }
  .gi-10 { grid-row: span 1; }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hamburger {
    display: flex;
  }

  .nav-container {
    justify-content: center;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }

  .facilities-photos,
  .accommodation-photos {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    gap: 1.2rem;
  }

  .social-icons a {
    font-size: 1.8rem;
  }

  .partners-row {
    gap: 1rem;
  }

  .partner-logo {
    width: 100px;
    height: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .apply-card {
    padding: 2rem 1.5rem;
  }

  .apply-hero {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
  }
}
