/* 
=============================================
   Hero Section Enhancements
=============================================
*/

/* Main Hero Enhancements */
.hero {
    min-height: 85vh; /* Slightly shorter for better viewing */
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Enhanced subtitle with glowing effect */
.hero-subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(7, 172, 192, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-subtitle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 172, 192, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced heading and paragraph */
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* =============================================
   Benefit Highlights Fixes and Enhancements
============================================= */
.benefit-highlights {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    margin: 0 auto 2.5rem !important;
    max-width: 850px !important;
    position: relative !important;
    z-index: 5 !important;
}

.benefit-highlight-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.benefit-highlight-item:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.highlight-icon {
    background: #07acc0 !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 5px 15px rgba(7, 172, 192, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.benefit-highlight-item:hover .highlight-icon {
    transform: scale(1.1) !important;
    background: #07acc0 !important;
    box-shadow: 0 5px 20px rgba(7, 172, 192, 0.5) !important;
}

.highlight-icon i {
    color: white !important;
    font-size: 1.25rem !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.highlight-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    flex: 1 !important;
}

.highlight-content h3 {
    color: white !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.highlight-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    display: block !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced CTA buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.hero-cta .btn {
    padding: 0.9rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 50px;
    min-width: 200px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.hero-cta .btn:hover::before {
    transform: translateX(0);
}

.hero-cta .btn-primary {
    background-color: #07acc0;
    color: white;
    box-shadow: 0 8px 20px rgba(7, 172, 192, 0.3);
}

.hero-cta .btn-primary:hover {
    background-color: #068fa0;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(7, 172, 192, 0.4);
}

.hero-cta .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: calc(0.9rem - 2px) calc(2.25rem - 2px);
}

.hero-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-scroll-indicator a:hover {
    background-color: rgba(7, 172, 192, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =============================================
   Responsive Adjustments
============================================= */
@media (max-width: 992px) {
    .hero-cta {
        gap: 1rem;
    }
    
    .hero-cta .btn {
        min-width: 180px;
        padding: 0.8rem 1.75rem;
    }
    
    .benefit-highlights {
        gap: 1rem !important;
    }
    
    .benefit-highlight-item {
        padding: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 5rem;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .benefit-highlights {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
        margin: 0 auto 2rem !important;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta .btn {
        width: 100%;
        min-width: unset;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0.4rem 1.25rem;
    }
    
    .hero p {
        margin-bottom: 2rem;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    .hero-scroll-indicator a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .benefit-highlight-item {
        padding: 1rem !important;
    }
    
    .highlight-icon {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }
    
    .highlight-icon i {
        font-size: 1.1rem !important;
    }
    
    .highlight-content h3 {
        font-size: 1rem !important;
    }
    
    .highlight-content p {
        font-size: 0.9rem !important;
    }
    
    .hero-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* =============================================
   About Page Specific Fixes
============================================= */
.about-hero .benefit-highlight-item {
    height: auto !important;
    min-height: 0 !important;
}

.about-hero .benefit-highlights {
    margin-bottom: 2.5rem !important;
}

/* Fix for nested highlight content in about.html */
.benefit-highlight-item .highlight-content h3,
.benefit-highlight-item .highlight-content p {
    display: block !important;
    visibility: visible !important;
}

/* Ensure content is properly displayed */
.about-hero .highlight-content {
    display: block !important;
}

/* Force display of all benefit highlight items */
.about-hero .benefit-highlight-item,
.about-hero .benefit-highlight-item > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Adjust nested structure if needed */
.about-hero .benefit-highlight-item {
    display: flex !important;
}

.about-hero .highlight-icon {
    display: flex !important;
}

/* About hero specific alignment */
.about-hero .hero-content {
    padding-top: 2rem;
}

/* Fix for hero overlay darkness */
.about-hero .hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.7)) !important;
}

/* Page-Specific Hero Styles */
.home-hero .hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)) !important;
}

.services-hero .hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)) !important;
}

