/* Mobile alignment for homepage "About us" bullets */
@media (max-width: 767.98px) {
    .about-bullets-row {
        /* remove Bootstrap gutters/negative margins to avoid overflow */
        --bs-gutter-x: 0;
        /* stack items vertically but size to content so the whole list can center */
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        width: auto;
        max-width: 100%;
        margin-left: auto; /* cooperate with mx-auto/w-auto */
        margin-right: auto;
    }
    .about-bullets-row > [class^="col-"],
    .about-bullets-row > [class*=" col-"] {
        padding-left: 0; /* keep left edges aligned */
        padding-right: 0;
        /* override Bootstrap's row>* width so the row can shrink to content */
        width: auto;
        max-width: none;
        flex: 0 0 auto;
    }
}
/* 
* Isurus Ltd - Main Stylesheet
* Version: 1.0
* Author: Isurus Development Team
*/

/* ===== Custom Variables ===== */
:root {
    /* Brand Colors */
    --primary-color: #2d3d4d;
    --secondary-color: #01a3c9;
    --accent-color: #ffc107;
    --dark-color: #333333;
    --light-color: #f2f2f2;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Transition Speed */
    --transition-speed: 0.3s;
}

/* ===== Base Styles ===== */
html, body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

/* ===== Utility Classes ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

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

.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-margin {
    margin: var(--spacing-xl) 0;
}

.text-justify {
    text-align: justify;
}

/* ===== Header Styles ===== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.logo {
    max-height: 50px;
    width: auto;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-family: var(--font-primary);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: color var(--transition-speed);
    position: relative;
}

.navbar-light .navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: 6px;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease-in-out;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar-light .navbar-nav .nav-link:not(.dropdown-toggle).active::after,
.navbar-light .navbar-nav .show > .nav-link:not(.dropdown-toggle)::after {
    transform: scaleX(1);
}

/* Dropdown toggle: keep caret, add underline via ::before only when active/open */
.navbar-light .navbar-nav .nav-link.dropdown-toggle { position: relative; }
.navbar-light .navbar-nav .nav-link.dropdown-toggle::before {
    content: '';
    position: absolute;
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: 6px;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease-in-out;
}
.navbar-light .navbar-nav .nav-link.dropdown-toggle.active::before,
.navbar-light .navbar-nav .nav-link.dropdown-toggle:hover::before,
.navbar-light .navbar-nav .show > .nav-link.dropdown-toggle::before {
    transform: scaleX(1);
}

/* Accent the caret on hover/open to indicate a submenu */
.navbar-light .navbar-nav .nav-link.dropdown-toggle::after {
    transition: border-top-color var(--transition-speed);
}
.navbar-light .navbar-nav .nav-link.dropdown-toggle:hover::after,
.navbar-light .navbar-nav .show > .nav-link.dropdown-toggle::after {
    border-top-color: var(--accent-color);
}

/* Active/current page state: underline the active link */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
    color: var(--primary-color);
}

/* Ensure dropdown parents don't use text-decoration; use the thick ::before underline only */
.navbar-light .navbar-nav .nav-link.dropdown-toggle.active,
.navbar-light .navbar-nav .show > .nav-link.dropdown-toggle {
    text-decoration: none;
}

.client-login-btn {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-left: var(--spacing-md);
    transition: background-color var(--transition-speed);
}

.client-login-btn:hover {
    background-color: var(--accent-color);
}

/* Dropdown menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) 0;
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    position: relative;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: 6px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease-in-out;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.dropdown-item:hover::after, .dropdown-item:focus::after {
    transform: scaleX(1);
}

/* Active dropdown item underline */
.dropdown-item.active, .dropdown-item.active:focus, .dropdown-item.active:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.dropdown-item.active::after,
.dropdown-item.active:focus::after,
.dropdown-item.active:hover::after {
    transform: scaleX(1);
}

/* ===== Hero Section and Page Hero Section Styles ===== */
/* Common styles for both hero types */
.hero-section, .page-hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    padding: clamp(3rem, 8vw, 8rem) 0;
    min-height: clamp(360px, 60vh, 720px);
    display: flex;
    align-items: center;
    /* Prevent any tiny layout shifts from causing horizontal scroll on mobile */
    overflow-x: hidden;
}

