/* 
 * NZOHS - Core CSS Stylesheet
 * Version: 1.0
 * Last updated: May 2025
 * 
 * This file contains all the core styles for the NZOHS website.
 * It has been optimized by consolidating inline styles from multiple files.
 */

/* ====================================
   CSS Variables & Base Styles
   ==================================== */
:root {
    --primary: #0075c1;          /* Current blue - keeping for brand consistency */
    --secondary: #89b704;        /* Current green - keeping for brand consistency */
    --tertiary: #f5a800;         /* Current orange - keeping for brand consistency */
    --danger: #dc3545;           /* Red color for danger/login button */
    --light: #ffffff;
    --dark: #333333;
    --gray: #f9f9f9;
    --gray-dark: #808080;
    --border: #eaeaea;
    --red-accent: #dc3545;       /* Red for the color sequence */
    
    /* Highlight colors */
    --highlight: #e9f5fe;        /* Light blue highlight (more subtle) */
    --highlight-border: #0075c1; /* Border for highlight boxes */
    --highlight-text: #005ea0;   /* Slightly darker text for contrast in highlight areas */
    
    /* Additional modern colors for UI elements */
    --success: #5cb85c;          /* Green for success messages */
    --warning: #f0ad4e;          /* Amber for warnings */
    --info: #5bc0de;             /* Light blue for info messages */
    
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* FontAwesome Icon Animation Styles */
/* Make sure animations respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fa-shake, .fa-bounce, .fa-beat, .fa-flip, .fa-spin, .manual-animate {
        animation: none !important;
    }
}

/* Improved FontAwesome Icon Animation Styles */
.fa-shake {
    animation: fa-shake 1s ease infinite !important;
}

@keyframes fa-shake {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(-15deg); }
    60% { transform: rotate(15deg); }
    75% { transform: rotate(-5deg); }
    85% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.fa-bounce {
    animation: fa-bounce 1s ease infinite !important;
}

@keyframes fa-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-10px); }
}

.fa-beat {
    animation: fa-beat 1s ease infinite !important;
}

@keyframes fa-beat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    40% { transform: scale(1); }
    60% { transform: scale(1.2); }
}

.fa-flip {
    animation: fa-flip 1s ease infinite !important;
}

@keyframes fa-flip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* Force display styles for animation elements */
.feature-icon i {
    display: inline-block !important; 
    font-size: 3rem;
    color: inherit;
    transition: transform 0.3s ease;
}

/* Enhanced hover effect that preserves animations */
.feature-box:hover .feature-icon i {
    transform: scale(1.2);
    animation-play-state: running !important; /* Keep animations running on hover */
}

/* Specific classes for each animation type to ensure they continue running on hover */
.feature-box:hover .feature-icon i.fa-bounce {
    animation: fa-bounce 1s ease infinite !important;
}

.feature-box:hover .feature-icon i.fa-beat {
    animation: fa-beat 1s ease infinite !important;
}

.feature-box:hover .feature-icon i.fa-shake {
    animation: fa-shake 1s ease infinite !important;
}

/* Ensure animations work in all browsers */
@media (prefers-reduced-motion: no-preference) {
    .fa-shake, .fa-bounce, .fa-beat, .fa-flip {
        animation-play-state: running !important;
    }
}

/* ====================================
   Global Element Styles
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 80px;
    background: var(--primary);
}

h3 {
    font-size: 1.5rem;
}

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

.nav-link:hover {
    color: #000000;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

/* ====================================
   Layout Elements
   ==================================== */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    min-width: 230px; /* Increased min-width to 230px as requested */
}

