/* Custom Tailwind Configuration */
:root {
    --color-navy-blue: #055eb0; /* Darker navy for primary backgrounds and dark text */
    --color-light-navy-blue: #0D74D2; /* Slightly lighter for card backgrounds */
    --color-yellow: #fdd913; /* Bright yellow for accents */
    --color-light-yellow: #FFDE30; /* Lighter yellow for text/hover */
    --color-dark-text: #055eb0; /* Specifically for dark text on light backgrounds */
    --font-rubik: 'Rubik', sans-serif;
}

/* Override Tailwind defaults with custom colors and fonts */
.bg-navy-blue { background-color: var(--color-navy-blue); }
.text-navy-blue { color: var(--color-navy-blue); }
.bg-light-navy-blue { background-color: var(--color-light-navy-blue); }
.text-light-navy-blue { color: var(--color-light-navy-blue); }
.bg-yellow { background-color: var(--color-yellow); }
.text-yellow { color: var(--color-yellow); }
.text-light-yellow { color: var(--color-light-yellow); }
.text-dark-text { color: var(--color-dark-text); } /* New class for dark text */
.font-rubik { font-family: var(--font-rubik); }

/* General Body Styling */
body {
    font-family: var(--font-rubik); /* Rubik for general body text */
    background-color: #FFFFFF; /* White background as requested */
    color: var(--color-dark-text); /* Dark navy for default text on white background */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-rubik); /* Rubik for all headings */
    color: var(--color-yellow); /* Yellow for general headings */
    font-weight: 700;
}

/* Set all h2 headings to a default color, then override as needed */
h2 {
    color: var(--color-yellow);
}
/* Specific h2 headings to be blue */
#courts h2, #about h2, #team h2, #amenities h2 {
    color: var(--color-navy-blue);
}

/* The h3 for contact us also needs to be blue */
#contact h3 {
    font-size: 1.875rem; /* text-3xl from original, setting specifically to avoid general h3 override */
    font-weight: 500; /* font-medium to make it less bold */
    color: var(--color-navy-blue); /* Changed to navy blue */
}
#contact h2 {
    color: var(--color-navy-blue); /* Changed to navy blue */
}

/* Custom Scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #e0e0e0; /* Light track for white background */
}
::-webkit-scrollbar-thumb {
    background: var(--color-yellow);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e6b800; /* Slightly darker yellow on hover */
}

/* Parallax effect for sections */
.parallax {
    /* The image used */
    background-image: url('../images/2.jpg');
    /* Set a specified height */
    min-height: 500px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative; /* Needed for text overlay */
}
.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Light overlay for better text readability */
}

/* Specific parallax images */
#courts.parallax {
    background-image: url('../images/1.jpg');
}

#loyalty.parallax {
    background-image: url('https://placehold.co/1920x1080/D0D0D0/001f40?text=Royal+Rewards');
}

