/* =========================================================
   THE BRITISH COLLEGE - INTERNATIONAL MOBILITY PROGRAMME (IMP)
   China Student Group Tour 2026 - Shanghai
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Oswald:wght@500;600;700&display=swap');

:root {
  --primary-navy: #002147;
  --secondary-navy: #0b2545;
  --primary-teal: #32bac9;
  --teal-glow: rgba(50, 186, 201, 0.25);
  --primary-red: #c8102e;
  --gold: #f5a623;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 30px -5px rgba(0, 33, 71, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 20px 40px -10px rgba(0, 33, 71, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #1a96a4;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   HEADER & NAVBAR (Only the top navigation bar)
   ========================================================= */
.site-header,
.header-denmark {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 33, 71, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.site-header .container,
.header-denmark .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header .navbar,
.header-denmark .navbar {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 2rem;
}

.navbar-brand .brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-text-col .brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-text-col .brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-teal);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* Nav Menu */
.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.navbar-nav .nav-item .nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--primary-navy);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-item .nav-link:hover {
  color: var(--primary-teal);
  background: rgba(50, 186, 201, 0.08);
}

.navbar-nav .nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary-teal);
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar-nav .nav-item .nav-link:hover::after {
  transform: scaleX(1);
}

/* Mobile Hamburger Button */
.menu-btn {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 8px;
  background: #f1f5f9;
}

.menu-btn .bars {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn .bar {
  width: 100%;
  height: 2px;
  background: var(--primary-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-btn.open .b1 {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open .b2 {
  opacity: 0;
}
.menu-btn.open .b3 {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-circle-wrap {
  display: none;
}

/* =========================================================
   HERO SECTION (Exact Full Viewport Height, No Gap)
   ========================================================= */
.hero-section {
  width: 100%;
  min-height: calc(100vh - 73px);
  height: calc(100vh - 73px);
  min-height: calc(100dvh - 73px);
  height: calc(100dvh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

@media (max-height: 720px) {
  .hero-section {
    height: auto;
    min-height: calc(100vh - 73px);
    padding: 60px 0 80px;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.88) 0%, rgba(15, 32, 64, 0.8) 60%, rgba(0, 0, 0, 0.88) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.scroll-down-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: #ffffff;
  font-size: 1.8rem;
  opacity: 0.85;
  transition: var(--transition);
  animation: heroBounce 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.scroll-down-btn:hover {
  color: var(--primary-teal);
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
  text-decoration: none;
}

@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.hero-tag {
  display: inline-block;
  background: rgba(50, 186, 201, 0.2);
  color: #38e1f5;
  border: 1px solid rgba(50, 186, 201, 0.4);
  padding: 6px 18px;
  border-radius: 30px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 15px;
  backdrop-filter: blur(8px);
}

.hero-title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--primary-teal);
  display: block;
}

.hero-subtitle {
  color: #e2e8f0;
  font-size: 1.15rem;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 25px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-teal);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(50, 186, 201, 0.4);
  transition: var(--transition);
}

.hero-btn:hover {
  background: #2499a7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(50, 186, 201, 0.5);
}

/* =========================================================
   COMMON SECTION STYLES & HEADINGS
   ========================================================= */
section {
  padding: 70px 0;
  position: relative;
}

.section-title {
  margin-bottom: 35px;
}

.section-title h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.title-separator {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-red));
  border-radius: 2px;
  margin: 12px 0 20px;
}

.text-center .title-separator {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   ABOUT IMP SECTION
   ========================================================= */
.about-us-header {
  background: #ffffff;
}

.about-us-header p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.alert-primary-custom {
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f4fd 100%);
  border: 1px solid #b2ebf2;
  border-left: 6px solid var(--primary-teal);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 4px 15px rgba(50, 186, 201, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.alert-primary-custom .alert-icon {
  font-size: 2.2rem;
  color: var(--primary-teal);
  flex-shrink: 0;
}

.alert-primary-custom .alert-content strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.alert-primary-custom .alert-content span {
  font-size: 0.95rem;
  color: #0369a1;
  font-weight: 600;
}

/* =========================================================
   GALLERY / SWIPER CAROUSEL
   ========================================================= */
#gallery {
  background: var(--light-bg);
  padding: 60px 0;
  overflow: hidden;
}

.swiper-blog-carousel {
  position: relative;
  padding: 10px 0 30px;
  overflow: hidden;
}

.swiper-blog-carousel .swiper-slide {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  background: #000;
}

.swiper-blog-carousel .swiper-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
}

.swiper-blog-carousel .swiper-slide img {
  width: 100%;
  height: 380px !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.swiper-blog-carousel .swiper-slide:hover img {
  transform: scale(1.06);
}

/* Swiper navigation buttons */
.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--primary-teal);
  color: #ffffff;
  transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.1rem;
  font-weight: 800;
}

/* =========================================================
   SCHEDULE / TOUR BOX LIST
   ========================================================= */
.tours-list {
  background: #ffffff;
}

.tour-box-list {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: flex;
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
  position: relative;
}

.tour-box-list:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: #cbd5e1;
}

.tour-box-list figure {
  margin: 0;
  flex: 0 0 340px;
  position: relative;
  overflow: hidden;
}

.tour-box-list figure img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tour-box-list:hover figure img {
  transform: scale(1.06);
}

.tour-box-list .tour-content {
  padding: 35px 35px 30px 40px;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tour-box-list .tour-content .tag {
  position: absolute;
  top: 25px;
  right: 35px;
  background: var(--primary-teal);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(50, 186, 201, 0.3);
}

.tour-box-list .tour-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
}

.tour-box-list .tour-content ol {
  list-style: none;
  counter-reset: tour-step;
  margin: 0;
  padding: 0;
}

.tour-box-list .tour-content ol li {
  counter-increment: tour-step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.5;
}

.tour-box-list .tour-content ol li::before {
  content: counter(tour-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: #f1f5f9;
  color: var(--primary-teal);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.tour-box-list:hover .tour-content ol li::before {
  background: var(--primary-teal);
  color: #ffffff;
  border-color: var(--primary-teal);
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
#contact {
  background: var(--light-bg);
}

.contact-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.contact-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-teal);
}

.contact-box .contact-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(50, 186, 201, 0.12), rgba(0, 33, 71, 0.05));
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  transition: var(--transition);
}

