:root {
  --primary: #1a5276;
  --secondary: #2980b9;
  --accent: #0b1318;
  --light: #ffffff;
  --dark: #2c3e50;
  --orange: #f27508;
  --green: #47d9f3;
}

/* General Body & Text */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
  color: white !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: var(--orange) !important;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: white !important;
  max-width: calc(100% - 60px);
}

.navbar-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-icon {
  height: 40px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.navbar-brand:hover .navbar-icon {
  transform: scale(1.05);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.8)),
    url('/static/images/images/main%20image.jpg') no-repeat center center/cover;
  background-color: var(--primary);
  /* Fallback color if image doesn't load */
  padding: 150px 0 100px;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title-main {
  display: inline;
}

.hero-title-sub {
  display: inline;
}

.hero-section p {
  font-size: 1.1rem;
}

.hero-section .btn {
  background-color: var(--orange);
  border: none;
  border-radius: 30px;
  padding: 12px 35px;
  font-weight: 600;
}

.hero-section .btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 10px auto 0;
}

/* Time Slot Cards */
.time-slot-card,
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(37, 101, 238, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  padding: 20px;
  background-color: white;
}

.time-slot-card:hover,
.card:hover {
  transform: translateY(-10px);
}

.time-slot-card h4,
.card h4 {
  font-weight: 600;
  color: var(--primary);
}

.time-slot-card p,
.card p {
  color: #555;
}

/* Why Choose Us */
.feature-card {
  border: none;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.feature-card h4 {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Gallery */
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.3s ease;
}

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

/* Video Embed */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Location Section */
#location iframe {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--accent);
  color: white;
}

footer p {
  margin: 0;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 5px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: white;
  color: var(--accent);
}

/* Instructions Section */
.instructions-section {
  background-color: #f9fafb;
}

.instruction-box {
  border-left: 5px solid #007bff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.instruction-box ul {
  list-style: none;
  padding: 0;
}

.instruction-box li {
  margin: 8px 0;
  font-size: 15px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero-section {
    padding: 110px 8px 70px;
    background-position: 47% center;
  }

  .hero-section .container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .hero-section h1,
  .hero-title {
    margin-bottom: 1rem;
    line-height: 1.25;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .hero-title-main {
    display: block;
    white-space: nowrap;
    font-size: clamp(1.5rem, 7.3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .hero-title-sub {
    display: block;
    white-space: nowrap;
    font-size: clamp(1rem, 4.4vw, 1.35rem);
    font-weight: 700;
    margin-top: 0.4rem;
    letter-spacing: 0.6px;
    opacity: 0.95;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

@media (max-width: 576px) {
  .navbar-icon {
    height: 32px;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .navbar-icon {
    height: 28px;
  }

  .navbar-brand {
    font-size: 0.88rem;
  }
}

@media (max-width: 340px) {
  .hero-title-main {
    font-size: 1.25rem;
    letter-spacing: -0.3px;
  }

  .hero-title-sub {
    font-size: 0.85rem;
  }
}