/* Global Styles */
:root {
  --primary-color: #bc1212;
  --secondary-color: #2ecc71;
  --accent-color: #f1c40f;
  --dark-color: #2c3e50;
  --light-color: #ffffff;
  --gray-color: #f5f6fa;
  --text-color: #2c3e50;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  color: var(--light-color);
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.8rem;
  color: var(--dark-color);
}

p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background-color: #ff3333;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.btn-secondary:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

/* Header and Navigation */
header {
  background-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: none;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* CaromTV specific header styling */
.caromtv-page header {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

nav {
  margin-left: auto;
}

#navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

#navbar li {
  margin: 0 20px;
}

#navbar ul li a,
#navbar ul li a:link,
#navbar ul li a:visited {
  color: var(--light-color);
  text-decoration: none !important;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 25px;
  transition: var(--transition);
}

#navbar ul li a.active,
#navbar ul li a:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.mobile-nav-toggle {
  display: none;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* If you want to ensure it stays white even when the header background changes on scroll */
header.scrolled .mobile-nav-toggle {
  color: var(--light-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)),
    url("../images/index/main_dining_area.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  text-align: center;
  padding: 20px;
  max-width: 800px;
  opacity: 1;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 1;
  margin-bottom: 20px;
  font-size: 4rem;
}

.hero-content p {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
  padding: 100px 40px;
  background-color: white;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.stat-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition);
}

.stat-item-link:hover .stat-item {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tables Section */
.tables {
  padding: 150px 0 50px;
  position: relative;
  color: var(--light-color);
}

.tables::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../images/index/pool_tables.jpg") center 0% / 100%,
    url("../images/index/DF5A0791-Enhanced-NR-2.jpg") center 33% / 100%,
    url("../images/index/snooker_tables.jpg") center 66% / 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

.tables .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
}

.tables h2 {
  color: var(--light-color);
  position: relative;
  z-index: 2;
}

.table-section {
  width: 400px;
  height: 400px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.table-section:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.95);
}

