/* ==========================================================================
   Swaby & Associates Ltd - Shared Stylesheet
   Used by: /index.html and /events/index.html
   Note: image URLs are relative to this file (css/), hence "../images/".
   ========================================================================== */

:root {
    --primary-blue: #1a3c8b;
    --secondary-blue: #2a5bd7;
    --accent-green-start: #4C8C2B;
    --accent-green-end: #39532A;
    --accent-green-transparent: rgba(76, 140, 43, 0.03);
    --dark-text: #333333;
    --light-text: #555555;
    --light-bg: #f9fafc;
    --white: #ffffff;
    --footer-white: #f5f7fa;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.18);
    --deep-green: #123f2b; /* NEW: used by the Featured Event section */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background Design Elements */
.bg-design {
    position: absolute;
    opacity: 0.03;
    z-index: -1;
}

.bg-circle {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green-start));
    width: 300px;
    height: 300px;
}

.bg-square {
    width: 200px;
    height: 200px;
    border: 20px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-blue), var(--accent-green-start)) 1;
}

/* Floating Glass Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    0% { top: -100px; }
    100% { top: 20px; }
}

.logo img {
    height: 70px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green-start), var(--accent-green-end));
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Active nav link indicator */
.nav-menu a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-menu a.active:after {
    width: 100%;
}

.nav-menu .book-btn {
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
    margin-left: 15px;
    box-shadow: 0 4px 12px rgba(76, 140, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-menu .book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(76, 140, 43, 0.4);
    animation: buttonRadiance 2s infinite;
    color: white !important; /* Keep white font on hover */
}

.nav-menu .book-btn:after {
    display: none;
}

@keyframes buttonRadiance {
    0%, 100% {
        box-shadow: 0 7px 20px rgba(76, 140, 43, 0.4);
    }
    50% {
        box-shadow: 0 7px 20px rgba(76, 140, 43, 0.4), 0 0 20px rgba(76, 140, 43, 0.8);
    }
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    background: linear-gradient(rgba(249, 250, 252, 0.85), rgba(255, 255, 255, 0.9)), url('../images/swaby-office.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: white;
    box-shadow: 0 5px 15px rgba(76, 140, 43, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 140, 43, 0.4);
    animation: buttonRadiance 2s infinite;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 140, 43, 0.4);
    animation: buttonRadiance 2s infinite;
    border-color: transparent;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
}

.linkedin-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.linkedin-icons a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0077b5;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

.linkedin-icons a:hover {
    background: #005582;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 119, 181, 0.3);
}

/* Stats Counter Section */
.stats {
    background:
        linear-gradient(rgba(249, 250, 252, 0.9), rgba(255, 255, 255, 0.95)),
        url('../images/swaby-icon.png');
    background-size: 800px;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 140, 43, 0.05) 0%, rgba(57, 83, 42, 0.03) 100%);
    z-index: 0;
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-number .plus {
    font-size: 2.5rem;
    color: var(--accent-green-start);
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green-start), var(--accent-green-end));
    border-radius: 1px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Trusted Partners Section */
.partners {
    background-color: var(--white);
    padding: 80px 0;
}

.partners-container {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: scrollPartners 40s linear infinite;
    padding: 0 20px;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 9 - 60px * 9));
    }
}

.partner-logo {
    flex: 0 0 250px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    filter: grayscale(100%);
    opacity: 0.8;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(76, 140, 43, 0.2);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
}

.testimonials-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
    padding: 20px 0;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--light-bg);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.testimonial-nav button {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.testimonial-nav button:hover {
    background: var(--secondary-blue);
    transform: scale(1.1);
}

/* Contact Section - FIXED FOR MOBILE */
.contact {
    background-color: var(--light-bg);
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 20px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 50px;
}

.contact-detail i {
    background: var(--primary-blue);
    color: white;
    min-width: 50px;
    min-height: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail div {
    flex: 1;
}

.contact-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-detail p,
.contact-detail a {
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 35px;
    border-radius: 2px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem; /* Same size as contact-info h3 */
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* Book Today Section */
.book-today {
    background:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)),
        url('../images/swaby-office-01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.book-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 140, 43, 0.05) 0%, rgba(57, 83, 42, 0.03) 100%);
    z-index: 0;
}

.book-today .container {
    position: relative;
    z-index: 1;
}

.book-today h2 {
    color: var(--primary-blue);
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.book-today h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green-start), var(--accent-green-end));
    border-radius: 1px;
}

.book-today p {
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.book-today .btn {
    font-size: 1.2rem;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: white;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(76, 140, 43, 0.3);
    border: none;
}

.book-today .btn:hover {
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 140, 43, 0.4);
    animation: buttonRadiance 2s infinite;
}