.hero-section::before, .page-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Brand‑tinted overlay for better harmony and contrast */
    background: linear-gradient(135deg,
      rgba(45, 61, 77, 0.65) 0%,
      rgba(45, 61, 77, 0.45) 45%,
      rgba(0, 0, 0, 0.35) 100%
    );
}

.hero-section .hero-content, .page-hero-section .hero-content {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: clamp(1rem, 3vw, 2rem);
    box-sizing: border-box; /* include padding in width to avoid overflow */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 820px;
}

.hero-section .hero-title, .page-hero-section .hero-title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    animation: title-fade-in 0.9s ease-out forwards;
}

/* removed hero-title underline pseudo-element */

@keyframes title-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 500;
    max-width: 52ch;
    line-height: 1.65;
    margin-top: 0.75rem;
    margin-bottom: 1.15rem;
    animation: subtitle-fade-in 0.9s ease-out 0.15s forwards;
    opacity: 0;
}

@keyframes subtitle-fade-in {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    animation: buttons-fade-in 0.9s ease-out 0.25s forwards;
    opacity: 0;
}

@keyframes buttons-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons .btn {
    margin-right: var(--spacing-md);
    padding: calc(var(--spacing-sm) + 2px) calc(var(--spacing-lg) + 2px);
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ===== Services Section ===== */
.services-section .card {
    border: none;
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

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

.services-section .card-img-top {
    height: 180px;
    object-fit: cover;
}

.services-section .card-body {
    padding: var(--spacing-lg);
}

.services-section .card-title {
    color: var(--primary-color);
    font-weight: 700;
}

.services-section .card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

/* ===== Portfolio Section ===== */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.portfolio-img {
    transition: transform var(--transition-speed);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
    padding: var(--spacing-lg);
    color: white;
    text-align: center;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.portfolio-overlay p {
    margin-bottom: var(--spacing-md);
}

.portfolio-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.portfolio-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: #f9f9f9;
}

.testimonial-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-lg);
    display: flex; /* Added */
    flex-direction: column; /* Added */
    height: 100%; /* Added to make all items in a row the same height */
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding: 0 var(--spacing-md);
    flex-grow: 1; /* Added to make text expand */
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.2;
}

.testimonial-text::before {
    top: -10px;
    left: -5px;
}

.testimonial-text::after {
    bottom: -20px;
    right: -5px;
}

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

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: var(--spacing-md);
    object-fit: cover;
}

.testimonial-item.greenretreats .testimonial-author img {
    border-radius: 0;
}

.testimonial-author-info h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.testimonial-author-info p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: var(--font-size-sm);
}

/* Mobile spacing for stacked testimonials */
@media (max-width: 767.98px) {
    /* Add bottom spacing between stacked columns inside testimonials section */
    .testimonials-section .row > [class*="col-"] {
        margin-bottom: var(--spacing-lg);
    }
    /* Remove extra space after the last item */
    .testimonials-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: white;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.contact-info-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.contact-info-content h5 {
    margin-bottom: var(--spacing-xs);
}

.contact-info-content p {
    margin-bottom: 0;
}

.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.contact-form .btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.contact-form .btn-submit:hover {
    background-color: var(--accent-color);
}

/* ===== Footer Styles ===== */
.site-footer {
    background-color: var(--dark-color);
    color: #dee2e6;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-contact-info p {
    margin-bottom: var(--spacing-sm);
}

.footer-contact-info a {
    color: #dee2e6;
}

.footer-contact-info a:hover {
    color: var(--accent-color);
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: var(--spacing-sm);
    transition: background-color var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #dee2e6;
    transition: color var(--transition-speed), padding-left var(--transition-speed);
    display: block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: var(--spacing-sm);
}

.footer-divider {
    margin: var(--spacing-lg) 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.copyright, .sister-brands {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

.sister-brands {
    text-align: right;
}

.sister-brands a {
    color: #dee2e6;
}

.sister-brands a:hover {
    color: var(--accent-color);
}

/* Contact Us Fixed Button */
.contact-us-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.btn-contact-us {
    border-radius: 50px;
    padding: var(--spacing-sm) var(--spacing-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.btn-contact-us:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
}

/* Client Login Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: var(--spacing-lg);
}

.btn-close {
    color: white;
}

/* Client Login Modal - Professional (matches developer tools access styling) */
#clientLoginModal .modal-dialog {
    max-width: 420px;
}

#clientLoginModal .modal-content {
    background: #0f172a;
    border: 1px solid #1f2a44;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#clientLoginModal .modal-header {
    background: transparent;
    color: #e6e9ef;
    border-bottom: 1px solid #1f2a44;
    padding: 16px 20px;
}

#clientLoginModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #e6e9ef;
}

#clientLoginModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#clientLoginModal .btn-close:hover {
    opacity: 1;
}

