body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #f6f7fb;
  color: #23263a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.bg-header {
  background: url('assets/header-bg.jpg') center/cover no-repeat, linear-gradient(120deg, #23263a 80%, #222831 100%);
  min-height: 100vh !important;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.header-animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background 0.3s;
  will-change: background;
  pointer-events: none;
}
.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34,40,49,0.72);
  backdrop-filter: blur(6px) saturate(1.2);
  z-index: 1;
  pointer-events: none;
}
.bg-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="rgba(255,215,0,0.04)" cx="50" cy="50" r="40"/></svg>') repeat;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

.bg-header .container {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.header-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffd700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
  margin-bottom: 0.2em;
  line-height: 1.1;
  position: relative;
  z-index: 3;
  font-family: 'Poppins', Arial, sans-serif;
}

.header-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ffd700 60%, #fffbe7 100%);
  border-radius: 2px;
  margin-bottom: 0.5em;
  animation: underlineGrow 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes underlineGrow {
  from { width: 0; opacity: 0.2; }
  to { width: 60px; opacity: 1; }
}

.header-subtitle {
  font-size: 1.05rem;
  color: #fffbe7;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
  margin-bottom: 0;
  line-height: 1.4;
  z-index: 3;
  letter-spacing: 0.2px;
}

.logo {
  height: 44px;
}

.navbar {
  font-weight: 600;
  background: #222831 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.navbar .nav-link {
  color: #fff !important;
  transition: color 0.2s, background 0.2s;
  margin-right: 8px;
  border-radius: 4px;
  padding: 8px 16px !important;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: #ffd700 !important;
  background: rgba(255,215,0,0.09);
}

.language-dropdown {
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  background: #f1f3f6;
  border: none;
}

.section {
  background: var(--primary-light);
  border-radius: var(--border-radius);
  /* Remove fixed margin-bottom, use gap between sections instead */
  /* margin-bottom: 2rem; */
  box-shadow: var(--card-shadow);
  padding: 2.5rem 1.5rem;
}

/* Add a dynamic gap between sections using a wrapper */
body > section,
body > header,
body > footer {
  margin-bottom: 3.5vw;
}

body > section:last-of-type,
body > footer {
  margin-bottom: 0;
}

/* Responsive adjustments for section spacing */
@media (max-width: 991px) {
  body > section,
  body > header {
    margin-bottom: 2.2rem;
  }
  .section {
    padding: 1.5rem 0.7rem;
  }
}
@media (max-width: 767px) {
  body > section,
  body > header {
    margin-bottom: 1.2rem;
  }
  .section {
    padding: 1rem 0.3rem;
  }
}

