@import url('fonts.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@600&display=swap');

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: white;
  /* White background */
}

.clock {
  color: yellow;
}

.swiper {
  width: 100%;
  /* Adjust width */
  height: auto;
  /* Auto height based on content */
  padding-bottom: 0px;
  /* 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;
}

/* ---- Default (Bari Screens / PC Ke Liye) ---- */
.live-viewers-bar {
  background: #1a252f;
  color: #fff;
  padding: 6px 12px;
  font-size: 15px;
  /* PC par bada font */
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.datetime-info {
  min-width: 180px;
  /* fixed width do */
  min-height: 24px;
  /* fixed height do */
  display: flex;
  gap: 15px;
  /* PC par zyada gap */
  align-items: center;
  color: yellow;
  font-weight: bold;
  font-size: 15px;
  /* PC par bada font */
}


/* ---- Mobile Screens Ke Liye (Responsive Design) ---- */
/* Jab screen ki width 600px ya us se kam hogi (Jaise Mobiles) */
@media (max-width: 600px) {

  .live-viewers-bar {
    padding: 4px 8px;
    /* Mobile par thora patla bar */
    font-size: 12px;
    /* Mobile par chota font */
  }

  .datetime-info {
    gap: 8px;
    /* Mobile par date aur time ke darmiyan gap kam */
    font-size: 12px;
    /* Mobile par date/time ka chota font */
  }
}

.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 */
}


.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) */


* {
  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;
  }
}



#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 — Premium Design ===== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px auto;
  max-width: 960px;
  padding: 0 16px;
}

.card {
  position: relative;
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  border: 1px solid rgba(0,0,0,0.04);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 16px 16px 0 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Card icon circle */
.card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
  align-self: center;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card h2 {
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.card p {
  font-size: 1.65rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* --- Color variants --- */
.total::before { background: linear-gradient(135deg, #10b981, #059669); }
.total .card-icon { background: linear-gradient(135deg, #10b981, #059669); }

.remaining::before { background: linear-gradient(135deg, #ef4444, #dc2626); }
.remaining .card-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }

.landed::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.landed .card-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }

.flown::before { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.flown .card-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* --- Tablet (2 columns) --- */
@media screen and (max-width: 768px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 12px;
  }

  .card {
    padding: 18px 16px;
  }
  .card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    font-size: 20px;
  }
  .card p { font-size: 1.35rem; }
  .card h2 { font-size: 0.75rem; }
}

/* --- Mobile (compact cards, icon stays LEFT) --- */
@media screen and (max-width: 560px) {
  .summary-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 6px;
    margin: 10px auto;
  }

  .card {
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 10px 8px;
    gap: 8px;
    border-radius: 12px;
    min-width: 0;
  }

  .card::before { height: 3px; }

  .card-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    font-size: 14px;
    align-self: center;
  }

  .card h2 {
    font-size: 0.55rem;
    letter-spacing: 0.2px;
  }

  .card p {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .card small { display: none !important; }
}

.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: collapse;
  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: #778cff;
}

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;
  }
}


/* Mobile par Urdu name column chhota karo */
@media screen and (max-width: 768px) {

  table {
    font-size: 9px;
  }

  table td,
  table th {
    padding: 4px 3px;
    font-size: 10px;
  }

  /* Sirf Urdu Name column chhota */
  table td:nth-child(2),
  table th:nth-child(2) {
    font-size: 12px;
    max-width: 80px;
    word-break: break-word;
    white-space: normal;
  }
}

@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;
  }




  .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: collapse;
    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: #778cff;
    color: rgb(0, 0, 0);
  }

  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;
  }

  .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%;
}

/* PC view only - slightly bigger font size */
@media screen and (min-width: 1025px) {
  * {
    font-size: inherit;
  }

  body {
    font-size: 18px;
  }

  .card h2 {
    font-size: 0.9rem !important;
  }

  .card p {
    font-size: 1.85rem !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;
  }
}