/* Footer */
footer {
    background: var(--footer-white);
    color: var(--dark-text);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer logo styling */
.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 180px;
    transition: var(--transition);
}

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

/* Social links */
.social-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0077b5;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none !important; /* Ensure no underline */
    border: none; /* Remove any border */
    outline: none; /* Remove outline */
}

.social-link:before,
.social-link:after {
    display: none !important;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
    color: white; /* Keep text white on hover */
    text-decoration: none !important; /* Ensure no underline on hover */
}

.social-link.facebook:hover {
    background: #2d4373;
}

.social-link.linkedin:hover {
    background: #005582;
}

/* Privacy policy link styling */
.privacy-policy-link {
    margin-top: 10px;
}

.privacy-policy-link a {
    color: var(--dark-text);
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none !important; /* Remove underline */
    position: relative;
}

.privacy-policy-link a:before,
.privacy-policy-link a:after {
    display: none !important;
}

.privacy-policy-link a:hover {
    color: var(--accent-green-start);
    transform: translateY(-2px);
    background-color: rgba(76, 140, 43, 0.05);
    text-decoration: none !important;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: var(--light-text);
    width: 100%;
}

/* Disclosure Subfooter */
.disclosure-subfooter {
    background: var(--white);
    color: white;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclosure-subfooter .container {
    max-width: 1000px;
}

.disclosure-text {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--dark-text);
}

.disclosure-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-left: 5px;
}

.disclosure-link:hover {
    color: var(--accent-green-start);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(76, 140, 43, 0.3);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 140, 43, 0.4);
    animation: buttonRadiance 2s infinite;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox.closing {
    opacity: 0;
    visibility: hidden;
}

/* NEW: slow 2.5s fade-out used when "Contact Us" is clicked in the lightbox,
   so the page can be seen scrolling to the web form behind it */
.lightbox.closing-slow {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 2.5s ease, visibility 2.5s ease;
}

.lightbox-content {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    padding: 0;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lightbox.active .lightbox-content {
    transform: translateY(0);
}

.lightbox.closing .lightbox-content {
    transform: translateY(30px);
}

.lightbox.closing-slow .lightbox-content {
    transform: translateY(30px);
    transition: transform 2.5s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}

.lightbox-header {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lightbox-header h3 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    padding: 0 30px;
    z-index: 2;
    position: relative;
}

.lightbox-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.lightbox-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

.lightbox-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lightbox-body p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    color: var(--dark-text);
}

.lightbox-services {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.lightbox-service {
    background: var(--light-bg);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    border: 1px solid rgba(26, 60, 139, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.lightbox-service .service-text {
    display: block;
    transition: var(--transition);
}

.lightbox-service .book-now-text {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.lightbox-service:hover {
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 140, 43, 0.3);
}

.lightbox-service:hover .service-text {
    opacity: 0;
}

.lightbox-service:hover .book-now-text {
    display: block;
}

/* ==========================================================================
   NEW: Events Page
   ========================================================================== */

/* Shorter hero for inner pages */
.hero.page-hero {
    min-height: 60vh;
    padding-bottom: 100px;
}

.events {
    background-color: var(--light-bg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Grid card styles are scoped to .events-grid so they don't clash with
   the Featured Event section, which also uses .event-card / .event-date */
.events-grid .event-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.events-grid .event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Image slot - shows a branded placeholder until an <img> is added */
.event-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 3rem;
    overflow: hidden;
}

.event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image .event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    background: white;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--shadow);
}

.event-image .event-date .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-green-start);
}

.event-image .event-date .day {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
}

.event-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.event-meta {
    list-style: none;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.event-meta li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.event-meta i {
    width: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--accent-green-start);
}

.event-body p {
    font-size: 0.95rem;
    flex: 1;
}

.event-body .btn {
    align-self: flex-start;
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* ==========================================================================
   NEW: Featured Event Section (Events page, below the hero)
   Ported from the old Events page; scoped to .event-section
   ========================================================================== */

.event-section {
    background: var(--white);
}

.event-section .event-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 42px;
    border: 1px solid rgba(76, 140, 43, 0.12);
}