#clientLoginModal .modal-body {
    background: #0f172a;
    color: #e6e9ef;
    padding: 20px;
}

#clientLoginModal label {
    color: #aab4c3;
    font-size: 13px;
    margin-bottom: 6px;
}

#clientLoginModal .form-control {
    background: #091226;
    border: 1px solid #24324f;
    color: #e6e9ef;
    border-radius: 8px;
}

#clientLoginModal .form-control::placeholder {
    color: #8c97aa;
}

#clientLoginModal .form-control:focus {
    background: #0b1429;
    border-color: #2b3b63;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    color: #e6e9ef;
}

#clientLoginModal .form-check-input {
    background-color: #091226;
    border: 1px solid #24324f;
}

#clientLoginModal .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

#clientLoginModal .form-check-label {
    color: #c3ccd8;
}

#clientLoginModal .btn-primary {
    background: #2563eb;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: none;
}

#clientLoginModal .btn-primary:hover {
    background: #1d4ed8;
}

#clientLoginModal .modal-body a,
#clientLoginModal a.text-primary {
    color: #cfe1ff !important; /* improve contrast on dark bg and override .text-primary */
}

#clientLoginModal .modal-body a:hover,
#clientLoginModal a.text-primary:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Forgot Password Modal (match styling) */
#forgotPasswordModal .modal-dialog {
    max-width: 420px;
}

#forgotPasswordModal .modal-content {
    background: #0f172a;
    border: 1px solid #1f2a44;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#forgotPasswordModal .modal-header {
    background: transparent;
    color: #e6e9ef;
    border-bottom: 1px solid #1f2a44;
    padding: 16px 20px;
}

#forgotPasswordModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #e6e9ef;
}

#forgotPasswordModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#forgotPasswordModal .btn-close:hover { opacity: 1; }

#forgotPasswordModal .modal-body { background: #0f172a; color: #e6e9ef; padding: 20px; }

#forgotPasswordModal label { color: #aab4c3; font-size: 13px; margin-bottom: 6px; }

#forgotPasswordModal .form-control { background: #091226; border: 1px solid #24324f; color: #e6e9ef; border-radius: 8px; }
#forgotPasswordModal .form-control::placeholder { color: #8c97aa; }
#forgotPasswordModal .form-control:focus { background:#0b1429; border-color:#2b3b63; box-shadow:0 0 0 3px rgba(37,99,235,.25); color:#e6e9ef; }

#forgotPasswordModal .btn-primary { background:#2563eb; border:none; border-radius:8px; padding:10px 14px; }
#forgotPasswordModal .btn-primary:hover { background:#1d4ed8; }

#forgotPasswordModal .modal-body a,
#forgotPasswordModal a.text-primary { color:#cfe1ff !important; }
#forgotPasswordModal .modal-body a:hover,
#forgotPasswordModal a.text-primary:hover { color:#ffffff !important; text-decoration: underline; }

/* ===== CTA Section Styles ===== */
.cta-section {
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    color: white !important;
    overflow: hidden !important;
}

/* Dark overlay for better text contrast */
.cta-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(45, 61, 77, 0.85) 100%) !important;
    z-index: 1 !important;
}

/* Ensure content appears above overlay */
.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Enhanced text styling for better contrast */
.cta-section h2 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p,
.cta-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    line-height: 1.6;
}

/* Enhanced button styling for CTA sections */
.cta-section .btn {
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.cta-section .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-section .btn-primary:hover {
    background-color: #0191b3;
    border-color: #0191b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    background-color: transparent;
}

.cta-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Additional contrast enhancement for smaller screens */
@media (max-width: 767.98px) {
    .cta-section::before {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(45, 61, 77, 0.9) 100%);
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    }
    
    .cta-section p,
    .cta-section .lead {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* ===== Group Companies Section Enhanced Styles ===== */
.group-company-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.group-company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.group-company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.group-company-card:hover::before {
    transform: scaleX(1);
}

.company-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #0191b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.company-icon i {
    font-size: 2.5rem;
    color: white;
}

.group-company-card:hover .company-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(1, 163, 201, 0.3);
}

