/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */
.nav-links li.has-dropdown {
  position: relative;
}

.nav-links li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px -5px rgba(0,0,0,0.15);
  border: 1px solid hsl(220 13% 91%);
  list-style: none;
  min-width: 200px;
  padding: 0.5rem;
  z-index: 2000;
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.nav-links li.has-dropdown:hover .dropdown-menu,
.nav-links li.has-dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-menu li a {
  display: block;
  padding: 0.625rem 1rem;
  color: #0f1729 !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 1 !important;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background: hsla(38, 80%, 45%, 0.08);
  color: hsl(38, 80%, 45%) !important;
}

/* Arrow indicator on dropdown parent */
.nav-links li.has-dropdown > a i[data-lucide="chevron-down"] {
  transition: transform 0.2s;
}

.nav-links li.has-dropdown:hover > a i[data-lucide="chevron-down"] {
  transform: rotate(180deg);
}

/* Logo size increase */
.logo img {
  height: 72px !important;
  width: auto;
}

/* Keep nav links vertically centered with larger logo */
.nav-links {
  align-items: center;
}

/* ============================================
   HERO - NEW DESIGN (reference site inspired)
   ============================================ */
.hero-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.hero-split-left {
  background: linear-gradient(135deg, #1a2332 0%, #0f1729 100%);
  display: flex;
  align-items: center;
  padding: 10rem 4rem 6rem;
  position: relative;
  z-index: 2;
}

.hero-split-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60px;
  width: 120px;
  height: 100%;
  background: linear-gradient(135deg, #1a2332 0%, #0f1729 100%);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 3;
}

.hero-split-right {
  position: relative;
  overflow: hidden;
}

.hero-split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 20s ease-out infinite alternate;
}

.hero-split-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,41,0.4) 0%, transparent 60%);
}

.hero-split-content {
  position: relative;
  z-index: 4;
  max-width: 560px;
}

.hero-split-content .badge {
  margin-bottom: 1.5rem;
}

.hero-split-content h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-split-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-split-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-split-left {
    padding: 9rem 2rem 4rem;
  }
  .hero-split-left::after {
    display: none;
  }
  .hero-split-right {
    height: 350px;
  }
  .hero-split-content {
    max-width: 100%;
  }
}

/* ============================================
   BLOG SECTION ON HOMEPAGE
   ============================================ */
.homepage-blog-section {
  background: linear-gradient(135deg, hsl(220 14% 96%) 0%, hsl(220 20% 98%) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.homepage-blog-section::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsla(38, 80%, 45%, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

.blog-preview-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px -5px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.blog-preview-card:hover {
  transform: translateY(-8px);
  border-color: hsl(38, 80%, 45%);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.blog-preview-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, hsl(38, 80%, 45%), hsl(38, 85%, 55%));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -5px hsla(38, 80%, 45%, 0.4);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.blog-preview-card:hover .blog-preview-icon {
  transform: rotate(360deg) scale(1.1);
}

.blog-preview-icon i {
  color: white;
}

.blog-preview-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsla(38, 80%, 45%, 0.1);
  color: hsl(38, 80%, 45%);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-preview-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: hsl(222, 47%, 11%);
  line-height: 1.3;
  margin: 0;
}

.blog-preview-card p {
  color: hsl(220, 9%, 46%);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.blog-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid hsl(220, 13%, 91%);
  font-size: 0.8125rem;
  color: hsl(220, 9%, 46%);
}

.blog-preview-footer .read-more {
  color: hsl(38, 80%, 45%);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.blog-preview-card:hover .read-more {
  gap: 0.5rem;
}

/* ============================================
   TEAM PAGE GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Center the last row when it has fewer items than columns */
.team-grid::after {
  content: '';
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Second row with 2 cards — centered under the 3-col grid */
.team-grid-centered {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc(66.666% - 0.667rem);
  margin: 0 auto;
  margin-top: 0;
}

@media (max-width: 1024px) {
  .team-grid-centered {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid-centered {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.team-member-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.team-member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -10px rgba(0,0,0,0.18);
  border-color: hsl(38, 80%, 45%);
}

.team-member-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover .team-member-photo img {
  transform: scale(1.08);
}

.team-member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.team-member-card:hover .team-member-overlay {
  opacity: 1;
}

.team-member-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-member-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: hsl(222, 47%, 11%);
}

.team-role {
  color: hsl(38, 80%, 45%);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-bio {
  color: hsl(220, 9%, 46%);
  font-size: 0.875rem;
  line-height: 1.6;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.team-tag {
  padding: 0.25rem 0.625rem;
  background: hsla(38, 80%, 45%, 0.1);
  color: hsl(38, 80%, 45%);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================
   MOBILE DROPDOWN
   ============================================ */
@media (max-width: 1024px) {
  .nav-links li.has-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    padding: 0.25rem 0 0.25rem 1rem;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li.has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .dropdown-menu li a:hover {
    color: hsl(38, 80%, 45%) !important;
    background: transparent;
  }
}

/* ============================================
   ITAA BADGE — HERO
   ============================================ */
.itaa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid hsla(38, 80%, 55%, 0.5);
  background: hsla(38, 80%, 45%, 0.12);
  color: hsl(38, 85%, 65%);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

/* ============================================
   ITAA — FOOTER
   ============================================ */
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-itaa {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}
