/* UKAS Partners - Custom Styles */

/* CSS Variables */
:root {
  --color-primary: #075055;
  --color-secondary: #ff8b05;
  --color-dark: #16232b;
  --color-light: #e4eef0;
  --color-white: #ffffff;
  --color-gray: #6b7280;
  --font-arboria: 'Arboria', 'Inter', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-arboria);
}

body {
  font-family: var(--font-arboria);
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
}

/* Ensure all text elements use Arboria */
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
label, input, textarea, select, button,
div, section, article, aside, header, footer, nav {
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-light);
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.4s ease, border-bottom-color 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent header only on home page */
.header.header-transparent {
  background-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header.header-transparent.scrolled {
  background-color: var(--color-light);
  border-bottom-color: rgba(7, 80, 85, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    height: 5.5rem;
  }
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 2.5rem;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .logo {
    height: 3rem;
  }
}

@media (min-width: 1024px) {
  .logo {
    height: 3.5rem;
  }
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: filter 0.4s ease;
}

/* White logo filter for transparent header */
.header-transparent .logo img {
  filter: brightness(0) invert(1);
}

/* Normal logo when scrolled */
.header-transparent.scrolled .logo img {
  filter: none;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1rem;
  }
}

/* White nav links only on home page with transparent header */
.header.header-transparent .nav-link {
  color: var(--color-white);
}

.header.header-transparent.scrolled .nav-link {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--color-dark);
}

/* White hover only on home page with transparent header */
.header.header-transparent .nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.header.header-transparent.scrolled .nav-link:hover {
  color: var(--color-dark);
}

.nav-link.active {
  color: var(--color-secondary);
}

.header.scrolled .nav-link.active {
  color: var(--color-secondary);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  min-width: 5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-dark);
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 0.75rem;
}

.lang-switcher .lang-flag {
  display: flex;
  align-items: center;
  line-height: 1;
}

.lang-switcher .lang-flag .flag-icon {
  width: 1.75rem;
  height: 1.1rem;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-switcher .lang-code {
  line-height: 1;
  letter-spacing: 0.05em;
  min-width: 1.5rem;
}

.header.header-transparent .lang-switcher {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

.header.header-transparent.scrolled .lang-switcher {
  color: var(--color-dark);
  background: rgba(7, 80, 85, 0.08);
}

.lang-switcher:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.header.header-transparent .lang-switcher:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.header.header-transparent.scrolled .lang-switcher:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Contact button orange on transparent header (non-home pages) */
body:not(.page-home) .header.header-transparent .btn-primary {
  background-color: var(--color-secondary);
}

body:not(.page-home) .header.header-transparent .btn-primary:hover {
  background-color: var(--color-primary);
}

body:not(.page-home) .header.header-transparent.scrolled .btn-primary {
  background-color: var(--color-primary);
}

body:not(.page-home) .header.header-transparent.scrolled .btn-primary:hover {
  background-color: var(--color-secondary);
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  padding: 0 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.lang-switcher-mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: rgba(7, 80, 85, 0.05);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 500;
}

.lang-switcher-mobile:hover {
  background-color: rgba(7, 80, 85, 0.1);
}

.lang-switcher-mobile .lang-flag-mobile {
  display: flex;
  align-items: center;
  line-height: 1;
}

.lang-switcher-mobile .lang-flag-mobile .flag-icon {
  width: 1.75rem;
  height: 1.1rem;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lang-switcher-mobile .lang-arrow {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  color: var(--color-dark);
  opacity: 0.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

/* Navbar button scaling for larger screens */
.nav .btn {
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
}

@media (min-width: 768px) {
  .nav .btn {
    font-size: 0.9375rem;
    padding: 0.8rem 1.75rem;
  }
}

@media (min-width: 1024px) {
  .nav .btn {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid rgba(7, 80, 85, 0.2);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Main Content */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, var(--color-light), rgba(228, 238, 240, 0.8));
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  opacity: 0.05;
}

.hero-bg .circle {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
}

.hero-bg .square {
  position: absolute;
  bottom: 10rem;
  left: 10rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid var(--color-primary);
  transform: rotate(45deg);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero h1 span {
  color: var(--color-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 3rem;
  max-width: 48rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero p {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease-out;
}

.carousel-slide.active .slide-bg {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(22, 35, 43, 0.85) 0%, rgba(22, 35, 43, 0.6) 50%, rgba(22, 35, 43, 0.4) 100%);
}

.slide-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.slide-content .container {
  max-width: 800px;
}

@media (min-width: 1200px) {
  .slide-content .container {
    max-width: 1000px;
  }
}

@media (min-width: 1400px) {
  .slide-content .container {
    max-width: 1200px;
  }
}

@media (min-width: 1600px) {
  .slide-content .container {
    max-width: 1400px;
  }
}

.slide-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

/* Remove extra spacing from Quill editor paragraphs inside titles */
.slide-content h1 p {
  margin: 0;
  line-height: inherit;
}

.slide-content h1 br {
  line-height: 0.8;
}

.carousel-slide.active .slide-content h1 {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .slide-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }
}

@media (min-width: 1024px) {
  .slide-content h1 {
    font-size: 4rem;
  }
}

.slide-content h1 span {
  color: var(--color-secondary);
}

.slide-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s;
}

@media (min-width: 1200px) {
  .slide-content p {
    max-width: 750px;
  }
}

@media (min-width: 1400px) {
  .slide-content p {
    max-width: 900px;
  }
}

@media (min-width: 1600px) {
  .slide-content p {
    max-width: 1000px;
  }
}

.carousel-slide.active .slide-content p {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .slide-content p {
    font-size: 1.25rem;
  }
}

.slide-content .hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.7s, transform 0.6s ease-out 0.7s;
}

.carousel-slide.active .slide-content .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .carousel-arrow {
    display: flex;
  }
}

.carousel-arrow:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

@media (min-width: 768px) {
  .carousel-prev {
    left: 2rem;
  }

  .carousel-next {
    right: 2rem;
  }
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 1.5rem;
}

.carousel-dot-wrapper {
  position: relative;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.carousel-dot.active {
  background-color: var(--color-secondary);
  transform: scale(1.2);
}

/* Carousel Preview Tooltip */
.carousel-preview {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 140px;
  background-color: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.carousel-dot-wrapper:hover .carousel-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-15px);
}

.carousel-preview::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-white);
}

.preview-image {
  width: 100%;
  height: 80px;
  background-size: cover;
  background-position: center;
}

