
/* Add this - ensures content doesn't hide under fixed header */
body {
  overflow-x: hidden;
}

/* Mobile adjustments */
@media (max-width: 992px) {
  body {
    padding-top: 74px; 
  }

}

/* ============================================
   HEADER STYLES 
============================================ */
.main-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(255,255,255,0.4);
  transition: 0.35s ease;
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.85);
}

.main-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.main-header .container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo img {
  height: 50px;
  filter: brightness(0) invert(1);
  transition: 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav .lang {
  display: none;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 6px;
  transition: 0.3s ease;
}

nav ul li a:hover {
  color: #00b087;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: #00b087;
  transition: width 0.4s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active {
  color: #00b087;
  font-weight: 600;
}

nav ul li a.active::after {
  width: 100%;
}

/* Language Button */
.lang a {
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.8);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.1);
  transition: 0.3s;
}

.lang a:hover {
  background: #00b087;
  border-color: #00b087;
  box-shadow: 0 4px 12px rgba(0,176,135,0.4);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 25;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
/* =========================
   MOBILE HEADER
========================= */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 74px; 
    right: -100%;
    width: 100%;
    height: calc(100vh - 74px);
    background: rgba(0, 0, 0, 0.95);
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Show nav when active */
  nav.active {
    right: 0;
  }

  /* Vertical menu */
  nav ul {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.2rem;
  }
}

/* ============================================
   OPERATING BRANCHES SECTION - OPTIMIZED
   ============================================ */

.OperatingBranches {
  margin-top: 75px;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative Background Elements */
.OperatingBranches::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 176, 135, 0.08), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.OperatingBranches::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 176, 135, 0.06), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Club Container */
.club {
  position: relative;
  z-index: 1;
}

.club-container {
  background: linear-gradient(95deg, #00b087 0%, #005c51 100%);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 176, 135, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.club-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.club-container:hover::before {
  left: 100%;
}

.club-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 176, 135, 0.4);
}

/* Image Section */
.image {
  width: 45%;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 176, 135, 0.2), transparent);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-wrapper:hover::before {
  opacity: 1;
}

.image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

.image-wrapper:hover img {
  transform: scale(1.08) rotate(1deg);
}

/* Data Section */
.data {
  width: 55%;
  padding: 50px 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Branch Dropdown Selector */
.branch-selector {
  margin-bottom: 35px;
  position: relative;
}

.branch-selector label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.dropdown-wrapper {
  position: relative;
}

.branch-dropdown {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.branch-dropdown:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.branch-dropdown:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.branch-dropdown option {
  background: #00b087;
  color: #ffffff;
  font-size: 1.2rem;
  padding: 15px;
  font-weight: 600;
}

/* Custom Dropdown Arrow */
.dropdown-wrapper::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.branch-dropdown:focus + .dropdown-wrapper::after,
.dropdown-wrapper:has(.branch-dropdown:focus)::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Info Grid */
.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Info Boxes */
.info .box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 28px 20px;
  border-radius: 20px;
  text-align: center;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.info .box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0);
}

.info .box:hover::before {
  opacity: 1;
  transform: scale(1) rotate(180deg);
}

.info .box:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15));
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.info .box:active {
  transform: translateY(-6px) scale(1.02);
  transition: all 0.1s ease;
}

.box-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.info .box:hover .box-icon {
  transform: scale(1.2) translateY(-5px);
  opacity: 1;
}

.info .box h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  line-height: 1.3;
}

.info .box:hover h3 {
  letter-spacing: 1.8px;
  transform: translateY(-3px);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.info .box h4 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  line-height: 1;
}

.info .box:hover h4 {
  transform: scale(1.15);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Button Container */
.btn-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.btn-container a,
.btn-container button {
  padding: 18px 36px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.8px;
  border: none;
}

/* Primary Button */
.btn-container a {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #00b087;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-container a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 176, 135, 0.15), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-container a:hover::after {
  width: 400px;
  height: 400px;
}

.btn-container a:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.2px;
}

/* Secondary Button */
.btn-container button {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-container button:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  color: #00b087;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: #ffffff;
  letter-spacing: 1.2px;
}

