/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1f2e;
  --secondary-color: #2c3e50;
  --accent-color: #001E61;
  --accent-hover: #001E61;
  --gold-color: #c0aa7e;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
  --background-light: #f8f9fa;
  --background-dark: #1a1f2e;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-heading: 'Noto Serif', serif;
  --font-body: 'Montserrat', sans-serif;
  --transition-fast: all 0.3s ease;
  --transition-medium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-clip: clip-path 1.5s cubic-bezier(.25, 1, .30, 1);
  --transition-transform: transform 0.6s, filter 0.6s ease-in-out;
  --transition-opacity: opacity 0.3s ease;
  --transition-color: color 0.3s ease;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--text-light);
}

/* Update heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a{
  text-decoration: none;
}

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

/* Ensure all sections are above the banner */
.text-section,
.services-section,
.events-section,
.features-section,
.footer,
.highlights-section,
.banner-normal {
  position: relative;
  z-index: 3;
  background: var(--text-light);
}

/* Button Styles */
.cta-button {
  padding: 10px 25px;
  border: 1px solid var(--accent-color);
  border-radius: 0;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all .5s ease;
  background: transparent;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  clip-path: circle(0%);
  transition: clip-path 1.5s cubic-bezier(.25, 1, .30, 1);
  z-index: -1;
}

.cta-button:hover::before {
  clip-path: circle(125%);
}

.cta-button.primary {
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.cta-button.primary:hover {
  border-color: var(--accent-color);
  color: var(--gold-color);
}

.cta-button.secondary {
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.cta-button.secondary:hover {
  border-color: var(--accent-color);
  color: var(--gold-color);
}



/* Header Styles */
.header {
  background: transparent;
  color: var(--text-light);
  padding: 40px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease;
  transform: translateY(0);
}

/* .header.scrolled {
  backdrop-filter: blur(1px);
  box-shadow: var(--card-shadow);
} */

.header.hidden {
  transform: translateY(-100%);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 100%;
  padding: 0 3em;
}

/* Hide header elements when menu is active */
body.menu-active .header .logo,
body.menu-active .header .header-right {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-opacity), visibility 0.3s ease;
}

/* Remove this conflicting style */
/* Keep nav-toggle visible */
body.menu-active .header .nav-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-20px);
  transition: var(--transition-medium);
}

/* Navigation Styles */
.nav-toggle,
.nav-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10000;
  transition: var(--transition-medium);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle {
  position: fixed;
  top: 40px;
  left: 50px;
  z-index: 10000;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 45px;
  height: 34px;
  opacity: 1;
  visibility: visible;
}

.hamburger-line {
  display: block;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle .hamburger-line:nth-child(1) { width: 100%; }
.nav-toggle .hamburger-line:nth-child(2) { width: 70%; }
.nav-toggle .hamburger-line:nth-child(3) { width: 35%; }

.nav-toggle:hover .hamburger-line {
  width: 100%;
}

/* Hide hamburger when menu is active */
.nav-toggle.active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-20px);
}

/* X button styles */
.nav-close {
  position: fixed;
  top: 40px;
  left: 50px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-light);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}

.nav-close.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-close::before,
.nav-close::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 1.5px;
  background-color: var(--text-light);
  transition: var(--transition-medium);
}

.nav-close::before {
  transform: rotate(45deg);
}

.nav-close::after {
  transform: rotate(-45deg);
}

.nav-close:hover {
  transform: scale3d(2, 2, 1);
  transform-style: preserve-3d;
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.nav-close:hover::before,
.nav-close:hover::after {
  background-color: var(--primary-color);
}

/* Fullscreen Navigation */
.fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--primary-color);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease, 
              visibility 0.3s ease;
  overflow: hidden;
}

.fullscreen-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d2727b2;
  mix-blend-mode: multiply;
  z-index: 1;
}

.fullscreen-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-split {
  display: flex;
  height: 100%;
  position: relative;
}

