/*
 * Green City Golf CSS Stylesheet
 *
 * This file contains all the CSS styles for the Green City Golf website,
 * organized into logical sections for easy navigation and maintenance.
 *
 */

/*
 * Copyright (c) 2025 PV Web Solution. All rights reserved.
 * This CSS code is the intellectual property of PV Web Solution. Unauthorized
 * reproduction or distribution is strictly prohibited.
 */

/* =========================================
   1. Root Variables & Global Styles
   ========================================= */
:root {
  --green-primary: rgb(68 95 74); /* Darker Green */
  --green-secondary: #006400; /* Sea Green */
  --green-accent: #33a852; /* A brighter, more lively green for highlights */
  --white-primary: #ffffff;
  --light-gray: #f8f9fa;
  --section-light-background: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: var(--light-gray);
}

/* Elegant Heading Font */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

.bg-light {
  background-color: var(--section-light-background) !important;
}

.section-heading {
  color: var(--green-primary);
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--white-primary);
}

.section-heading2 {
  color: var(--white-primary);
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
}

.section-heading2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--white-primary);
}

/* =========================================
   2. Navigation Bar and Offcanvas
   ========================================= */
.navbar {
    background-color: var(--green-primary) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 5px solid transparent; /* This creates a space for the gradient */
    border-image: linear-gradient(to right, #e7c588, #b08d4b, #e7c588);
    border-image-slice: 1;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white-primary) !important;
}

.offcanvas {
  background-color: var(--green-primary);
  color: var(--white-primary);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .offcanvas-body .nav-link {
  color: var(--white-primary);
  font-size: 1.25rem;
  padding: 1rem;
  transition: background-color 0.3s ease;
}

.offcanvas .offcanvas-body .nav-link:hover {
  background-color: var(--green-secondary);
}

.btn-close-white {
  filter: brightness(2);
}

.navbar-nav .nav-link {
  color: var(--white-primary) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28231, 197, 136, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.logo_style {
    width: auto;
    height: 72px;
    border: 4px solid transparent;
    border-radius: 50pc;
    background: linear-gradient(to right, #e7c588, #b08d4b, #e7c588);
}

.btn-outline-light {
  border-color: var(--white-primary);
  color: var(--white-primary);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--white-primary);
  color: var(--green-primary);
}

.btn-outline-light:active {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--green-primary);
  transform: translateY(1px);
}

.btn_style {
    background: linear-gradient(45deg, black, transparent);
    border-radius: 5px;
    border: 2px solid #ffffff91;
}
/* =========================================
   3. Hero Section / Carousel
   ========================================= */
.carousel-item {
  height: 80vh;
  background: no-repeat center center scroll;
  background-size: cover;
  position: relative;
}

/* Media query for mobile compatibility */
@media (max-width: 767.98px) {
  .carousel-item {
    height: 60vh;
  }
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: initial;
  text-align: left;
}

.carousel-caption h5 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.carousel-caption .btn-success {
  background-color: var(--green-accent);
  border-color: var(--green-accent);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-caption .btn-success:hover {
  transform: translateY(-2px);
  background-color: #2b8e44;
  border-color: #2b8e44;
  box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

/* =========================================
   4. Countdown Section
   ========================================= */
#countdown-section {
  background-color: var(--green-secondary);
  color: var(--white-primary);
  padding: 80px 0;
}

#countdown-section .section-heading::after {
  background-color: var(--white-primary);
}

#countdown .countdown-item {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

#countdown .countdown-item small {
  display: block;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 400;
  opacity: 0.8;
}

.count-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.count-box span {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.count-box small {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: 5px;
  opacity: 0.85;
  text-transform: uppercase;
}

.count-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

/* Responsive tweak */
@media (max-width: 576px) {
  .count-box span {
    font-size: 2rem;
  }
}

/* =========================================
   5. About Section
   ========================================= */
.image-card {
  position: relative;
  display: inline-block;
  max-width: 600px;
  margin: auto;
}

.image-card img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
}

/* Corner borders */
.corner-border {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid #28a745;
  z-index: 2;
}

.corner-border.top-left {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
  border-radius: 10px 0 0 0;
}

.corner-border.bottom-right {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 10px 0;
}

/* Hover effect */
.image-card:hover img {
  transform: scale(1.05);
  /*box-shadow: 0 30px 50px rgba(40,167,69,0.5);*/
}