.icon-box {
  background: linear-gradient(120deg, #fff 70%, #f7f3e9 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(34,40,49,0.06);
  padding: 38px 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #ece6d6;
  position: relative;
  overflow: hidden;
}
.icon-box:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.10);
  transform: translateY(-4px) scale(1.03);
}
.icon-container {
  background: linear-gradient(135deg, #ffd700 0%, #222831 100%);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  font-size: 2.2rem;
  color: #222831;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  animation: popIn 1s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.card {
  border-radius: 18px;
  border: none;
  box-shadow: 0 2px 16px rgba(34,40,49,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
  background: #fffdfa;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.10);
  transform: translateY(-4px) scale(1.02);
}
.card-img-top {
  object-fit: cover;
  height: 180px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: filter 0.3s;
}
.card:hover .card-img-top {
  filter: brightness(0.93) saturate(1.2);
}

.bg-light {
  background: linear-gradient(120deg, #f6f7fb 70%, #f7f3e9 100%) !important;
}

footer {
  background: #23263a;
  color: #fff;
  font-size: 1rem;
  margin-top: 0;
  border-top: 2px solid #ffd700;
}
footer a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.timeline {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}
.timeline li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 1.08rem;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #ffd700 0%, #222831 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #f7f3e9;
}

.form-label {
  font-weight: 600;
  color: #222831;
}

.form-control:focus {
  border-color: #ffd700;
  box-shadow: 0 0 0 2px #ffd70033;
}

.btn-primary, .btn-success {
  border-radius: 24px;
  padding-left: 32px;
  padding-right: 32px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary {
  background: linear-gradient(90deg, #ffd700 60%, #23263a 100%);
  border: none;
  color: #23263a;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #23263a 0%, #ffd700 100%);
  color: #ffd700;
  transform: translateY(-2px) scale(1.03);
}
.btn-success {
  background: linear-gradient(90deg, #00c48c 60%, #ffd700 100%);
  border: none;
  color: #23263a;
}
.btn-success:hover {
  background: linear-gradient(90deg, #ffd700 0%, #00c48c 100%);
  color: #00c48c;
  transform: translateY(-2px) scale(1.03);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #ffd700;
}
.accordion-button {
  font-weight: 600;
  color: #23263a;
  background: #f7f3e9;
  transition: background 0.2s;
}
.accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #ffd700 0%, #23263a 100%);
  color: #fff;
}

.accordion-item {
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #ece6d6;
}

::-webkit-scrollbar {
  width: 8px;
  background: #f7f3e9;
}
::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 8px;
}

.lang-switcher {
  background: #23263a;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #ffd70022;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.btn-lang {
  background: transparent;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 6px 18px 6px 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-lang .flag-icon {
  display: inline-block;
  width: 22px;
  height: 16px;
  background-size: cover;
  border-radius: 3px;
  margin-right: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-lang.active, .btn-lang:hover {
  background: #ffd700;
  color: #23263a;
}
.btn-lang.active .flag-icon, .btn-lang:hover .flag-icon {
  box-shadow: 0 2px 6px rgba(34,40,49,0.12);
}

/* Flag icons using SVG backgrounds */
.flag-icon-en {
  /* UK flag */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="16"><rect width="22" height="16" fill="white"/><path d="M0 0h22v16H0z" fill="navy"/><path d="M0 0l22 16M22 0L0 16" stroke="white" stroke-width="3"/><path d="M0 0l22 16M22 0L0 16" stroke="red" stroke-width="2"/><rect x="9" width="4" height="16" fill="white"/><rect y="6" width="22" height="4" fill="white"/><rect x="10" width="2" height="16" fill="red"/><rect y="7" width="22" height="2" fill="red"/></svg>');
}
.flag-icon-ar {
  /* Use the provided ar_flag.svg as background */
  background-image: url('assets/ar_flag.svg');
}

.flag-icon {
  display: inline-block;
  width: 22px;
  height: 16px;
  background-size: cover;
  border-radius: 3px;
  margin-right: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  vertical-align: middle;
}

@media (max-width: 991px) {
  .navbar .nav-link {
    margin-right: 0;
    padding: 10px 12px !important;
  }
  .bg-header {
    min-height: 180px;
    padding: 32px 0;
  }
  .card-img-top {
    height: 120px;
  }
}

@media (max-width: 767px) {
  .bg-header {
    min-height: 120px;
    padding: 24px 0;
  }
  .card-img-top {
    height: 90px;
  }
  .icon-box {
    padding: 24px 10px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #23263a;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.shadow-sm {
  box-shadow: 0 2px 16px rgba(34,40,49,0.06) !important;
}

.rounded {
  border-radius: 16px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.text-center {
  text-align: center !important;
}

.text-white {
  color: #fff !important;
}

.text-muted {
  color: #6c757d !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

/* Stopwatch styles */
#stopwatch {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  position: relative;
}
.stopwatch-border {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #ffd700;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  position: relative;
}
.stopwatch-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #23263a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) inset;
  overflow: visible;
}
.stopwatch-hand {
  width: 4px;
  height: 38px;
  background: linear-gradient(180deg, #ffd700 60%, #fffbe7 100%);
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 90%;
  border-radius: 2px;
  box-shadow: 0 2px 8px #ffd70044;
  transition: box-shadow 0.2s;
}
.stopwatch-center-dot {
  width: 16px;
  height: 16px;
  background: #ffd700;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border: 2px solid #fffbe7;
  box-shadow: 0 1px 4px #ffd70044;
  z-index: 2;
}

.main-navbar {
  background: linear-gradient(90deg, #181c24 0%, #23263a 100%) !important;
  box-shadow: 0 2px 16px rgba(34,40,49,0.10);
  border-bottom: 2px solid #ffd70022;
}
.main-navbar .navbar-brand,
.main-navbar .nav-link,
.main-navbar .btn-lang {
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
}
.main-navbar .nav-link {
  margin-right: 8px;
  border-radius: 4px;
  padding: 8px 16px !important;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: #ffd700 !important;
  background: rgba(255,215,0,0.09);
}
.main-navbar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.main-navbar .logo {
  height: 44px;
}
.main-navbar .btn-lang.active,
.main-navbar .btn-lang:hover {
  background: #ffd700;
  color: #23263a !important;
}
.main-navbar .btn-lang.active .flag-icon,
.main-navbar .btn-lang:hover .flag-icon {
  box-shadow: 0 2px 6px rgba(34,40,49,0.12);
}

/* ====== Light Blue Theme Variables ====== */
:root {
  --primary: #4fc3f7;
  --primary-dark: #1976d2;
  --primary-light: #e3f2fd;
  --secondary: #b3e5fc;
  --accent: #00bcd4;
  --text-dark: #1a237e;
  --text-light: #ffffff;
  --card-shadow: 0 4px 24px #4fc3f71a;
  --border-radius: 16px;
}

html,
body {
  background: var(--primary-light);
  color: var(--text-dark);
  font-family: 'Poppins', Arial, sans-serif;
  scroll-behavior: smooth;
}

.navbar,
.main-navbar,
.bg-dark {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
  box-shadow: 0 2px 12px #1976d233;
}

/* Ensure navbar container background is also blue, not white */
.main-navbar .container {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
  border-radius: var(--border-radius);
  /* Optional: add a little padding for visual separation */
  padding-left: 12px;
  padding-right: 12px;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-menu,
.navbar .dropdown-item {
  color: var(--text-light) !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:hover,
.navbar .dropdown-item.active,
.navbar .dropdown-item:focus,
.navbar .dropdown-item:hover {
  color: var(--accent) !important;
  background-color: transparent !important;
}

.dropdown-menu {
  background: var(--primary-dark);
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--card-shadow);
  min-width: 200px;
  margin-top: 0.5rem;
}

.btn-success,
.btn-success:focus,
.btn-success:hover {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%) !important;
  border: none !important;
  color: var(--text-light) !important;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #1976d244;
  border-radius: var(--border-radius);
  transition: background 0.2s;
}

.section {
  background: var(--primary-light);
  border-radius: var(--border-radius);
  /* Remove fixed margin-bottom, use gap between sections instead */
  /* margin-bottom: 2rem; */
  box-shadow: var(--card-shadow);
  padding: 2.5rem 1.5rem;
}

/* Add a dynamic gap between sections using a wrapper */
body > section,
body > header,
body > footer {
  margin-bottom: 3.5vw;
}

body > section:last-of-type,
body > footer {
  margin-bottom: 0;
}

/* Responsive adjustments for section spacing */
@media (max-width: 991px) {
  body > section,
  body > header {
    margin-bottom: 2.2rem;
  }
  .section {
    padding: 1.5rem 0.7rem;
  }
}
@media (max-width: 767px) {
  body > section,
  body > header {
    margin-bottom: 1.2rem;
  }
  .section {
    padding: 1rem 0.3rem;
  }
}

.bg-header,
.header-overlay {
  background: linear-gradient(120deg, var(--primary-dark) 60%, var(--primary) 100%);
}

.header-title {
  color: var(--primary-dark);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.header-subtitle {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.header-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
  margin-bottom: 1rem;
}

.icon-box,
.card,
.p-4.bg-white {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

#features .icon-box {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.icon-box:hover,
.card:hover,
.p-4.bg-white:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px #1976d244;
}

.icon-container i,
.fa-bolt,
.fa-database,
.fa-mobile-alt,
.fa-cogs,
.fa-globe,
.fa-shield-alt,
.fa-stopwatch {
  color: var(--accent);
  background: var(--primary-light);
  border-radius: 50%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  box-shadow: 0 2px 8px #1976d222;
}

.bg-light {
  background: var(--secondary) !important;
}

.list-group-item {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.05rem;
  padding-left: 0;
  padding-right: 0;
}

.card-title,
.h5,
h5 {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text,
.p,
p {
  color: var(--text-dark);
  font-size: 1rem;
}

.rounded {
  border-radius: var(--border-radius) !important;
}

.shadow,
.shadow-sm {
  box-shadow: var(--card-shadow) !important;
}

.vh-100 {
  min-height: 100vh !important;
}

footer.bg-dark {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
  color: var(--text-light) !important;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  box-shadow: 0 -2px 12px #4fc3f733;
  margin-top: 2rem;
}

footer a {
  color: var(--accent) !important;
  text-decoration: underline;
  font-weight: 500;
}

/* Navbar brand logo */
.navbar-brand .logo {
  border-radius: 8px;
  box-shadow: 0 2px 8px #1976d244;
  background: #fff;
  padding: 2px;
}

/* Dropdown hover for desktop */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .navbar-nav .dropdown .dropdown-toggle::after {
    transition: transform 0.2s;
  }

  .navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Add this for language switcher active indicator */
.btn-lang.active,
.btn-lang.active:focus,
.btn-lang.active:hover {
  background: var(--accent) !important;
  color: var(--text-light) !important;
  font-weight: bold;
  border: 2px solid var(--primary-dark);
  box-shadow: 0 2px 8px #1976d244;
}

.stopwatch-border {
  width: 90px;
  height: 90px;
  border: 4px solid var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0 auto 10px auto;
  position: relative;
}

.stopwatch-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: relative;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stopwatch-hand {
  width: 3px;
  height: 32px;
  background: var(--accent);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 0);
  transform-origin: top center;
  border-radius: 2px;
  z-index: 2;
}

.stopwatch-center-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-dark);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

#features .row.align-items-stretch {
  /* Ensure columns stretch to same height */
  display: flex;
  flex-wrap: wrap;
}

#features .col-md-4.d-flex {
  display: flex;
  flex-direction: column;
}

#features .icon-box.h-100 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Optional: ensure min-height for visual consistency */
  min-height: 100%;
}

/* Enhanced Features Section Animation & Hover */
#features .icon-box.feature-animate {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px #1976d21a, 0 1.5px 8px #00bcd41a;
  transition:
    transform 0.25s cubic-bezier(.4, 2, .3, 1),
    box-shadow 0.22s cubic-bezier(.4, 2, .3, 1),
    background 0.22s;
  cursor: pointer;
  z-index: 1;
}

#features .icon-box.feature-animate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #e3f2fd 0%, #b2ebf2 100%);
  opacity: 0;
  transition: opacity 0.22s;
  z-index: 0;
}

#features .icon-box.feature-animate:hover,
#features .icon-box.feature-animate:focus-within {
  transform: translateY(-10px) scale(1.035) rotateZ(-0.5deg);
  box-shadow: 0 8px 36px #1976d244, 0 2px 16px #00bcd433;
  background: #fafdff;
}

#features .icon-box.feature-animate:hover::before,
#features .icon-box.feature-animate:focus-within::before {
  opacity: 1;
}

#features .icon-box.feature-animate .icon-container {
  position: relative;
  z-index: 2;
  margin-bottom: 0.7rem;
  transition: transform 0.22s cubic-bezier(.4, 2, .3, 1), filter 0.22s;
}

#features .icon-box.feature-animate:hover .icon-container {
  transform: scale(1.18) rotate(-8deg);
  filter: drop-shadow(0 0 18px #00bcd4cc);
}

#features .icon-box.feature-animate img {
  transition: box-shadow 0.22s, filter 0.22s;
  z-index: 2;
  position: relative;
}