/* Main Navigation */
.main-nav {
  position: relative;
  z-index: 2;
  flex: 0 0 50%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 8em;
  padding-top: 10em;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.nav-parent {
  display: flex;
  align-items: center;
  gap: 2em;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1em;
  position: relative;
}

.nav-parent.has-children > a.parent::after,
.main-nav ul li a.parent::after {
  content: '>';
  margin-left: 10px;
  opacity: 0.7;
  font-size: 0.8em;
  vertical-align: middle;
}

.main-nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all .5s ease;
  position: relative;
  font-style: italic;
  min-width: 200px;
  letter-spacing: normal;
  cursor: pointer;
}

.main-nav ul li a:hover,
.main-nav ul li a.parent.active {
  letter-spacing: 0.06em;
  color: #c0aa7e;
}

.main-nav ul li a.parent.active::after {
  opacity: 1;
}

.logo {
  position: fixed;
  z-index: 10000;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  height: 60px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-img,
.logo a{
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
}

.logo span {
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Hide elements when scrolling */
body.scrolled .logo {
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Hide elements when menu is active */
body.menu-active .logo,
body.menu-active .header-right {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-opacity), visibility 0.3s ease;
}

/* Keep nav-toggle visible */
body.menu-active .nav-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-20px);
  transition: var(--transition-medium);
}

.header-right {
  position: fixed;
  top: 40px;
  right: 50px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--card-shadow);
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.member-link,
.search-toggle {
  color: #001E61 !important;
  text-decoration: none;
  font-weight: 500 !important;
  transition: var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 5px 10px;
  border-radius: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

.member-link:hover,
.search-toggle:hover {
  color: var(--gold-color) !important;
}

.member-link:hover ~ .header-right,
.search-toggle:hover ~ .header-right,
.header-right:hover .member-link:hover,
.header-right:hover .search-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
}

.search-toggle:hover {
  color: var(--gold-color) !important;
}

.divider {
  color: #001E61;
  opacity: 1;
  font-weight: 500;
}


.search-toggle i {
  font-size: 14px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-medium);
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-medium);
}

.nav a:hover::after {
  width: 100%;
}

/* Banner Styles */
.banner {
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 1;
}

/* Add margin to first section to account for fixed banner */
.text-section-1 {
  margin-top: 100vh;
  padding: 100px 0;
}

/* Features Section - ensure background is visible */
.features-section {
  position: relative;
  overflow: hidden;
}

/* Features Grid - ensure cards are visible */
.features-grid {
  position: relative;
  z-index: 3;
}

/* Footer - ensure it's visible and has proper background */
.footer {
  background: url('/tac/images/footer-bg.webp') no-repeat;
  background-size: cover;
  position: relative;
  z-index: 3;
}

/* Ensure all section backgrounds are visible */
.services-section,
.events-section,
.features-section,
.footer {
  position: relative;
  z-index: 3;
}

.banner-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide.prev {
  opacity: 0;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--text-light);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 15em;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.banner-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0;
  top: 20px;
}

.banner-text p {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: .6rem;
  line-height: 1.1;
}

.banner-text h1 {
  font-size: 3rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.1;
  left: -5px;
  position: relative;
}

@keyframes circle-in-center {
  from {
    clip-path: circle(0%);
  }
  to {
    clip-path: circle(125%);
  }
}

/* Text Section Styles */
.text-section {
  padding: 100px 0;
}

.text-section-1 .section-title{
  margin: 1.5em auto 0.5em;
  animation: floatTitle 3s ease-in-out infinite;
}

.text-section-2 .section-title{
  margin: 0 auto 1em;
  animation: floatTitle 3s ease-in-out infinite;
}

.text-section-1 h4{
  text-align: center;
}

/* Section Title Animation */
.section-title {
  font-size: 2.5rem;
  font-style: italic;
  color: var(--accent-color);
  font-weight: 500;
  line-height: 1.3;
  width: 60%;
  margin: 0 auto;
  text-align: center;
  transition: var(--transition-color);
}

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

/* Add hover effect for section titles */
.section-title:hover {
  animation-play-state: paused;
  color: var(--accent-hover);
}

.text-section h4{
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--primary-color);
}