.image-card:hover .corner-border {
  border-color: #50d173;
  /*box-shadow: 0 0 20px rgba(40,167,69,0.6);*/
  transform: scale(1.1);
  transition: all 0.5s ease;
}

/* Responsive */
@media (max-width: 992px) {
  .image-card {
    margin-top: 30px;
  }
}


/* =========================================
   6. Features Section
   ========================================= */
.icon-circle {
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-card:hover .icon-circle {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* =========================================
   7. General Card & List Styles
   ========================================= */
.card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img-top {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 2rem;
}

.card-icon {
  font-size: 3rem;
  color: var(--green-accent);
  margin-bottom: 1rem;
}

.list-group-item {
  background-color: var(--white-primary); /* Changed to white for contrast */
  border: 1px solid #dee2e6;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.list-group-item:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

/* =========================================
   8. Testimonials Section
   ========================================= */
#testimonials {
  background-color: var(--white-primary);
}

.testimonial-swiper-container {
  width: 100%;
  padding-bottom: 50px;
  overflow: hidden;
}

.testimonial-card {
  background-color: var(--white-primary);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.testimonial-card i {
  color: var(--green-accent);
  font-size: 2rem;
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: #33a852; /* Note: Assumed a lighter green variable here. Use var(--green-light) if defined. */
}

.testimonial-card .quote {
  font-style: italic;
  font-size: 1.1rem;
  flex-grow: 1;
  margin-top: 15px;
  margin-bottom: 20px;
}

.testimonial-card .author {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--green-primary); /* Note: Assumed green-dark variable refers to green-primary */
}

/* =========================================
   9. Sponsors Section
   ========================================= */
.sponsors-next,
.sponsors-prev {
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  position: absolute;
  top: 85%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: auto;
}

.sponsors-next:hover,
.sponsors-prev:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.sponsors-next::after,
.sponsors-prev::after {
  font-size: 14px;
  font-weight: bold;
}

.sponsors-prev {
  left: 5px;
}

.sponsors-next {
  right: 5px;
}

.sponsors-swiper .swiper-slide {
  position: relative;
}

.sponsors-pagination {
  position: relative;
  margin-top: 15px;
  text-align: center;
}

.sponsors-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0.6;
  margin: 0 4px;
  border-radius: 50%;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.sponsors-pagination .swiper-pagination-bullet-active {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.sponsors-section {
  background-color: var(--white-primary);
}

.sponsors-swiper-container {
  width: 100%;
  overflow: hidden;
}

.sponsor-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.sponsor-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--green-primary);
}

.swiper-pagination-bullet-active {
  background-color: var(--green-primary) !important;
}

/* =========================================
   10. App Download Section
   ========================================= */
#app-download-section {
  background-color: var(--green-primary);
  color: var(--white-primary);
  padding: 80px 0;
  text-align: center;
}

#app-download-section .section-heading::after {
  background-color: var(--white-primary);
}

.app-phone-mockup {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.btn-download-app {
  background-color: var(--white-primary);
  color: var(--green-primary);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.2s ease;
}

.btn-download-app:hover {
  background-color: #f0f0f0; /* A subtle gray for hover */
  transform: scale(1.05);
}

.btn-download-app:active {
  background-color: #e9ecef; /* A slightly darker gray for active */
  transform: scale(1.02);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================
   11. Gallery Section
   ========================================= */
   
   .gallery-item {
    aspect-ratio: 4 / 3; /* Equal height for all */
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   12. Contact Section
   ========================================= */
#contact-section .form-control {
  border-radius: 10px;
}

#contact-section .btn-success {
  background-color: var(--green-accent);
  border-color: var(--green-accent);
}

#contact-section .btn-success:hover {
  background-color: #2b8e44;
  border-color: #2b8e44;
}

/* =========================================
   13. Footer
   ========================================= */
footer {
  background-color: var(--green-primary);
  color: var(--white-primary);
  padding: 60px 0;
}

footer a {
  color: var(--white-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--green-accent);
}

.social-icons i {
  font-size: 1.5rem;
  margin: 0 10px;
  transition: transform 0.2s ease;
}

.social-icons a:hover i {
  transform: scale(1.2);
  color: var(--green-accent);
}

footer .list-unstyled li {
  margin-bottom: 8px;
}

footer .form-control {
  border-radius: 50px;
}

footer .btn-success {
  background-color: var(--green-accent);
  border-color: var(--green-accent);
  border-radius: 50px;
}