@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Poppins&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html,
body {
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(7, 7, 161, 1) 50%,
      rgba(0, 0, 0, 1) 100%
    )
    no-repeat;
  min-height: 100%;
  min-width: 100%;
  overflow-y: auto;
  background-color: #000000;
  color: #ffffff;

  /* Default brightness for icons */
  --icon-brightness: brightness(1);
}

#rotate-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  z-index: 9999;
  text-align: center;
  padding-top: 50vh;
}

/* ===== F1 STANDINGS STYLES ===== */

/* Make container wider for large screens */
.container {
  position: relative;
  width: 90%;
  max-width: 1400px !important; /* Increased from 800px */
  padding: 30px;
  text-align: center;
  z-index: 100;
}

/* Season Card */
.f1-season-card {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(30, 30, 30, 0.98) 100%
  );
  border: 2px solid #e10600;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 0px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.f1-title {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.f1-subtitle {
  font-family: "Titillium Web", sans-serif;
  color: #aaaaaa;
  font-size: 1rem;
  margin: 5px 0 0 0;
}

.f1-logo img {
  filter: brightness(1.2);
  height: 20px;
}

/* ===== 2026 DRIVERS LINE-UP IMAGE STYLES ===== */
.drivers-lineup-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  border: 1px solid rgba(225, 6, 0, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.drivers-lineup-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 300px;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drivers-lineup-image:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(225, 6, 0, 0.4);
}

.drivers-lineup-caption {
  font-family: "Titillium Web", sans-serif;
  color: #000000;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 0;
  text-align: center;
}

/* Responsive adjustments for drivers line-up */
@media (max-width: 768px) {
  .drivers-lineup-container {
    padding: 12px;
    margin-top: 12px;
  }

  .drivers-lineup-image {
    max-height: 200px;
  }

  .drivers-lineup-caption {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .drivers-lineup-container {
    padding: 10px;
    margin-top: 10px;
  }

  .drivers-lineup-image {
    max-height: 180px;
  }

  .drivers-lineup-caption {
    font-size: 0.8rem;
  }
}

/* Standings Cards */
.f1-standings-card {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(30, 30, 30, 0.98) 100%
  );
  border: 2px solid #e10600;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  height: 100%;
}