.text-section.dark {
  background: var(--primary-color);
  color: var(--text-light);
}

.text-section .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

p.section-body{
  font-size: 1rem;
  line-height: 1.8;
  width: 610px;
  margin: 0 auto;
  color: var(--primary-color);
  font-weight: 500;
}

.text-section .content-wrapper a.cta-button {
  margin-top: 2em;
  display: inline-block;
}

/* Services Section */
.services-section {
  padding: 50px 0 200px;
  background: var(--text-light);
  overflow: hidden;
}

.services-section .container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 100px;
}

/* Splide Carousel Styles */
.services-splide {
  margin-top: 40px;
}

.services-splide .splide__track {
  overflow: visible;
}

.services-splide .splide__slide {
  height: auto;
  display: flex;
}

.services-splide .splide__list {
  display: flex;
  align-items: stretch;
}

.services-splide .splide__slide.is-active {
  opacity: 1;
  transform: none;
}

.services-splide .splide__slide.is-prev,
.services-splide .splide__slide.is-next {
  opacity: 1;
  transform: none;
}

.services-splide .splide__arrow {
  background: none;
  width: 50px;
  height: 50px;
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  bottom: -80px;
  top: auto;
  transform: none;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-splide .splide__arrow svg {
  fill: var(--accent-color);
  width: 12px;
  height: 12px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-splide .splide__arrow--prev {
  right: 100px;
  left: auto;
}

.services-splide .splide__arrow--next {
  right: 20px;
}

/* Remove pagination styles */
.services-splide .splide__pagination {
  display: none;
}

/* Service Card Styles */
.service-card {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  transition: var(--transition-transform);
}

.service-card:hover {
  transform: none;
}

.service-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-style: italic;
}

.service-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: var(--accent-color);
  font-weight: 500;
}