.btn-primary {
    background: linear-gradient(to bottom, #0087db, #0075c1);
    color: var(--light);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #0075c1, #005ea0);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 117, 193, 0.3);
}

.btn-secondary {
    background: linear-gradient(to bottom, #94c21e, #89b704);
    color: var(--light);
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #89b704, #75a003);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(137, 183, 4, 0.3);
}

.btn-tertiary {
    background: linear-gradient(to bottom, #6c757d, #5a6268);
    color: var(--light);
}

.btn-tertiary:hover {
    background: linear-gradient(to bottom, #5a6268, #495057);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(90, 98, 104, 0.3);
}

/* Danger/red button style */
.btn-danger {
    background: linear-gradient(to bottom, #e04c59, #dc3545);
    color: var(--light);
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #dc3545, #c82333);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

/* Member login button specific styles */
.member-login {
    margin-left: 1.5rem;
    min-width: 172.5px; /* 75% of the standard 230px */
    font-size: 0.972rem; /* Increased by 20% from 0.81rem */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Fixed height for better vertical centering */
    padding: 0; /* Remove default padding and use flexbox for centering */
}

.section {
    padding: 4rem 0;
}

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

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

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

.highlight {
    background-color: var(--highlight);
    border-left: 4px solid var(--highlight-border);
    color: var(--highlight-text);
    padding: 0.25rem 0.75rem;
    display: inline-block;
    font-weight: 600;
    border-radius: 0 3px 3px 0;
}

/* ====================================
   Header & Navigation
   ==================================== */
.header {
    background-color: #3699ff; /* was var(--primary); */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--light);
}

.logo img {
    height: 100px;
    margin-right: 1rem;
}


.logo img 2 {
    height: 100px;
    margin-right: 1rem;
}


.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--light);
}

.logo-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.nav {
    display: flex;
    gap: 3.0rem;
}

/* Nav item and link styles */
.nav-item {
    position: relative;
}

.nav-link {
    color: var(--light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--light);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* Award-winning dropdown styling */
@media (min-width: 993px) {
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 15px);
        left: 50%;
        transform: translateX(-50%) perspective(600px) rotateX(-15deg);
        transform-origin: top center;
        background-color: white;
        min-width: 220px;
        border-radius: 8px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.12);
        padding: 0.7rem 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 0.9), 
                    opacity 0.4s ease, 
                    visibility 0.4s ease;
        border: none;
        overflow: hidden;
    }
    
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, var(--primary), var(--secondary), var(--tertiary));
    }
    
    .dropdown-menu::after {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
    }
    
    .dropdown-item {
        display: block;
        padding: 0.9rem 1.7rem;
        color: var(--dark);
        font-size: 0.95rem;
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(8px);
    }
    
    .dropdown-item:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background-color: var(--highlight);
        transition: width 0.3s ease;
        z-index: -1;
    }
    
    .dropdown-item:hover {
        color: var(--primary);
        background-color: transparent;
    }
    
    .dropdown-item:hover::before {
        width: 100%;
    }
    
    /* Show dropdown on hover with animation - DESKTOP ONLY */
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) perspective(600px) rotateX(0deg);
    }
    
    /* Staggered item reveal animation */
    .nav-item:hover .dropdown-item {
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), 
                    opacity 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    }
    
    .nav-item:hover .dropdown-item:nth-child(1) {
        transition-delay: 0.05s;
    }
    
    .nav-item:hover .dropdown-item:nth-child(2) {
        transition-delay: 0.1s;
    }
    
    .nav-item:hover .dropdown-item:nth-child(3) {
        transition-delay: 0.15s;
    }
}


/* Fix for dropdown menu disappearing when moving mouse to submenu */
@media (min-width: 993px) {
    /* Add a pseudo-element to create an invisible bridge */
    .nav-item {
        position: relative;
    }
    
    .nav-item::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 15px; /* Match the gap size in the dropdown-menu top property */
        background-color: transparent; /* Make it invisible */
        z-index: 99; /* Just below the dropdown z-index of 100 */
    }
    
    /* Adjust the pointer-events to ensure the bridge doesn't interfere with other elements */
    .dropdown-menu {
        pointer-events: auto;
    }
    
    /* Make sure the dropdown menu appears directly after the invisible bridge */
    .dropdown-menu {
        top: calc(100% + 15px); /* Keep the original styling */
    }
}





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

/* ====================================
   Hero Section & Slider
   ==================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0381d7 0%, #0368aa 100%);
    color: var(--light);
    overflow: hidden;
    padding: 4rem 0;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI1MDAiIHZpZXdCb3g9IjAgMCAxNDQwIDUwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCAwczUyLjkgNDAgMTMyLjMgNDAgQzM2Mi45IDQwIDM2NS45IDAgNTU5LjQgMCBjMTQ0LjUgMCAxNDYuOSA0MCAyODEuNiA0MCA5OC40IDAgMjI3IDE1LjUgNTk5IDIxLjlWNTAwSDB2LTUwMHoiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjEiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
    padding: 3px;
    background-color: #ffffff;
    display: block;
    border-radius: 10px;
    overflow: visible;
}

.image-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    border: none !important;
    margin: 0 !important;
    z-index: 1;
}

.slides {
    position: relative;
    height: 380px;
}

.image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease, transform 2s cubic-bezier(0.215, 0.61, 0.355, 1);
    overflow: hidden;
}

.image-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.image-slider .slide.active img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px 25px;
    color: white;
    z-index: 3;
    text-align: left;
    display: flex;
    flex-direction: column;
    /* For a blue overlay */
    background: linear-gradient(to top, rgba(6, 110, 178, 0.5), rgba(6, 128, 210, 0.2), transparent);
    /* To change the overlay color, modify the rgba values above */
    /* For example, to make it blue-tinted: background: linear-gradient(to top, rgba(0, 20, 80, 0.7), rgba(0, 20, 80, 0.2), transparent); */
}

.slide-overlay p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 5px; /* Reduced from 15px to allow button to move up */
    opacity: 1; 
    text-align: left;
    text-shadow: none; /* Removed shadow for better readability with black text */
    max-width: 90%;
    transform: translateY(0);
    transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
    color: #000000; /* Changed text color to black */
}

/* Updated slider title and button styling */
.slide-overlay p strong {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    margin-bottom: 0px; /* Reduced from 10px to create a tighter gap below the underline */
    text-align: left;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px; /* Reduced from 8px to make the underline closer to text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slide-overlay p strong span:first-child {
    font-size: 2.0rem;
    color: #333333;
    display: block;
    margin-bottom: 0; /* Removed margin completely */
    text-transform: lowercase;
    line-height: 0.8; /* Added tighter line height */
}