#features .icon-box.feature-animate:hover img {
  box-shadow: 0 8px 32px #1976d244, 0 2px 16px #00bcd433;
  filter: brightness(1.08) saturate(1.1);
}

#features .icon-box.feature-animate h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  transition: color 0.18s;
}

#features .icon-box.feature-animate:hover h4 {
  color: var(--accent);
  text-shadow: 0 2px 12px #00bcd433;
}

#features .icon-box.feature-animate p {
  color: #333;
  font-size: 1.04rem;
  margin-bottom: 0;
  z-index: 2;
  position: relative;
  transition: color 0.18s;
}

#features .icon-box.feature-animate:hover p {
  color: #1976d2;
}

/* Subtle animated border on hover */
#features .icon-box.feature-animate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  background: linear-gradient(120deg, #00bcd4 0%, #1976d2 100%) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
  z-index: 3;
}

#features .icon-box.feature-animate:hover::after,
#features .icon-box.feature-animate:focus-within::after {
  opacity: 1;
  animation: feature-border-glow 1.2s linear;
}

@keyframes feature-border-glow {
  0% {
    box-shadow: 0 0 0 0 #00bcd400;
  }

  40% {
    box-shadow: 0 0 12px 2px #00bcd433;
  }

  100% {
    box-shadow: 0 0 0 0 #00bcd400;
  }
}