.table-content {
  text-align: center;
  max-height: 100%;
  overflow-y: auto;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-content::-webkit-scrollbar {
  display: none;
}

.table-text {
  width: 100%;
}

.table-text h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.table-text p {
  color: var(--dark-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.table-text ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0 auto;
}

.table-text ul li {
  color: var(--dark-color);
  font-size: 1rem;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.table-text ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.table-card {
  text-align: center;
  padding: 20px;
  background-color: var(--light-color);
  border-radius: 10px;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.table-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-image i {
  font-size: 4rem;
  color: var(--primary-color);
}

.table-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.table-card p {
  margin-bottom: 8px;
  color: var(--text-color);
}

/* Tables sections with grey background */
.tables-summary-wrapper,
.pool-tables,
.snooker-tables {
  background-color: var(--gray-color);
  width: 100vw;
  margin-left: -50vw;
  position: relative;
  left: 50%;
}

/* Remove old pool and snooker section styles */
.pool-tables,
.snooker-tables {
  width: 100vw;
  margin-left: -50vw;
  position: relative;
  left: 50%;
}

/* Leagues Section */
.leagues {
  padding: 150px 0 100px;
  background-color: white;
  text-align: center;
}

.leagues-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.8rem;
  margin: 0 auto 60px;
  position: relative;
  padding-bottom: 15px;
  max-width: 800px;
}

.leagues-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.leagues-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.league-info {
  background-color: var(--gray-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.league-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.league-info ul {
  list-style: none;
  padding: 0;
}

.league-info li {
  margin-bottom: 20px;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.league-info li strong {
  color: var(--dark-color);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 5px;
}

.league-info li br {
  margin-bottom: 5px;
}

/* Menu Section */
.menu {
  padding: 150px 0 100px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

.menu-section-card {
  background-color: var(--gray-color);
  padding: 10px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  position: relative;
  overflow: hidden;
  height: auto;
  border: 1px solid rgba(173, 216, 230, 0.5);
}

.menu-section-card:nth-of-type(1),
.menu-section-card:nth-of-type(2),
.menu-section-card:nth-of-type(3),
.menu-section-card:nth-of-type(4),
.menu-section-card:nth-of-type(5),
.menu-section-card:nth-of-type(6),
.menu-section-card:nth-of-type(7),
.menu-section-card:nth-of-type(8),
.menu-section-card:nth-of-type(9),
.menu-section-card:nth-of-type(10) {
  background-color: var(--gray-color);
}

.menu-section-header {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.menu-section-header h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.menu-section-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  opacity: 0;
  transform: translateY(-20px);
  transition: max-height 0.5s ease-out, opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.menu-section-card.active .menu-section-content {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
}

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

.section-note {
  text-align: center;
  color: var(--text-color);
  font-style: italic;
  margin: 0 0 20px 0;
  font-size: 0.85rem;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
  width: 100%;
}

.menu-item {
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: 20px;
}

.item-header h4 {
  color: var(--dark-color);
  font-size: 1.1rem;
  margin: 0;
  text-align: left;
  flex: 1;
}

.price {
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.menu-item p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 5px 0 0;
  line-height: 1.4;
  text-align: left;
}

.menu-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.menu-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal-nav {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
  padding: 5px 10px;
  transition: color 0.3s;
}

.modal-nav:hover {
  color: var(--secondary-color);
}

.modal-nav.prev {
  margin-right: auto;
}

.modal-nav.next {
  margin-left: auto;
}

.close-menu-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--dark-color);
}

.close-menu-modal:hover {
  color: var(--primary-color);
}

.beer-section {
  text-align: left;
  padding: 0 15px;
}

.beer-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.beer-list li {
  margin-bottom: 5px;
}

.draft-beer-grid {
  width: 100%;
  text-align: left;
}

.draft-header,
.draft-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.draft-header {
  font-weight: bold;
  color: var(--dark-color);
}

.draft-item div:first-child {
  text-align: left;
}

.draft-item div:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.happy-hour {
  text-align: center;
  background-color: var(--gray-color);
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
}

.happy-hour h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.happy-hour p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.happy-hour ul {
  list-style: none;
  padding: 0;
}

.happy-hour li {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

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

/* Contact Section */
.contact {
  padding: 150px 0 100px;
  background-color: white;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-details h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.contact-details p {
  color: var(--dark-color);
  line-height: 1.6;
  padding-left: 30px;
  position: relative;
}

.contact-details i {
  color: var(--primary-color);
  position: absolute;
  left: 0;
  width: 20px;
}

.contact-details p br {
  display: block;
  content: "";
  margin-top: 5px;
}

.contact-details p br + br {
  margin-top: 0;
}

.contact-map {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: black;
  color: var(--light-color);
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 150px; /* Increased gap to 150px for desktop view */
  margin-bottom: 30px;
}

.footer-info {
  display: flex;
  gap: 40px;
  flex: 1;
}

.footer-logo,
.footer-hours {
  flex: 1;
}

.footer-map {
  flex: 0 0 400px; /* Fixed width for the map */
}

.footer-map iframe {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-logo p,
.footer-hours p,
.footer-content h3,
.footer-hours h3 {
  color: white;
}

.footer-links ul,
.footer-hours ul {
  list-style: none;
}

.footer-links a {
  color: var(--light-color);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 40px; /* Maintain 40px gap in mobile view */
  }

  .footer-info {
    flex-direction: column;
    gap: 20px;
  }

  .footer-map {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-logo,
  .footer-hours {
    width: 100%;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 15px 20px;
    position: relative;
  }

  /* Make all headers have a black background in mobile */
  header {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  /* Fix for logo background */
  .logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    background: transparent;
  }

  #navbar {
    display: none;
    width: 100%;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  #navbar.active {
    display: block;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  #navbar ul {
    flex-direction: column;
    text-align: center;
    padding: 0;
    margin: 0;
  }

  #navbar li {
    margin: 0;
    padding: 15px 0;
  }

  #navbar li a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
    border-radius: 0;
    width: 80%;
    margin: 0 auto;
    border-radius: 30px;
  }

  /* Style all active links consistently */
  #navbar ul li a.active {
    background-color: var(--primary-color);
    border-radius: 30px;
    color: var(--light-color);
  }

  #navbar ul li a:hover {
    background-color: var(--primary-color);
    border-radius: 30px;
    color: var(--light-color);
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1010;
  }

  /* Rest of your existing mobile styles */
  .hero-content {
    padding: 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-content,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .table-content {
    flex-direction: column;
    padding: 0 20px;
  }

  .table-image {
    width: 100%;
    height: 250px;
    margin: 20px 0;
  }

  .contact-map {
    height: 300px;
  }

  .leagues-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .leagues-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    padding: 0 20px 15px;
  }

  .leagues-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .league-info {
    padding: 20px;
  }

  .league-info li {
    padding: 12px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .menu-modal-content {
    margin: 20px;
    padding: 20px;
    width: calc(100% - 40px);
  }

  .tables .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .leagues-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

.tables-summary {
  padding: 20px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-color);
}

.tables-summary-content {
  max-width: 800px;
  margin: 0 auto;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-content {
  width: 30%;
  max-width: 350px;
  border: 24px solid white;
  border-radius: 8px;
  position: relative;
  background: white;
  color: black;
}

.popup-image {
  width: 100%;
  height: auto;
  border: 0.5px solid black;
}

.popup-image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.popup-text {
  padding: 10px 15px;
  background-color: white;
}

.popup-text h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: black;
}

.popup-text p {
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: black;
}

.popup-text a {
  color: #0066cc;
}

.close-popup {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  z-index: 2;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.close-popup:hover {
  color: var(--primary-color);
}

/* Remove underlines from all links */
a {
  text-decoration: none;
}

.submenu-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 20px 0 10px;
  text-align: left;
  padding-left: 15px;
}

.submenu-title:first-child {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .tables .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .table-section {
    width: 350px;
    height: 350px;
    padding: 30px;
  }

  .table-text h3 {
    font-size: 1.6rem;
  }

  .table-text p {
    font-size: 1rem;
  }

  .table-text ul li {
    font-size: 0.9rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-info {
    flex-direction: column;
    gap: 20px;
  }

  .footer-map {
    flex: 0 0 auto;
  }
}

@media (max-width: 400px) {
  .table-section {
    width: 300px;
    height: 300px;
    padding: 25px;
  }

  .table-text h3 {
    font-size: 1.4rem;
  }
}

/* Tables Hero Section */
.tables-hero {
  height: 75vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("gpool.jpg") center 20% / cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
  padding: 0 20px;
  margin-bottom: 0;
}

.tables-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.tables-hero h1 {
  color: var(--light-color);
  margin-bottom: 20px;
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tables-hero p {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tables Info Section */
.tables-info {
  padding: 80px 0;
  background-color: white;
}

/* Table Categories Section */
.table-categories {
  padding: 100px 0;
  background-color: var(--gray-color);
}

.table-categories .container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.category-card {
  background-color: white;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  height: 400px;
  border-radius: 10px;
}

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

.category-image {
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-content {
  width: 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.category-card p {
  color: var(--dark-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.category-card ul {
  list-style: none;
  padding: 0;
}

.category-card ul li {
  color: var(--dark-color);
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.category-card ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .category-card {
    flex-direction: column;
    height: auto;
  }

  .category-image,
  .category-content {
    width: 100%;
  }

  .category-image {
    height: 250px;
  }

  .category-content {
    padding: 40px;
  }
}

html {
  scroll-behavior: smooth;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .popup-content {
    width: 85%; /* Wider on mobile */
    max-width: none; /* Remove max-width constraint */
    margin: 20px; /* Add some margin from edges */
    border-width: 12px; /* Thinner border on mobile */
  }

  .popup-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensure image isn't cropped */
  }

  .popup-text {
    padding: 10px 15px;
  }

  .popup-text h3 {
    font-size: 1rem; /* Smaller heading on mobile */
    margin-bottom: 8px;
  }

  .popup-text p {
    font-size: 0.9rem; /* Smaller text on mobile */
    margin-bottom: 6px;
  }

  .close-popup {
    font-size: 18px; /* Smaller close button */
    right: 8px;
    top: 8px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .popup-content {
    width: 90%; /* Even wider on very small screens */
    border-width: 8px; /* Even thinner border */
    margin: 10px; /* Less margin */
  }

  .popup-text {
    padding: 8px 12px;
  }
}

/* Menu Hero Section */
.menu-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Dim only the image */
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  background: none; /* Remove any background */
}

.carousel-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Stronger text shadow for better visibility */
  color: white;
}

.carousel-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Stronger text shadow for better visibility */
  color: white;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; /* Remove background */
  border: none;
  color: white;
  font-size: 2.5rem; /* Slightly larger for better visibility */
  cursor: pointer;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Stronger text shadow for better visibility */
  padding: 20px;
  transition: transform 0.3s ease;
}

.slide-btn:hover {
  transform: translateY(-50%) scale(1.1); /* Add hover effect */
}

.slide-btn.prev {
  left: 20px;
}

.slide-btn.next {
  right: 20px;
}

/* Remove the ::before pseudo-element that was adding the dimming overlay */
.carousel-slide::before {
  display: none;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: white;
}

@media (max-width: 768px) {
  .menu-hero {
    height: 100vh;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.2rem;
  }

  .slide-btn {
    padding: 10px;
    font-size: 20px;
  }
}

/* Leagues Hero Section */
.leagues-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.leagues-hero .carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.leagues-hero .carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.leagues-hero .carousel-slide.active {
  opacity: 1;
}

.leagues-hero .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leagues-hero .slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--light-color);
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
}

.leagues-hero .slide-content h1 {
  color: var(--light-color);
  margin-bottom: 20px;
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.leagues-hero .slide-content p {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.leagues-hero .carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.leagues-hero .carousel-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.leagues-hero .carousel-button.prev {
  left: 20px;
}

.leagues-hero .carousel-button.next {
  right: 20px;
}

.leagues-hero .carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.leagues-hero .dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.leagues-hero .dot.active {
  background: var(--primary-color);
}

@media (max-width: 768px) {
  .leagues-hero {
    height: 100vh;
  }

  .leagues-hero .slide-content h1 {
    font-size: 2.5rem;
  }

  .leagues-hero .slide-content p {
    font-size: 1.2rem;
  }

  .leagues-hero .carousel-button {
    padding: 10px;
    font-size: 20px;
  }
}

/* Gallery Carousel Slides */
.gallery-slide {
  background-color: rgba(0, 0, 0, 0.9);
}

.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 350px; /* Increased from 250px to 350px */
  gap: 15px; /* Increased from 10px */
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  z-index: 2;
  padding-top: 40px; /* Reduced to push images up a bit more */
}

.gallery-grid img {
  width: 100%;
  height: 350px; /* Increased from 250px to 350px */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.gallery-slide .carousel-content {
  position: absolute;
  bottom: 70px; /* Reduced to give more room for larger images */
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
}

.gallery-slide .carousel-content h2 {
  font-size: 3rem;
  margin: 0 auto;
  max-width: 800px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(
      3,
      250px
    ); /* Increased from 200px to 250px for mobile */
    height: auto;
    padding-top: 70px;
    overflow-y: auto;
    gap: 20px; /* Increased from 15px */
  }

  .gallery-grid img {
    height: 250px; /* Increased from 200px to 250px */
    max-height: none;
    margin-bottom: 10px;
  }

  .gallery-slide .carousel-content {
    bottom: 120px;
  }

  .gallery-slide .carousel-content h2 {
    font-size: 2rem;
  }
}

.caromtv-page {
  background-color: #e0e0e0 !important;
  color: #333333;
}

.caromtv-page main {
  min-height: calc(100vh - 300px);
  padding: 100px 0;
  background-color: #e0e0e0;
}

.caromtv-content {
  text-align: center;
  padding: 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.caromtv-content h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: #333333;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.caromtv-content p {
  font-size: 1.8rem;
  color: #333333;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