.company-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.company-description {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.company-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.company-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.company-features li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.company-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #3a4a5a);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    margin-top: auto;
}

.company-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 61, 77, 0.25);
    background: linear-gradient(135deg, #3a4a5a, var(--primary-color));
}

.company-btn i {
    margin-left: 0.5rem;
    transition: transform var(--transition-speed) ease;
}

.company-btn:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments for Group Companies */
@media (max-width: 991.98px) {
    .group-company-card {
        padding: 1.5rem 1rem;
    }
    
    .company-icon {
        width: 70px;
        height: 70px;
    }
    
    .company-icon i {
        font-size: 2rem;
    }
    
    .company-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .group-company-card {
        margin-bottom: 2rem;
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-left: 0;
    }
    
    .client-login-btn {
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
    
    .hero-section .hero-title, .page-hero-section .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
        font-size: var(--font-size-lg);
        max-width: 100%;
    }
    
    .sister-brands {
        text-align: left;
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section, .page-hero-section {
        padding: 5rem 0;
    }
    /* Create safe side padding via container to avoid margin-induced overflow */
    .hero-section .container, .page-hero-section .container {
        padding-left: clamp(12px, 4vw, 20px);
        padding-right: clamp(12px, 4vw, 20px);
    }
    /* Remove gutters in hero row to prevent negative-margin overflow on small screens */
    .hero-section .row, .page-hero-section .row {
        --bs-gutter-x: 0;
    }
    
    .hero-section .hero-content, .page-hero-section .hero-content {
        background: rgba(255, 255, 255, 0.06);
        padding: 16px;
        border-left: 0;
        width: 100%;
        /* spacing handled by container padding to avoid overflow */
        margin: 0;
    }
    
    .hero-section .hero-title, .page-hero-section .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 16px;
        max-width: 100%;
    }
    
    /* Keep hero buttons on one line when space allows */
    .hero-buttons { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; justify-content: center; }
    .hero-buttons .btn { margin-bottom: 0; margin-right: 0; white-space: nowrap; padding: 10px 14px; }
}

@media (max-width: 575.98px) {
    html, body {
        font-size: 0.9rem;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .hero-section, .page-hero-section {
        padding: 3rem 0 3rem;
        text-align: left;
    }
    
    .hero-section .container, .page-hero-section .container {
        padding-left: clamp(12px, 4vw, 20px);
        padding-right: clamp(12px, 4vw, 20px);
    }
    
    .hero-section .row, .page-hero-section .row {
        --bs-gutter-x: 0;
    }
    
    .hero-section .hero-content, .page-hero-section .hero-content {
        padding: 14px;
        background: rgba(255, 255, 255, 0.06);
        width: 100%;
        margin: 0;
        border-left: 0;
    }
    
    .hero-section .hero-title, .page-hero-section .hero-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    
    .hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 10px;
        max-width: 100%;
    }
    
    /* Keep them side-by-side and centered on extra-small screens */
    .hero-buttons { flex-wrap: nowrap; justify-content: center; }
    .hero-buttons .btn { flex: 0 0 auto; }

    .contact-us-fixed {
        bottom: 20px;
        right: 20px;
    }
    
    .btn-contact-us {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

/* ===== Cookie Banner (UK compliant) ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080; /* above header/nav and modals backdrop */
    background: rgba(15, 23, 42, 0.96); /* deep slate */
    color: #e6e9ef;
    padding: 14px 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 240ms ease-in-out;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner .cookie-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-banner p {
    margin: 0;
    color: #c3ccd8;
}

.cookie-banner a { color: #cfe1ff; }
.cookie-banner a:hover { color: #ffffff; text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 14px;
}

.cookie-btn-accept {
    background: var(--secondary-color);
    color: #fff;
    border: none;
}
.cookie-btn-accept:hover { background: #0191b3; }

.cookie-btn-reject {
    background: transparent;
    color: #e6e9ef;
    border: 1px solid #2b3b63;
}
.cookie-btn-reject:hover { background: rgba(255,255,255,0.06); }

@media (max-width: 767.98px) {
    .cookie-banner .cookie-inner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; justify-content: stretch; }
    .cookie-actions .cookie-btn { flex: 1; text-align: center; }
}