/* Event card image/video hover effect */
#events .event-media-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #e3f2fd;
}

#events .event-media-img,
#events .event-media-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: opacity 0.35s cubic-bezier(.4, 2, .3, 1);
  pointer-events: none;
  z-index: 1;
}

#events .event-media-video {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

#events .card:hover .event-media-video,
#events .card:focus-within .event-media-video {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

#events .card:hover .event-media-img,
#events .card:focus-within .event-media-img {
  opacity: 0;
}

/* === Cool Supported Events Section Styles (Light Blue) === */
.cool-events-section {
  background: linear-gradient(120deg, #e3f2fd 60%, #b3e5fc 100%);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 32px #4fc3f71a;
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
  position: relative;
  overflow: visible;
}

.cool-events-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 12px #00bcd433;
}

.cool-events-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 0;
}

.cool-event-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px #4fc3f71a, 0 1.5px 8px #00bcd41a;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.4,2,.3,1), box-shadow 0.22s cubic-bezier(.4,2,.3,1);
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  z-index: 1;
  border: 2px solid #e3f2fd;
}

.cool-event-card:hover,
.cool-event-card:focus-within,
.cool-event-card.active {
  transform: translateY(-12px) scale(1.045) rotateZ(-0.7deg);
  box-shadow: 0 12px 48px #4fc3f744, 0 4px 24px #00bcd433;
  border-color: #00bcd4;
}

