/* --- VARIABLES & BASE STYLES --- */
:root {
    --royal-blue: #091235;
    --navy-blue: #14202E;
    --midnight-blue: #2B4257;
    --blue-gray: #88A9C3;
    --royal-sky-blue: #56A5EC;
    --ivory: #FFFFF0;
    --gold: #FFD700;
    --footer-bg: #D3D3D3;
    --footer-text: #101820;
    --white: #FFFFFF;
    --success: #28a745;
    --error: #dc3545;

    --font-primary: 'Poppins', sans-serif;
    --font-special: 'Times New Roman', serif;
    --font-code: 'Courier Prime', monospace;
    --font-stats: 'Helvetica Bold', 'Helvetica', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--ivory);
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-sky-blue));
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

p {
    margin-bottom: 1rem;
    color: var(--blue-gray);
}

a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--blue-gray);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--royal-blue);
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--royal-blue);
}

/* --- HEADER --- */
.main-header {
    background-color: rgba(9, 18, 53, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--white);
}

.logo-text p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--blue-gray);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--blue-gray);
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--white);
    border-bottom-color: var(--gold);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--navy-blue);
    padding: 10px 0;
    border-radius: 5px;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    border-bottom: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--midnight-blue);
    border-bottom: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
}

/* --- HOMEPAGE BANNER --- */
.hero-banner {
    position: relative;
    height: 90vh;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 18, 53, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--ivory);
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* --- STATS SECTION --- */
.stats-section {
    background-color: rgba(0,0,0,0.1);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item .stat-number {
    font-family: var(--font-stats);
    font-size: 4rem; /* 3x larger */
    font-weight: bold;
    color: var(--gold);
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 1.1rem;
    color: var(--blue-gray);
    margin-top: 10px;
}

/* --- REVIEW CAROUSEL --- */
.review-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.review-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    min-width: 31%;
    margin: 0 1.16%;
    padding: 30px;
    background: linear-gradient(145deg, var(--ivory), #f0f0f0);
    border-radius: 10px;
    border: 2px solid var(--gold);
    color: var(--royal-blue);
    font-family: var(--font-special);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.review-card h3 {
    color: var(--royal-blue);
    margin-bottom: 15px;
}
.review-card p {
    color: var(--navy-blue);
    font-size: 1.1rem;
}
.review-stars {
    color: var(--gold);
    margin-bottom: 15px;
}

/* --- ABOUT & SERVICES ON HOMEPAGE --- */
.home-about, .home-services {
    background-color: rgba(0,0,0,0.1);
}
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.home-services-list ul {
    list-style: none;
    padding-left: 0;
}
.home-services-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.home-services-list i {
    color: var(--gold);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* --- CONTACT FORM --- */
.contact-form-section {
    padding-bottom: 80px;
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0,0,0,0.2);
    padding: 40px;
    border-radius: 10px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--blue-gray);
}
.form-control {
    width: 100%;
    padding: 12px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--midnight-blue);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}
.form-response.success {
    background-color: var(--success);
    color: white;
}
.form-response.error {
    background-color: var(--error);
    color: white;
}


/* --- SERVICE & EXCLUSIVE PAGES (FLIP CARDS) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    perspective: 1000px;
}
.flip-card {
    background-color: transparent;
    height: 350px;
    border: none;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 10px;
    transform: translateZ(0); /* ADD THIS LINE TO FORCE GPU ACCELERATION */
}
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.flip-card-front {
    background-size: cover;
    background-position: center;
    color: white;
}
.flip-card-front::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(9, 18, 53, 0.7);
    border-radius: 10px;
}
.flip-card-front-content {
    position: relative;
    z-index: 2;
}
.flip-card-front h3 {
    font-size: 1.8rem;
}
.flip-card-back {
    background: var(--ivory);
    color: var(--royal-blue);
    transform: rotateY(180deg);
}
.flip-card-back h3, .flip-card-back p {
    color: var(--royal-blue);
}
.flip-card-back p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.btn-call {
    background-color: #56A5EC;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 20px;
}

/* --- CONTACT PAGE --- */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}
.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 10px;
}

/* --- POLICY PAGES (GDPR, REFUND) --- */
.policy-page {
    background-color: var(--white);
    color: #333;
    padding: 60px 0;
}
.policy-page .container {
    max-width: 800px;
}
.policy-page h1, .policy-page h2, .policy-page p {
    color: #333;
    font-family: var(--font-code);
    font-size: 11pt;
}

