html {
  height: 100%;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1e3a8a;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Home layout specific background */
body.home-layout {
  background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 50%, #f1f5f9 100%);
}

main {
  flex: 1;
  padding-top: 5vh;
}

.content-wrapper {
  padding-left: 2em;
}

.hero-outside-wrapper {
  margin-left: -2em;
}

.hero-banner {
  background: url('/assets/images/cricket-hero.jpg') center/cover no-repeat;
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  animation: heroZoomOut 10s ease-out;
}

@keyframes heroZoomOut {
  0% {
    background-size: 110% auto;
  }
  100% {
    background-size: 100% auto;
  }
}
.hero-banner::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 58, 138, 0.1);
  z-index: 1;
}
.hero-overlay { 
  position: relative; 
  z-index: 2; 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-title { 
  color: white; 
  font-size: 4rem; 
  font-weight: 700; 
  background: rgba(30, 58, 138, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
}
.hero-subtitle { 
  color: white; 
  font-size: 1.25rem; 
  background: rgba(30, 58, 138, 0.8);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  display: inline-block;
  margin: 0;
}
.hero-button {
  display: inline-block; margin-top: 1rem;
  background-color: #1d4ed8; color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600; text-decoration: none;
  transition: background-color 0.3s ease;
}
.hero-button:hover { background-color: #1e3a8a; color: #e0e7ff; }

/* Navigation */
.main-nav {
  background: #1E3A8A;
  background: linear-gradient(90deg,rgba(30, 58, 138, 1) 0%, rgba(87, 130, 199, 1) 50%, rgba(30, 58, 138, 1) 100%);
  padding: 1.5rem 1rem;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
}
.nav-logo .logo {
  height: 40px;
  width: auto;
}
.nav-logo {
  margin-right: 2rem;
}
.nav-logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.nav-logo .club-name {
  color: #e0e7ff;
  font-size: 1.65rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Show full name on desktop, hide short name */
.club-name-short {
  display: none;
}

/* Hamburger menu - hidden on desktop */
.hamburger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #e0e7ff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Rotate hamburger lines when active */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  text-decoration: none;
  color: #e0e7ff;
  font-weight: 500;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
}
.nav-menu li a:hover { color: #bfdbfe; }

/* Medium screen adjustments - allow nav to wrap */
@media (max-width: 1900px) and (min-width: 769px) {
  .nav-container {
    flex-wrap: wrap;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .nav-menu li a {
    font-size: 1.3rem;
    padding: 0.4rem 0.8rem;
  }
  
  .nav-logo .club-name {
    font-size: 1.4rem;
  }
}

/* Large screen layout - full width navigation */
@media (min-width: 1901px) {
  .nav-container {
    max-width: none;
    padding: 0 2rem;
  }
  
  .nav-menu {
    gap: 2rem;
  }
  
  .nav-menu li a {
    font-size: 1.6rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }
  
  /* Hide full name, show short name */
  .club-name-full {
    display: none;
  }
  
  .club-name-short {
    display: inline;
  }
  
  .nav-logo .club-name {
    font-size: 1.4rem;
  }
  
  .nav-logo {
    margin-right: 1rem;
  }
  
  /* Show hamburger menu */
  .hamburger-menu {
    display: flex;
    z-index: 1001;
  }
  
  /* Hide navigation menu by default */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(90deg,rgba(30, 58, 138, 1) 0%, rgba(87, 130, 199, 1) 50%, rgba(30, 58, 138, 1) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  /* Show navigation when active */
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
  }
  
  .nav-menu li:last-child a {
    border-bottom: none;
  }
  
  .nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  
  /* Reduce navigation padding on mobile */
  .main-nav {
    padding: 1rem 1rem;
  }
}

/* Tabs */
.tabs { margin-top: 1rem; }
.tab-links { 
  list-style: none; 
  display: flex; 
  gap: 0.5rem; 
  padding: 0; 
  justify-content: center; 
  margin-bottom: 1rem;
}
.tab-links-second {
  margin-top: 0.5rem;
}
.tab-links-third {
  margin-top: 0.5rem;
}
.tab-links li a {
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}
.tab-links li a.active, .tab-links li a:hover { 
  background-color: #1d4ed8; 
  color: white; 
}
.tab { 
  display: none; 
  padding: 1.5rem; 
  border: 1px solid #1d4ed8; 
  background-color: #e0e7ff; 
  position: relative;
  min-height: 300px;
  margin-left: -2em;
  padding-left: calc(1.5rem + 2em);
}
.tab.active { display: block; }

/* Tab with background image support */
.tab.has-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.tab.has-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.3);
  z-index: 1;
}

.tab.has-background .tab-content-wrapper {
  position: relative;
  z-index: 2;
}

.tab.has-background h1,
.tab.has-background h2,
.tab.has-background h3,
.tab.has-background h4,
.tab.has-background p {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Content box styling for default layout */
.content-box {
  padding: 1.5rem;
  border: 1px solid #1d4ed8;
  background-color: #e0e7ff;
  position: relative;
  min-height: 300px;
  margin-left: -2em;
  padding-left: calc(1.5rem + 2em);
}

/* Content box with background image support */
.content-box.has-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.content-box.has-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.3);
  z-index: 1;
}

.content-box.has-background .content-box-wrapper {
  position: relative;
  z-index: 2;
}

.content-box.has-background h1,
.content-box.has-background h2,
.content-box.has-background h3,
.content-box.has-background h4,
.content-box.has-background p {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Headings & links */
h1,h2,h3,h4 { color: #1d4ed8; }
a { 
  color: #10b981; 
  text-decoration: none; 
  transition: color 0.3s ease;
  font-weight: 500;
}
a:hover { 
  color: #059669;
  text-decoration: underline; 
}

/* Tables */
table {
  width: calc(100% - 2em);
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

table th {
  background-color: #1e3a8a;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid #1d4ed8;
}

table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

table tr:nth-child(even) {
  background-color: #f8fafc;
}

table tr:nth-child(odd) {
  background-color: white;
}

table tr:hover {
  background-color: #e0e7ff;
  transition: background-color 0.2s ease;
}

table td a {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
}

table td a:hover {
  color: #059669;
  text-decoration: underline;
}

/* Contact table specific styling */
table th:first-child {
  width: 25%;
}

table th:nth-child(2) {
  width: 25%;
}

table th:nth-child(3) {
  width: 25%;
}

table th:nth-child(4) {
  width: 25%;
}

/* Home page content styling */
.welcome-section {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
  border-radius: 12px;
  border-left: 4px solid #1d4ed8;
}

.welcome-section h2 {
  color: #1d4ed8;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
  max-width: 800px;
  margin: 0 auto;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.highlight-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #10b981;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.highlight-card h3 {
  color: #1d4ed8;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.quick-info {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.quick-info h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1d4ed8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #10b981;
  font-size: 0.95rem;
}

.info-item strong {
  color: #1d4ed8;
  display: block;
  margin-bottom: 0.25rem;
}

.news-preview {
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-preview h2 {
  color: #1d4ed8;
  margin-bottom: 1rem;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.news-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list a {
  font-weight: 500;
  flex: 1;
}

.news-date {
  font-size: 0.85rem;
  color: #6b7280;
  margin-left: 1rem;
}

.more-news-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #1d4ed8;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.more-news-link:hover {
  background-color: #1e3a8a;
  text-decoration: none;
}

/* Responsive design for home page */
@media (max-width: 768px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .news-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .news-date {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* Footer */
.site-footer {
  background-color: #1e3a8a;
  color: #e0e7ff;
  padding: 1.5rem 1rem 0.75rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
}

.footer-section {
  flex: 1;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex: 2;
}

.contact-section .club-name {
  font-weight: 600;
  color: #bfdbfe;
}

.contact-section .contact-divider {
  color: #6b7280;
  font-weight: 300;
}

.social-section {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer-section h3 {
  color: #bfdbfe;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.25rem;
}

.footer-section ul li a {
  color: #e0e7ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #bfdbfe;
}

.footer-section p {
  margin-bottom: 0.25rem;
  color: #e0e7ff;
}

/* Contact links styling */
.contact-section span a {
  color: #fbbf24;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-section span a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: #e0e7ff;
  text-decoration: none;
  padding: 0.5rem;
  border: 1px solid #1d4ed8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  gap: 0.25rem;
}

.social-links a:hover {
  background-color: #1d4ed8;
  color: white;
  transform: translateY(-1px);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.social-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #e0e7ff;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid #1d4ed8;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #bfdbfe;
  font-size: 0.85rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .contact-section {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .social-section {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Alternating Rows Layout */
.alternating-rows {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  margin-left: calc(-50vw + 50%);
  overflow-x: hidden;
}

.row-section {
  width: 100%;
  padding: 2rem 0;
  position: relative;
}

/* Remove old row styling */
.row-normal, .row-alternate {
  background: transparent;
}

.row-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0 2rem;
  min-height: 400px;
}

.content-block, .image-block {
  display: flex;
  align-items: center;
  padding: 3rem;
  min-height: 400px;
}

.content-inner {
  width: 100%;
}

.content-inner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.content-inner p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.image-block {
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.image-block img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.image-block img:hover {
  transform: scale(1.05);
}

/* Styling for image blocks without images */
.image-block.no-image {
  background: var(--fallback-bg);
  position: relative;
}

.image-block.no-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fallback-pattern);
  opacity: 0.1;
}

.section-button {
  display: inline-block;
  background-color: #1d4ed8;
  color: white !important;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.section-button:hover {
  background-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
  text-decoration: none;
}

/* Color Scheme 1: Blue theme */
.row-section:nth-child(3n+1) .content-block {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #1e3a8a;
}

.row-section:nth-child(3n+1) .image-block {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

/* Fallback for missing images in blue theme */
.row-section:nth-child(3n+1) .image-block.no-image {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  position: relative;
}

.row-section:nth-child(3n+1) .image-block.no-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.1) 20px,
    rgba(255, 255, 255, 0.1) 40px
  );
}

.row-section:nth-child(3n+1) .content-inner h2 {
  color: #1d4ed8;
}

.row-section:nth-child(3n+1) .content-inner p {
  color: #374151;
}

/* Color Scheme 2: Gray theme */
.row-section:nth-child(3n+2) .content-block {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #334155;
}

.row-section:nth-child(3n+2) .image-block {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Fallback for missing images in gray theme */
.row-section:nth-child(3n+2) .image-block.no-image {
  background: linear-gradient(135deg, #71717a 0%, #52525b 100%);
  position: relative;
}

.row-section:nth-child(3n+2) .image-block.no-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.08) 15px,
    rgba(255, 255, 255, 0.08) 30px
  );
}

.row-section:nth-child(3n+2) .content-inner h2 {
  color: #334155;
}

.row-section:nth-child(3n+2) .content-inner p {
  color: #475569;
}

/* Color Scheme 3: Mixed blue-gray theme */
.row-section:nth-child(3n+3) .content-block {
  background: linear-gradient(135deg, #f1f5f9 0%, #ddd6fe 100%);
  color: #1e3a8a;
}

.row-section:nth-child(3n+3) .image-block {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Fallback for missing images in mixed blue-gray theme */
.row-section:nth-child(3n+3) .image-block.no-image {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  position: relative;
}

.row-section:nth-child(3n+3) .image-block.no-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 25px,
    rgba(255, 255, 255, 0.12) 25px,
    rgba(255, 255, 255, 0.12) 50px
  );
}

.row-section:nth-child(3n+3) .content-inner h2 {
  color: #4f46e5;
}

.row-section:nth-child(3n+3) .content-inner p {
  color: #475569;
}

/* Responsive design for alternating rows */
@media (max-width: 768px) {
  .row-section {
    padding: 2rem 0;
  }
  
  .row-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem;
    min-height: auto;
  }
  
  .content-block, .image-block {
    padding: 2rem;
    min-height: 300px;
  }
  
  .content-inner h2 {
    font-size: 2rem;
  }
  
  .content-inner p {
    font-size: 1rem;
  }
  
  .image-block img {
    max-width: 100%;
  }
  
  /* Mobile Tab Styles */
  .tab-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #1d4ed8 #f1f5f9;
    flex-wrap: nowrap;
  }
  
  .tab-links::-webkit-scrollbar {
    height: 4px;
  }
  
  .tab-links::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
  }
  
  .tab-links::-webkit-scrollbar-thumb {
    background: #1d4ed8;
    border-radius: 2px;
  }
  
  .tab-links li {
    flex-shrink: 0;
  }
  
  .tab-links li a {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }
  
  .tab-links-second {
    margin-top: 0.5rem;
  }
  
  /* Third row (blasters) - always visible, no scrolling */
  .tab-links-third {
    margin-top: 0.5rem;
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  
  .tab-links-third li a {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border: 2px solid #1d4ed8;
    color: #1d4ed8;
    font-weight: 500;
    background: transparent;
    box-shadow: none;
  }
  
  .tab-links-third li a:hover,
  .tab-links-third li a.active {
    background-color: #1d4ed8;
    color: white;
  }
}

/* Mobile-friendly table styles - ONLY for contact page */
@media (max-width: 768px) {
  /* Hide the table header on mobile */
  .contact-page table thead {
    display: none;
  }
  
  /* Make table body display as block */
  .contact-page table, .contact-page table tbody {
    display: block;
    width: 100%;
  }
  
  /* Style each row as a card */
  .contact-page table tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Style each cell */
  .contact-page table td {
    display: block;
    text-align: left !important;
    padding: 0.3rem 0;
    border: none;
  }
  
  /* Add labels before each cell content */
  .contact-page table td:nth-child(1):before { content: "Position: "; font-weight: bold; color: #1d4ed8; }
  .contact-page table td:nth-child(2):before { content: "Name: "; font-weight: bold; color: #1d4ed8; }
  .contact-page table td:nth-child(3):before { content: "Email: "; font-weight: bold; color: #1d4ed8; }
  .contact-page table td:nth-child(4):before { content: "Phone: "; font-weight: bold; color: #1d4ed8; }
  
  /* Special styling for the name field */
  .contact-page table td:nth-child(2) {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  /* Handle empty cells gracefully */
  .contact-page table td:empty:after {
    content: "Not available";
    color: #64748b;
    font-style: italic;
  }
  
  /* Style for cells containing just "-" */
  .contact-page table td:contains("-") {
    color: #64748b;
    font-style: italic;
  }
}

/* News posts styling */
.news-posts {
  max-width: 800px;
  margin: 0 auto;
}

.news-post {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.news-post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-header {
  margin-bottom: 1rem;
}

.post-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.post-title a {
  color: #1e40af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.post-meta {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

.post-excerpt {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #1d4ed8;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #1e40af;
  text-decoration: underline;
}

.no-posts {
  text-align: center;
  padding: 3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
}

/* Mobile responsive news posts */
@media (max-width: 768px) {
  /* Disable hero animation on mobile to prevent background issues */
  .hero-banner {
    animation: none;
    background-size: cover !important;
  }
  
  .news-posts {
    padding: 0 1rem;
  }
  
  .news-post {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .post-title {
    font-size: 1.3rem;
  }
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #374151;
        border-radius: 0;
        margin-left: 20px;
        max-height: 0; /* Start collapsed */
        overflow: hidden;
        transform: none;
        opacity: 0; /* Start hidden */
        visibility: hidden; /* Start hidden */
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 200px;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a {
        padding: 12px 16px;
        border-left: 3px solid transparent;
    }
    
    .dropdown-menu a:hover {
        border-left-color: #60a5fa;
    }
}

/* Desktop dropdown styles */
@media (min-width: 769px) {
    .nav-dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #1f2937;
        min-width: 320px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        border-radius: 4px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        list-style: none;
        padding: 8px 0;
        margin: 0;
    }
    
    .dropdown-menu li {
        margin: 0;
    }
    
    .dropdown-menu a {
        display: block;
        padding: 8px 16px;
        color: #e5e7eb;
        text-decoration: none;
        transition: background-color 0.2s ease;
        border-radius: 0;
        font-weight: 300;
        font-size: 1.2rem;
    }
    
    .dropdown-menu a:hover {
        background-color: #374151;
        color: #ffffff;
    }
    
    /* Show dropdown when hover class is added */
    .nav-dropdown.hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-dropdown.hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

.dropdown-arrow {
    font-size: 10px; /* Original is 12px */
    transition: transform 0.3s ease;
}

/* Sponsors Page Styling */
.spn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
  padding: 0 1rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.spn-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.spn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spn-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.spn-title {
  color: #1d4ed8;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 0.75rem;
}

.spn-description {
  color: #374151;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.spn-image-container {
  position: relative;
  border-radius: 8px;
  background: #f8fafc;
  transition: transform 0.3s ease;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.spn-image-container:hover {
  transform: scale(1.02);
}

.spn-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.spn-image:hover {
  border-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.1);
}

.spn-link {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.spn-link:hover .spn-image {
  border-color: #1d4ed8;
}

/* Desktop and larger screens */
@media (min-width: 769px) {
  .spn-image-container {
    padding: 1.5rem !important;
  }
  
  .spn-image {
    padding: 0 !important;
  }
}

/* Large desktop screens - 3 columns with bigger images */
@media (min-width: 1200px) {
  .spn-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0 2rem;
  }
  
  .spn-image-container {
    height: 200px;
  }
  
  .spn-content {
    padding: 2.5rem;
  }
  
  .spn-title {
    font-size: 1.8rem;
  }
  
  .spn-description {
    font-size: 1.15rem;
  }
}

/* Medium desktop screens - 2 columns */
@media (min-width: 769px) and (max-width: 1199px) {
  .spn-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .spn-image-container {
    height: 220px;
  }
}

/* Mobile responsive spn */
@media (max-width: 768px) {
  .spn-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0 1rem;
  }
  
  .spn-card {
    border-radius: 8px;
    max-width: 100%;
  }
  
  .spn-content {
    padding: 1.5rem;
  }
  
  .spn-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  
  .spn-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .spn-image-container {
    height: 180px;
    margin: 0;
  }
  
  .spn-image {
    padding: 1rem;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .spn-grid {
    padding: 0 0.5rem;
  }
  
  .spn-content {
    padding: 1.25rem;
  }
  
  .spn-title {
    font-size: 1.3rem;
  }
  
  .spn-description {
    font-size: 0.95rem;
  }
  
  .spn-image-container {
    height: 160px;
  }
  
  .spn-image {
    padding: 0.75rem;
  }
}
