body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: white;
  /* White background */
}

.swiper {
  width: 100%;
  /* Adjust width */
  height: auto;
  /* Auto height based on content */
  padding-bottom: 20px;
  /* Space for pagination/shadow */
}

.swiper-slide {
  background: #fff;
  padding: 0;
  /* Remove padding to ensure edge-to-edge if desired, or keep small */
  border-radius: 10px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: auto !important;
  /* Allow content to dictate height */
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 319;
  /* Enforce strictly requested aspect ratio */
  object-fit: contain;
  /* Ensure full image is visible ("pura aaye") */
  border-radius: 8px;
}


.navbar {
  background-color: #333;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 14px 0;
}

.navbar a {
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
  white-space: nowrap;
}

.navbar a:hover {
  background-color: #ddd;
  color: black;
  transform: scale(1.1);
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Adjust width as needed */
  height: 300px;
  /* Adjust height as needed */
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideShow 9s infinite;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 3s;
}

.slide:nth-child(3) {
  animation-delay: 6s;
}

@keyframes slideShow {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  40% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.banner img {
  width: 100%;
  /* Make images stretch across the full width */
  height: auto;
  /* Maintain aspect ratio */
  max-height: 250px;
  /* Set a max height if needed */
  object-fit: cover;
  /* Ensures images cover the area without distortion */
}

@keyframes highlightCell {
  0% {
    background-color: #4CAF50;
    color: white;
  }

  50% {
    background-color: #45a049;
    color: white;
  }

  100% {
    background-color: transparent;
    color: inherit;
  }
}

.highlight {
  animation: highlightCell 5s ease-out;
}

.table-container table td {
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .banner img {
    max-height: 150px;
    /* Adjust max height for smaller screens */
  }
}

.banner img.active {
  opacity: 1;
  /* Show the active image */
  transition: opacity 1s ease-in-out;
  /* Smooth transition for opacity */
}

table {
  width: 100%;
  /* Full width */
  border-collapse: collapse;
  /* Collapse borders */
}

th,
td {
  border: 1px solid #ddd;
  /* Light border */
  padding: 8px;
  /* Padding for cells */
  text-align: left;
  /* Align text to the left */
  color: black;
  /* Black text color */
}

th {
  background-color: #4CAF50;
  /* Green background for header */
  color: black;
  /* Black text for header */
}

tr:hover {
  background-color: #f1f1f1;
  /* Light grey background on hover */
}

.news-ticker-container {
  background-color: #fdf6e3;
  /* Light beige background */
  border: 1px solid #dfe5d7;
  /* Light green border */
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  height: 50px;
  /* Explicit height to prevent collapse */
  position: relative;
}

.news-label {
  padding: 0px 10px;
  background-color: white;
  z-index: 3;
  font-weight: bold;
  color: red;
  margin-right: 10px;
  white-space: nowrap;
}



.facebook-icon {
  padding: 0px 10px;
  z-index: 3;
  background-color: white;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facebook-icon img {
  max-height: 80%;
  width: auto;
}


@keyframes scroll {
  0% {
    transform: translateX(100%);
    /* Start off-screen to the right */
  }

  100% {
    transform: translateX(-100%);
    /* End off-screen to the left */
  }
}


.banner img.active {
  opacity: 1;
  /* Show the active image */
  z-index: 1;
  /* Ensure the active image is on top */
}

/* Urdu font loaded from fonts.css (Jameel Noori Nastaliq + Noto Nastaliq Urdu fallback) */
@import url('fonts.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Jameel Noori Nastaliq', 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', sans-serif;
}

body {
  background: white;
  color: black;
  text-align: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

@media screen and (max-width: 1200px) {
  .container {
    max-width: 95%;
    padding: 15px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 10px;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@600&display=swap');

#welcome-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  /* Slightly larger for emphasis */
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  background: linear-gradient(135deg, #120d2b 0%, #db5609 100%);
  /* Gradient to match the purple-blue theme */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
  padding: 0.2em 0.5em;
  position: relative;
  text-align: center;
  /* Centered like in your image */
}

#welcome-note:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: #00ddeb;
  /* Cyan underline to match the gradient */
  border-radius: 2px;
}

.pigeon-info {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  /* Slightly larger for emphasis */
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  background: linear-gradient(135deg, #120d2b 0%, #db5609 100%);
  /* Gradient to match the purple-blue theme */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
  padding: 0.2em 0.5em;
}

/* Summary Cards */
.summary-cards {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.card {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  margin: 10px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  font-size: 24px;
  font-weight: bold;
}

.total {
  background: rgba(46, 204, 113, 0.8);
}

.flown {
  background: rgba(52, 152, 219, 0.8);
}

.remaining {
  background: rgba(231, 76, 60, 0.8);
}

.table-container {
  width: 100%;
  overflow-x: visible;
  /* Remove horizontal scrolling */
  display: block;
  white-space: normal;
  /* Allow text wrapping */
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

thead {
  background: #4CAF50;
}

thead th:first-child {
  border-radius: 12px 0 0 0;
}

thead th:last-child {
  border-radius: 0 12px 0 0;
}

th,
td {
  padding: 12px;
  text-align: center;
  border: 1px solid black;
  /* Black borders */
  color: black;
}

th {
  font-size: 16px;
  font-weight: bold;
  background-color: #4CAF50;
}

tbody tr:nth-child(odd) {
  background: #ffffff;
  /* Bright white for odd rows */
}

tbody tr:nth-child(even) {
  background: #e8f4f8;
  /* Light blue-tinted white for even rows */
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile/tablet: prevent shrink and smooth navbar (768px and below) */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .container {
    max-width: 100%;
    min-width: 0;
  }
  .navbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 12px;
    margin: 0 0;
    scrollbar-width: thin;
  }
  .navbar::-webkit-scrollbar {
    height: 4px;
  }
  .navbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
  }
  .navbar a {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media screen and (max-width: 600px) {
  body {
    padding: 0px;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    /* Allow aspect ratio to control height */
    border-radius: 10px;
  }

  .swiper-button-next {
    height: 20px;
    width: 20px;
  }

  /* Stack summary cards on mobile and show descriptions */
  .summary-cards {
    flex-direction: column;
    gap: 12px;
    padding: 8px 6px;
    align-items: stretch;
  }

  .card {
    flex: 1 1 auto;
    margin: 6px 10px;
  }

  /* Hide the small description text everywhere */
  .card small {
    display: none !important;
  }

  .banner img {
    max-height: 120px;
  }

  .swiper-slide {
    height: auto !important;
    padding: 5px;
  }

  #welcome-note {
    font-size: 17px;
    margin-bottom: 35px;
  }

  #welcome-note:after {
    bottom: -10px;
  }


  .swiper {
    height: auto !important;
  }

  .table-container {
    width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }

  /* Keep table styling same as desktop */
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  thead {
    background: #4CAF50;
  }

  thead th:first-child {
    border-radius: 12px 0 0 0;
  }

  thead th:last-child {
    border-radius: 0 12px 0 0;
  }

  th,
  td {
    padding: 12px;
    text-align: center;
    border: 1px solid black;
    /* Black borders */
    color: black;
  }

  th {
    font-size: 16px;
    padding: 12px;
    font-weight: bold;
    background: #4CAF50;
    color: black;
  }

  thead {
    background: #4CAF50;
  }

  tbody tr:nth-child(odd) {
    background: #ffffff;
    /* Bright white for odd rows */
  }

  tbody tr:nth-child(even) {
    background: #e8f4f8;
    /* Light blue-tinted for even rows */
  }

  tbody tr:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Fix New Ticker on Mobile */
  .news-ticker-container {
    padding: 0;
    height: 50px;
  }

  .news-label {
    font-size: 11px;
    padding: 2px 6px;
    margin-right: 5px;
  }

  .news-content {
    font-size: 13px;
    /* Smaller font for mobile */
    padding: 0 10px;
    line-height: 1.4;
    overflow: hidden;
    /* Ensure masking on mobile too */
  }

  .facebook-icon {
    padding: 0 5px;
    transform: scale(0.8);
    margin-left: 5px;
  }
}

/* Global Ticker Styles - Updated for robust scrolling */
.news-content {
  z-index: 1;
  color: black;
  flex: 1;
  padding: 0 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.ticker-text {
  position: absolute;
  top: 50%;
  white-space: nowrap;
  animation: newsScroll 30s linear infinite;
  will-change: left, transform;
}

@keyframes newsScroll {
  0% {
    left: 0;
    transform: translate(-100%, -50%);
  }

  100% {
    left: 100%;
    transform: translate(0, -50%);
  }
}

/* PC view only - slightly bigger font size */
@media screen and (min-width: 1025px) {
  * {
    font-size: inherit;
  }
  body {
    font-size: 18px;
  }
  .card h2 {
    font-size: 22px !important;
  }
  .card p {
    font-size: 26px !important;
  }
  #welcome-note {
    font-size: 3.25rem !important;
  }
  .pigeon-info {
    font-size: 2.2rem !important;
  }
  .navbar a {
    font-size: 1.05rem;
  }
  table, .table-container th, .table-container td {
    font-size: 16px !important;
  }
}