/* styles.css */

/* General reset and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rajdhani', Tahoma, sans-serif;
  background: #f6f0e1;
  color: #faf9f6;
  line-height: 1.6;
  padding: 20px; /* Add padding for better spacing */
}


/* Header full width */
#Header {
  background-color: #0b3d2e;
  padding: 20px; /* Optional: adds spacing inside the header */
  margin: -20px; /* Counteracts body padding */
  margin-bottom: 0px; /* Removes bottom spacing */
}
#Header h1 {
  font-size: 3.0rem;
  color: #faf9f6;
}
/* Header container to layout title and nav side by side */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Navbar styles */
#Navbar {
  margin-top: 10px;
}
#Navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
#Navbar li a {
  text-decoration: none;
  color: #faf9f6;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 30px;
  transition: background-color 0.3s ease;
}
#Navbar li a:hover {
  background-color: #b7410e;
}


/* Hero Banner */
.hero-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.carousel-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.carousel-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-image.active {
  opacity: 1;
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.4);
  padding: 20px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 10px;
}



/* Section intro "Compare Golf Clubs" */
h3 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 30px;
}
p {
  margin-bottom: 30px;
  font-size: 20px;
}


.main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: 900px; 
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}


/* Grid for dropdown selectors */
.selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 40px;
}
.item-selector {
  background: #0b3d2e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(122, 209, 50, 0.05);
  flex: 1 1 400px; /* ensures both are equal width but shrink if needed */
  min-width: 280px;
}
label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
}
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;  
}




/* Club Images */
.club-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 40px;
}
.club-img {
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0b3d2e;
}
.image-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}
.club-image {
  width: 10px;
  max-height: 10px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.comparison-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
  text-align: center;
}
.vs-text {
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
  padding: 0 20px;
}
.comparison-images img {
  max-height: 400px; 
  width: auto;
  object-fit: contain;
  flex: 1;
}
.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
.fade-in.show {
  opacity: 1;
}






/* Table Styles */
.table-base {
  width: 100%;
  border-collapse: collapse;
  background: #c2b280;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  table-layout: fixed; /* optional: keep columns uniform */
  text-align: center;
}
.table-title{ /*"Detailed Spec"*/
  text-align: center;
  /*font-size: 25px;*/
}
.table-base th,
.table-base td {
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
  overflow-wrap: break-word;
  white-space: normal;
}
.table-base thead {
  background-color: #0b3d2e; /* Dark green Table header */
  color: #faf9f6; /* Light text color for contrast */
  font-weight: bold;
}
.table-base tbody tr:nth-child(even) {
  background-color: #c2b280;
  color: #0b3d2e;
  font-size: 20px;
}
.table-base tbody tr:nth-child(odd) {
  background-color: #c2b280;
  color: #0b3d2e;
  font-size: 20px;
}
.table-base tbody tr:hover {
  background-color: #b7410e;  /* Green hover background */
  color: #faf9f6;            /* black hover text */
}
.animated-number {
  font-weight: bold;
  transition: color 0.3s ease;
}
.highlight {
  animation: pulse 0.8s ease-out;
}
@keyframes pulse {
  0% { background-color: #c8e6c9; }
  50% { background-color: #81c784; }
  100% { background-color: transparent; }
}




/* Synopsis section */
.synopsis-wrapper {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap; /* ensures responsiveness on smaller screens */
}
/* Each synopsis + button together */
.synopsis-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.synopsis-box {
  flex: 1 1 48%; /* each box takes up about half the width */
  background-color: #0b3d2e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #faf9f6;
  text-align: center;
  font-size: 20px;
}
.synopsis-box h3 {
  color: #faf9f6;
  margin-bottom: 10px;
  text-align: center;
  font-size: 25px;
}
.synopsis-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.synopsis-box {
  flex: 1 1 48%;
}
@keyframes slideFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideFadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.synopsis-left {
  animation: slideFadeInLeft 0.5s ease forwards;
}
.synopsis-right {
  animation: slideFadeInRight 0.5s ease forwards;
}


/* Buy Buttons */
.buy-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  background-color: #b7410e;
  color: white;
  text-decoration: none;
  border-radius: 150px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #14702f;
}


.self-praise-title {
  font-size: 1.2rem;
  color: #b7410e;
  font-weight: bold;
  margin-top: 60px;
  text-align: center;
  font-size: 35px;
}
.self-praise-description {
  font-size: 1rem;
  color: #0b3d2e;
  margin-top: 10px;
  text-align: center;
  padding: 0 50px;
  font-size: 25px;
}



/* Footer */
footer {
  margin-top: 60px;
  padding: 40px 20px;
  background: #0b3d2e;
  color: #ccc;
  text-align: center;
  font-size: 0.9rem;
  border-top: 2px solid #faf9f6;
}
.footer-links,
.footer-legal {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.footer-links li,
.footer-legal li {
  display: inline;
  margin: 0 10px;
}
.footer-links a,
.footer-legal a,
.footer-social a {
  color: #faf9f6;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover,
.footer-legal a:hover,
.footer-social a:hover {
  color: #b7410e; /* Change to a contrasting color on hover */
}
.footer-about {
  margin: 15px auto;
  max-width: 600px;
  color: #aaa;
}
.footer-social {
  margin: 10px 0;
}






.page-with-side-ads {
  display: flex;
  /* align-items: flex-start;
  gap: 20px ; */
  flex-direction: row;
}
.side-ad {
  width: 160px;
  position: sticky;
  top: 100px;
  /* align-self: flex-start; */
}

/* Ad placeholders vertical */
.ad-placeholder-vertical {
  /* width: 120px; */
  min-height: 600px; /* stretch height as needed */
  background-color: #2d2d2d;
  border: 2px dashed #bcfd4c;
  color: #bcfd4c;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
}

/* Main content flex to fill remaining space */
.main-content {
  /* order: 1; ensures main content is in the middle */
  /* flex: 1 1 auto; */
  flex:1 1 auto; /* allows it to grow and shrink */
  display: flex;
  flex-direction: column;
  max-width: 900px; /* or any max width you prefer */
}


/* Mobile Usability */
@media (max-width: 768px) {
  /* Prevents side ads from showing on smaller screens */
  .side-ad {
    display: none;
  }
  .main-content {
    max-width: 100%;
    padding: 0 15px;
  }
  .page-with-side-ads {
    flex-direction: column;
  }
  /* Hero Banner */
  .hero-banner {
    height: 250px;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
}