.btn-container a:active,
.btn-container button:active {
  transform: translateY(-3px) scale(0.98);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .club-container {
    flex-direction: column;
  }

  .image,
  .data {
    width: 100%;
  }

  .data {
    padding: 40px 35px;
  }

  .branch-dropdown {
    font-size: 2rem;
    padding: 16px 50px 16px 18px;
  }

  .info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .OperatingBranches {
    margin-top: 50px;
    padding: 40px 0;
  }

  .data {
    padding: 30px 25px;
  }

  .branch-dropdown {
    font-size: 1.6rem;
    padding: 14px 45px 14px 16px;
  }

  .dropdown-wrapper::after {
    font-size: 1.2rem;
    right: 16px;
  }

  .info {
    gap: 15px;
  }

  .info .box {
    padding: 22px 15px;
  }

  .info .box h4 {
    font-size: 2rem;
  }

  .btn-container {
    gap: 15px;
  }

  .btn-container a,
  .btn-container button {
    padding: 16px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .OperatingBranches {
    margin-top: 30px;
    padding: 30px 0;
  }

  .club-container {
    border-radius: 18px;
  }

  .data {
    padding: 25px 20px;
  }

  .branch-selector {
    margin-bottom: 25px;
  }

  .branch-selector label {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .branch-dropdown {
    font-size: 1.4rem;
    padding: 12px 40px 12px 14px;
  }

  .dropdown-wrapper::after {
    font-size: 1rem;
    right: 14px;
  }

  .info {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .info .box {
    padding: 18px 12px;
  }

  .info .box h3 {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .info .box h4 {
    font-size: 1.8rem;
  }

  .btn-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn-container a,
  .btn-container button {
    padding: 15px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .info {
    grid-template-columns: 1fr;
  }

  .branch-dropdown {
    font-size: 1.2rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.info .box:focus-visible,
.btn-container a:focus-visible,
.btn-container button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

/* ============================================
   GALLERY SECTION - ENHANCED RESPONSIVE
   ============================================ */

.gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 176, 135, 0.95), rgba(0, 92, 81, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.gallery.active {
  pointer-events: all;
}

.gallery.active .gallery-overlay {
  opacity: 1;
  pointer-events: all;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.gallery.active .gallery-container {
  transform: scale(1);
  opacity: 1;
}

/* Close Button */
.gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.gallery-close:hover {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #00b087;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  border-color: #ffffff;
}

/* Main Content Area - Optimized for 100vh */
.gallery-content {
  flex: 1;
  min-height: 0; /* Critical for flexbox children to shrink */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Main Image Display - Fixed Height */
.gallery-main-image {
  flex: 1;
  height: 100%;
  max-height: calc(100vh - 240px); /* Account for thumbnails and padding */
  max-height: calc(100dvh - 240px);
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.gallery-main-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: galleryGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes galleryGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

.gallery-main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.gallery-main-image img:hover {
  transform: scale(1.02);
}

/* Image Counter */
.gallery-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  padding: 12px 28px;
  border-radius: 30px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
  z-index: 2;
}

/* Navigation Buttons */
.gallery-nav {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.gallery-nav:hover {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #00b087;
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  border-color: #ffffff;
}

.gallery-nav:active {
  transform: scale(1.05);
}

.gallery-nav.prev:hover {
  transform: scale(1.15) translateX(5px);
}

.gallery-nav.next:hover {
  transform: scale(1.15) translateX(-5px);
}

/* Thumbnails Grid - Fixed Height */
.gallery-thumbnails {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.gallery-thumbnails::-webkit-scrollbar {

  width: 4px;
  height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

.gallery-thumbnail {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-thumbnail:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.gallery-thumbnail:hover img {
  transform: scale(1.15);
}

.gallery-thumbnail.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN - OPTIMIZED
   ============================================ */

/* Large Desktop */
@media (min-width: 1400px) {
  .gallery-main-image {
    max-height: calc(100vh - 260px);
    max-height: calc(100dvh - 260px);
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .gallery-main-image {
    max-height: calc(100vh - 240px);
    max-height: calc(100dvh - 240px);
  }
  
  .gallery-nav {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .gallery-container {
    padding: 15px;
    gap: 12px;
  }
  
  .gallery-main-image {
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
    padding: 15px;
  }
  
  .gallery-thumbnails {
    height: 130px;
    padding: 15px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }
  
  .gallery-counter {
    font-size: 1rem;
    padding: 10px 24px;
    bottom: 20px;
  }
}

/* Mobile Landscape & Small Tablet */
@media (max-width: 768px) {
  .gallery-container {
    padding: 10px;
    gap: 10px;
  }
  
  .gallery-content {
    gap: 10px;
  }
  
  .gallery-main-image {
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
    padding: 12px;
    border-radius: 16px;
  }
  
  .gallery-main-image img {
    border-radius: 12px;
  }
  
  .gallery-nav {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  
  .gallery-thumbnails {
    height: 110px;
    padding: 12px;
    gap: 10px;
  }
  
  .gallery-counter {
    font-size: 0.95rem;
    padding: 8px 20px;
    bottom: 15px;
  }
  
  .gallery-close {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    top: 5px;
    right: 5px;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  .gallery-container {
    padding: 8px;
  }
  
  .gallery-content {
    flex-direction: column;
    gap: 0;
  }
  
  .gallery-main-image {
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    padding: 10px;
    border-radius: 14px;
  }
  
  /* Position navigation buttons over the image */
  .gallery-nav {
    position: absolute;
    bottom: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    z-index: 3;
  }
  
  .gallery-nav.prev {
    right: 60px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .gallery-thumbnails {
    height: 90px;
    padding: 10px;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  
  .gallery-counter {
    font-size: 0.85rem;
    padding: 6px 16px;
    bottom: 70px;
  }
  
  .gallery-close {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .gallery-main-image {
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
  }
  
  .gallery-thumbnails {
    height: 80px;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6px;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .gallery-nav.prev {
    right: 50px;
  }
  
  .gallery-counter {
    font-size: 0.8rem;
    padding: 5px 14px;
    bottom: 60px;
  }
}

/* Mobile Touch Optimization */
@media (hover: none) and (pointer: coarse) {
  .gallery-nav,
  .gallery-close,
  .gallery-thumbnail {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .gallery-nav:active,
  .gallery-close:active {
    transform: scale(0.95);
  }
  
  .gallery-thumbnail:active {
    transform: scale(0.95);
  }
}

/* Landscape Mobile - Special Handling */
@media (max-width: 896px) and (max-height: 500px) and (orientation: landscape) {
  .gallery-container {
    padding: 5px;
  }
  
  .gallery-main-image {
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    padding: 8px;
  }
  
  .gallery-thumbnails {
    height: 70px;
    padding: 8px;
  }
  
  .gallery-counter {
    bottom: 10px;
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  
  .gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .gallery-nav.prev {
    right: 45px;
    bottom: 5px;
  }
  
  .gallery-nav.next {
    right: 5px;
    bottom: 5px;
  }
  
  .gallery-close {
    width: 40px;
    height: 40px;
  }
}

/* Prevent Body Scroll When Gallery Open */
body.gallery-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.gallery-nav:focus-visible,
.gallery-close:focus-visible,
.gallery-thumbnail:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}


/* ============================================
   NOT WORKING SECTION (MATCH OLD STYLE)
   ============================================ */

.notWorking {
  /* margin-top: 80px; */
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative Background */
.notWorking::before,
.notWorking::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.notWorking::before {
  top: -40%;
  left: -15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0,176,135,.08), transparent 70%);
}

.notWorking::after {
  bottom: -30%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0,176,135,.06), transparent 70%);
}

/* ============================================
   CONTAINER
   ============================================ */

.notWorking .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   TITLE
   ============================================ */

.notWorking h2{
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #00b087;
  margin-bottom: 45px;
  letter-spacing: 1.5px;
  position: relative;
}

.notWorking h2::after {
  content: "";
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #00b087, #005c51);
  display: block;
  margin: 12px auto 0;
  border-radius: 4px;
}
/* ============================================
   IMAGES GRID
   ============================================ */

.notWorking .images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* ============================================
   BOX
   ============================================ */

.notWorking .notWorkBox {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.25),
    rgba(255,255,255,.1)
  );
  border-radius: 20px;
  padding: 18px;
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 15px 45px rgba(0,0,0,.15);
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
  position: relative;
}

/* Glow effect */
.notWorking .notWorkBox::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: .6s ease;
}

.notWorking .notWorkBox:hover::before {
  opacity: 1;
  transform: scale(1);
}

.notWorking .notWorkBox:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.6);
}

/* ============================================
   IMAGE
   ============================================ */

.notWorking .notWorkBox img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: transform .5s ease;
  filter: grayscale(100%) opacity(.85);
}

.notWorking .notWorkBox:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) opacity(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .notWorking {
    padding: 50px 0;
  }

  .notWorking h3 {
    font-size: 1.8rem;
  }

  .notWorking .notWorkBox img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .notWorking h3 {
    font-size: 1.6rem;
  }

  .notWorking .images-container {
    gap: 18px;
  }

  .notWorking .notWorkBox {
    padding: 14px;
    border-radius: 16px;
  }

  .notWorking .notWorkBox img {
    height: 160px;
  }
}

@media (max-width: 380px) {
  .notWorking .notWorkBox img {
    height: 140px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .notWorking * {
    transition: none !important;
  }
}

/* ============================================
   BRANCH NAME OVERLAY ON HOVER
   ============================================ */

.notWorking .notWorkBox {
  position: relative;
}

/* Overlay */
.notWorking .branch-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;

  background: linear-gradient(
    135deg,
    rgba(0,176,135,.85),
    rgba(0,92,81,.85)
  );

  opacity: 0;
  transform: scale(1.1);
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  border-radius: 14px;
  pointer-events: none;
  letter-spacing: 1.2px;
}

/* Show name on hover */
.notWorking .notWorkBox:hover .branch-name {
  opacity: 1;
  transform: scale(1);
}

/* Image reaction */
.notWorking .notWorkBox:hover img {
  transform: scale(1.1);
  filter: grayscale(100%) blur(2px);
}