.benefits-hero .hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75)) !important;
}

.events-hero .hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7)) !important;
}

.contact-hero .hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)) !important;
}

/* Event page specific fixes */
.events-hero .benefit-highlight-item {
    height: auto !important;
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(7, 172, 192, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(7, 172, 192, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(7, 172, 192, 0.5);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

.benefit-highlight-item {
    animation: fadeInUp 1.2s ease-out forwards;
}

.benefit-highlight-item:nth-child(1) {
    animation-delay: 0.2s;
}

.benefit-highlight-item:nth-child(2) {
    animation-delay: 0.4s;
}

.benefit-highlight-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Fix for events hero */
.events-hero .benefit-highlights {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .events-hero .benefit-highlights {
        grid-template-columns: 1fr !important;
    }
}


/* =======================================
   Fix for Benefit Highlights in Hero Section
   - Corrects text overflow issues
   - Ensures proper sizing and display
   - Works across all screen sizes
   ======================================= */

/* Reset and correct the main container */
.benefit-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix the highlight items to contain text properly */
.benefit-highlight-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: auto;
    min-height: 100px;
    width: 100%;
    overflow: visible; /* Allow content to be seen */
}

/* Ensure icon is properly sized */
.benefit-highlight-item .highlight-icon {
    background: #07acc0;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Fix icon elements */
.benefit-highlight-item .highlight-icon i {
    color: white;
    font-size: 1.25rem;
}

/* Correct the content area */
.benefit-highlight-item .highlight-content {
    flex: 1;
    max-width: calc(100% - 60px); /* Account for icon width + gap */
    width: auto;
    overflow: hidden;
}

/* Fix heading display */
.benefit-highlight-item .highlight-content h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: visible;
    display: block;
    width: 100%;
}

/* Fix paragraph display */
.benefit-highlight-item .highlight-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
    overflow: visible;
    display: block;
    width: 100%;
}

/* Responsive adjustments with higher specificity */
@media (max-width: 992px) {
    .benefit-highlights {
        gap: 1rem;
    }
    
    .benefit-highlight-item {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .benefit-highlights {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .benefit-highlight-item {
        min-height: 90px;
    }
    
    .benefit-highlight-item .highlight-content h3 {
        font-size: 1rem;
    }
    
    .benefit-highlight-item .highlight-content p {
        font-size: 0.85rem;
    }
}

/* Hero Benefit Highlights Fix */
.benefit-highlights {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    margin: 0 auto 2.5rem !important;
    max-width: 900px !important;
}

.benefit-highlight-item {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    text-align: left !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
}

.highlight-icon {
    background: #07acc0 !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.highlight-icon i {
    color: white !important;
    font-size: 1.25rem !important;
}

.benefit-highlight-item .highlight-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    flex: 1 !important;
    max-width: calc(100% - 60px) !important;
}

.benefit-highlight-item .highlight-content h3 {
    color: white !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.3 !important;
}

.benefit-highlight-item .highlight-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.4 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .benefit-highlights {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
    }
}

/* Fix for text color in hero section */
.hero-section-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Make sure all text in the hero section is properly visible */
.hero-section-description {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure subtitle is visible */
.hero-section-subtitle {
    color: white !important;
}

/* Boost contrast for the overlay */
.hero-section-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)) !important;
}

/* Service Feature Image Enhancement */
.service-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    overflow: hidden;
}

.service-feature .service-image {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-feature .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Same enhancement for benefit feature sections */
.benefit-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    overflow: hidden;
}

.benefit-feature .benefit-image {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.benefit-feature .benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .service-feature,
    .benefit-feature {
        grid-template-columns: 1fr;
    }
    
    .service-feature .service-image,
    .benefit-feature .benefit-image {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .service-feature .service-image,
    .benefit-feature .benefit-image {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .service-feature .service-image,
    .benefit-feature .benefit-image {
        min-height: 250px;
    }
}