.slide-overlay p strong span:last-child {
    font-size: 3rem;
    display: block;
    color: var(--primary);
}

/* Cycle through colors for second word */
.slide:nth-child(4n+1) .slide-overlay p strong span:last-child {
    color: #FF0000; /* Red */
}

.slide:nth-child(4n+2) .slide-overlay p strong span:last-child {
    color: #FABB0C; /* Orange */
}

.slide:nth-child(4n+3) .slide-overlay p strong span:last-child {
    color: #00A9FF; /* Blue */
}

.slide:nth-child(4n) .slide-overlay p strong span:last-child {
    color: #A2C902; /* Green */
}

/* Updated button styling to black with white text */
.slide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #000000;
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease 0.3s, opacity 0.5s ease 0.3s, background-color 0.3s ease;
    letter-spacing: 0.5px;
    min-width: 180px; /* Updated minimum width from 150px to 180px */
    margin-top: 15px; /* Added to increase gap above the button */
}

.slide-btn:hover {
    background: #333333;
    transform: none; /* Removed translateY(-4px) to prevent the button from moving up */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
    color: white;
}

/* Override the existing color cycling for buttons */
.slide:nth-child(4n+1) .slide-btn,
.slide:nth-child(4n+2) .slide-btn,
.slide:nth-child(4n+3) .slide-btn,
.slide:nth-child(4n) .slide-btn {
    background: #000000;
}

.slide:nth-child(4n+1) .slide-btn:hover,
.slide:nth-child(4n+2) .slide-btn:hover,
.slide:nth-child(4n+3) .slide-btn:hover,
.slide:nth-child(4n) .slide-btn:hover {
    background: #333333;
}

.slide-overlay p strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--red-accent);
}

/* Four-color cycle for title underlines */
.slide:nth-child(4n+1) .slide-overlay p strong::after {
    background-color: var(--red-accent);
}

.slide:nth-child(4n+2) .slide-overlay p strong::after {
    background-color: var(--tertiary);
}

.slide:nth-child(4n+3) .slide-overlay p strong::after {
    background-color: var(--primary);
}

.slide:nth-child(4n) .slide-overlay p strong::after {
    background-color: var(--secondary);
}

/* Premium Button Design - BRIGHTER BUTTONS */
.slide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #000000;
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease 0.3s, opacity 0.5s ease 0.3s, background-color 0.3s ease;
    letter-spacing: 0.5px;
}

/* Match button colors to underline colors for each slide - OVERRIDE WITH BLACK */
.slide:nth-child(4n+1) .slide-btn,
.slide:nth-child(4n+2) .slide-btn,
.slide:nth-child(4n+3) .slide-btn,
.slide:nth-child(4n) .slide-btn {
    background: #000000;
}

.slide:nth-child(4n+1) .slide-btn:hover,
.slide:nth-child(4n+2) .slide-btn:hover,
.slide:nth-child(4n+3) .slide-btn:hover,
.slide:nth-child(4n) .slide-btn:hover {
    background: #333333;
    transform: none !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
    color: white;
}