.service-content .cta-button {
  width: 60%;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 1600px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-section .container {
    padding: 0 60px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-splide .splide__arrow {
    width: 35px;
    height: 35px;
  }
  
  .services-splide .splide__arrow svg {
    width: 10px;
    height: 10px;
  }
  
  .services-splide .splide__arrow--prev {
    right: 70px;
  }
  
  .services-splide .splide__arrow--next {
    right: 20px;
  }

  .service-image {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .services-section .container {
    padding: 0 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .services-splide .splide__arrow {
    width: 30px;
    height: 30px;
  }
  
  .services-splide .splide__arrow svg {
    width: 8px;
    height: 8px;
  }
  
  .services-splide .splide__arrow--prev {
    right: 60px;
  }
  
  .services-splide .splide__arrow--next {
    right: 20px;
  }

  .service-image {
    height: 300px;
  }
}

/* Event Cards */
.events-section {
  padding: 100px 0 50px;
  background: url('/tac/images/home/stay-in-the-know-bg.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

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

.card-nav{
  display: flex;
  gap: 2em;
  margin: 4em 0 0;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--text-light);
  background: transparent;
  color: var(--text-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover,
.services-splide .splide__arrow:hover {
  background: var(--accent-color);
  transform: scale3d(1.5, 1.5, 1);
  transform-style: preserve-3d;
  border: var(--accent-color);
  color: var(--gold-color);
}

.services-splide .splide__arrow:hover svg{
  fill: var(--gold-color);
}

.nav-btn i {
  font-size: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.nav-btn:disabled:hover {
  background: transparent;
  color: var(--text-light);
  transform: none;
}

.events-wrapper {
  display: flex;
  position: relative;
  gap: 4rem;
}

.events-content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-content .section-title {
  text-align: left;
  margin: 0;
  color: var(--text-light);
}

.events-content .section-body{
  color: var(--text-light);
  margin: 1em 0 2em;
  width: unset;
}

.events-content .cta-button {
  text-align: center;
  font-size: 0.9rem;
}


.events-wrapper{
  display: grid;
  grid-template-columns: 30% 70%;
  min-height: 100vh;
}

.stack{
  position: relative;
}

.card {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 700px;
  height: 500px;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0 , 0.25),    
  0 15px 20px 0 rgba(0, 0, 0, 0.125);
  transition: var(--transition-transform);
  user-select: none;
  display: flex;
  background: var(--text-light);
  overflow: hidden;
}

.events-image {
  width: 65%;
  height: 100%;
  overflow: hidden;
}

.events-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  display: block;
}

.events-info {
  width: 35%;
  padding: 2em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-info img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1em;
  display: block;
}

.events-info h3 {
  margin: 0 0 1em;
  color: var(--accent-color);
  font-family: var(--font-body);
  font-size: 0.9em;
  text-transform: uppercase;
}

.event-time {
  color: var(--accent-color);
  margin: 0 0 1em;
  font-size: 0.8em;
}

.events-info p {
  color: var(--accent-color);
  margin: 0 0 1em;
  font-size: 0.8em;
  line-height: 1.6;
}

.events-info .cta-button {
  font-size: 0.8em;
  padding: 8px 25px;
  align-self: flex-start;
}

.card:nth-last-child(n+3) {
  --x: calc(-50% + 90px);
  transform: translate(var(--x), -52%);
  filter: brightness(0.5);
  z-index: 1;
  transition: var(--transition-transform);
  pointer-events: none;
}

.card:nth-last-child(2) {
  --x: calc(-50%);
  transform: translate(var(--x), -57%);
  filter: brightness(0.5);
  z-index: 2;
  transition: var(--transition-transform);
  pointer-events: none;
}

.card:nth-last-child(1) {
  --x: calc(-50% - 90px);
  transform: translate(var(--x), -62%);
  filter: brightness(1);
  z-index: 3;
  transition: var(--transition-transform);
}

.swap-next {
  animation: swap-next 1s ease-in-out forwards;
  filter: brightness(1);
  transition: none;
}

.swap-prev {
  animation: swap-prev 1.2s ease-in-out forwards;
  filter: brightness(1);
  transition: none;
}

@keyframes swap-next {
  0% {
    transform: translate(var(--x), -62%);
    opacity: 1;
    z-index: 3;
  }
  100% {
    transform: translate(calc(var(--x) - 150px), -62%);
    opacity: 0;
    z-index: -1;
  }
}

@keyframes swap-prev {
  0% {
    transform: translate(calc(var(--x) - 300px), -62%);
    opacity: 0;
    z-index: 4;
  }
  100% {
    transform: translate(calc(-50% - 90px), -62%);
    opacity: 1;
    z-index: 5;
  }
}

@media (max-width: 1200px) {
  @keyframes swap-prev {
    0% {
      transform: translate(calc(var(--x) - 300px), -62%);
      opacity: 0;
      z-index: 4;
    }
    100% {
      transform: translate(calc(-50% - 90px), -62%);
      opacity: 1;
      z-index: 5;
    }
  }
}

@media (max-width: 1050px) {
  @keyframes swap-prev {
    0% {
      transform: translate(calc(var(--x) - 200px), -62%);
      opacity: 0;
      z-index: 4;
    }
    100% {
      transform: translate(calc(-50% - 90px), -62%);
      opacity: 1;
      z-index: 5;
    }
  }
}

/* Features Section */
.features-section .container{
  max-width: 100%;
  padding: 0;
}


.features-grid {
  display: flex;
}

.feature-card {
  width: 33.33%;
  min-height: 90vh;
  display: flex;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover !important;
  background-position: 0 50% !important;
  object-fit: cover !important;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background 3.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-content .section-title,
.feature-card:hover .feature-content .section-body{
  color: var(--accent-color);
}


.feature-card .cta-button::before{
  background: var(--accent-color);
}

.feature-card:hover::before {
  background: linear-gradient(
    to top,
      rgb(192, 171, 126) 20%,
      rgb(192, 171, 126, 0.6) 70%,
      rgba(192, 171, 126, 0.7) 95%,
    rgba(192, 171, 126, 0.2) 100%
  );
}


.feature-card.why-members {
  background: url('/tac/images/home/features/why-members.png') no-repeat;
}

.feature-card.business-office { 
  background: url('/tac/images/home/features/business-office-spaces.png') no-repeat;
}

.feature-card.home-family {
  background: url('/tac/images/home/features/home-family.png') no-repeat;
}

.feature-content {
  text-align: left;
  padding: 4rem;
  z-index: 2;
  position: relative;
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.feature-content .section-title {
  color: var(--text-light);
  font-size: 1.5rem;
  text-align: left;
  width: 100%;
  margin-bottom: 1em;
  flex-shrink: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.feature-content .section-body {
  color: var(--text-light);
  width: 100%;
  font-size: 1rem;
  text-align: left;
  margin: 0 0 2em;
  flex-grow: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  opacity: 1;
}

.feature-content .cta-button {
  flex-shrink: 0;
  margin: 0;
  width: 50%;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-content:hover .cta-button{
  background: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

.feature-content:hover .cta-button:hover{
  color: var(--gold-color);
}

@media (max-width: 1200px) {
  .feature-card.business-office {
    background-position: center center;
  }
  
  .feature-content {
    padding: 3rem;
    height: auto;
    min-height: 400px;
  }
  
  .feature-content .cta-button {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .feature-card.business-office {
    background-position: center center;
  }
  
  .feature-content {
    padding: 2rem;
    min-height: 350px;
  }
  
  .feature-content .cta-button {
    width: 100%;
    margin-top: auto;
  }
  
  .feature-content .section-title {
    font-size: 1.3rem;
  }
  
  .feature-content .section-body {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .feature-content {
    padding: 1.5rem;
    min-height: 300px;
  }
}

/* Footer */
.footer {
  background: url('/tac/images/footer-bg.webp') no-repeat;
  background-size: cover;
  color: var(--text-light);
  padding: 80px 0 60px;
}

.footer .container{
  max-width: 90%;
}

.footer-content-wrapper.footer-row-1 {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-content.footer-left {
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-content.footer-right {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
}

.footer-content.footer-right img {
  width: 180px;
  margin-bottom: 3em;
  
}

.footer-content.footer-right p {
  margin-bottom: 0.5rem;
  font-size: 0.8em;
  text-align: center;
  width: 100%;
}

.footer-content.footer-right p:first-of-type {
  width: 50%;
  margin-bottom: 2em;
}


.footer-section h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-section ul{
  list-style: none;
}

.footer-section a {
  line-height: 1.6;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition-opacity);
}

.footer-section:hover a {
  opacity: 0.3;
}

.footer-section a:hover {
  opacity: 1;
  color: #c0aa7e;
}

.footer-row-2 {
  display: flex;
  align-items: center;
  padding-top: 5em;
  width: 50%;
  gap: 1em;
  margin: 0 0 3em;
}

.footer-row-2 p{
  width: 50%;
  letter-spacing: 1px;
}

.footer-row-3 {
  margin: 0 0 3em;
}

.footer-row-3 .social-links{
  justify-content: unset;
  gap: 4em;
}

.footer-row-3 .social-links a{
  color: var(--text-light);
}

.footer-row-4 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8em;
  display: flex;
  gap: 5em;
}

.footer-row-4-right {
  display: flex;
  gap: 2em;
}

.footer-row-4-right a {
  color: var(--text-light);
  transition: var(--transition-opacity);
  font-weight: 500;
}

.footer-row-4-right:hover a {
  opacity: 0.3;
}

.footer-row-4-right a:hover {
  opacity: 1;
  color: #c0aa7e;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(50% - 1rem); /* Show 2 items on medium screens */
    min-width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 100%; /* Show 1 item on mobile */
    min-width: 100%;
  }
  
  .carousel {
    gap: 1rem;
  }

  .nav ul {
    display: none;
  }

  .nav-toggle {
    top: 20px;
    left: 30px;
  }

  .banner-text h1 {
    font-size: 2.5rem;
  }

  .banner-text p {
    font-size: 1.1rem;
  }

  .content-wrapper h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
    width: 80%;
  }

  .service-card,
  .event-card {
    margin: 0;
  }

  .event-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content-wrapper {
    flex-direction: column;
  }
  
  .footer-content.footer-left,
  .footer-content.footer-right {
    width: 100%;
  }
  
  .footer-content.footer-right {
    margin-top: 2rem;
  }

  .logo {
    top: 20px;
    height: 50px;
  }
  
  .logo span {
    font-size: 0.7rem;
  }
  
  .member-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .banner-text h1 {
    font-size: 2rem;
  }

  .service-card,
  .event-card {
    padding: 1.5rem;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .logo {
    top: 15px;
    height: 40px;
  }
  
  .logo span {
    font-size: 0.6rem;
  }

  .section-title {
    font-size: 1.8rem;
    width: 90%;
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--primary-color);
  z-index: 999;
  transition: var(--transition-medium);
  padding-top: 80px;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav nav ul li {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  transition: var(--transition-medium);
}

.mobile-nav nav ul li a:hover {
  color: var(--accent-color);
  padding-left: 10px;
}

/* Navigation Contact */
.nav-contact {
  flex: 0 0 33.3333%;
  background-color: #c0aa7e;
  height: 100vh;
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  margin-left: auto;
  transform-origin: right;
}

.nav-contact:hover {
  transform: scaleX(1.05);
}

.contact-content {
  color: var(--text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 4rem 0;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-content .logo-img {
  width: 140px;
  height: auto;
  margin-bottom: 0;
  filter: brightness(0) saturate(100%) invert(12%) sepia(59%) saturate(2804%) hue-rotate(210deg) brightness(89%) contrast(112%);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0;
  font-weight: 500;
  color: var(--accent-color);
  font-style: italic;
}

.contact-content .address,
.contact-info {
  color: var(--accent-color);
  font-size: 1.1rem;
  line-height: normal;
  margin-bottom: 0;
  opacity: 0.9;
  font-weight: 500;
}

.contact-info p.contact-phone {
  font-weight: 600;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  color: var(--accent-color);
  font-size: 1.5rem;
  transition: var(--transition-medium);
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Navigation Children */
.nav-children {
  position: absolute;
  z-index: 2;
  flex: 0 0 50%;
  left: 50%;
  top: 0;
  margin-left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10em 2em;
  min-width: auto;
  box-shadow: none;
}

.nav-children.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-children .main-child {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 2em;
  color: var(--text-light);
  font-family: var(--font-heading);
  position: relative;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-medium);
}

.nav-children .main-child:hover {
  color: #c0aa7e;
}

.nav-children .main-child i {
  font-size: 0.5em;
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--text-light);
}

.nav-children .main-child:hover i {
  opacity: 1;
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary-color);
  transform: scale3d(2, 2, 1);
  transform-style: preserve-3d;
  border: rgba(255, 255, 255, 0.5);
}

.sub-children a {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5em;
  opacity: 0.8;
  transition: all 0.2s ease;
  color: var(--text-light);
  text-decoration: none;
}

.sub-children:hover a {
  opacity: 0.3;
}

.sub-children a:hover {
  opacity: 1;
  color: #c0aa7e;
}

.roman-num {
  width: 2em;
  text-align: center;
  font-style: normal;
  font-size: 1.2rem !important;
}

/* Scroll Down Button */
.scroll-down-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.scroll-down-btn i {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

.scroll-down-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary-color);
  transform: translate3d(-50%, 0, 0) scale3d(2, 2, 1);
  transform-style: preserve-3d;
  border: rgba(255, 255, 255, 0.5);
}

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

/* Overlay Menu */
.overlay-menu-left {
  flex: 0 0 66.6667%;
  position: relative;
  display: flex;
  background-image: url('/tac/images/overlay-menu-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay-menu-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d2727;
  opacity: 0.8;
  mix-blend-mode: multiply;
  z-index: 1;
}

.feature-card:hover .feature-content .section-title {
  color: var(--accent-color);
  transform: translateY(-10px);
}

.feature-card:hover .feature-content .section-body {
  color: var(--accent-color);
  transform: translateY(-5px);
  opacity: 0.9;
}



/* Login Page */
body.login {
  background-size: cover;
  height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

.login-section {  
  background: url('/tac/images/login/login-bg.webp') no-repeat center center;
}

.login-section .container{
  padding: 10em 0;
  max-width: 500px;
}

.login-content {
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.1);
  padding: 4rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
}

.login-section .section-title{
  text-align: left;
  color: var(--text-light);
  font-size: 1.8em;
  width: 100%;
  margin-bottom: 2rem;
}

form label{
  text-transform: uppercase;
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

input{
  padding: 0.5em 0;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  color: var(--text-light);
}

input:focus{
  border-color: var(--accent-color);
  outline: none;
}

.form-links {
  margin-top: 0.8rem;
  font-size: 0.7em;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-links:hover {
  color: #c0aa7e;
}

.login-form .cta-button {
  width: 50%;
  margin-top: 2.5rem;
}

.form-links.create-account{
  margin-top: 0;
}


/* Membership Page */
.membership .text-section-1 .section-title{
  margin: 0 auto 1em;
}

.highlights-section{
  padding: 0 0 15em;
}

.highlights-wrapper{
  display: flex;
  gap: 2em;
}

.highlights-column{
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 3em;
}

.highlights-column-2{
  transform: translateY(3em);
}

.highlights-card {
  height: 90vh;
  background-size: cover !important;
  position: relative;
  display: flex;
}

.club {
  background: url('/tac/images/membership/highlights/reciprocal.png') no-repeat;
}

.supplementary {
  background: url('/tac/images/membership/highlights/supplementary.png');
}

.niche {
  background: url('/tac/images/membership/highlights/niche.png');
}

.refer {
  background: url('/tac/images/membership/highlights/refer.png');
}

.highlights-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: background 3.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlights-card:hover::before {
  background: linear-gradient(
    to top,
      rgb(192, 171, 126) 20%,
      rgb(192, 171, 126, 0.6) 70%,
      rgba(192, 171, 126, 0.7) 95%,
    rgba(192, 171, 126, 0.2) 100%
  );
}

.highlights-content {
  text-align: left;
  padding: 4rem;
  z-index: 2;
  position: relative;
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.highlights-content .section-title {
  color: var(--text-light);
  font-size: 1.5rem;
  text-align: left;
  width: 100%;
  margin-bottom: 1em;
  flex-shrink: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.highlights-content .section-body {
  color: var(--text-light);
  width: 100%;
  font-size: 1rem;
  text-align: left;
  margin: 0 0 2em;
  flex-grow: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  opacity: 1;
}

.highlights-content .cta-button {
  flex-shrink: 0;
  margin: 0;
  width: 50%;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlights-card:hover .highlights-content .section-title,
.highlights-card:hover .highlights-content .section-body {
  color: var(--accent-color);
  transform: translateY(-10px);
}

.highlights-card:hover .cta-button {
  background: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

.highlights-content:hover .cta-button:hover {
  color: var(--gold-color);
}

.banner-normal {
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}

.banner-normal .banner-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--text-light);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 15em;
  min-height: inherit;
}

.banner-normal .banner-text{
  top: unset;
}

.banner-normal#tour .section-body{
  color: var(--text-light);
  font-size: 1rem;
  text-transform: unset;
  font-weight: 400;
  letter-spacing: normal;
  margin: 0 0 2rem;
  line-height: 1.5;
  width: 50%;
}

/* Joining Fees Banner Specific Styles */
section.banner-normal#joining-fees {
  min-height: 50vh !important;
}

section.banner-normal#joining-fees .banner-content {
  justify-content: center;
  padding: 0;
  text-align: center;
}

section.banner-normal#joining-fees .banner-text {
  color: var(--accent-color);
  top: unset;
}

section.banner-normal#joining-fees .banner-text p.section-body {
  font-size: 1rem;
  text-transform: unset;
  font-weight: 400;
  letter-spacing: normal;
  margin: 0 0 2rem;
  line-height: 1.5;
  width: 100%;
  color: var(--primary-color);
  font-weight: 500;
}

/* Banner Buttons */
.banner-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
}

.banner-buttons a {
  width: 50%;
}