.preview-title {
  display: block;
  padding: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide preview on mobile */
@media (max-width: 768px) {
  .carousel-preview {
    display: none;
  }

  .carousel-dots {
    gap: 0.75rem;
  }
}

/* Scroll Down Button */
.scroll-down-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.scroll-down-btn svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ==========================================
   Single Image Mode - Text Slides
   ========================================== */
.hero-carousel.single-image-mode .slide-bg {
  transform: scale(1.05);
}

.text-slides {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.text-slide .container {
  max-width: 800px;
}

@media (min-width: 1200px) {
  .text-slide .container {
    max-width: 1000px;
  }
}

@media (min-width: 1400px) {
  .text-slide .container {
    max-width: 1200px;
  }
}

@media (min-width: 1600px) {
  .text-slide .container {
    max-width: 1400px;
  }
}

/* Fade Animation */
.hero-carousel[data-animation="fade"] .text-slide {
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-carousel[data-animation="fade"] .text-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Slide Animation */
.hero-carousel[data-animation="slide"] .text-slide {
  transform: translateX(100%);
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.hero-carousel[data-animation="slide"] .text-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-carousel[data-animation="slide"] .text-slide.prev {
  transform: translateX(-100%);
}

/* Text Slide Content Styles */
.text-slide h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

/* Remove extra spacing from Quill editor paragraphs inside titles */
.text-slide h1 p {
  margin: 0;
  line-height: inherit;
}

.text-slide h1 br {
  line-height: 0.8;
}

/* Default fade animation for h1 */
.text-slide.active h1 {
  animation: textFadeIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.text-slide h1 span {
  color: var(--color-secondary);
}

@media (min-width: 768px) {
  .text-slide h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }
}

@media (min-width: 1024px) {
  .text-slide h1 {
    font-size: 4rem;
  }
}

.text-slide p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

.text-slide.active p {
  animation: textFadeIn 0.6s ease-out 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@media (min-width: 1024px) {
  .text-slide p {
    font-size: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .text-slide p {
    max-width: 750px;
  }
}

@media (min-width: 1400px) {
  .text-slide p {
    max-width: 900px;
  }
}

@media (min-width: 1600px) {
  .text-slide p {
    max-width: 1000px;
  }
}

.text-slide .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.text-slide.active .hero-buttons {
  animation: textFadeIn 0.6s ease-out 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes textFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Text Dots - no preview */
.carousel-dots.text-dots .carousel-dot-wrapper:hover .carousel-preview {
  display: none;
}

/* Outline Light Button for Carousel */
.btn-outline-light {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Sections */
.section {
  padding: 8rem 0;
}

.section-header {
  max-width: 48rem;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-primary);
}

/* About Preview Section */
.about-preview {
  background-color: var(--color-light);
  border-top: 4px solid var(--color-secondary);
}

.about-preview .content {
  max-width: 64rem;
  margin: 0 auto;
}

.about-preview p {
  font-size: 1.125rem;
  color: var(--color-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Practice Cards */
.practice-cards {
  background-color: var(--color-light);
  border-top: 4px solid var(--color-primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.practice-card {
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 1rem;
  transition: all 0.3s;
}

.practice-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.practice-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.practice-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.practice-card:hover .practice-icon {
  background-color: var(--color-secondary);
}

.practice-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-white);
}

.practice-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.practice-card p {
  font-size: 0.875rem;
  color: rgba(7, 80, 85, 0.8);
  line-height: 1.6;
}

/* Principles Section */
.principles {
  background-color: var(--color-primary);
  border-top: 4px solid var(--color-secondary);
}

.principles .section-title {
  color: var(--color-white);
}

.principles .section-subtitle {
  color: rgba(228, 238, 240, 0.8);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle-card {
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 1rem;
  transition: all 0.3s;
}

.principle-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.principle-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s, background-color 0.3s;
}

.principle-card:hover .principle-icon {
  transform: scale(1.1);
  background-color: var(--color-secondary);
}

.principle-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-white);
}

.principle-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.principle-card p {
  font-size: 0.9375rem;
  color: var(--color-primary);
  line-height: 1.7;
}

/* Partners Preview */
.partners-preview {
  background-color: var(--color-dark);
  border-top: 4px solid var(--color-secondary);
}

.partners-preview .section-title {
  color: var(--color-white);
}

.partners-preview .section-subtitle {
  color: rgba(228, 238, 240, 0.7);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-card {
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 1rem;
  transition: all 0.3s;
}

.partner-card:hover {
  background-color: var(--color-light);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.partner-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s, background-color 0.3s;
}

.partner-card:hover .partner-avatar {
  transform: scale(1.1);
  background-color: var(--color-secondary);
}

.partner-avatar span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-white);
}

.partner-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.partner-card .title {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.partner-card .focus {
  color: rgba(7, 80, 85, 0.8);
  line-height: 1.6;
}

.view-team-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.view-team-link:hover {
  color: var(--color-secondary);
}

.view-team-link svg {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.view-team-link:hover svg {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  border-top: 4px solid var(--color-secondary);
  padding: 6rem 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .cta-inner {
    flex-direction: row;
  }
}

.cta-content {
  max-width: 42rem;
}

.cta-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .cta-content h2 {
    font-size: 2.25rem;
  }
}

.cta-content p {
  font-size: 1.125rem;
  color: rgba(228, 238, 240, 0.8);
}

/* Footer - Compact */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 2rem 0;
  }
}

.footer-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-compact {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .footer-compact {
    gap: 1.5rem;
  }
}

.footer-contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-contact-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .footer-contact-item {
    gap: 0.75rem;
  }
}

.footer-contact-item svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

@media (min-width: 768px) {
  .footer-contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
  }
}

.footer-contact-item .label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(228, 238, 240, 0.5);
  margin-bottom: 0.1rem;
}

.footer-contact-item .label p {
  margin: 0;
  display: inline;
}

@media (min-width: 768px) {
  .footer-contact-item .label {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
}

.footer-contact-item .value {
  font-size: 0.65rem;
  color: rgba(228, 238, 240, 0.9);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .footer-contact-item .value {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

.footer-contact-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.footer-contact-link .value,
.footer-contact-link .value *,
.footer-contact-link .value span,
.footer-contact-link .value p,
.footer-contact-link svg,
.footer-contact-link i {
  transition: color 0.3s ease;
}

.footer-contact-link:hover .value,
.footer-contact-link:hover .value *,
.footer-contact-link:hover .value span,
.footer-contact-link:hover .value p {
  color: var(--color-secondary) !important;
}

.footer-contact-link:hover svg,
.footer-contact-link:hover i {
  color: var(--color-secondary) !important;
}

.footer-main-row {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-main-row {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .footer-main-row {
    gap: 2rem;
  }
}

.footer-main-row .footer-contact-row {
  flex: 1;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  height: 3.5rem;
  width: auto;
  border-radius: 0.375rem;
}

@media (min-width: 768px) {
  .footer-logo img {
    height: 5rem;
    border-radius: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-logo img {
    height: 6rem;
  }
}

.footer-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-contact-stack {
    gap: 0.75rem;
  }
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-contact-row {
    gap: 1rem;
  }
}

.footer-schedule-box {
  background-color: rgba(228, 238, 240, 0.05);
  border: 1px solid rgba(228, 238, 240, 0.1);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  text-align: left;
  flex-shrink: 0;
  width: 140px;
}

@media (min-width: 768px) {
  .footer-schedule-box {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 200px;
  }
}

@media (min-width: 1024px) {
  .footer-schedule-box {
    width: 240px;
  }
}

.footer-schedule-box h3 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.15rem;
}

@media (min-width: 768px) {
  .footer-schedule-box h3 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
}

.footer-schedule-box p {
  font-size: 0.6rem;
  color: rgba(228, 238, 240, 0.6);
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  .footer-schedule-box p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

.footer-schedule-box .btn {
  font-size: 0.55rem;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-schedule-box .btn p {
  margin: 0;
  display: inline;
}

@media (min-width: 768px) {
  .footer-schedule-box .btn {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }
}

.footer-schedule-box .btn svg,
.footer-schedule-box .btn i {
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .footer-schedule-box .btn svg,
  .footer-schedule-box .btn i {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
  }
}

.footer-cta-btn {
  color: var(--color-white);
  border: none;
  transition: background-color 0.3s ease;
}

.footer-cta-btn:hover {
  background-color: var(--cta-hover-color) !important;
  color: var(--color-white);
}

.footer-bottom-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(228, 238, 240, 0.1);
}

@media (min-width: 768px) {
  .footer-bottom-row {
    gap: 1rem;
    padding-top: 1.5rem;
  }
}

.footer-bottom-row p {
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(228, 238, 240, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom-row p {
    font-size: 0.75rem;
  }
}

.footer-copyright {
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(228, 238, 240, 0.5);
}

.footer-copyright p {
  display: inline;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .footer-copyright {
    font-size: 0.75rem;
  }
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  color: rgba(228, 238, 240, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .linkedin-link {
    gap: 0.4rem;
    font-size: 0.8rem;
  }
}

.linkedin-link:hover {
  color: #0077b5;
}

.linkedin-link svg {
  width: 0.75rem;
  height: 0.75rem;
}

@media (min-width: 768px) {
  .linkedin-link svg {
    width: 1rem;
    height: 1rem;
  }
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .footer-bottom-links {
    gap: 0.75rem;
  }
}

.footer-divider {
  color: rgba(228, 238, 240, 0.3);
  font-size: 0.55rem;
}

@media (min-width: 768px) {
  .footer-divider {
    font-size: 0.75rem;
  }
}

.developed-by {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.55rem;
  color: rgba(228, 238, 240, 0.5);
  text-decoration: none;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .developed-by {
    gap: 0.4rem;
    font-size: 0.75rem;
  }
}

.developed-by:hover {
  color: rgba(228, 238, 240, 0.8);
}

.developed-by .polvius-logo {
  height: 1.5rem;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.developed-by:hover .polvius-logo {
  opacity: 1;
}

/* Page Headers */
.page-header {
  background-color: var(--color-light);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
}

@media (min-width: 1024px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* Page Hero */
.page-hero {
  background: linear-gradient(to bottom right, var(--color-light), rgba(228, 238, 240, 0.8));
  padding: 8rem 0 4rem 0;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .page-hero h1 {
    font-size: 3.75rem;
  }
}

.page-hero p {
  font-size: 1.25rem;
  color: var(--color-primary);
}

/* About Page */
.about-content {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.about-content .content-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.about-content section {
  margin-bottom: 6rem;
}

.about-content .intro p {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.about-content .text-content p {
  font-size: 1.125rem;
  color: var(--color-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.divider {
  height: 1px;
  background-color: rgba(7, 80, 85, 0.1);
  margin-bottom: 6rem;
}

/* Practice Areas Page */

/* Practice Hero */
.practice-hero {
  position: relative;
  padding: 8rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a5a5f 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .practice-hero {
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .practice-hero {
    padding: 10rem 0 3rem;
  }
}

.practice-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.practice-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 1rem;
  margin: 0 auto;
}

.practice-hero-content .hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.practice-hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .practice-hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .practice-hero-content h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .practice-hero-content h1 {
    font-size: 4rem;
  }
}

.practice-hero-content h1 span {
  color: var(--color-secondary);
}

.practice-hero-content:has(p) {
  margin-top: -2rem;
}

.practice-hero-content h1 + p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Practice Buttons */
.practice-buttons {
  padding: 0.6rem 0;
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
  position: sticky;
  top: 60px;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.practice-buttons .container {
  padding: 0 0.75rem;
}

.practice-buttons .practice-buttons-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .practice-buttons {
    padding: 1.5rem 0;
    top: 70px;
  }

  .practice-buttons .container {
    padding: 0 1rem;
  }

  .practice-buttons .practice-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .practice-buttons {
    padding: 2rem 0;
  }
}

/* All Areas Button - Distinct Style */
.practice-btn-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark, #d46a00) 100%);
  color: var(--color-white);
  border: none;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 139, 5, 0.3);
  flex-shrink: 0;
}

.practice-btn-all:hover {
  background: linear-gradient(135deg, var(--color-secondary-dark, #d46a00) 0%, var(--color-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 139, 5, 0.4);
}

.practice-btn-all.active {
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(7, 80, 85, 0.3);
}

.practice-btn-all svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .practice-btn-all {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* Divider between All button and area buttons */
.practice-btn-divider {
  width: 1px;
  height: 2rem;
  background-color: rgba(7, 80, 85, 0.2);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .practice-btn-divider {
    display: block;
  }
}

.practice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid rgba(7, 80, 85, 0.2);
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .practice-btn {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

.practice-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.practice-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.practice-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Practice Buttons Animation */
.practice-btn,
.practice-btn-all,
.practice-btn-divider {
  opacity: 0;
  transform: translateY(15px);
  animation: practiceBtnFadeIn 0.4s ease-out forwards;
}

.practice-btn-all { animation-delay: 0.05s; }
.practice-btn-divider { animation-delay: 0.1s; }
.practice-btn:nth-child(3) { animation-delay: 0.15s; }
.practice-btn:nth-child(4) { animation-delay: 0.2s; }
.practice-btn:nth-child(5) { animation-delay: 0.25s; }
.practice-btn:nth-child(6) { animation-delay: 0.3s; }
.practice-btn:nth-child(7) { animation-delay: 0.35s; }
.practice-btn:nth-child(8) { animation-delay: 0.4s; }
.practice-btn:nth-child(9) { animation-delay: 0.45s; }
.practice-btn:nth-child(10) { animation-delay: 0.5s; }
.practice-btn:nth-child(11) { animation-delay: 0.55s; }
.practice-btn:nth-child(12) { animation-delay: 0.6s; }

@keyframes practiceBtnFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.practice-detail {
  padding: 2rem 0 4rem;
  background-color: var(--color-white);
  display: none;
}

.practice-detail.active {
  display: block;
}

.practice-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .practice-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.practice-detail img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.practice-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.practice-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.practice-detail-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  background-color: rgba(7, 80, 85, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-detail-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-secondary);
}

.practice-detail h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.practice-detail-content > p {
  font-size: 1.125rem;
  color: var(--color-primary);
  line-height: 1.7;
}

.key-services {
  background-color: var(--color-light);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-top: 3rem;
}

.key-services h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.key-services ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .key-services ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

.key-services li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-primary);
}

.key-services li::before {
  content: "\2022";
  color: var(--color-secondary);
  font-size: 1.25rem;
  line-height: 1;
}

.key-services li p {
  margin: 0;
  padding: 0;
}

.key-services li p:empty,
.key-services li p br:only-child {
  display: none;
}

/* Practice Overview Grid */
.practice-overview {
  padding: 2rem 0 4rem;
  background-color: var(--color-white);
}

.practice-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .practice-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .practice-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.practice-overview-card {
  background-color: var(--color-white);
  border: 1px solid rgba(7, 80, 85, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.practice-overview-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.practice-overview-card .image-wrapper {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.practice-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.practice-overview-card:hover img {
  transform: scale(1.05);
}

.practice-overview-card .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(22, 35, 43, 0.8), transparent);
}

.practice-overview-card .card-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
}

.practice-overview-card .card-title svg {
  width: 1.25rem;
  height: 1.25rem;
}

.practice-overview-card .card-title h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.practice-overview-card .card-body {
  padding: 1rem;
}

.practice-overview-card .card-body p {
  font-size: 0.875rem;
  color: var(--color-primary);
  line-height: 1.5;
  max-height: 3em;
  overflow: hidden;
}

/* Practice Overview Card Hover Enhancement */
.practice-overview-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
}

/* Practice Detail Transition */
.practice-detail {
  animation: practiceDetailFadeIn 0.4s ease-out;
}

.practice-detail.active {
  display: block;
  animation: practiceDetailFadeIn 0.4s ease-out;
}

@keyframes practiceDetailFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Practice CTA Section */
.practice-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a5a5f 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.practice-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.practice-cta .cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.practice-cta .cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .practice-cta .cta-content h2 {
    font-size: 2.5rem;
  }
}

.practice-cta .cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.practice-cta .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .practice-cta .cta-buttons {
    flex-direction: row;
  }
}

/* Team Page */
.team-page {
  background-color: var(--color-light);
  padding: 5rem 0;
}

.team-header {
  max-width: 56rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.team-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .team-header h1 {
    font-size: 3.75rem;
  }
}

.team-header p {
  font-size: 1.125rem;
  color: var(--color-primary);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 84rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.team-card .photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(to bottom right, var(--color-primary), #0a6b72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .photo span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 3.75rem;
  font-weight: 700;
}

.team-card .info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card .placeholder {
  height: 2rem;
  background-color: #f1f5f9;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}

.team-card .placeholder.short {
  width: 75%;
}

.team-card .placeholder.medium {
  height: 1.5rem;
}

.team-card .label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card .bio-placeholder {
  margin: 1.5rem 0;
  flex: 1;
}

.team-card .bio-placeholder .line {
  height: 1rem;
  background-color: #f1f5f9;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.team-card .bio-placeholder .line:last-child {
  width: 83%;
}

/* Publications Page */
.publications-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
}

.publications-content {
  text-align: center;
  padding: 1.5rem;
}

.publications-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.publications-content p {
  font-size: 1.25rem;
  color: var(--color-primary);
  max-width: 42rem;
  margin: 0 auto;
}

/* Career Page */

/* Career Hero */
.career-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .career-hero {
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .career-hero {
    padding: 10rem 0 3rem;
  }
}

.career-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.career-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 1rem;
}

.career-hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .career-hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .career-hero-content h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .career-hero-content h1 {
    font-size: 4rem;
  }
}

.career-hero-content h1 span {
  color: var(--color-secondary);
}

.career-hero-content:has(p) {
  margin-top: -2rem;
}

.career-hero-content h1 + p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Career Intro - deprecated, kept for reference */
.career-intro-content p {
  font-size: 1.125rem;
  color: var(--color-dark);
  line-height: 1.7;
  opacity: 0.8;
}

/* Career Form Section */
.career-form-section {
  background-color: var(--color-light);
  padding: 4rem 0;
}

.career-form-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

@media (min-width: 768px) {
  .career-form-wrapper {
    padding: 3rem;
  }
}

.career-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.career-form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.career-form-header p {
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.8;
}

.career-form .form-section {
  margin-bottom: 2rem;
}

.career-form .form-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
}

.career-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .career-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.career-form .form-group {
  margin-bottom: 0;
}

.career-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Career CTA */
.career-cta {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  padding: 4rem 0;
}

.career-cta .cta-content {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.career-cta .cta-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .career-cta .cta-content h2 {
    font-size: 2rem;
  }
}

.career-cta .cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.career-cta .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .career-cta .cta-buttons {
    flex-direction: row;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(7, 80, 85, 0.2);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(7, 80, 85, 0.1);
}

.form-group textarea {
  resize: none;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed rgba(7, 80, 85, 0.3);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.file-upload:hover {
  border-color: var(--color-primary);
  background-color: var(--color-light);
}

.file-upload.dragover,
.file-upload.drag-over {
  border-color: var(--color-primary);
  background-color: rgba(7, 80, 85, 0.05);
}

.file-upload.file-selected {
  border-color: #10b981;
  border-style: solid;
}

.file-upload.file-selected > svg {
  color: #10b981;
}

.file-remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.file-remove-btn svg {
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 !important;
  color: #666;
}

.file-remove-btn:hover {
  background-color: #ef4444;
}

.file-remove-btn:hover svg {
  color: white;
}

.file-upload.file-selected .file-remove-btn {
  display: flex;
}

.file-upload svg {
  width: 3rem;
  height: 3rem;
  color: var(--color-primary);
  margin: 0 auto 1rem;
}

.file-upload p {
  color: var(--color-dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.file-upload .hint,
.file-upload-hint {
  font-size: 0.875rem;
  color: rgba(7, 80, 85, 0.7);
}

.file-upload .formats,
.file-upload-formats {
  font-size: 0.75rem;
  color: rgba(7, 80, 85, 0.6);
  margin-top: 1rem;
}

.file-upload-text {
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.file-upload input[type="file"] {
  display: none;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-light);
  border-radius: 0.5rem;
  padding: 1rem;
}

.file-info-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-info svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-primary);
}

.file-info .filename {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark);
}

.file-info .filesize {
  font-size: 0.75rem;
  color: rgba(7, 80, 85, 0.7);
}

.file-info .remove-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s;
}

.file-info .remove-btn:hover {
  color: #dc2626;
}

.submit-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

/* Contact Page */
.contact-intro {
  background-color: var(--color-white);
  padding: 5rem 0;
}

.contact-intro-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.contact-intro h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-intro h1 {
    font-size: 3.75rem;
  }
}

.contact-intro p {
  font-size: 1.125rem;
  color: var(--color-primary);
  line-height: 1.7;
}

.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 84rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.contact-info > p {
  color: var(--color-primary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-white);
}

.contact-info-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 1.125rem;
  color: var(--color-primary);
  line-height: 1.6;
}

.contact-form-wrapper {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

/* Handle Quill p tags inside h2 */
.contact-form-wrapper h2 p {
  margin: 0;
  display: inline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Map Section */
.map-section {
  padding-bottom: 0;
}

.map-wrapper {
  max-width: 84rem;
  margin: 0 auto;
}

.map-wrapper h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.map-placeholder {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.map-placeholder-inner {
  width: 100%;
  height: 31.25rem;
  background: linear-gradient(to bottom right, rgba(7, 80, 85, 0.1), rgba(10, 107, 114, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-content {
  text-align: center;
}

.map-placeholder-content svg {
  width: 4rem;
  height: 4rem;
  color: var(--color-primary);
  margin: 0 auto 1rem;
}

.map-placeholder-content p {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1.125rem;
}

.map-placeholder-content .address {
  color: var(--color-primary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
  transition: color 0.3s;
}

/* White mobile menu button only on home page with transparent header */
.header.header-transparent .mobile-menu-btn svg {
  color: var(--color-white);
}

.header.header-transparent.scrolled .mobile-menu-btn svg {
  color: var(--color-primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(22, 35, 43, 0.5);
  z-index: 995;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu - Slide from Right */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background-color: var(--color-light);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
}

@media (min-width: 768px) {
  .mobile-menu-header {
    height: 5rem;
  }
}

.mobile-menu-header .logo img {
  height: 3.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .mobile-menu-header .logo img {
    height: 4.5rem;
  }
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.mobile-menu-close:hover {
  background-color: rgba(7, 80, 85, 0.1);
}

.mobile-menu-close svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
}

/* Mobile Menu Links */
.mobile-menu-links {
  flex: 1;
  padding: 1rem;
}

.mobile-menu-links a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.75rem;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.15s ease;
  margin-bottom: 0.25rem;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu.open .mobile-menu-links a {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation for menu items */
.mobile-menu.open .mobile-menu-links a:nth-child(1) { transition-delay: 0.1s, 0.1s, 0s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { transition-delay: 0.2s, 0.2s, 0s; }
.mobile-menu.open .mobile-menu-links a:nth-child(4) { transition-delay: 0.25s, 0.25s, 0s; }
.mobile-menu.open .mobile-menu-links a:nth-child(5) { transition-delay: 0.3s, 0.3s, 0s; }
.mobile-menu.open .mobile-menu-links a:nth-child(6) { transition-delay: 0.35s, 0.35s, 0s; }

.mobile-menu-links a:hover {
  background-color: rgba(7, 80, 85, 0.1);
}

.mobile-menu-links a.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(7, 80, 85, 0.1);
}

.mobile-menu-footer .btn {
  width: 100%;
  justify-content: center;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.mt-3 {
  margin-top: 3rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */

/* Wider container for About page */
.about-section .container,
.about-intro .container,
.about-approach .container {
  max-width: 1600px;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .about-section .container,
  .about-intro .container,
  .about-approach .container {
    padding: 0 4rem;
  }
}

@media (min-width: 1400px) {
  .about-section .container,
  .about-intro .container,
  .about-approach .container {
    padding: 0 5rem;
  }
}

/* About Hero */
.about-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  overflow: hidden;
  padding: 8rem 0 2rem;
}

@media (min-width: 768px) {
  .about-hero {
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .about-hero {
    padding: 10rem 0 3rem;
  }
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.about-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  padding: 1rem;
}

.about-hero-content h1 {
  margin-bottom: 0;
}

/* About Intro Section */
.about-intro {
  background-color: var(--color-primary);
  padding: 1.5rem 0;
  text-align: center;
}

.about-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .about-intro p {
    font-size: 1rem;
  }
}

.about-hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .about-hero-description {
    font-size: 1.125rem;
  }
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 139, 5, 0.2);
  color: var(--color-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.about-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
  line-height: 1.2;
}

.about-hero h1 span {
  color: var(--color-secondary);
}

@media (min-width: 640px) {
  .about-hero h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .about-hero h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .about-hero h1 {
    font-size: 4rem;
  }
}

.about-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .about-hero p {
    font-size: 1.25rem;
  }
}

.about-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.about-hero-scroll:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.about-hero-scroll svg {
  width: 24px;
  height: 24px;
}

/* Section Badge */
.section-badge {
  display: inline-block;
  background-color: rgba(255, 139, 5, 0.1);
  color: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* About Intro */
.about-intro {
  background-color: var(--color-white);
  padding: 3rem 0;
  position: relative;
  z-index: 20;
}

@media (min-width: 768px) {
  .about-intro {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .about-intro {
    padding: 5rem 0;
  }
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 1400px) {
  .intro-content {
    max-width: 1000px;
  }
}

.intro-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .intro-lead {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .intro-lead {
    font-size: 1.5rem;
  }
}

.intro-content p {
  font-size: 1rem;
  color: var(--color-dark);
  opacity: 0.85;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .intro-content p {
    font-size: 1.125rem;
  }
}

/* About Sections */
.about-section {
  padding: 3rem 0;
  position: relative;
}

/* Background overlay for custom colors with opacity */
.section-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.about-section > .container,
.about-approach > .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .about-section {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .about-section {
    padding: 5rem 0;
  }
}

.about-section-light {
  background-color: var(--color-light);
}

.about-section-white {
  background-color: var(--color-white);
}

.about-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-section-grid {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.about-section-grid.reverse {
  direction: ltr;
}

@media (min-width: 1024px) {
  .about-section-grid.reverse {
    grid-template-columns: 2fr 1fr;
  }

  .about-section-grid.reverse .about-section-header {
    order: 2;
  }

  .about-section-grid.reverse .about-section-content {
    order: 1;
  }
}

/* Grid with images */
.about-section-grid.with-image {
  align-items: center;
}

/* Mobile: Text always comes first, image second */
.about-section-grid.with-image .about-section-visual {
  order: 2;
  margin-top: 1rem;
}

.about-section-grid.with-image .about-section-text {
  order: 1;
}

/* Tablet and up - side by side layout */
@media (min-width: 768px) {
  .about-section-grid.with-image {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  /* Reset order - visual first, text second */
  .about-section-grid.with-image .about-section-visual {
    order: 1;
    max-width: none;
    margin: 0;
  }

  .about-section-grid.with-image .about-section-text {
    order: 2;
  }

  .about-section-grid.with-image.reverse {
    grid-template-columns: 1fr 1fr;
  }

  .about-section-grid.with-image.reverse .about-section-visual {
    order: 2;
  }

  .about-section-grid.with-image.reverse .about-section-text {
    order: 1;
  }
}

/* Desktop - larger gap */
@media (min-width: 1024px) {
  .about-section-grid.with-image {
    gap: 5rem;
  }
}

/* Large screens - even more space */
@media (min-width: 1400px) {
  .about-section-grid.with-image {
    gap: 6rem;
  }
}

/* Section Image */
.about-section-visual {
  position: relative;
}

.section-image {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .section-image {
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  }
}

.section-image img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

@media (min-width: 768px) {
  .section-image img {
    max-height: 380px;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .section-image img {
    max-height: 420px;
  }
}

@media (min-width: 1400px) {
  .section-image img {
    max-height: 480px;
  }
}

.section-image:hover img {
  transform: scale(1.03);
}

.section-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(7, 80, 85, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Section Text */
.about-section-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-section-text h2 {
    font-size: 2.25rem;
  }
}

.about-section-text p {
  font-size: 1.0625rem;
  color: var(--color-dark);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-section-text p:last-child {
  margin-bottom: 0;
}

.about-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .about-section-header h2 {
    font-size: 2.25rem;
  }
}

.about-section-content p {
  font-size: 1.0625rem;
  color: var(--color-dark);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-section-content p:last-child {
  margin-bottom: 0;
}

/* About Stats */
.about-stats {
  background-color: var(--color-white);
  padding: 4rem 0;
  margin-top: -4rem;
  position: relative;
  z-index: 20;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  background-color: var(--color-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(7, 80, 85, 0.1);
}

.stat-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 139, 5, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-secondary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.8;
}

/* About Story */
.about-story {
  background-color: var(--color-light);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.story-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .story-content h2 {
    font-size: 2.5rem;
  }
}

.story-content p {
  color: var(--color-dark);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.story-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.highlight-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
}

.highlight-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.story-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.story-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(7, 80, 85, 0.1) 0%, transparent 100%);
}

/* About Values */
.about-values {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.about-values .section-header {
  margin-bottom: 3rem;
}

.about-values .section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.about-values .section-header p {
  color: var(--color-dark);
  opacity: 0.7;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(7, 80, 85, 0.1);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-dark);
  opacity: 0.75;
  line-height: 1.6;
}

/* About Approach */
.about-approach {
  background-color: var(--color-light);
  position: relative;
}

/* Override background for approach sections with light/white classes */
.about-approach.about-section-light {
  background-color: var(--color-light);
}

.about-approach.about-section-white {
  background-color: var(--color-white);
}

.approach-wrapper {
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .approach-wrapper {
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .approach-wrapper {
    border-radius: 1.5rem;
    padding: 3rem 3rem;
  }
}

@media (min-width: 1400px) {
  .approach-wrapper {
    padding: 3.5rem 4rem;
  }
}

.approach-header {
  text-align: center;
  margin-bottom: 2rem;
}

.approach-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
}

.approach-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .approach-tabs {
    gap: 1rem;
    margin-bottom: 3rem;
  }
}

.approach-tab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-light);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .approach-tab {
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.approach-tab svg {
  width: 20px;
  height: 20px;
}

.approach-tab:hover {
  background-color: rgba(255, 139, 5, 0.1);
}

.approach-tab.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.approach-tab.active svg {
  color: var(--color-white);
}

.approach-panel {
  display: none;
}

.approach-panel.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

@media (min-width: 1024px) {
  .approach-panel.active {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1400px) {
  .approach-panel.active {
    gap: 4rem;
  }
}

.panel-content {
  order: 1;
}

@media (min-width: 1024px) {
  .panel-content {
    order: unset;
  }
}

.panel-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .panel-content h3 {
    font-size: 1.5rem;
  }
}

.panel-content p {
  color: var(--color-dark);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--color-dark);
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
}

.panel-list li:last-child {
  border-bottom: none;
}

.panel-list li > i,
.panel-list svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--color-secondary);
  margin-top: 0.2em;
  flex-shrink: 0;
}

.panel-list li p {
  margin: 0;
  line-height: 1.5;
}

.panel-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  order: 2;
  line-height: 0;
}

@media (min-width: 768px) {
  .panel-image {
    border-radius: 1rem;
  }
}

@media (min-width: 1024px) {
  .panel-image {
    order: unset;
  }
}

.panel-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .panel-image img {
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .panel-image img {
    height: 300px;
  }
}

/* About International */
.about-international {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.international-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .international-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.international-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.international-content > p {
  color: var(--color-dark);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.international-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 139, 5, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
}

.feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.7;
}

.international-map {
  position: relative;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  border-radius: 1rem;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  gap: 1rem;
}

.map-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.8;
}

.map-placeholder span {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* About CTA */
.about-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .about-cta {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .about-cta {
    padding: 5rem 0;
  }
}

.about-cta .cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .about-cta h2 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .about-cta h2 {
    font-size: 2.5rem;
  }
}

.about-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-buttons .btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* Fade animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for team cards */
.team-card.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.team-card.fade-up.visible {
  animation: teamCardFadeIn 0.8s ease-out forwards;
}

.team-card.fade-up:nth-child(1).visible { animation-delay: 0.15s; }
.team-card.fade-up:nth-child(2).visible { animation-delay: 0.4s; }
.team-card.fade-up:nth-child(3).visible { animation-delay: 0.65s; }
.team-card.fade-up:nth-child(4).visible { animation-delay: 0.9s; }
.team-card.fade-up:nth-child(5).visible { animation-delay: 1.15s; }
.team-card.fade-up:nth-child(6).visible { animation-delay: 1.4s; }

@keyframes teamCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for practice overview cards */
.practice-overview-card.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.practice-overview-card.fade-up.visible {
  animation: teamCardFadeIn 0.8s ease-out forwards;
}

.practice-overview-card.fade-up:nth-child(1).visible { animation-delay: 0.1s; }
.practice-overview-card.fade-up:nth-child(2).visible { animation-delay: 0.2s; }
.practice-overview-card.fade-up:nth-child(3).visible { animation-delay: 0.3s; }
.practice-overview-card.fade-up:nth-child(4).visible { animation-delay: 0.4s; }
.practice-overview-card.fade-up:nth-child(5).visible { animation-delay: 0.5s; }
.practice-overview-card.fade-up:nth-child(6).visible { animation-delay: 0.6s; }
.practice-overview-card.fade-up:nth-child(7).visible { animation-delay: 0.7s; }
.practice-overview-card.fade-up:nth-child(8).visible { animation-delay: 0.8s; }
.practice-overview-card.fade-up:nth-child(9).visible { animation-delay: 0.9s; }

/* Staggered animation for publication cards */
.publication-card.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.publication-card.fade-up.visible {
  animation: teamCardFadeIn 0.8s ease-out forwards;
}

.publication-card.fade-up:nth-child(1).visible { animation-delay: 0.1s; }
.publication-card.fade-up:nth-child(2).visible { animation-delay: 0.2s; }
.publication-card.fade-up:nth-child(3).visible { animation-delay: 0.3s; }
.publication-card.fade-up:nth-child(4).visible { animation-delay: 0.4s; }
.publication-card.fade-up:nth-child(5).visible { animation-delay: 0.5s; }
.publication-card.fade-up:nth-child(6).visible { animation-delay: 0.6s; }
.publication-card.fade-up:nth-child(7).visible { animation-delay: 0.7s; }
.publication-card.fade-up:nth-child(8).visible { animation-delay: 0.8s; }
.publication-card.fade-up:nth-child(9).visible { animation-delay: 0.9s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   TEAM PAGE STYLES
   ========================================== */

/* Team Hero */
.team-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  overflow: hidden;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .team-hero {
    min-height: 65vh;
  }
}

@media (min-width: 1024px) {
  .team-hero {
    min-height: 70vh;
  }
}

.team-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.team-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.team-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.team-hero h1 span {
  color: var(--color-secondary);
}

@media (min-width: 640px) {
  .team-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 768px) {
  .team-hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .team-hero h1 {
    font-size: 4rem;
  }
}

.team-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .team-hero p {
    font-size: 1.25rem;
  }
}

.team-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.team-hero-scroll:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.team-hero-scroll svg {
  width: 24px;
  height: 24px;
}

/* Compact Team Hero */
.team-hero.team-hero-compact {
  min-height: auto;
  padding: 8rem 0 2rem;
}

@media (min-width: 768px) {
  .team-hero.team-hero-compact {
    min-height: auto;
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .team-hero.team-hero-compact {
    min-height: auto;
    padding: 10rem 0 3rem;
  }
}

.team-hero-compact .team-hero-content {
  padding: 1rem;
}

.team-hero-compact h1 {
  margin-bottom: 0.5rem;
}

.team-hero-compact .hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.team-hero-compact .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.team-hero-compact .back-link:hover {
  color: var(--color-white);
}

.team-hero-compact .back-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.team-hero-compact .back-link:hover svg {
  transform: translateX(-4px);
}

/* Team Intro */
.team-intro {
  background-color: var(--color-white);
  padding: 3rem 0;
  position: relative;
  z-index: 20;
}

@media (min-width: 768px) {
  .team-intro {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .team-intro {
    padding: 5rem 0;
  }
}

/* Team Section */
.team-section {
  background-color: var(--color-light);
  padding: 3rem 0 5rem;
}

@media (min-width: 768px) {
  .team-section {
    padding: 4rem 0 6rem;
  }
}

/* Updated Team Grid for new cards - More responsive */
.team-section .team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 400px) {
  .team-section .team-grid {
    gap: 1rem;
  }
}

@media (min-width: 560px) {
  .team-section .team-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 800px) {
  .team-section .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .team-section .team-grid {
    gap: 2rem;
  }
}

/* Team Card Container */
.team-section .team-card {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .team-section .team-card {
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
}

@media (min-width: 768px) {
  .team-section .team-card {
    border-radius: 1rem;
  }
}

.team-section .team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .team-section .team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  }
}

@media (min-width: 768px) {
  .team-section .team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Team Card Link Wrapper */
.team-card-link-wrapper {
  display: block;
  text-decoration: none;
  flex: 1;
}

/* Team Card Image */
.team-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

@media (min-width: 400px) {
  .team-card-image {
    aspect-ratio: 3 / 4;
  }
}

@media (min-width: 640px) {
  .team-card-image {
    aspect-ratio: 4 / 5;
  }
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-section .team-card:hover .team-card-image img {
  transform: scale(1.05);
}

.team-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 80, 85, 0.9) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (min-width: 480px) {
  .team-card-overlay {
    padding: 1rem;
  }
}

@media (min-width: 640px) {
  .team-card-overlay {
    padding: 1.5rem;
  }
}

.team-section .team-card:hover .team-card-overlay {
  opacity: 1;
}

.view-profile {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.65rem;
  background-color: var(--color-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.view-profile:hover {
  background-color: var(--color-secondary);
}

@media (min-width: 400px) {
  .view-profile {
    font-size: 0.7rem;
    padding: 0.5rem 0.875rem;
  }
}

@media (min-width: 560px) {
  .view-profile {
    font-size: 0.8rem;
    gap: 0.375rem;
    padding: 0.625rem 1.125rem;
  }
}

@media (min-width: 768px) {
  .view-profile {
    font-size: 0.9rem;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
  }
}

.team-section .team-card:hover .view-profile {
  transform: translateY(0);
}

.view-profile svg {
  width: 12px;
  height: 12px;
}

@media (min-width: 560px) {
  .view-profile svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 768px) {
  .view-profile svg {
    width: 18px;
    height: 18px;
  }
}

/* Team Card Info */
.team-card-info {
  padding: 0.625rem;
}

@media (min-width: 400px) {
  .team-card-info {
    padding: 0.875rem;
  }
}

@media (min-width: 560px) {
  .team-card-info {
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .team-card-info {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .team-card-info {
    padding: 1.5rem;
  }
}

.team-card-info h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.125rem;
}

@media (min-width: 400px) {
  .team-card-info h3 {
    font-size: 0.9rem;
  }
}

@media (min-width: 560px) {
  .team-card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
}

@media (min-width: 768px) {
  .team-card-info h3 {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .team-card-info h3 {
    font-size: 1.25rem;
  }
}

.team-card-title {
  font-size: 0.65rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (min-width: 400px) {
  .team-card-title {
    font-size: 0.7rem;
  }
}

@media (min-width: 560px) {
  .team-card-title {
    font-size: 0.75rem;
    margin-bottom: 0.625rem;
  }
}

@media (min-width: 768px) {
  .team-card-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .team-card-title {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

.team-card-bio {
  font-size: 0.7rem;
  color: var(--color-dark);
  opacity: 0.8;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 400px) {
  .team-card-bio {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

@media (min-width: 560px) {
  .team-card-bio {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (min-width: 768px) {
  .team-card-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .team-card-bio {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

.team-card-view {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.65rem;
  transition: color 0.3s ease;
}

@media (min-width: 400px) {
  .team-card-view {
    font-size: 0.7rem;
  }
}

@media (min-width: 560px) {
  .team-card-view {
    font-size: 0.75rem;
    gap: 0.375rem;
  }
}

@media (min-width: 768px) {
  .team-card-view {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .team-card-view {
    font-size: 0.875rem;
  }
}

.team-section .team-card:hover .team-card-view {
  color: var(--color-secondary);
}

.team-card-view svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

@media (min-width: 560px) {
  .team-card-view svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 768px) {
  .team-card-view svg {
    width: 16px;
    height: 16px;
  }
}

.team-section .team-card:hover .team-card-view svg {
  transform: translateX(4px);
}

/* Team Card Actions - LinkedIn Button */
.team-card-actions {
  padding: 0 0.625rem 0.625rem;
  border-top: 1px solid rgba(7, 80, 85, 0.08);
  margin-top: auto;
}

@media (min-width: 400px) {
  .team-card-actions {
    padding: 0 0.875rem 0.875rem;
  }
}

@media (min-width: 560px) {
  .team-card-actions {
    padding: 0 1rem 1rem;
  }
}

@media (min-width: 768px) {
  .team-card-actions {
    padding: 0 1.25rem 1.25rem;
    border-top-color: rgba(7, 80, 85, 0.1);
  }
}

@media (min-width: 1024px) {
  .team-card-actions {
    padding: 0 1.5rem 1.5rem;
  }
}

.team-linkedin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.625rem;
  background-color: #0077b5;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

@media (min-width: 400px) {
  .team-linkedin-btn {
    font-size: 0.7rem;
    gap: 0.375rem;
    margin-top: 0.75rem;
  }
}

@media (min-width: 560px) {
  .team-linkedin-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
  }
}

@media (min-width: 768px) {
  .team-linkedin-btn {
    font-size: 0.8rem;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .team-linkedin-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

.team-linkedin-btn:hover {
  background-color: #006399;
  transform: translateY(-2px);
}

.team-linkedin-btn svg {
  width: 12px;
  height: 12px;
}

@media (min-width: 560px) {
  .team-linkedin-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 768px) {
  .team-linkedin-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Team CTA */
.team-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .team-cta {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .team-cta {
    padding: 5rem 0;
  }
}

.team-cta .cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.team-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .team-cta h2 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .team-cta h2 {
    font-size: 2.5rem;
  }
}

.team-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ==========================================
   TEAM MEMBER DETAIL PAGE STYLES
   ========================================== */

/* Member Hero */
.member-hero {
  position: relative;
  padding: 8rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
}

@media (min-width: 768px) {
  .member-hero {
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .member-hero {
    padding: 10rem 0 3rem;
  }
}

.member-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.member-hero-content {
  position: relative;
  z-index: 10;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-secondary);
}

.back-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Member Profile Section */
.member-profile {
  background-color: var(--color-white);
  padding: 4rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .member-profile {
    padding: 5rem 0;
  }
}

.member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .member-grid {
    grid-template-columns: 300px 1fr;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .member-grid {
    grid-template-columns: 350px 1fr;
  }
}

/* Member Image */
.member-image-wrapper {
  position: relative;
}

@media (min-width: 768px) {
  .member-image-wrapper {
    position: sticky;
    top: 6rem;
  }
}

.member-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-top: -4rem;
}

.member-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.member-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.member-social .linkedin-btn,
.member-social .email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.member-social .linkedin-btn {
  background-color: #0077b5;
  color: var(--color-white);
}

.member-social .linkedin-btn:hover {
  background-color: #006399;
}

.member-social .email-btn {
  background-color: var(--color-light);
  color: var(--color-primary);
  border: 1px solid rgba(7, 80, 85, 0.2);
}

.member-social .email-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Member Details */
.member-details {
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .member-details {
    padding-top: 0;
  }
}

.member-badge {
  display: inline-block;
  background-color: rgba(255, 139, 5, 0.1);
  color: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-details h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .member-details h1 {
    font-size: 2.75rem;
  }
}

.member-title {
  font-size: 1.125rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Quill p tag reset for inline elements */
.member-title p,
.team-card-title p,
.team-card-bio p,
.other-member-title p,
.expertise-item span p {
  margin: 0;
  padding: 0;
}

.member-bio,
.member-expertise,
.member-education,
.member-languages {
  margin-bottom: 2.5rem;
}

.member-details h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
}

.member-bio p {
  font-size: 1rem;
  color: var(--color-dark);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.member-bio p:last-child {
  margin-bottom: 0;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-light);
  padding: 1rem;
  border-radius: 0.75rem;
}

.expertise-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-secondary);
}

.expertise-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
}

/* Education List */
.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--color-light);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.education-list li:last-child {
  margin-bottom: 0;
}

.education-list svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.education-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.education-list span {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.7;
}

/* Language Tags */
.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.language-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.language-tag svg,
.language-tag i {
  flex-shrink: 0;
}

/* Other Members Section */
.other-members {
  background-color: var(--color-light);
  padding: 4rem 0;
}

.other-members h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.other-members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .other-members-grid {
    gap: 2rem;
  }
}

.other-member-card {
  display: block;
  text-decoration: none;
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.other-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.other-member-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.other-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.other-member-card:hover .other-member-image img {
  transform: scale(1.05);
}

.other-member-info {
  padding: 1rem;
  text-align: center;
}

.other-member-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.other-member-info p {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 500;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Hero */
.contact-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-hero {
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-hero {
    padding: 10rem 0 3rem;
  }
}

.contact-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 1rem;
  margin: 0 auto;
}

.contact-hero-content .hero-badge {
  display: inline-block;
  background-color: rgba(199, 157, 94, 0.2);
  color: var(--color-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.contact-hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .contact-hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .contact-hero-content h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .contact-hero-content h1 {
    font-size: 4rem;
  }
}

.contact-hero-content h1 span {
  color: var(--color-secondary);
}

/* Handle Quill p tags inside headings */
.contact-hero-content h1 p {
  margin: 0;
  display: inline;
}

.contact-hero-content h1 + p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Contact Main Section */
.contact-main {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

/* Contact Info */
.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

/* Handle Quill p tags inside h2 */
.contact-info h2 p {
  margin: 0;
  display: inline;
}

.contact-info > p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Info Description - Quill HTML content */
.contact-info .info-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-info .info-description p {
  margin: 0 0 0.5rem 0;
}

.contact-info .info-description p:last-child {
  margin-bottom: 0;
}

/* Contact Info Grid - 2x2 on mobile */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 992px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.contact-info-grid .contact-info-item {
  padding: 0.5rem 0;
  border-bottom: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .contact-info-grid .contact-info-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 1rem;
  }

  .contact-info-grid .contact-info-item:last-child {
    border-bottom: none;
  }
}

.contact-info-grid .contact-info-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

@media (min-width: 992px) {
  .contact-info-grid .contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

.contact-info-grid .contact-info-item h3 {
  font-size: 0.75rem;
}

.contact-info-grid .contact-info-item p {
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (min-width: 992px) {
  .contact-info-grid .contact-info-item h3 {
    font-size: 0.875rem;
  }

  .contact-info-grid .contact-info-item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info-item:last-of-type {
  border-bottom: none;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f1f2e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.contact-info-icon i {
  width: 22px;
  height: 22px;
}

.contact-info-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* Handle multiple p tags from Quill */
.contact-info-item p + p {
  margin-top: 0.25rem;
}

.contact-info-item a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--color-secondary);
}

/* Contact LinkedIn Button */
.contact-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.875rem 1.5rem;
  background-color: #0077b5;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.contact-linkedin-btn:hover {
  background-color: #006097;
  transform: translateY(-2px);
  color: var(--color-white);
}

.contact-linkedin-btn i {
  width: 20px;
  height: 20px;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--color-light);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

/* Handle Quill p tags inside h2 */
.contact-form-wrapper h2 p {
  margin: 0;
  display: inline;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .contact-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--color-white);
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(26, 54, 80, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form textarea {
  resize: none;
  min-height: 100px;
}

/* Checkbox Styles */
.form-checkbox {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background-color: var(--color-white);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-label:hover .checkmark {
  border-color: var(--color-primary);
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--color-primary) !important;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.checkbox-text a *,
.contact-form .checkbox-text a,
.contact-form .checkbox-text a * {
  color: var(--color-primary) !important;
  transition: color 0.2s ease;
}

.checkbox-text a:hover,
.checkbox-text a:hover *,
.contact-form .checkbox-text a:hover,
.contact-form .checkbox-text a:hover * {
  color: var(--color-secondary) !important;
  text-decoration-color: var(--color-secondary);
}

.checkbox-text a p {
  margin: 0;
  display: inline;
}

.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Schedule Section */
.schedule-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-light) 0%, var(--color-white) 100%);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .schedule-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
  }
}

.schedule-info .section-badge {
  display: inline-block;
  background-color: rgba(199, 157, 94, 0.15);
  color: var(--color-secondary);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.schedule-info h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.schedule-info > p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.schedule-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--color-dark);
  font-size: 0.85rem;
}

.schedule-features li i {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

/* Custom Calendar */
.schedule-calendar {
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.custom-calendar {
  padding: 1rem;
}

/* Calendar Navigation */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0;
}

.calendar-nav h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.cal-nav-btn {
  width: 28px;
  height: 28px;
  border: none;
  background-color: var(--color-light);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: all 0.2s ease;
}

.cal-nav-btn:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-nav-btn i {
  width: 14px;
  height: 14px;
}

/* Calendar Grid */
.calendar-grid {
  margin-bottom: 0.5rem;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.2rem;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 0.2rem 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 5px;
  color: var(--color-dark);
  transition: all 0.2s ease;
}

.cal-day.empty {
  background: transparent;
}

.cal-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.cal-day.weekend {
  color: #cbd5e1;
}

.cal-day.weekend.available {
  color: var(--color-dark);
}

.cal-day.available {
  cursor: pointer;
  background-color: var(--color-light);
}

.cal-day.available:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cal-day.selected {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cal-day.weekend.selected {
  color: var(--color-white);
}

/* Time Slots */
.time-slots-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              padding-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-slots-wrapper.visible {
  max-height: 280px;
  opacity: 1;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow-y: auto;
}

.time-slots-header h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.time-slots-header span {
  color: var(--color-primary);
  font-weight: 700;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

@media (max-width: 480px) {
  .time-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.time-slot {
  padding: 0.4rem 0.2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--color-white);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:hover {
  border-color: var(--color-primary);
  background-color: rgba(26, 54, 80, 0.05);
}

.time-slot.selected {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Calendar Confirmation */
.calendar-confirm {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.confirm-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.confirm-details > i {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.confirm-label {
  font-size: 0.65rem;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.confirm-datetime {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-dark);
}

.schedule-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Map Section */
.map-section {
  padding: 4rem 0 5rem;
  background-color: var(--color-white);
}

.map-section.no-header {
  padding-top: 0;
}

/* Contact main ile map arasındaki boşluğu azalt (header yoksa) */
.contact-main.map-follows-no-header {
  padding-bottom: 2rem;
}

.map-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.map-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

/* Handle Quill p tags inside h2 */
.map-header h2 p {
  margin: 0;
  display: inline;
}

.map-header p {
  color: #64748b;
  font-size: 1rem;
}

/* Map Description - Quill HTML content */
.map-header .map-description {
  color: #64748b;
  font-size: 1rem;
}

.map-header .map-description p {
  margin: 0 0 0.5rem 0;
}

.map-header .map-description p:last-child {
  margin-bottom: 0;
}

.map-container {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.map-container iframe {
  display: block;
  border-radius: 1.5rem;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-hero {
    min-height: auto;
    padding: 8rem 0 2rem;
  }

  .contact-main {
    padding: 3rem 0;
  }

  .contact-form-wrapper {
    padding: 1.75rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }

  .contact-form .form-group {
    margin-bottom: 0.75rem;
  }

  .contact-form label {
    font-size: 0.825rem;
    margin-bottom: 0.4rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }

  .contact-form textarea {
    min-height: 90px;
  }

  .schedule-section {
    padding: 3rem 0;
  }

  .time-slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .contact-info-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact-form-wrapper {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .contact-form .form-group {
    margin-bottom: 0.5rem;
  }

  .contact-form label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }

  .contact-form textarea {
    min-height: 80px;
  }

  .contact-form .form-checkbox {
    margin-bottom: 0.75rem;
  }

  .contact-form .checkbox-text {
    font-size: 0.75rem;
  }

  /* Schedule Calendar - Extra Compact for small mobile */
  .schedule-info .section-badge {
    font-size: 0.6rem;
    padding: 0.3rem 0.625rem;
  }

  .schedule-info h2 {
    font-size: 1.25rem;
  }

  .schedule-info > p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .schedule-features li {
    font-size: 0.75rem;
    padding: 0.375rem 0;
  }

  .schedule-features li i {
    width: 16px;
    height: 16px;
  }

  .custom-calendar {
    padding: 0.75rem;
  }

  .calendar-nav h3 {
    font-size: 0.8rem;
  }

  .cal-nav-btn {
    width: 24px;
    height: 24px;
  }

  .cal-nav-btn i {
    width: 12px;
    height: 12px;
  }

  .cal-weekdays span {
    font-size: 0.5rem;
  }

  .cal-day {
    font-size: 0.65rem;
    border-radius: 4px;
  }

  .time-slot {
    padding: 0.3rem 0.1rem;
    font-size: 0.65rem;
  }

  .time-slots-header h4 {
    font-size: 0.7rem;
  }

  .confirm-details > i {
    width: 16px;
    height: 16px;
  }

  .confirm-label {
    font-size: 0.55rem;
  }

  .confirm-datetime {
    font-size: 0.7rem;
  }

  .schedule-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }

  .calendar-body {
    padding: 1.5rem 0.75rem;
  }
}

/* ==========================================
   Schedule Modal
   ========================================== */
.schedule-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.schedule-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.schedule-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.schedule-modal.active {
  transform: translateY(0);
}

.schedule-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.schedule-modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.schedule-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background-color: var(--color-light);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: all 0.2s ease;
}

.schedule-modal-close:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.schedule-modal-close i {
  width: 18px;
  height: 18px;
}

.schedule-modal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.schedule-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  width: 100%;
  align-items: start;
}

@media (max-width: 768px) {
  .schedule-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .schedule-modal-body {
    align-items: flex-start;
  }
}

.schedule-modal-calendar,
.schedule-modal-form {
  background-color: var(--color-light);
  border-radius: 0.875rem;
  padding: 1.25rem;
}

.schedule-modal-calendar {
  padding: 1rem;
}

.schedule-modal-calendar .modal-calendar-wrapper {
  padding: 0.75rem;
}

.schedule-modal-calendar .modal-section-header {
  margin-bottom: 0.75rem;
}

.schedule-modal-calendar .modal-section-header h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.schedule-modal-calendar .modal-section-header p {
  font-size: 0.75rem;
}

.schedule-modal-calendar .time-slots-wrapper.visible {
  max-height: 220px;
  padding-top: 0.5rem;
  margin-top: 0.4rem;
  overflow-y: auto;
}

.modal-section-header {
  margin-bottom: 1rem;
}

.modal-section-badge {
  display: inline-block;
  background-color: rgba(199, 157, 94, 0.15);
  color: var(--color-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.modal-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.375rem;
}

.modal-section-header h3 p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.modal-section-header p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.modal-section-header p p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.modal-calendar-wrapper {
  background-color: var(--color-white);
  border-radius: 0.625rem;
  padding: 0.875rem;
}

.modal-calendar .calendar-nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

/* Modal Form Styles */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .modal-form .form-row {
    grid-template-columns: 1fr;
  }
}

.modal-form .form-group {
  margin-bottom: 0;
}

.modal-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  font-size: 0.8rem;
  color: var(--color-dark);
  background-color: var(--color-white);
  transition: all 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 80, 0.1);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: #94a3b8;
}

.modal-form textarea {
  resize: none;
  min-height: 60px;
}

.modal-submit-btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .schedule-modal-header {
    padding: 0.875rem 1.25rem;
  }

  .schedule-modal-header h2 {
    font-size: 1rem;
  }

  .schedule-modal-body {
    padding: 1.25rem;
  }

  .schedule-modal-calendar,
  .schedule-modal-form {
    padding: 1rem;
  }

  .modal-section-header h3 {
    font-size: 1rem;
  }

  .modal-calendar-wrapper {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .schedule-modal-header {
    padding: 0.75rem 1rem;
  }

  .schedule-modal-header h2 {
    font-size: 0.9rem;
  }

  .schedule-modal-close {
    width: 32px;
    height: 32px;
  }

  .schedule-modal-close i {
    width: 16px;
    height: 16px;
  }

  .schedule-modal-body {
    padding: 1rem;
  }

  .schedule-modal-calendar,
  .schedule-modal-form {
    padding: 0.875rem;
    border-radius: 0.625rem;
  }

  .modal-section-badge {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
  }

  .modal-section-header h3 {
    font-size: 0.9rem;
  }

  .modal-section-header {
    margin-bottom: 0.75rem;
  }

  .modal-calendar-wrapper {
    padding: 0.625rem;
  }
}

/* ==========================================
   Scroll to Top Button
   ========================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top i {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }

  .scroll-to-top i {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .scroll-to-top i {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================
   HOMEPAGE SECTIONS
   ========================================== */

/* Home About Section */
.home-about {
  background-color: var(--color-white);
  padding: 4rem 0;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .home-about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .home-about-grid {
    gap: 4rem;
  }
}

.home-about-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.home-about-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.home-about-content {
  padding: 1rem 0;
}

.home-about-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .home-about-content h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .home-about-content h2 {
    font-size: 2.25rem;
  }
}

.home-about-content p {
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Home Practice Areas Section */
.home-practice {
  background-color: var(--color-light);
  padding: 4rem 0;
  overflow: hidden;
}

.home-practice .section-header {
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-practice-carousel-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
  padding: 0 3.5rem;
}

.home-practice-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0 1rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-overflow-scrolling: touch;
}

.home-practice-carousel.dragging {
  cursor: grabbing;
}

.home-practice-carousel img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.home-practice-carousel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .home-practice-carousel-wrapper {
    padding: 0 4rem;
  }

  .home-practice-carousel {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .home-practice-carousel-wrapper {
    padding: 0 5rem;
  }

  .home-practice-carousel {
    gap: 1.5rem;
  }
}

.practice-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid rgba(7, 80, 85, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: var(--color-primary);
}

.practice-carousel-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(7, 80, 85, 0.3);
}

.practice-carousel-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.practice-carousel-prev {
  left: 0.5rem;
}

.practice-carousel-next {
  right: 0.5rem;
}

/* Centered state when no scrolling needed */
.home-practice-carousel-wrapper.no-scroll {
  padding: 0 1rem;
}

.home-practice-carousel-wrapper.no-scroll .practice-carousel-arrow {
  display: none;
}

.home-practice-carousel-wrapper.no-scroll .home-practice-carousel {
  justify-content: center;
  overflow-x: visible;
  cursor: default;
}

@media (min-width: 768px) {
  .practice-carousel-prev {
    left: 1rem;
  }

  .practice-carousel-next {
    right: 1rem;
  }
}

@media (min-width: 1024px) {
  .practice-carousel-arrow {
    width: 3rem;
    height: 3rem;
  }

  .practice-carousel-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .practice-carousel-prev {
    left: 1.5rem;
  }

  .practice-carousel-next {
    right: 1.5rem;
  }
}

.home-practice-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  display: block;
  flex-shrink: 0;
  width: 200px;
  height: 260px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .home-practice-card {
    width: 240px;
    height: 300px;
    border-radius: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .home-practice-card {
    width: 260px;
    height: 340px;
  }
}

@media (min-width: 1280px) {
  .home-practice-card {
    width: 280px;
    height: 360px;
    border-radius: 1rem;
  }
}

.home-practice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.home-practice-card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.home-practice-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-practice-card:hover .home-practice-card-image img {
  transform: scale(1.05);
}

.home-practice-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 80, 85, 0.9) 0%, rgba(7, 80, 85, 0.3) 50%, transparent 100%);
  transition: opacity 0.3s ease;
}

.home-practice-card:hover .home-practice-card-overlay {
  background: linear-gradient(to top, rgba(7, 80, 85, 0.95) 0%, rgba(7, 80, 85, 0.5) 50%, rgba(7, 80, 85, 0.2) 100%);
}

.home-practice-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: var(--color-white);
  text-align: center;
}

@media (min-width: 1024px) {
  .home-practice-card-content {
    padding: 1.5rem;
  }
}

.home-practice-card-content i {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .home-practice-card-content i {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }
}

.home-practice-card-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .home-practice-card-content h3 {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .home-practice-card-content h3 {
    font-size: 1.1rem;
  }
}

/* Home Team Section */
.home-team {
  background-color: var(--color-white);
  padding: 4rem 0;
}

.home-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .home-team-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .home-team-grid {
    gap: 4rem;
  }
}

.home-team-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .home-team-content h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .home-team-content h2 {
    font-size: 2.25rem;
  }
}

.home-team-content p {
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.home-team-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-team-image {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3/4;
}

.home-team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-team-image:hover img {
  transform: scale(1.05);
}

/* Home Career Section */
.home-career {
  background-color: var(--color-light);
  padding: 3rem 0;
}

.home-career-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .home-career-inner {
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
  }
}

.home-career-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.home-career-content p {
  color: var(--color-gray);
  margin: 0;
  font-size: 0.95rem;
}

/* Home Contact CTA Section */
.home-contact {
  background-color: var(--color-light);
  padding: 4rem 0;
}

.home-contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-contact-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 3rem;
  }
}

.home-contact-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .home-contact-content h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .home-contact-content h2 {
    font-size: 2rem;
  }
}

.home-contact-content p {
  color: var(--color-gray);
  margin: 0;
  font-size: 1rem;
}

.home-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .home-contact-buttons {
    flex-direction: row;
  }
}

.home-contact-buttons .btn {
  white-space: nowrap;
}

/* Home Publications Section */
.home-publications {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.home-publications .section-header {
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-publications-carousel-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
  padding: 0 3.5rem;
}

.home-publications-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0 1rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-overflow-scrolling: touch;
}

.home-publications-carousel.dragging {
  cursor: grabbing;
}

.home-publications-carousel img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.home-publications-carousel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .home-publications-carousel-wrapper {
    padding: 0 4rem;
  }
}

@media (min-width: 1024px) {
  .home-publications-carousel-wrapper {
    padding: 0 5rem;
  }
}

.publications-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid rgba(7, 80, 85, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: var(--color-primary);
}

.publications-carousel-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(7, 80, 85, 0.3);
}

.publications-carousel-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.publications-carousel-prev {
  left: 0.5rem;
}

.publications-carousel-next {
  right: 0.5rem;
}

/* Centered state when no scrolling needed */
.home-publications-carousel-wrapper.no-scroll {
  padding: 0 1rem;
}

.home-publications-carousel-wrapper.no-scroll .publications-carousel-arrow {
  display: none;
}

.home-publications-carousel-wrapper.no-scroll .home-publications-carousel {
  justify-content: center;
  overflow-x: visible;
  cursor: default;
}

@media (min-width: 768px) {
  .publications-carousel-prev {
    left: 1rem;
  }

  .publications-carousel-next {
    right: 1rem;
  }
}

@media (min-width: 1024px) {
  .publications-carousel-arrow {
    width: 3rem;
    height: 3rem;
  }

  .publications-carousel-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.home-publication-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  width: 280px;
}

@media (min-width: 768px) {
  .home-publication-card {
    width: 320px;
  }
}

@media (min-width: 1024px) {
  .home-publication-card {
    width: 360px;
  }
}

.home-publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.home-publication-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.home-publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-publication-card:hover .home-publication-image img {
  transform: scale(1.08);
}

.home-publication-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-publication-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-publication-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-gray);
}

.home-publication-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-publication-meta i {
  width: 14px;
  height: 14px;
  color: var(--color-secondary);
}

.home-publication-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-publication-summary {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.home-publication-summary p {
  margin: 0;
}

.home-publication-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  transition: gap 0.2s ease;
}

.home-publication-link i {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.home-publication-card:hover .home-publication-link {
  gap: 0.75rem;
}

.home-publication-card:hover .home-publication-link i {
  transform: translateX(3px);
}

/* ==========================================
   PUBLICATIONS PAGE STYLES
   ========================================== */

/* Publications Hero */
.publications-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  overflow: hidden;
  padding: 8rem 0 2rem;
}

@media (min-width: 768px) {
  .publications-hero {
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .publications-hero {
    padding: 10rem 0 3rem;
  }
}

.publications-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.publications-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 1rem;
}

.publications-hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .publications-hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .publications-hero-content h1 {
    font-size: 3rem;
  }
}

.publications-hero-content h1 span {
  color: var(--color-secondary);
}

/* Publications Filter */
.publications-filter {
  background-color: var(--color-white);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
  position: sticky;
  top: 60px;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.publications-filter .container {
  padding: 0 0.75rem;
}

.filter-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .publications-filter {
    padding: 1.5rem 0;
    top: 70px;
  }

  .publications-filter .container {
    padding: 0 1rem;
  }

  .filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .publications-filter {
    padding: 2rem 0;
  }
}

/* "All" / "Tümü" Button - Highlighted Style */
.filter-btn-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark, #d46a00) 100%);
  color: var(--color-white);
  border: none;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 139, 5, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn-all:hover {
  background: linear-gradient(135deg, var(--color-secondary-dark, #d46a00) 0%, var(--color-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 139, 5, 0.4);
}

.filter-btn-all.active {
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(7, 80, 85, 0.3);
}

.filter-btn-all i {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .filter-btn-all {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* Divider between All button and category buttons */
.filter-btn-divider {
  width: 1px;
  height: 2rem;
  background-color: rgba(7, 80, 85, 0.2);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .filter-btn-divider {
    display: block;
  }
}

/* Category Buttons */
.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid rgba(7, 80, 85, 0.2);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .filter-btn {
    display: inline-flex;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
}

.filter-btn i {
  width: 1rem;
  height: 1rem;
}

.filter-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Filter Buttons Animation */
.filter-btn,
.filter-btn-all,
.filter-btn-divider {
  opacity: 0;
  transform: translateY(15px);
  animation: filterBtnFadeIn 0.4s ease-out forwards;
}

.filter-btn-all { animation-delay: 0.05s; }
.filter-btn-divider { animation-delay: 0.1s; }
.filter-btn:nth-child(3) { animation-delay: 0.15s; }
.filter-btn:nth-child(4) { animation-delay: 0.2s; }
.filter-btn:nth-child(5) { animation-delay: 0.25s; }
.filter-btn:nth-child(6) { animation-delay: 0.3s; }
.filter-btn:nth-child(7) { animation-delay: 0.35s; }

@keyframes filterBtnFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Publications Section */
.publications-section {
  padding: 3rem 0;
  background-color: var(--color-light);
}

@media (min-width: 768px) {
  .publications-section {
    padding: 4rem 0;
  }
}

/* Publications Grid */
.publications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .publications-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Publication Card */
.publication-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(7, 80, 85, 0.15);
}

.publication-card.hidden {
  display: none;
}

.publication-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.publication-card:hover .publication-image img {
  transform: scale(1.05);
}

/* Publication Overlay - Hover Effect */
.publication-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(7, 80, 85, 0.9) 0%,
    rgba(7, 80, 85, 0.6) 40%,
    rgba(7, 80, 85, 0.3) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
}

.publication-card:hover .publication-overlay {
  opacity: 1;
}

.view-publication {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .view-publication {
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
  }
}

.publication-card:hover .view-publication {
  transform: translateY(0);
  opacity: 1;
}

.view-publication:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.view-publication i {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .view-publication i {
    width: 16px;
    height: 16px;
  }
}

.publication-card:hover .view-publication i {
  transform: translateX(3px);
}

.publication-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background-color: var(--color-secondary);
  border-radius: 0.25rem;
}

.publication-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .publication-content {
    padding: 1.5rem;
  }
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.publication-date,
.publication-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-dark);
  opacity: 0.7;
}

.publication-date i,
.publication-read-time i {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-secondary);
  opacity: 1;
}

.publication-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .publication-content h3 {
    font-size: 1.1rem;
  }
}

.publication-card:hover .publication-content h3 {
  color: var(--color-primary);
}

.publication-summary {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.publication-summary p {
  margin: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s ease;
}

.read-more i {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.publication-card:hover .read-more {
  gap: 0.6rem;
}

.publication-card:hover .read-more i {
  transform: translateX(3px);
}

/* No Results */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.no-results i {
  width: 3rem;
  height: 3rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.no-results p {
  font-size: 0.95rem;
  color: var(--color-gray);
}

/* ==========================================
   PUBLICATION DETAIL PAGE STYLES
   ========================================== */

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reading-progress-container.visible {
  opacity: 1;
  visibility: visible;
}

.reading-progress-track {
  width: 4px;
  height: 200px;
  background: var(--color-light);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reading-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: 2px;
  transition: height 0.1s ease-out;
}

.reading-progress-percentage {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-white);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .reading-progress-container {
    padding: 1.5rem 0.75rem;
  }

  .reading-progress-track {
    width: 5px;
    height: 250px;
  }

  .reading-progress-percentage {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (min-width: 1200px) {
  .reading-progress-container {
    left: 1rem;
  }

  .reading-progress-track {
    height: 300px;
  }
}


/* Publication Detail Hero */
.publication-detail-hero {
  position: relative;
  padding: 8rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
}

@media (min-width: 768px) {
  .publication-detail-hero {
    padding: 9rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .publication-detail-hero {
    padding: 10rem 0 3rem;
  }
}

.publication-detail-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image is set dynamically via admin panel */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.publication-detail-hero-content {
  position: relative;
  z-index: 10;
}

.publication-detail-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.publication-detail-hero .back-link:hover {
  opacity: 0.8;
}

.publication-detail-hero .back-link i {
  width: 1.25rem;
  height: 1.25rem;
}

/* Publication Detail Section */
.publication-detail-section {
  padding: 3rem 0;
  background-color: var(--color-light);
}

@media (min-width: 768px) {
  .publication-detail-section {
    padding: 4rem 0;
  }
}

.publication-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .publication-detail-wrapper {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }

  /* Sidebar yoksa içerik tam genişlik */
  .publication-detail-wrapper.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
  }

  .publication-detail-wrapper.no-sidebar .publication-article {
    max-width: 100%;
  }
}

/* Publication Article */
.publication-article {
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.publication-article-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
}

@media (min-width: 768px) {
  .publication-article-header {
    padding: 2.5rem;
  }
}

.publication-category-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background-color: var(--color-secondary);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.publication-article-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .publication-article-header h1 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .publication-article-header h1 {
    font-size: 2.25rem;
  }
}

.publication-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.publication-article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-gray);
}

.publication-article-meta .meta-item i {
  width: 1rem;
  height: 1rem;
}

/* Featured Image */
.publication-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.publication-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Body */
.publication-article-body {
  padding: 2rem;
}

@media (min-width: 768px) {
  .publication-article-body {
    padding: 2.5rem;
  }
}

.publication-article-body .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
}

.publication-article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .publication-article-body h2 {
    font-size: 1.5rem;
  }
}