/* Premium active state animations */
.slide:not(.active) .slide-overlay p,
.slide:not(.active) .slide-overlay p strong,
.slide:not(.active) .slide-btn {
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .slide-overlay p,
.slide.active .slide-overlay p strong,
.slide.active .slide-btn {
    animation: fadeInUpBright 0.6s ease forwards;
}

@keyframes fadeInUpBright {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Navigation Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    right: 30px;
    left: auto;
    display: flex;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-slider:hover .slider-dots {
    opacity: 1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
}

/* Navigation arrows - only show on mouseover */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #0075c1 !important;
    color: white !important;
    border: 1px solid #0075c1 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    opacity: 0 !important; /* Hidden by default */
    font-size: 1.1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Only show arrows on mouseover */
.image-slider:hover .slider-arrow {
    opacity: 0.9 !important;
}

.slider-arrow:hover {
    background: #005ea0 !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* High-end frame effect */
.image-slider:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Brighter border */
    border-radius: 10px;
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05); /* Reduced inner shadow for clearer images */
}

/* Fix for lazy loaded images */
.lazy-slide-image {
    filter: blur(5px);
    transition: filter 0.3s ease-out;
}

.lazy-slide-image.loaded {
    filter: blur(0); /* Remove blur effect when loaded */
}

/* ====================================
   Social Proof
   ==================================== */
.social-proof {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #FFD700;
    letter-spacing: 2px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.stars i {
    margin-right: 2px;
}

.count {
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 0.9;
}

.clients-served {
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 0.9;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.company-count {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}


@media (max-width: 576px) {
    .social-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    
    .clients-served {
        padding-left: 0;
        border-left: none;
    }
}

/* ====================================
   Features Section
   ==================================== */
.features {
    padding: 4rem 0;
}

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

.feature-box {
    background: linear-gradient(to bottom, #ffffff, var(--gray));
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-large);
}

.feature-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.feature-box.primary {
    border-top: 5px solid var(--primary);
}

.feature-box.secondary {
    border-top: 5px solid var(--secondary);
}

.feature-box.tertiary {
    border-top: 5px solid var(--tertiary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-box.primary .feature-icon {
    color: var(--primary);
}

.feature-box.secondary .feature-icon {
    color: var(--secondary);
}

.feature-box.tertiary .feature-icon {
    color: var(--tertiary);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ====================================
   Main Content & Sidebar
   ==================================== */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    margin-bottom: 1.5rem;
}

.highlight-box {
    background-color: var(--highlight);
    border: 1px solid rgba(0, 117, 193, 0.2);
    border-left: 4px solid var(--highlight-border);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--highlight-text);
    box-shadow: 0 2px 4px rgba(0, 117, 193, 0.1);
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.benefits-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
    background-color: rgba(137, 183, 4, 0.1);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(to bottom, #ffffff, var(--gray));
    border-radius: 10px;
    padding: 2rem;
    height: fit-content;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.sidebar-block {
    margin-bottom: 2rem;
}

.sidebar-cta {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.sidebar-cta img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block; /* Ensure block display */
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important; /* Ensure visibility */
}

.sidebar-cta img:hover {
    transform: scale(1.03);
}

/* Additional fixes for sidebar images */
.app-links img, 
.sidebar img[loading="lazy"] {
    display: block;
    max-width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 auto; /* Center images */
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

/* Disclaimer */
.disclaimer {
    background-color: var(--gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.disclaimer-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.disclaimer-text {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* ====================================
   Testimonials Section
   ==================================== */
.testimonials-section {
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--gray);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.testimonial-content {
    font-style: italic;
    position: relative;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.testimonial-content:before,
.testimonial-content:after {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    line-height: 0;
    position: relative;
}

.testimonial-content:before {
    vertical-align: top;
    top: 0.5rem;
    margin-right: 0.2rem;
}

.testimonial-content:after {
    vertical-align: bottom;
    margin-left: 0.2rem;
}

.testimonial-author {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.testimonial-author:before {
    content: '—';
    margin-right: 0.5rem;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.25rem;
    }
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background-color: #333333;
    color: #ffffff;
    padding: 4rem 0 2rem;
    border-top: none !important;
    position: relative;
}

.footer::before,
.footer::after {
    display: none !important;
}


/* Update the footer grid to 4 columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Adjust responsive breakpoints for the 4-column layout */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


.footer-grid::before,
.footer-grid::after {
    display: none !important;
}

.footer-column h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background: linear-gradient(to right, var(--primary), transparent);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-contact a {
    color: white;
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-disclaimer {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: none !important;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer::before,
.footer-disclaimer::after {
    display: none !important;
}

.footer-disclaimer-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--light);
    text-align: left;
}

.footer-disclaimer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    text-align: left;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

/* Remove any HR elements or divider lines */
.footer hr,
.footer .divider,
hr.footer-divider {
    display: none !important;
}

/* Ensure no border or shadow creates lines */
.footer * {
    border-top: none !important;
    box-shadow: none !important;
}

/* Share Button and Popup Styles */
.share-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.share-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px; /* Makes the button 50% wider */
}

.share-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

.share-popup {
    position: absolute;
    bottom: 45px;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    width: 300px;
    padding: 20px;
    z-index: 100;
    display: none;
}

.share-popup.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.share-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.share-close {
    background: none;
    border: none;
    color: #777;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.share-close:hover {
    color: #0075c1;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.share-option:hover {
    background-color: #f5f5f5;
}

.share-option i {
    width: 20px;
    margin-right: 15px;
    text-align: center;
}

.share-option.email i {
    color: #777;
}

.share-option.copy i {
    color: #555;
}

.share-option.facebook i {
    color: #1877F2;
}

.share-option.twitter i {
    color: #1DA1F2;
}

.share-option.linkedin i {
    color: #0A66C2;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary);
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 99;
}

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

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* Loading spinner for sidebar RSS feed */
.feed-placeholder {
    padding: 15px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.loading-spinner {
    margin-top: 10px;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ====================================
   Theme Toggle
   ==================================== */
.theme-toggle {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 1rem;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.theme-toggle .fa-sun,
.theme-toggle .fa-moon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle .fa-moon {
    opacity: 0;
    transform: translateY(20px);
}




/* ====================================
   Responsive Styles
   ==================================== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text,
    .hero-image {
        flex: none;
        width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 115px; /* Reduced from 140px to close the gap */
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 99;
        max-height: calc(100vh - 115px); /* Adjusted to match new top value */
        overflow-y: auto; /* Allow scrolling if menu is too tall */
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .member-login {
        margin: 1rem 0 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Menu Dropdown */
    .nav-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        visibility: hidden;
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        transform: none;
        transition: max-height 0.5s ease, opacity 0.3s ease;
        background-color: rgba(0, 0, 0, 0.1);
        border: none;
        overflow: hidden;
    }
    
    .dropdown-menu::before, 
    .dropdown-menu::after {
        display: none;
    }
    
    .dropdown-item {
        opacity: 1;
        transform: none;
        color: var(--light);
        padding: 1rem 2rem;
        text-align: center;
        transition: background-color 0.3s ease;
        width: 100%;
        display: block;
    }
    
    .dropdown-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--light);
    }
    
    .dropdown-item:hover::before {
        display: none;
    }
    
    .nav-item.show .dropdown-menu {
        visibility: visible;
        opacity: 1;
        max-height: 500px;
    }
    
    /* Ensure all links are centered */
    .nav-link {
        text-align: center;
        width: 100%;
    }
    
    /* Theme Toggle Mobile */
    .theme-toggle {
        margin: 1rem auto;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    /* Center the 'Read More' button and increase top margin by 50% on mobile */
    .content-block .text-left {
        text-align: center;
        margin-top: 1.5rem; /* Increased top margin by 50% from default 1rem */
    }
    
    /* Increase 'Get free quote' button width by 25% on mobile */
    .cta-buttons .btn {
        min-width: 287.5px; /* Increased by 25% from standard 230px */
    }
    
    /* Increase 'Contact Us' button top margin by 50% on mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem; /* Increased by 50% from default 1rem */
    }
    
    /* Adjust top and bottom padding for buttons in mobile view */
    .hero-content .cta-buttons .btn,
    .content-block .cta-buttons .btn {
        padding-top: 1rem;    /* Increase top padding by 25% (from 0.8rem to 1rem) */
        padding-bottom: 0.6rem; /* Decrease bottom padding by 25% (from 0.8rem to 0.6rem) */
    }
    
    /* Make 'Read More' button width match 'Contact Us' button */
    .content-block .text-left .btn {
        min-width: 230px;    /* Match the width of other buttons */
        max-width: 287.5px;  /* Maximum width to match other buttons */
        display: inline-block; /* Use inline-block for proper width */
        margin-left: auto;    /* Center the button */
        margin-right: auto;   /* Center the button */
        width: auto;         /* Use auto width instead of 100% */
    }
    
    /* Responsive adjustments for testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Make sure buttons are still equal width at smaller screens */
    .btn {
        min-width: 140px;
    }
    
    /* Mobile adjustments for share popup */
    .share-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 280px;
        max-width: 90%;
    }
    
    /* Slider adjustments */
    .slide-overlay {
        padding: 25px 20px 18px;
    }
    
    .slide-overlay p strong span:first-child {
        font-size: 1.6rem; /* Slightly increased for readability on mobile */
    }
    
    .slide-overlay p strong span:last-child {
        font-size: 2.4rem; /* Adjusted for mobile */
    }
    
    .slide-overlay p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 80px;
    }
    
    .slides {
        height: 300px; /* Still good visibility on very small screens */
    }
    
    .slide-overlay {
        padding: 15px 12px 10px;
    }
    
    .slide-overlay p strong span:first-child {
        font-size: 1.4rem;
    }
    
    .slide-overlay p strong span:last-child {
        font-size: 2.2rem;
    }
    
    .slide-overlay p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .slide-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Keep buttons aligned even at very small screens */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        min-width: 200px; /* Wider on very small screens */
    }
    
    /* Footer adjustments */
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-column {
        padding: 0 1rem;
    }
}


/* ====================================
   Quote Page Styles
   ==================================== */
.page-title {
    background: linear-gradient(135deg, #0381d7 0%, #0368aa 100%);
    color: var(--light);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

.page-title:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI1MDAiIHZpZXdCb3g9IjAgMCAxNDQwIDUwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCAwczUyLjkgNDAgMTMyLjMgNDAgQzM2Mi45IDQwIDM2NS45IDAgNTU5LjQgMCBjMTQ0LjUgMCAxNDYuOSA0MCAyODEuNiA0MCA5OC40IDAgMjI3IDE1LjUgNTk5IDIxLjlWNTAwSDB2LTUwMHoiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjEiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.page-title h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light);
    position: relative;
    z-index: 1;
}

.page-title p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-container {
    margin: 2rem 0;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.form-container iframe {
    width: 100%;
    border: none;
    min-height: 500px;
}


/* Make sure the form is responsive */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
}

/* ====================================
   Who We Are Page Styles
   ==================================== */
.company-milestone {
    text-align: center;
    margin: 2rem 0;
}

.milestone-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.milestone-image:hover {
    transform: scale(1.02);
}

.iframe-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--gray);
    border: 1px solid var(--border);
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary);
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.item-content-iframe {
    width: 100%;
    border: none;
    min-height: 300px;
    background-color: transparent;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .company-milestone {
        margin: 1.5rem 0;
    }
    
    .iframe-container {
        margin: 1.5rem 0;
    }
}

/* ====================================
   Free Trial Page Styles
   ==================================== */
.free-trial-features {
    margin-bottom: 2rem;
}

.free-trial-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.free-trial-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    color: var(--secondary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(137, 183, 4, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Highlight text for free trial */
.trial-highlight {
    background-color: rgba(245, 168, 0, 0.1);
    border-left: 4px solid var(--tertiary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

/* Make sure the form is responsive */
@media (max-width: 768px) {
    .free-trial-features li {
        font-size: 0.95rem;
    }
    
    .trial-highlight {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .form-container {
        padding: 0.75rem;
    }
}

/* ====================================
   Testimonials Page Styles
   ==================================== */
.business-size-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.business-size-list li {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.business-size-list li:before {
    content: '\f0c8';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--tertiary);
    font-size: 0.7rem;
    top: 0.45rem;
}

/* Testimonial card styling */
.testimonial-card {
    background-color: var(--gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--tertiary);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.testimonial-content {
    font-style: italic;
    position: relative;
    padding: 0.5rem 0;
}

.testimonial-content:before,
.testimonial-content:after {
    content: '';
    font-size: 2rem;
    color: var(--tertiary);
    line-height: 0;
    position: relative;
}

.testimonial-content:before {
    vertical-align: top;
    top: 0.5rem;
    margin-right: 0.2rem;
}

.testimonial-content:after {
    vertical-align: bottom;
    margin-left: 0.2rem;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.testimonial-author:before {
    content: '—';
    margin-right: 0.5rem;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .business-size-list li {
        margin-bottom: 1rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
}


/* ====================================
   What We Do Page Styles
   ==================================== */
.content-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 117, 193, 0.1), rgba(0, 117, 193, 0.5), rgba(0, 117, 193, 0.1));
    margin: 3rem 0;
}

.content-image {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: scale(1.02);
}

.benefits-numbered-list {
    list-style: none;
    counter-reset: benefits-counter;
    margin: 2rem 0;
    padding-left: 0;
}

.benefits-numbered-list li {
    counter-increment: benefits-counter;
    margin-bottom: 1.25rem;
    padding-left: 2.5rem;
    position: relative;
}

.benefits-numbered-list li:before {
    content: counter(benefits-counter)".";
    font-weight: 700;
    position: absolute;
    left: 0;
    color: var(--primary);
    width: 2rem;
    text-align: right;
}

.option-box {
    background-color: var(--gray);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.option-box h4 {
    background-color: var(--danger);
    color: var(--light);
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.option-box.recommended h4 {
    background-color: var(--secondary);
}


.option-box.danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger);
    border-color: var(--danger);
    color: #721c24;
}


.option-content {
    padding: 1.5rem;
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.highlight-box.alert {
    background-color: rgba(245, 168, 0, 0.1);
    border-left: 4px solid var(--tertiary);
    border-color: var(--tertiary);
    color: #664400;
}

.highlight-box.success {
    background-color: rgba(137, 183, 4, 0.1);
    border-left: 4px solid var(--secondary);
    border-color: var(--secondary);
    color: #3a4d01;
}


.highlight-box.danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger);
    border-color: var(--danger);
    color: #721c24;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .option-content {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .benefits-numbered-list li {
        padding-left: 2rem;
    }
    
    .option-box h4 {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    
    .option-content {
        padding: 1rem;
    }
    
    .option-number {
        width: 25px;
        height: 25px;
        margin-right: 0.5rem;
    }
}


/* ====================================
   Your OH&SMS Page Styles
   ==================================== */
.warning-box {
    background-color: rgba(220, 53, 69, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--danger);
}

.warning-box h3 {
    color: var(--danger);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 1.8rem;
}

.warning-box h3:before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--danger);
}

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

.highlight {
    color: var(--secondary);
    font-weight: 600;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .warning-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .warning-box h3 {
        font-size: 1.1rem;
        padding-left: 1.6rem;
    }
}

/* ====================================
   Our OH&SMS Page Styles
   ==================================== */
.legislation-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.legislation-list > li {
    margin-bottom: 1rem;
    font-weight: 500;
}

.legislation-list > li > ul {
    margin: 0.5rem 0 1rem 1.5rem;
    list-style-type: disc;
}

.legislation-list > li > ul > li {
    margin-bottom: 0.25rem;
    font-weight: normal;
}

.highlight-tertiary {
    color: var(--tertiary);
    font-weight: 600;
}

.feature-heading {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.feature-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background: var(--tertiary);
}

.feature-heading.tertiary {
    color: var(--tertiary);
}

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

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--tertiary);
}

.tertiary-title {
    color: var(--tertiary) !important;
}

.included-heading {
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.included-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.included-list li:before {
    content: '\f067';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--tertiary);
    font-size: 0.8rem;
}

.highlight-box.alert-success {
    background-color: rgba(245, 168, 0, 0.1);
    border-left: 4px solid var(--tertiary);
    border-color: var(--tertiary);
    color: #664400;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .legislation-list > li {
        margin-bottom: 0.75rem;
    }
    
    .feature-heading {
        font-size: 1.25rem;
        margin: 1.5rem 0 1rem;
    }
    
    .feature-list li,
    .included-list li {
        margin-bottom: 0.75rem;
    }
}

/* ====================================
   How It Works Page Styles
   ==================================== */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    background-color: var(--gray);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.faq-question {
    background-color: var(--primary);
    color: var(--light);
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
}

.faq-answer {
    padding: 1.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.note {
    color: var(--gray-dark);
    font-size: 0.9rem;
    font-style: italic;
}

.feature-overview {
    margin: 1.5rem 0;
}

.feature-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item h4 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-item h4 a:hover {
    color: var(--secondary);
}

.feature-item p {
    margin-bottom: 0.5rem;
}

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


/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 1.25rem;
    }
    
    .feature-item {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
}


/* ====================================
   The HSWA Page Styles
   ==================================== */
.legislation-sections {
    margin: 2rem 0;
}

.legislation-item {
    background-color: var(--gray);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legislation-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.legislation-item h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.legislation-item h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legislation-item h3 a:hover {
    color: var(--tertiary);
    text-decoration: underline;
}

.legislation-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.regulation-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.regulation-list li {
    margin-bottom: 0.75rem;
}

.regulation-heading {
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

.regulation-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.regulation-links li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.regulation-links li:before {
    content: '\f0a9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.regulation-links li a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
    font-weight: 500;
}

.regulation-links li a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.highlight-box.secondary {
    background-color: rgba(137, 183, 4, 0.1);
    border-left: 4px solid var(--secondary);
    border-color: var(--secondary);
    color: #3a4d01;
}

.highlight-secondary {
    color: var(--secondary);
    font-weight: 600;
}

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


/* Responsive adjustments */
@media (max-width: 768px) {
    .legislation-item {
        padding: 1.25rem;
    }
    
    .legislation-item h3 {
        font-size: 1.1rem;
    }
    
    .regulation-heading {
        font-size: 1rem;
    }
    
    .regulation-links li {
        margin-bottom: 0.75rem;
    }
}

/* Contact Page Styles */

/* Two-column Layout */
.content-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important; /* 2:1 ratio similar to original layout */
    gap: 3rem !important;
    padding: 3rem 0 !important;
}

/* Colored top borders for content containers */
.content-container.primary {
    border-top: 5px solid var(--primary); /* Blue */
}

.content-container.secondary {
    border-top: 5px solid var(--secondary); /* Green */
}

.content-container.tertiary {
    border-top: 5px solid var(--tertiary); /* Orange/Yellow */
}


@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Main Column Layout */
.main-column {
    display: flex !important;
    flex-direction: column !important;
}

/* Sidebar Column Layout - Keep width same as original sidebar */
.sidebar-column {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Content Container Styling */
.content-container {
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    /* Auto-adjust height */
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.container-header {
    padding: 1.5rem 2rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: #fff !important;
}

.container-header h2 {
    margin: 0 !important;
    font-size: 1.75rem !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.container-header h2:after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background-color: #2d8dc9 !important;
    margin-top: 0.5rem !important;
}

.container-content {
    padding: 2rem !important;
    /* Allow content to define container height */
    flex: 1 !important;
    background-color: #fff !important;
}


/* Contact Form Styling */
.highlight-box {
    background-color: #e8f4fd !important;
    border-left: 4px solid #2d8dc9 !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0 8px 8px 0 !important;
    color: #505050 !important;
}

/* Quick Links Styling */
.cta-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
}

@media (max-width: 576px) {
    .cta-grid {
        grid-template-columns: 1fr !important;
    }
}

.cta-card {
    display: flex !important;
    flex-direction: column !important;
    background-color: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eaeaea !important;
}

.cta-card:hover {
    background-color: #eef5fa !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08) !important;
    border-color: #d0e2f2 !important;
}

.cta-icon {
    font-size: 2.5rem !important; /* Standardized icon size */
    color: #2d8dc9 !important;
    margin-bottom: 1rem !important;
}

.cta-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.75rem !important;
    color: #333 !important;
}

.cta-desc {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Contact Information Styling */
.contact-item {
    padding: 1.25rem 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.contact-item:last-child {
    border-bottom: none !important;
}

.contact-type {
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
    color: #404040 !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 500 !important;
}

.contact-type i {
    color: #2d8dc9 !important;
    margin-right: 10px !important;
    font-size: 1.5rem !important;
    min-width: 1.5rem !important; /* Fixed width for better alignment */
    text-align: center !important;
}

.contact-value {
    color: #555 !important;
    font-size: 1.05rem !important;
}

.highlight-link {
    color: #2d8dc9 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    font-size: 1.05rem !important;
}

.highlight-link:hover {
    color: #1d6390 !important;
    text-decoration: underline !important;
}

.hours-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hours-item {
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
    color: #555 !important;
}

.hours-note {
    font-style: italic !important;
    color: #777 !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
}

/* Mobile Apps Styling */
.app-desc {
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem !important;
    color: #505050 !important;
}

.app-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
}

.app-button {
    transition: transform 0.2s ease !important;
    max-width: 180px !important;
}

.app-button:hover {
    transform: translateY(-3px) !important;
}

.app-button img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* Free Trial Container Styling with unique names - UPDATED to match btn specs from core.css */
.contact-page-trial-desc {
    margin-bottom: 1.5rem !important;
    font-size: 1rem !important;
    color: #505050 !important;
    line-height: 1.6 !important;
}

.contact-page-trial-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important; /* Same gap as mobile app buttons */
    align-items: center !important;
}

.contact-page-btn {
    display: inline-block !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    min-width: 230px !important;
}

.contact-page-btn-trial {
    background-color: #9aca3c !important; /* Green */
    color: white !important;
    border: none !important;
}

.contact-page-btn-trial:hover {
    background-color: #87b22f !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(154, 202, 60, 0.3) !important;
}

.contact-page-btn-quote {
    background-color: #ff9710 !important; /* Orange */
    color: white !important;
    border: none !important;
}

.contact-page-btn-quote:hover {
    background-color: #e68600 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(255, 151, 16, 0.3) !important;
}

/* Icon Animation Styles */
.fa-beat {
    animation: fa-beat 2s infinite !important;
}

.fa-shake {
    animation: fa-shake 3s infinite !important;
}

.fa-bounce {
    animation: fa-bounce 2.5s infinite !important;
}

@keyframes fa-beat {
    0%, 90% {
        transform: scale(1);
    }
    45% {
        transform: scale(var(--fa-beat-scale, 1.2));
    }
}

@keyframes fa-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    20%, 60% {
        transform: rotate(-5deg);
    }
    40%, 80% {
        transform: rotate(5deg);
    }
}

@keyframes fa-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));
    }
    60% {
        transform: translateY(calc(-0.5 * var(--fa-bounce-height, 0.5em)));
    }
}