/* --- SHOP PAGE --- */
.coming-soon-section {
    text-align: center;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.coming-soon-section h1 {
    font-size: 4rem;
}
.coming-soon-section p {
    font-size: 1.5rem;
}

/* --- 404 PAGE --- */
.error-404-section {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.error-404-section h1 {
    font-size: 8rem;
    color: var(--gold);
    line-height: 1;
}
.error-404-section h2 {
    font-size: 2rem;
}


/* --- FOOTER --- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--footer-text);
    margin-bottom: 20px;
}

.footer-col .logo-text h3 {
    margin-bottom: 5px;
}

.footer-col .logo-text p {
    color: #555;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a, .footer-col p {
    color: #555;
}
.footer-col a:hover {
    color: var(--royal-blue);
}

.social-links a {
    color: var(--footer-text);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--royal-blue);
}

.back-to-top {
    margin-top: 20px;
    background-color: var(--footer-text);
    color: var(--white);
    border-color: var(--footer-text);
}
.back-to-top:hover {
    background-color: transparent;
    color: var(--footer-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}
.footer-bottom p {
    color: #555;
    font-size: 0.9rem;
}


/* --- FLOATING BUTTONS --- */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 998;
}

.whatsapp-btn {
    background-color: #25D366;
    bottom: 105px; /* 80px for Tawk.to + 25px (2.5cm is too big) */
}

/* Tawk.to is styled by its own script, but we target its usual container for positioning */
div[style*="bottom: 20px"][style*="right: 20px"] {
    z-index: 997 !important;
}


/* --- CALENDLY MODAL --- */
.calendly-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}
.calendly-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
}
.close-modal-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 35px;
    text-align: center;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 120px; /* Header height */
        left: 0;
        width: 100%;
        background: var(--navy-blue);
        flex-direction: column;
    }
    .main-nav.active {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    .nav-links li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--midnight-blue);
    }
    .nav-links a {
        display: block;
        padding: 20px;
        border-bottom: none;
    }
    .dropdown-menu {
        position: static;
        display: none; /* Start hidden */
        background: var(--midnight-blue);
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown > a.active + .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: block; /* Show on hover for desktop, will handle click via JS */
    }
    .header-actions .schedule-btn-modal {
        display: none; /* Hide button in nav bar on mobile */
    }
    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item .stat-number { font-size: 3rem; }

    .grid-2-col, .contact-page-grid, .service-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }
    .footer-col .logo { justify-content: center; }

    .map-container { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { display: flex; flex-direction: column; }
    .hero-buttons .btn { margin: 10px 0; }
    
    .stats-grid { grid-template-columns: 1fr; }

    .service-grid { gap: 20px; }
    .flip-card { height: 300px; }

    .contact-form { padding: 20px; }
}

/* --- HOMEPAGE SERVICES GRID --- */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.service-grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.service-grid-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-grid-item i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.service-grid-item p {
    color: var(--blue-gray);
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
}

/* --- Responsive rules for the new grid --- */
@media (max-width: 992px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FIX FOR HOMEPAGE REVIEW CARDS ON MOBILE --- */
@media (max-width: 576px) {
  .review-carousel .review-card {
    /* Make the card take up 90% of the screen for a better look */
    min-width: 90%;
    margin: 0 15px;

    /* These next lines are the key to making the heights uniform */
    display: flex;
    flex-direction: column;
  }
}

/* --- NEW BLOG LISTING PAGE STYLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blog-card {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ivory);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* This is key for uniform height */
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.blog-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the content area to expand, forcing uniform height */
}

.blog-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--white);
}

.blog-card-meta {
    font-size: 0.9rem;
    color: var(--blue-gray);
    margin-bottom: 15px;
}

.blog-card-excerpt {
    color: var(--blue-gray);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the 'Read More' link to the bottom */
}

.read-more {
    font-weight: 600;
    color: var(--gold);
    align-self: flex-start;
}

/* --- Responsive styles for the blog grid --- */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ELANTROE ELEGANT SERVICES HUB SYSTEM --- */
#elantroe-hub-engine {
    background: transparent; /* Retains your existing site background */
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

#elantroe-hub-engine .hub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Description Box */
.hub-header-box {
    text-align: center;
    margin-bottom: 40px;
}