.standings-header {
  background: linear-gradient(
    90deg,
    rgba(225, 6, 0, 0.2) 0%,
    rgba(225, 6, 0, 0.1) 50%,
    rgba(225, 6, 0, 0.2) 100%
  );
  padding: 15px 20px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.standings-title {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.standings-badge {
  background: #e10600;
  color: white;
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FIX: Standings Table - Add border-collapse */
.standings-table {
  margin: 0;
  width: 100%;
  table-layout: fixed; /* Force equal column distribution */
  border-collapse: collapse !important; /* FIX ADDED: This makes borders work */
}

.standings-table thead th {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #e10600;
  padding: 12px 10px; /* Reduced padding */
}

/* FIX: Add !important to table cell borders */
.standings-table tbody td {
  padding: 12px 10px; /* Reduced padding */
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; /* FIX: Added !important */
}

/* Position Column */
.position-col {
  width: 50px !important; /* Reduced from 60px */
  text-align: center;
}

.position {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1rem; /* Reduced from 1.1rem */
  color: #ffffff;
  text-align: center;
}

/* Driver Column */
.driver-col {
  width: auto !important; /* Let it use available space */
  min-width: 200px;
}

.driver {
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced from 10px */
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 0.95rem; /* Slightly smaller */
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-flag {
  width: 30px; /* Reduced from 24px */
  height: 20px; /* Reduced from 16px */
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Nation Column - Add nation-col class to HTML */
.nation-col {
  width: 70px !important; /* Reduced from 80px */
}

.nation {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 0.85rem; /* Reduced from 0.9rem */
  color: #aaaaaa;
  text-transform: uppercase;
}

/* Team Column */
/* Add these styles to your CSS file */

/* McLaren - Orange */
.team-logo[src*="mclaren"] {
  filter: brightness(0) saturate(100%) invert(49%) sepia(94%) saturate(1515%)
    hue-rotate(347deg) brightness(98%) contrast(101%);
}

/* Red Bull Racing - Navy Blue/Red/Yellow */
.team-logo[src*="redbull"] {
  filter: brightness(0) saturate(100%) invert(14%) sepia(99%) saturate(2319%)
    hue-rotate(222deg) brightness(90%) contrast(106%);
}

/* Ferrari - Racing Yellow
.team-logo[src*="ferrari"] {
    filter: brightness(0) saturate(100%) invert(84%) sepia(55%) saturate(591%) hue-rotate(359deg) brightness(105%) contrast(101%);
} */

/* Mercedes - Silver/Teal */
.team-logo[src*="mercedes"] {
  filter: brightness(0) saturate(100%) invert(61%) sepia(96%) saturate(340%)
    hue-rotate(124deg) brightness(93%) contrast(89%);
}

/* Alpine - Pink/Blue */
.team-logo[src*="alpine"] {
  filter: brightness(0) saturate(100%) invert(38%) sepia(77%) saturate(576%)
    hue-rotate(279deg) brightness(98%) contrast(94%);
}

/* Aston Martin - Green */
.team-logo[src*="astonmartin"] {
  filter: brightness(0) saturate(100%) invert(26%) sepia(96%) saturate(694%)
    hue-rotate(96deg) brightness(94%) contrast(94%);
}

/* Williams - Blue/White */
.team-logo[src*="williams"] {
  filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(1412%)
    hue-rotate(191deg) brightness(97%) contrast(95%);
}

/* Haas - White/Red */
.team-logo[src*="haas"] {
  filter: brightness(0) saturate(100%) invert(20%) sepia(99%) saturate(2410%)
    hue-rotate(349deg) brightness(95%) contrast(96%);
}

/* Alfa Romeo - Red/White */
.team-logo[src*="racingbulls"] {
  filter: brightness(0) saturate(100%) invert(14%) sepia(99%) saturate(2319%)
    hue-rotate(222deg) brightness(90%) contrast(106%);
}

.team-col {
  width: auto !important; /* Let it use available space */
  min-width: 200px;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px; /* Reduced from 12px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-logo {
  width: 30px; /* Reduced from 32px */
  height: 30px; /* Reduced from 32px */
  object-fit: contain;
  flex-shrink: 0;
}

/* FIX: Team name color */
.team-name {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 0.95rem; /* Slightly smaller */
  color: #000 !important; /* FIX: Changed from #000000 to #FFFFFF */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Points Column */
.points-col {
  width: 70px !important; /* Reduced from 80px */
  text-align: right;
}

.points {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1rem; /* Reduced from 1.1rem */
  color: #ffffff;
  text-align: right;
}

/* Row Styling */
.driver-row:hover,
.team-row:hover {
  background: rgba(225, 6, 0, 0.1) !important;
  cursor: pointer;
}

.driver-row:nth-child(odd),
.team-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.driver-row:nth-child(even),
.team-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

/* Standings Footer */
.standings-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.view-all-link {
  color: #00d2be;
  text-decoration: none;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== MOBILE FIX: DRIVER TABLE LINES THIN LIKE CONSTRUCTORS ===== */
/* For screens 768px and below (mobile/tablet) */
@media (max-width: 768px) {
  /* Target DRIVER standings table specifically */
  .f1-standings-card:first-child .standings-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* Make sure driver table cell borders are thin */
  .f1-standings-card:first-child .standings-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* Match header line thickness */
  .f1-standings-card:first-child .standings-table thead th {
    border-bottom: 1px solid #e10600 !important;
  }

  /* Remove any existing thicker borders from driver table */
  .f1-standings-card:first-child .standings-table {
    border: none !important;
  }

  /* Ensure last row has no border */
  .f1-standings-card:first-child .standings-table tbody tr:last-child {
    border-bottom: none !important;
  }

  .f1-standings-card:first-child .standings-table tbody tr:last-child td {
    border-bottom: none !important;
  }

  /* 1. Hide NATION column */
  .standings-table thead th.nation-col,
  .standings-table tbody td.nation-col {
    display: none !important;
  }

  /* 2. Reset table layout to use available space */
  .standings-table {
    width: 100% !important;
    table-layout: auto !important;
  }

  /* 3. Adjust column widths proportionally */
  .position-col {
    width: 5% !important;
    max-width: 50px !important;
    text-align: center !important;
    padding: 10px 5px !important;
  }

  .driver-col {
    width: 60% !important;
    min-width: 0 !important;
    padding: 10px 8px !important;
  }

  .points-col {
    width: 35% !important;
    max-width: 70px !important;
    text-align: right !important;
    padding: 10px 8px !important;
  }

  /* 4. Optimize driver display for mobile */
  .driver {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .driver-flag {
    width: 30px;
    height: 20px;
    border: 1px solid rgb(5, 5, 5);
  }

  /* 5. Adjust header alignment */
  .standings-table thead th {
    padding: 12px 5px !important;
    font-size: 0.85rem;
  }

  /* 6. Reduce overall padding */
  .standings-table tbody td {
    padding: 10px 5px !important;
  }
}

/* For very small screens (phones) */
@media (max-width: 576px) {
  /* Make driver table lines even thinner on small phones */
  .f1-standings-card:first-child .standings-table tbody tr {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15) !important;
  }

  .f1-standings-card:first-child .standings-table tbody td {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15) !important;
  }

  .position-col {
    width: 12% !important;
    max-width: 40px !important;
  }

  .driver-col {
    width: 63% !important;
  }

  .points-col {
    width: 25% !important;
    max-width: 60px !important;
  }

  .driver {
    font-size: 0.85rem;
    gap: 6px;
  }

  .driver-flag {
    width: 30px;
    height: 20px;
    border: 1px solid rgb(5, 5, 5);
  }

  .standings-table thead th {
    font-size: 0.8rem;
    padding: 10px 3px !important;
  }

  .standings-table tbody td {
    padding: 8px 3px !important;
  }
}

/* For larger mobile screens */
@media (min-width: 577px) and (max-width: 768px) {
  /* Keep thin lines consistent */
  .f1-standings-card:first-child .standings-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

/* Desktop styles remain the same */
@media (min-width: 769px) {
  .standings-table {
    table-layout: fixed;
  }

  .position-col {
    width: 50px;
    text-align: center;
  }

  .driver-col {
    width: auto;
    min-width: 200px;
  }

  .nation-col {
    width: 70px;
  }

  .points-col {
    width: 70px;
    text-align: right;
  }
}

/* Optional: Make driver names smaller on mobile */
.driver {
  font-size: 0.85rem;
}

.driver-flag {
  width: 30px;
  height: 20px;
  border: 1px solid rgb(5, 5, 5);
}

/* Next Race mobile adjustments */
.race-info {
  flex-direction: column;
  text-align: center;
}

.race-datetime {
  flex-direction: column;
  gap: 5px;
}

.race-separator {
  display: none;
}

.countdown-timer {
  justify-content: center;
  margin-top: 20px;
}

.countdown-item {
  min-width: 65px;
}

.countdown-value {
  font-size: 1.5rem;
  padding: 8px;
}

/* Extra small screens */
@media (max-width: 576px) {
  .driver-col {
    min-width: 170px !important;
  }

  .position-col {
    width: 35px !important;
  }

  .points-col {
    width: 50px !important;
  }

  .driver {
    font-size: 0.8rem;
    gap: 6px;
  }

  .driver-flag {
    width: 30px;
    height: 20px;
    border: 1px solid rgb(5, 5, 5);
  }

  .standings-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .race-info {
    flex-direction: column;
    gap: 15px;
  }

  .race-date,
  .race-time,
  .race-laps {
    font-size: 0.85rem;
  }

  .countdown-timer {
    gap: 8px;
    justify-content: space-around;
  }

  .countdown-item {
    min-width: 55px;
  }

  .countdown-value {
    font-size: 1.3rem;
    padding: 6px;
    min-width: 50px;
  }

  .countdown-label {
    font-size: 0.7rem;
  }
}

/* Next Race Card */
.f1-next-race {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(30, 30, 30, 0.98) 100%
  );
  border: 2px solid #00d2be;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.next-race-header {
  background: linear-gradient(
    90deg,
    rgba(0, 210, 190, 0.2) 0%,
    rgba(0, 210, 190, 0.1) 50%,
    rgba(0, 210, 190, 0.2) 100%
  );
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 210, 190, 0.3);
}

.next-race-header h3 {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.next-race-content {
  padding: 20px;
}

.race-info {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.race-flag {
  flex-shrink: 0;
}

.country-flag {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid rgba(0, 210, 190, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.race-details {
  flex-grow: 1;
  min-width: 0;
}

.race-details h4 {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0 0 5px 0;
}

.race-circuit {
  font-family: "Titillium Web", sans-serif;
  color: #aaaaaa;
  font-size: 1rem;
  margin: 0 0 10px 0;
}

.race-datetime {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.race-date,
.race-time,
.race-laps {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  color: #00d2be;
  font-size: 0.9rem;
  white-space: nowrap;
}

.race-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.race-countdown {
  flex-shrink: 0;
}

.countdown-timer {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.countdown-item {
  text-align: center;
  min-width: 70px;
  flex-shrink: 0;
}

.countdown-value {
  display: block;
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #00d2be;
  min-width: 60px;
}

.countdown-label {
  display: block;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.8rem;
  color: #aaaaaa;
  margin-top: 5px;
  text-transform: uppercase;
}

/* Responsive Design - Tablet and Desktop */
@media (min-width: 768px) {
  .container {
    max-width: 1200px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .standings-table {
    table-layout: auto; /* Auto layout for better distribution */
  }

  /* Further reduce padding on medium screens */
  .standings-table thead th,
  .standings-table tbody td {
    padding: 10px 8px !important;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 1400px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  /* Even wider container for large screens */
  .f1-standings-card {
    margin-left: 0;
    margin-right: 0;
  }

  .f1-logo img {
    filter: brightness(1.2);
    height: 40px;
  }

  /* Optimize column widths */
  .driver-col {
    min-width: 220px !important;
  }

  .team-col {
    min-width: 220px !important;
  }

  .position-col {
    width: 45px !important;
  }

  .nation-col {
    width: 65px !important;
    display: table-cell !important; /* Ensure it shows on desktop */
  }

  .points-col {
    width: 65px !important;
  }

  /* Use smaller text for driver names on large screens */
  .driver,
  .team-name {
    font-size: 0.92rem !important;
  }

  /* Improve race info alignment on desktop */
  .race-info {
    gap: 30px;
  }

  .countdown-timer {
    gap: 20px;
  }

  .countdown-item {
    min-width: 80px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1600px !important; /* Even wider for extra large screens */
  }

  .driver-col {
    min-width: 240px !important;
  }

  .driver,
  .team-name {
    font-size: 0.95rem !important; /* Slightly larger on XL screens */
  }

  /* Adjust race info for extra large screens */
  .race-details h4 {
    font-size: 1.6rem;
  }

  .countdown-value {
    font-size: 2rem;
    padding: 12px;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
  .f1-title {
    font-size: 1.5rem;
  }

  .standings-title {
    font-size: 1.2rem;
  }

  .race-info {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .race-datetime {
    justify-content: center;
  }

  .countdown-timer {
    justify-content: center;
    margin-top: 20px;
    width: 100%;
  }

  .race-flag {
    margin-bottom: 10px;
  }
}

/* Make tables scroll horizontally on very small screens */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hide on large screens (laptops/desktops) */
@media (min-width: 1025px) {
  #rotate-message {
    display: none !important;
  }
}

/* Weather styles for Next Race section */
.race-weather {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0, 210, 190, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(0, 210, 190, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.weather-loading {
  color: #aaaaaa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-loading .spinner-border {
  color: #00d2be;
}

.weather-display {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.weather-icon {
  width: 30px;
  height: 30px;
}

.weather-temp {
  font-weight: 600;
  color: #00d2be;
}

.weather-condition {
  color: #aaaaaa;
}

.weather-error {
  color: #ff6b6b;
  font-style: italic;
}

/* Responsive adjustments for weather */
@media (max-width: 768px) {
  .race-weather {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .weather-icon {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 576px) {
  .race-weather {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/* MORE AGGRESSIVE FIX FOR CONSTRUCTOR TABLE */
.col-lg-6:last-child .f1-standings-card .standings-table {
  border-collapse: collapse !important;
}

.col-lg-6:last-child .f1-standings-card .standings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.col-lg-6:last-child .f1-standings-card .standings-table tbody tr:hover {
  border-bottom-color: rgba(225, 6, 0, 0.3) !important;
}

.col-lg-6:last-child .f1-standings-card .standings-table tbody tr:last-child {
  border-bottom: none !important;
}
h1 {
  font-family: "Titillium Web", sans-serif;
  font-weight: bold;
  font-size: 2.5em;
}
h2 {
  font-family: "Titillium Web", sans-serif;
  font-size: 2.5em;
  font-weight: bold;
}

h5 {
  font-family: "Titillium Web", sans-serif;
}

h6 {
  font-family: "Titillium Web", sans-serif;
  font-size: 0.8em;
  font-style: italic;
  color: white;
  margin-top: 7px;
}

#fireworks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .year {
    font-size: 4rem;
  }
  .countdown {
    gap: 10px;
  }
  .time-unit {
    min-width: 90px;
    padding: 10px;
  }
  .number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 20px 10px;
  }
  h1 {
    font-size: 2rem;
  }
  .year {
    font-size: 3rem;
  }
  .countdown {
    flex-wrap: wrap;
  }
  .time-unit {
    min-width: 70px;
  }
  .number {
    font-size: 2rem;
  }
  .label {
    font-size: 0.9rem;
  }
  .message {
    font-size: 1.4rem;
  }
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8f9fa;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  border-top: 1px solid #dee2e6;
}

.cookie-banner p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #495057;
}

@media (max-width: 767.98px) {
  .cookie-banner {
    padding: 10px 0;
  }

  .cookie-banner .btn {
    display: inline-block;
    margin-bottom: 5px;
  }
}

/* Fix: Ensure it's visible on desktop */
#currentDateTime {
  display: block !important; /* Override any hiding */
  color: white;
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  z-index: 1;
}

/* If using a media query, modify it */
@media (min-width: 768px) {
  /* Desktop */
  #currentDateTime {
    display: block; /* Ensure it's visible */
  }
}

/* Cookie Banner Styles End*/

/* Banner */
.masthead {
  height: 25vh;
  min-height: 15.62em;
  background-image: url("/images/banner/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Banner End*/

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
}

#scrollToTopBtn.d-none {
  display: none !important;
  visibility: hidden !important;
}

@media (min-width: 768px) {
  .scrollToTopBtn {
    display: inline-block;
  }
}

span {
  z-index: 200;
}

.btn-primary {
  background: rgb(0, 0, 0);
  background: linear-gradient(
    157deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(52, 52, 235, 1) 50%,
    rgba(0, 0, 0, 1) 100%
  );
}

/* Gold text gradient */
.golden-base {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  -webkit-margin-before: 0.3em;
  -webkit-margin-after: 0.2em;
}
.golden1 {
  background-image: -webkit-linear-gradient(#fff65c, #3a2c00);
  text-shadow: -0.02em -0.03em 0.005em rgba(255, 223, 0, 0.6);
  font-size: 2.5em;
}
.golden2 {
  background-image: -webkit-linear-gradient(
    #e8d800,
    #e0cf00 52%,
    #a86800 55%,
    #a86800
  );
  text-shadow: -0.02em -0.03em 0.005em rgba(255, 255, 0, 0.56);
  font-size: 2.5em;
}
.golden3 {
  -webkit-text-stroke: 0.01em white;
  font-size: 2.5em;
  text-shadow: 0 3px 20px red, 0 0 20px red, 0 0 10px orange,
    4px -5px 6px yellow, -4px -10px 10px yellow, 0 -10px 30px yellow;
  animation: animate 2s infinite alternate linear;
}

@keyframes animate {
  0% {
    text-shadow: 0 3px 20px red, 0 0 20px red, 0 0 10px orange, 0 0 0 yellow,
      0 0 5px yellow, -2px -5px 5px yellow, 4px -10px 10px yellow;
  }
  25% {
    text-shadow: 0 3px 20px red, 0 0 30px red, 0 0 20px orange, 0 0 5px yellow,
      -2px -5px 5px yellow, 3px -10px 10px yellow, -4px -15px 20px yellow;
  }
  50% {
    text-shadow: 0 3px 20px red, 0 0 20px red, 0 -5px 10px orange,
      -2px -5px 5px yellow, 3 -10px 10px yellow, -4px -15px 20px yellow,
      2px -20px 30px rgba(255, 255, 0, 0.5);
  }
  75% {
    text-shadow: 0 3px 20px red, 0 0 20px red, 0 -5px 10px orange,
      3 -5px 5px yellow, -4px -10px 10px yellow,
      2px -20px 30px rgba(255, 255, 0, 0.5), 0 -25px 40px rgba(255, 255, 0, 0);
  }
  100% {
    text-shadow: 0 3px 20px red, 0 0 20px red, 0 0 10px orange, 0 0 0 yellow,
      0 0 5px yellow, -2px -5px 5px yellow, 4px -10px 10px yellow;
  }
}

.border-info {
  border: 0.125em solid #67e6ec;
  border-radius: 0.31em;
}

.border-shadow {
  box-shadow: 0 0 1.25em rgba(103, 230, 236, 1);
}

.canva {
  height: 100%;
  width: 100%;
  overflow-y: auto;
}

.offcanvas {
  background: rgba(23, 23, 66);
}

.btn-close:focus {
  outline: none;
  box-shadow: none;
}

.navbar {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(7, 7, 161, 1) 50%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 200;
}

.navbar-toggler {
  font-size: 40px;
  color: white;
  outline: none;
  box-shadow: none;
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
  color: white;
}

.navbar-brand {
  color: white;
  font-weight: bold;
  font-size: 1em;
}

.navbar-brand:hover {
  color: white;
}

.navbar-nav a {
  text-decoration: none;
  color: white;
  font-size: 1em;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  transition: all 0.5s;
}

.navbar-nav a:hover {
  color: rgba(103, 230, 236);
}

.btn1 {
  height: 2.81em;
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  color: white;
  background-color: transparent;
  font-weight: 900;
  z-index: 1;
  position: relative;
  overflow: hidden;
  padding: 6px;
}

.link {
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  color: white;
  background-color: rgba(4, 23, 194, 0.657);
  font-weight: 900;
  z-index: 1;
  position: relative;
  overflow: hidden;
  padding: 1px;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.content h3 {
  font-size: 4rem;
}

.content p {
  font-size: 1rem;
}

.content input {
  height: 4em;
  width: 70%;
  background: white;
  padding: 1.25em;
  border-radius: 0.3em;
  outline: none;
  border: none;
}

#myImg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
  height: 85%;
  border-radius: 0.31em;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid #67e6ec;
}

/* The Close Button */

.close {
  position: absolute;
  top: 10px;
  right: 30px;
  color: #f1f1f1;
  font-size: 2.5em;
  font-weight: bold;
  transition: 0.3s;
  z-index: 2;
}

.close:hover,
.close:focus {
  text-decoration: none;
  cursor: pointer;
  color: #ffffff;
}

.offcanvas-header img {
  display: block;
  width: 4.68em;
  height: 4.68em;
  border-radius: 50%;
  margin: 0 auto;
  background: black;
}

.offcanvas-header h5 {
  color: #ffffff;
  margin: 0.62em 0 0.31em;
  text-align: center;
}

.offcanvas-header p {
  color: rgb(206, 240, 253);
  font-size: 0.87em;
}

.offcanvas-header h5,
.offcanvas-header h6 {
  margin: 0;
}

.offcanvas-header h6 {
  margin-bottom: 1.5rem; /* same as Bootstrap mb-3 */
}

/*Animated Circle Gradient Border for Profile Image */
.profile-image-wrapper {
  position: relative;
  display: inline-block;
  width: 5em;
  height: 5em;
}

.profile-image-wrapper img {
  width: 4.5em;
  height: 4.5em;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  display: block;
  margin: auto;
}

.profile-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#3457d5, #1e90ff, #67e6ec, blue, #3457d5);
  animation: rotateBorder 3s linear infinite;
  z-index: 0;
}

.profile-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0.25em; /* Ensures even spacing all around */
  border-radius: 50%;
  background: black; /* Match your page background */
  z-index: 1;
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== TICKER ===== */

.ticker-outer-container {
  position: relative;
  margin-bottom: 1rem;
}

/* Main Ticker Container */
.ticker-container {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(30, 30, 30, 0.98) 100%
  );
  width: auto;
  border: 2px solid #e10600;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Red Accent Lines */
.ticker-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e10600 0%, #ffffff 50%, #e10600 100%);
  z-index: 2;
}

.ticker-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e10600 0%, #ffffff 50%, #e10600 100%);
  z-index: 2;
}

/* Ticker Header Container */
.ticker-header-container {
  background: linear-gradient(
    90deg,
    rgba(225, 6, 0, 0.2) 0%,
    rgba(225, 6, 0, 0.1) 50%,
    rgba(225, 6, 0, 0.2) 100%
  );
  padding: 14px 24px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.3);
  text-align: center;
}

/* Ticker Header Container */
.ticker-header-container {
  background: linear-gradient(
    90deg,
    rgba(225, 6, 0, 0.2) 0%,
    rgba(225, 6, 0, 0.1) 50%,
    rgba(225, 6, 0, 0.2) 100%
  );
  padding: 14px 24px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.3);
  text-align: center;
}

.ticker-header-title {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 8px 60px; /* Increased horizontal padding for pill shape */

  /* Breaking news PILL/BACKGROUND effect */
  background: linear-gradient(135deg, #e10600 0%, #c10500 100%);
  border-radius: 50px; /* Creates pill shape */
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;

  /* Optional glow effect */
  position: relative;
  overflow: hidden;
}

/* Optional: Add subtle animation */
.ticker-header-title {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  50% {
    box-shadow: 0 4px 20px rgba(225, 6, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  }
}

.ticker-header-title::before,
.ticker-header-title::after {
  content: "•";
  color: #ffffff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ticker-header-title::before {
  left: 20px;
}

.ticker-header-title::after {
  right: 20px;
}

/* Alternative: If you want the BREAKING text badge effect */
.ticker-header-title.with-breaking-badge {
  padding: 8px 40px;
  position: relative;
}

.ticker-header-title.with-breaking-badge::before {
  content: "BREAKING";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #e10600;
  color: white;
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Ticker Content - Full Width */
.ticker-content-wrapper {
  padding: 0;
  width: 100%;
}

.ticker-viewport {
  overflow: hidden;
  position: relative;
  padding: 18px 0;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 20px;
}

.ticker-container:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.ticker-separator {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
}

.ticker-dot {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
}
/* Ticker Items */
.ticker-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 450px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ticker-item:hover {
  background: rgba(225, 6, 0, 0.1);
  border-color: rgba(225, 6, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.2);
}

/* Ticker Badges */
.ticker-badge {
  font-family: "Formula1", "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-badge-new {
  background: #e10600;
  color: white;
}

.ticker-badge-update {
  background: #00d2be;
  color: black;
}

.ticker-badge-feature {
  background: #ffd700;
  color: black;
}

.ticker-badge-improvement {
  background: #32cd32;
  color: black;
}

.ticker-badge-legal {
  background: #9370db;
  color: white;
}

.ticker-text {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Overhang Image Update */
.ticker-overhang-image {
  position: absolute;
  top: -15px;
  left: -15px;
  z-index: 10;
  height: 40px;
  width: 40px;
  object-fit: contain;
}

/* Fade Edges - More subtle */
.ticker-viewport::before,
.ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker-viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 0) 100%
  );
}

.ticker-viewport::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 0) 100%
  );
}

/* Responsive Design */
@media (max-width: 1200px) {
  .ticker-item {
    min-width: 340px;
    padding: 10px 20px;
  }

  .ticker-text {
    font-size: 0.95rem;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .ticker-header-title {
    font-size: 1.3rem;
    padding: 8px 50px; /* Pill shape padding */
    letter-spacing: 1.5px;
  }

  .ticker-header-title::before {
    font-size: 1.5rem;
    left: 15px; /* Left dot position */
  }

  .ticker-header-title::after {
    font-size: 1.5rem;
    right: 15px; /* Right dot position */
  }

  .ticker-item {
    min-width: 300px;
    gap: 12px;
    padding: 8px 16px;
  }

  .ticker-text {
    font-size: 0.9rem;
  }

  .ticker-track {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .ticker-container {
    border-width: 1px;
    border-radius: 10px;
  }

  .ticker-header-container {
    padding: 12px 15px;
  }

  .ticker-header-title {
    font-size: 1.2rem;
    padding: 6px 40px; /* Pill shape padding */
    letter-spacing: 1px;
  }

  .ticker-header-title::before {
    font-size: 1.3rem;
    left: 12px; /* Left dot position */
  }

  .ticker-header-title::after {
    font-size: 1.3rem;
    right: 12px; /* Right dot position */
  }

  .ticker-track {
    gap: 25px;
    padding-left: 15px;
    animation-duration: 35s;
  }

  .ticker-item {
    min-width: 280px;
    padding: 8px 14px;
    gap: 10px;
  }

  .ticker-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .ticker-text {
    font-size: 0.85rem;
  }

  .ticker-overhang-image {
    top: -12px;
    left: -12px;
    height: 35px;
    width: 35px;
  }

  .ticker-viewport::before,
  .ticker-viewport::after {
    width: 50px;
  }
}

@media (max-width: 576px) {
  .ticker-header-title {
    font-size: 1.1rem;
    padding: 5px 35px; /* Pill shape padding */
  }

  .ticker-header-title::before {
    font-size: 1.1rem;
    left: 10px; /* Left dot position */
  }

  .ticker-header-title::after {
    font-size: 1.1rem;
    right: 10px; /* Right dot position */
  }

  .ticker-item {
    min-width: 260px;
    padding: 7px 12px;
  }

  .ticker-text {
    font-size: 0.8rem;
  }

  .ticker-track {
    animation-duration: 30s;
    gap: 20px;
    padding-left: 12px;
  }

  .ticker-viewport::before,
  .ticker-viewport::after {
    width: 40px;
  }
}

@media (max-width: 400px) {
  .ticker-header-title {
    font-size: 1rem;
    padding: 4px 30px; /* Pill shape padding */
  }

  .ticker-header-title::before {
    font-size: 1rem;
    left: 8px; /* Left dot position */
  }

  .ticker-header-title::after {
    font-size: 1rem;
    right: 8px; /* Right dot position */
  }

  .ticker-item {
    min-width: 240px;
    padding: 6px 10px;
  }

  .ticker-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .ticker-text {
    font-size: 0.75rem;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .ticker-header-title {
    font-size: 0.95rem;
    padding: 4px 25px; /* Pill shape padding */
  }

  .ticker-header-title::before {
    font-size: 0.9rem;
    left: 6px; /* Left dot position */
  }

  .ticker-header-title::after {
    font-size: 0.9rem;
    right: 6px; /* Right dot position */
  }

  .ticker-item {
    min-width: 220px;
    padding: 5px 8px;
  }

  .ticker-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
  }

  .ticker-text {
    font-size: 0.7rem;
  }

  .ticker-viewport::before,
  .ticker-viewport::after {
    width: 30px;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer-toggle-container {
  position: relative;
  width: 25%;
  margin: 0 auto;
  white-space: nowrap; /* Keeps text on one line */
  text-align: center; /* Centers text horizontally */
  padding: 10px 0; /* Adds vertical space */
  min-width: 250px; /* Prevents container from getting too narrow */
  overflow: hidden; /* Contains any overflow */
}

/* Adjust for mobile */
@media (max-width: 768px) {
  .footer-toggle-container {
    width: 80%; /* Wider on mobile */
  }
}

.footer-toggle-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #001ae1 0%, #ffffff 50%, #001ae1 100%);
  z-index: 2;
}

.footer-toggle-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #001ae1 0%, #ffffff 50%, #001ae1 100%);
  z-index: 2;
}

/* Add left and right borders using box-shadow on the main element */
.footer-toggle-container {
  box-shadow: inset -3px 0 0 0 #001ae1, inset 3px 0 0 0 #001ae1;
}

/* Or using border property */
.footer-toggle-container {
  border-left: 3px solid #001ae1;
  border-right: 3px solid #001ae1;
}

.footer-toggle-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #001ae1 0%, #ffffff 50%, #001ae1 100%);
  z-index: 2;
}

.footer-toggle-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #001ae1 0%, #ffffff 50%, #001ae1 100%);
  z-index: 2;
}

/* Add left and right borders using box-shadow on the main element */
.footer-toggle-container {
  box-shadow: inset -3px 0 0 0 #001ae1, inset 3px 0 0 0 #001ae1;
}

/* Or using border property */
.footer-toggle-container {
  border-left: 3px solid #001ae1;
  border-right: 3px solid #001ae1;
}

/* ========================================
  IMAGE POPOUT MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 99999; /* Increased from 9999 to 99999 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
}

#caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100002; /* Added z-index for caption */
}

.close {
    position: fixed;
    top: 15px;
    right: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    z-index: 100001; /* Increased significantly */
    line-height: 1;
    padding: 0;
}

.close:hover {
    background: #ff1a1a;
}

/* Ensure modal content is above everything */
.modal-content {
    z-index: 100000;
}

/* Optional: Add a subtle animation */
.modal-content, #caption, .close {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