.contact-box:hover .contact-icon {
  background: var(--primary-teal);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(50, 186, 201, 0.35);
}

.contact-box h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.contact-box span,
.contact-box span a {
  font-size: 0.92rem;
  color: var(--text-muted);
  word-break: break-word;
}

.contact-box span a:hover {
  color: var(--primary-teal);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer.footer {
  background: var(--primary-navy);
  color: #94a3b8;
  padding: 60px 0 25px;
}

footer.footer h5 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

footer.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: var(--primary-teal);
  border-radius: 2px;
}

footer.footer .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.footer .footer-menu li {
  margin-bottom: 10px;
}

footer.footer .footer-menu li a {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: var(--transition);
}

footer.footer .footer-menu li a:hover {
  color: var(--primary-teal);
  padding-left: 6px;
}

footer.footer address {
  font-style: normal;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #cbd5e1;
}

footer.footer address a {
  color: var(--primary-teal);
}

footer.footer .social-media {
  list-style: none;
  padding: 0;
  margin: 30px 0 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

footer.footer .social-media li a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  transition: var(--transition);
}

footer.footer .social-media li a:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(50, 186, 201, 0.4);
}

footer.footer .copyright {
  display: block;
  text-align: center;
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: #64748b;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 991px) {
  .menu-btn {
    display: flex;
  }

  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    display: none;
  }

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

  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
  }

  .tour-box-list {
    flex-direction: column;
  }

  .tour-box-list figure {
    flex: 0 0 auto;
    max-height: 260px;
  }

  .tour-box-list .tour-content {
    padding: 30px 25px;
  }
}

@media (max-width: 767px) {
  .slide-inner.bg-image {
    min-height: 420px;
    padding: 40px 0;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .tour-box-list .tour-content .tag {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }

  .swiper-blog-carousel .swiper-slide img {
    height: 260px !important;
  }
}