.publication-article-body p {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.publication-article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--color-light);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 0.5rem 0.5rem 0;
}

.publication-article-body blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-dark);
  margin-bottom: 0;
}

.publication-article-body ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.publication-article-body ul li {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  position: relative;
}

.publication-article-body ul li::marker {
  color: var(--color-secondary);
}

/* Author Section */
.publication-author {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  margin: 2rem 2rem 0;
  background-color: var(--color-light);
  border-radius: 1rem;
}

@media (max-width: 640px) {
  .publication-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 2rem 1.5rem 0;
  }
}

.author-image {
  flex-shrink: 0;
}

.author-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray);
  margin-bottom: 0.25rem;
}

.author-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.author-link:hover {
  gap: 0.6rem;
}

.author-link i {
  width: 1rem;
  height: 1rem;
}

/* Share Section */
.publication-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;
}

.publication-share span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-light);
  border-radius: 50%;
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.share-btn i {
  width: 1.125rem;
  height: 1.125rem;
}

.share-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.share-btn-linkedin:hover {
  background-color: #0A66C2;
  color: var(--color-white);
}

.share-btn-x:hover {
  background-color: #000;
  color: var(--color-white);
}

.share-btn-whatsapp:hover {
  background-color: #25D366;
  color: var(--color-white);
}

.share-btn-email:hover {
  background-color: #EA4335;
  color: var(--color-white);
}

.share-btn-copy:hover {
  background-color: #10B981;
  color: var(--color-white);
}

/* Sidebar */
.publication-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section {
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(7, 80, 85, 0.1);
}

/* Related Publications */
.related-publications {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.related-item:hover {
  opacity: 0.8;
}

.related-image {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-content {
  flex: 1;
  min-width: 0;
}

.related-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
}

.related-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-date {
  font-size: 0.75rem;
  color: var(--color-gray);
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: var(--color-white);
}

.sidebar-cta h3 {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Spin Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}