.event-section .flyer-wrap img {
    width: 100%;
    display: block;
    border-radius: 22px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.event-section .event-info {
    text-align: left;
}

.event-section .event-label {
    display: inline-block;
    background: rgba(76, 140, 43, 0.1);
    color: var(--deep-green);
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.event-section .event-info h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    color: var(--deep-green);
    margin-bottom: 12px;
}

.event-section .event-date {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-size: 1.55rem;
    font-weight: 900;
    margin-bottom: 20px;
}

/* Scroll reveal animation (js/script.js adds .active when in view) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .event-section .event-card {
        grid-template-columns: 1fr;
    }

    .event-section .event-info {
        text-align: center;
    }
}

@media (max-width: 650px) {
    .event-section .event-card {
        padding: 24px;
    }

    .event-section .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* Partners Section Responsive Design */
@media (max-width: 1200px) {
    @keyframes scrollPartners {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 9 - 40px * 9));
        }
    }

    .partner-logo {
        flex: 0 0 200px;
        height: 100px;
    }

    .partners-track {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    @keyframes scrollPartners {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 9 - 30px * 9));
        }
    }

    .partner-logo {
        flex: 0 0 150px;
        height: 80px;
        padding: 15px;
    }

    .partners-track {
        gap: 30px;
    }

    .partner-logo img {
        max-height: 50px;
    }

    .partners {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    @keyframes scrollPartners {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 9 - 20px * 9));
        }
    }

    .partner-logo {
        flex: 0 0 120px;
        height: 70px;
        padding: 12px;
    }

    .partners-track {
        gap: 20px;
    }
}

/* NEW: slightly tighter menu spacing on narrower desktops so "Events" fits */
@media (min-width: 1201px) and (max-width: 1300px) {
    .nav-menu li {
        margin-left: 22px;
    }
}

/* Responsive Design */
/* UPDATED: the menu now switches to the hamburger at 1200px (was 992px)
   so the full menu, including the new "Events" item, never overflows the navbar */
@media (max-width: 1200px) {
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 30px 30px;
        border: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu .book-btn {
        margin: 15px 0 0;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

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

    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }

    .contact-container {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Section Mobile Fixes */
    .contact-detail {
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .contact-detail i {
        min-width: 50px;
        min-height: 50px;
        flex-shrink: 0;
    }

    .contact-detail div {
        width: calc(100% - 70px);
    }

    /* Footer responsive */
    .footer-logo img {
        height: 100px;
    }

    .social-link {
        padding: 10px 20px;
    }

    /* Disclosure Subfooter Responsive */
    .disclosure-text {
        font-size: 0.8rem;
        padding: 0 15px;
    }

    /* NEW: Events - 2 x 2 grid on tablet */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .lightbox-header {
        height: 150px;
    }

    .lightbox-header h3 {
        font-size: 2rem;
    }

    .lightbox-body {
        padding: 30px 20px;
    }

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

    /* Contact Section Mobile Fixes */
    .contact-detail {
        margin-bottom: 25px;
    }

    .contact-detail i {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 1rem;
    }

    .contact-detail h4 {
        font-size: 1rem;
    }

    .contact-detail p,
    .contact-detail a {
        font-size: 0.9rem;
    }

    /* Adjust Book Today section for mobile */
    .book-today {
        padding: 80px 0;
    }

    .book-today h2 {
        font-size: 2.2rem;
    }

    .book-today .btn {
        font-size: 1.1rem;
        padding: 15px 35px;
    }

    /* Footer responsive */
    .footer-logo img {
        height: 90px;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-link {
        width: 200px;
        justify-content: center;
    }

    /* Disclosure Subfooter Mobile */
    .disclosure-subfooter {
        padding: 20px 0;
    }

    .disclosure-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* NEW: Events - stays side-by-side (2 rows of 2), compacted for phones */
    .hero.page-hero {
        min-height: 50vh;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .event-image {
        font-size: 2rem;
    }

    .event-image .event-date {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .event-image .event-date .month {
        font-size: 0.6rem;
    }

    .event-image .event-date .day {
        font-size: 1.1rem;
    }

    .event-body {
        padding: 15px 12px;
    }

    .event-body h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .event-meta {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .event-meta li {
        gap: 5px;
        margin-bottom: 4px;
    }

    .event-meta i {
        width: 12px;
        margin-top: 3px;
    }

    .event-body p {
        font-size: 0.8rem;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .event-body .btn {
        align-self: stretch;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .book-today {
        padding: 70px 0;
    }

    .book-today h2 {
        font-size: 1.8rem;
    }

    .book-today p {
        font-size: 1rem;
    }

    /* Contact Section Small Mobile Fixes */
    .contact-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 30px;
    }

    .contact-detail i {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 0.9rem;
    }

    .contact-detail div {
        width: 100%;
    }

    .contact-info,
    .contact-form {
        padding: 25px 20px;
    }

    /* Footer responsive for small mobile */
    .footer-logo img {
        height: 80px;
    }

    .social-link {
        width: 180px;
        padding: 10px 15px;
    }

    .privacy-policy-link a {
        font-size: 0.9rem;
    }

    /* Disclosure Subfooter Small Mobile */
    .disclosure-subfooter {
        padding: 18px 0;
    }

    .disclosure-text {
        font-size: 0.7rem;
    }

    /* NEW: Events - give the 2 x 2 grid a little more width on small phones */
    .events .container {
        padding: 0;
    }

    .events-grid {
        gap: 12px;
    }
}