/* Hero Slider Specific Styles */
.slider-container {
    overflow: hidden;
    position: relative;
    height: 70vh; /* Adjust as needed */
    width: 100%;
}
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    color: white; /* Text on slider remains white for contrast with images/videos */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.slider-item.active {
    opacity: 1;
}
.slider-item video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.slider-content {
    z-index: 1;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

/* Floating Buttons (WhatsApp & Scroll to Top) */
.floating-button {
    position: fixed;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease, opacity 0.3s ease;
    color: white;
}
.floating-button:hover {
    transform: scale(1.1);
}

.whatsapp-button {
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* WhatsApp Green */
}
.whatsapp-button:hover {
    background-color: #128C7E; /* Darker green on hover */
}

.scroll-to-top-button {
    bottom: 90px; /* Position above WhatsApp button */
    right: 20px;
    background-color: var(--color-navy-blue);
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Make it unclickable when hidden */
}
.scroll-to-top-button.show {
    opacity: 1;
    pointer-events: auto; /* Make it clickable when shown */
}
.scroll-to-top-button:hover {
    background-color: var(--color-light-navy-blue);
}

/* Card styles for courts and tenants */
.sport-card, .tenant-card, .amenity-card, .team-card {
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-light-navy-blue); /* Cards remain darker for contrast */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.sport-card:hover, .tenant-card:hover, .amenity-card:hover, .team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.card-details {
    display: none; /* Hidden by default, shown with jQuery */
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.card-details table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}
.card-details th, .card-details td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.card-details th {
    background-color: var(--color-yellow);
    color: var(--color-navy-blue);
    font-weight: 600;
}
.card-details td {
    background-color: var(--color-navy-blue);
    color: #e0e0e0;
}
.card-details tr:last-child td {
    border-bottom: none;
}

/* Force Font Awesome solid icons to render correctly */
.fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
/* Ensure general 'fas' class also has the right properties */
.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* SVG icon styling for consistency - ENLARGED */
.padel-icon {
    width: 8em; /* Enlarge to match text-8xl */
    height: 8em; /* Enlarge to match text-8xl */
    fill: white; /* Set fill color to white */
    stroke: none; /* Remove stroke if not desired */
    transition: transform 0.3s ease-in-out, fill 0.3s ease; /* Add transition for animation */
}
.sport-card:hover .padel-icon {
    transform: scale(1.1); /* Scale up on hover */
    fill: var(--color-yellow); /* Change color on hover */
}

/* Animation for Font Awesome icons on hover */
.sport-card .fas {
    transition: transform 0.3s ease-in-out, color 0.3s ease;
}
.sport-card:hover .fas {
    transform: scale(1.1); /* Scale up on hover */
    color: var(--color-yellow); /* Change color on hover */
}

/* Bumper ball icon styling */
.bumper-ball-icon {
    width: 6em; /* Slightly smaller to fit in the circle */
    height: 6em;
    fill: white;
    stroke: none;
    transition: transform 0.3s ease-in-out;
}

/* Circular container for the bumper ball icon */
.sport-card-icon-container {
    transition: transform 0.3s ease-in-out;
}

/* Hover effects for bumper ball */
.sport-card:hover .sport-card-icon-container {
    transform: rotate(30deg); /* Rotate 30 degrees on hover */
    fill: var(--color-yellow); /* Change color on hover */
   
}
.sport-card:hover .bumper-ball-icon {
    transform: scale(1.1); /* Scale up on hover */
    fill: var(--color-yellow); /* Change color on hover */
}

/* Buttons Styling */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--color-yellow);
    color: var(--color-navy-blue);
    font-family: var(--font-rubik); /* Buttons also use Rubik */
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
    background-color: var(--color-light-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Specific styling for Contact Us section subheadings */

/* Specific styling for labels in Contact Us section */
#contact label {
    font-weight: 500; /* font-medium for labels */
}

/* WhatsApp button for amenities */
.btn-whatsapp-small {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    font-family: var(--font-rubik);
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none; /* Remove underline from link */
}
.btn-whatsapp-small:hover {
    background-color: #128C7E; /* Darker green on hover */
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Social media icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-navy-blue);
    color: white;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--color-yellow);
    color: var(--color-navy-blue);
    transform: translateY(-3px);
}

/* Hero image styling */
.hero-image {
    height: 50vh;
    background-image: url('../images/3.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-light-navy-blue);
        border-radius: 0 0 10px 10px;
        overflow: hidden;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        padding: 1rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu a:last-child {
        border-bottom: none;
    }
    .hamburger-menu {
        display: block;
    }
    .slider-content h1 {
        font-size: 2.5rem;
    }
    .slider-content p {
        font-size: 1rem;
    }
}
.whatsapp-link, .webpage-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-link:hover, .webpage-link:hover {
    transform: scale(1.1);
}

/* If you want the icons to appear only when the card is hovered */
.amenity-card .whatsapp-link,
.amenity-card .webpage-link {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.amenity-card:hover .whatsapp-link,
.amenity-card:hover .webpage-link {
    opacity: 1;
}