.cool-event-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e3f2fd;
  border-radius: 22px 22px 0 0;
  z-index: 1;
}

.cool-event-img,
.cool-event-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  transition: opacity 0.35s cubic-bezier(.4,2,.3,1), filter 0.22s;
  z-index: 1;
  pointer-events: none;
}

.cool-event-video {
  opacity: 0;
  z-index: 2;
}

.cool-event-card:hover .cool-event-video,
.cool-event-card:focus-within .cool-event-video,
.cool-event-card.active .cool-event-video {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.cool-event-card:hover .cool-event-img,
.cool-event-card:focus-within .cool-event-img,
.cool-event-card.active .cool-event-img {
  opacity: 0;
}

/* Overlay should be above video */
.cool-event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #00bcd4cc 0%, #4fc3f7cc 100%);
  opacity: 0.0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: opacity 0.22s cubic-bezier(.4,2,.3,1);
  pointer-events: none;
}

.cool-event-card:hover .cool-event-overlay,
.cool-event-card:focus-within .cool-event-overlay,
.cool-event-card.active .cool-event-overlay {
  opacity: 0.85;
}

.cool-event-overlay i {
  font-size: 3.2rem;
  color: #fff;
  text-shadow: 0 2px 18px #1976d2cc;
  animation: cool-event-icon-pop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes cool-event-icon-pop {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.cool-event-body {
  padding: 1.5rem 1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
}

.cool-event-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 8px #00bcd433;
  background: #e3f2fd;
  object-fit: cover;
  border: 2px solid #b3e5fc;
  transition: box-shadow 0.18s;
}

.cool-event-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-align: center;
  transition: color 0.18s;
}

.cool-event-card:hover .cool-event-title,
.cool-event-card.active .cool-event-title {
  color: var(--accent);
  text-shadow: 0 2px 12px #00bcd433;
}

.cool-event-desc {
  color: #333;
  font-size: 1.04rem;
  margin-bottom: 0;
  text-align: center;
  transition: color 0.18s;
}

.cool-event-card:hover .cool-event-desc,
.cool-event-card.active .cool-event-desc {
  color: #1976d2;
}

/* Responsive for cool events */
@media (max-width: 991px) {
  .cool-events-row {
    gap: 1.2rem 0;
  }
  .cool-event-card {
    min-height: 380px;
  }
  .cool-event-media {
    height: 140px;
  }
}

@media (max-width: 767px) {
  .cool-events-title {
    font-size: 1.5rem;
  }
  .cool-event-card {
    min-height: 320px;
    padding: 0.5rem;
  }
  .cool-event_media {
    height: 90px;
  }
  .cool-event-body {
    padding: 1rem 0.5rem 0.8rem 0.5rem;
  }
  .cool-event-icon {
    width: 36px;
    height: 36px;
  }
}