.hub-header-box h2 {
    font-family: 'Helvetica Bold', sans-serif;
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.hub-header-box p {
    font-size: 1rem;
    color: var(--ivory);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* The Grid System - Forced 2 Columns */
.hub-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.hub-tile {
    /* Gradient: Center Outward Midnight Blue to Pale Blue */
    background: radial-gradient(circle, #2E5A88 0%, #040720 150%);
    width: calc(50% - 10px); /* Precise 2 column calc */
    min-height: 140px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--white);
    font-family: 'Helvetica Bold', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}

/* Large Tile Logic for uneven rows */
.tile-full {
    width: 100% !important;
}

.hub-tile:hover {
    background: var(--teal) !important;
    color: var(--gold) !important;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
    border-color: var(--gold);
}

/* Detail Page Container */
.detail-container-box {
    background: rgba(255, 255, 255, 0.03); /* Subtle blend */
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(5px);
}

.detail-hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
}

.detail-description p {
    color: var(--ivory);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Sleek Call Button */
.sleek-call-btn {
    display: inline-block;
    background: var(--midnight-blue);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--royal-sky-blue);
    margin: 25px 0;
    transition: 0.3s ease;
}

.sleek-call-btn:hover {
    background: var(--teal);
    border-color: var(--gold);
    color: var(--gold);
}

/* Premium Navigation Buttons (After Call Now) */
.premium-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.nav-btn-sm {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    flex-grow: 1;
    text-align: center;
}

.nav-btn-sm:hover { background: var(--teal); color: var(--gold); }

/* Back Hub Button - Professional & Small */
.back-hub-wrapper {
    margin-top: 50px;
    text-align: center;
}

.btn-back-hub {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--royal-sky-blue);
    text-transform: lowercase; /* as requested: not all caps */
    padding: 8px 20px;
    border: 1px solid var(--royal-sky-blue);
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-back-hub:hover {
    background: var(--royal-sky-blue);
    color: var(--royal-blue);
}

/* Space for affiliate widgets */
.affiliate-space {
    background: rgba(0,0,0,0.2);
    border: 1px dashed var(--blue-gray);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

/* Mobile Fixes */
@media (max-width: 600px) {
    .hub-tile {
        width: calc(50% - 8px); /* Maintains 2 columns on even small phones */
        min-height: 120px;
        font-size: 0.95rem;
    }
    .hub-header-box h2 { font-size: 1.7rem; }
    .detail-hero-img { height: 200px; }
    .sleek-call-btn { width: 100%; box-sizing: border-box; text-align: center; }
}

/* --- SPECIFIC HOVER OVERRIDES FOR SERVICE HUB ONLY --- */
/* This ensures only buttons INSIDE the service hub turn teal */

#elantroe-hub-engine .hub-tile:hover {
    background: #008080 !important; /* Trustworthy Teal */
    color: #FFD700 !important;      /* Gold Text */
    border-color: #FFD700 !important;
}

#elantroe-hub-engine .sleek-call-btn:hover, 
#elantroe-hub-engine .nav-btn-sm:hover,
#elantroe-hub-engine .btn-back-hub:hover {
    background: #008080 !important; /* Trustworthy Teal */
    color: #FFD700 !important;      /* Gold Text */
    border-color: #FFD700 !important;
    cursor: pointer;
}

/* Ensure icons inside buttons also turn gold on hover */
#elantroe-hub-engine .sleek-call-btn:hover i,
#elantroe-hub-engine .nav-btn-sm:hover i {
    color: #FFD700 !important;
}

/* --- FULLY UPDATED WIDGET AREA STYLING (Mobile Optimized) --- */
#elantroe-hub-engine .affiliate-space {
    background: rgba(0, 0, 0, 0.4); /* Darker for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 30px auto;
    width: 100%;
    max-width: 100%; /* Prevents horizontal overflow in Chrome */
    box-sizing: border-box; 
    overflow: hidden; /* Critical for Chrome: clips any widget spillover */
    position: relative;
    clear: both;
}

#elantroe-hub-engine .widget-title {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Helvetica Bold', sans-serif;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 1.1rem;
    text-align: center;
}

#elantroe-hub-engine .widget-wrapper {
    margin-bottom: 25px;
    width: 100%;
    display: block;
    position: relative;
    overflow-x: auto; /* Allows the widget to be scrollable internally if it's too wide, rather than breaking the page */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for Chrome/Safari */
}

/* Chrome-Specific Fix: Ensuring the Expedia Script-generated Divs behave */
#elantroe-hub-engine .widget-wrapper div, 
#elantroe-hub-engine .widget-wrapper iframe {
    max-width: 100% !important;
    margin: 0 auto !important;
}

#elantroe-hub-engine .widget-wrapper:last-child {
    margin-bottom: 0;
}

/* --- MOBILE SPECIFIC TWEAKS --- */
@media (max-width: 600px) {
    #elantroe-hub-engine .affiliate-space {
        padding: 15px 10px; /* Slimmer padding for small screens */
        margin: 20px 0;
    }
    
    #elantroe-hub-engine .widget-title {
        font-size: 1rem;
    }
}