/* ====================================
   Index Page Footer Text Color Fix
   ==================================== */
/* Target the index page specifically with high specificity */
html body.index-page .footer .footer-column h3,
body.page-home .footer .footer-column h3,
body:not([class*="page-"]) .footer .footer-column h3,
body.page-index .footer .footer-column h3 {
    color: #ffffff !important;
}

/* Extreme specificity override for index page footer */
html[data-theme="light"] body .footer .footer-column h3,
html[data-theme="light"] body .footer h3,
html[data-theme="light"] .footer-column h3,
html:not([data-theme="dark"]) .footer-column h3,
.footer-column > h3 {
    color: #ffffff !important;
}

/* Additional overrides for all headings in footer regardless of page */
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6,
.footer-column h1, .footer-column h2, .footer-column h3, .footer-column h4 {
    color: #ffffff !important;
}

/* Force color application using an aggressive attribute selector */
[class*="footer"] h3, [class*="footer-"] h3 {
    color: #ffffff !important;
}

/* Inline style override - this is extreme but should work */
.footer * {
    color: #ffffff !important;
}

/* Exception for specific elements */
.footer .footer-contact i,
.footer .share-option i {
    color: inherit !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer a:hover {
    color: #ffffff !important;
}


/* Complete Share Popup Fix
 * Fixes ALL text elements including the popup header
 */

/* Base popup styles */
.share-popup {
    background: white !important;
    color: #333 !important;
    z-index: 9999 !important;
}

/* HEADER SPECIFIC FIX - Multiple selectors for maximum specificity */
.share-popup .share-popup-header h3,
.share-popup-header h3,
.share-popup h3,
#sharePopup .share-popup-header h3,
#sharePopup h3 {
    color: #333 !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Add !important to border-bottom to ensure it's visible */
.share-popup-header {
    border-bottom: 1px solid #eee !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Close button */
.share-close {
    color: #777 !important;
    font-size: 1.5rem !important;
}

.share-close:hover {
    color: #0075c1 !important;
}

/* All text in share options */
.share-popup .share-option,
.share-option,
#sharePopup .share-option {
    color: #333 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
    transition: background-color 0.2s ease !important;
}

/* Universal selector to target all elements inside options */
.share-popup .share-option *,
.share-option *,
#sharePopup .share-option * {
    color: #333 !important;
}

/* Hover effect */
.share-popup .share-option:hover,
.share-option:hover,
#sharePopup .share-option:hover {
    background-color: #f5f5f5 !important;
}

/* Icon colors - maintain brand colors */
.share-option i.fa-envelope,
.share-option i.fas.fa-envelope {
    color: #777 !important;
}

.share-option i.fa-link,
.share-option i.fas.fa-link {
    color: #555 !important;
}

.share-option i.fa-facebook-f,
.share-option i.fab.fa-facebook-f {
    color: #1877F2 !important;
}

.share-option i.fa-twitter,
.share-option i.fab.fa-twitter {
    color: #1DA1F2 !important;
}

.share-option i.fa-linkedin-in,
.share-option i.fab.fa-linkedin-in {
    color: #0A66C2 !important;
}

/* Spacing between icon and text */
.share-popup .share-option i,
.share-option i {
    margin-right: 15px !important;
    width: 20px !important;
    text-align: center !important;
}

/* Force text color using every possible selector */
.share-popup a,
.share-popup span,
.share-popup p,
.share-popup div:not([class*="icon"]),
#sharePopup a,
#sharePopup span,
#sharePopup p,
#sharePopup div:not([class*="icon"]) {
    color: #333 !important;
}

