/* ==============================================
ENHANCED STYLES FOR SERVICES & ABOUT SECTIONS
============================================== */

/* Custom Color Variables */
:root {
    --custom-blue: #336199;
    --custom-blue-light: #667E99;
    --custom-blue-dark: #1a3a5c;
    --custom-blue-alpha-10: rgba(51, 97, 153, 0.1);
    --custom-blue-alpha-20: rgba(51, 97, 153, 0.2);
    --custom-blue-alpha-30: rgba(51, 97, 153, 0.3);
}
body {
    background-color: #111;
    color: white;
    overflow-x: hidden;
}

/* Video overlay */
.video-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

/* Glassmorphism effect */
.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.z-10{
    z-index: 5;
}

@media (max-width: 576px) {
    .d-flex img {
        width: 50px !important;
    }
    .d-flex img:nth-child(2) {
        width: 70px !important;
    }
    .d-flex img:nth-child(3) {
        width: 60px !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

/* Navbar styling */
.navbar {
    transition: all 0.3s ease-in-out;
}

.scrolled-navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Hero section */
.hero-section {
    height: 100vh;
}

/* Add this to your CSS */
.hero-section {
    position: relative;
    z-index: 1;
    transition: background-position 0.3s ease, background-size 0.3s ease;
}

.hero-section video {
    position: fixed; /* Make the video a fixed background */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Keep it behind content */
    transition: opacity 0.3s ease;
}

.section-blurred {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    transition: backdrop-filter 0.3s ease;
}

/* Add a transition effect to each section */
.section-blurred .card,
.section-blurred .content {
    transition: filter 0.3s ease;
    filter: blur(3px);
}

/* To remove the blur from the active section, you can modify that as well */
.active-section .card,
.active-section .content {
    filter: none;
}


/* Mobile menu */
.mobile-menu {
    transition: all 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

/* Services Section Styles */
.services-section {
    background: linear-gradient(135deg, var(--custom-blue-alpha-10) 0%, rgba(102, 126, 153, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.section-description {
    opacity: 0.9;
    line-height: 1.7;
}

/* Service Cards Enhanced Styles */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--custom-blue-alpha-10), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px var(--custom-blue-alpha-30);
    border-color: var(--custom-blue-alpha-30);
}

.service-card:focus {
    outline: 2px solid var(--custom-blue);
    outline-offset: 4px;
}

/* Icon Wrapper Styles */
.icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.service-card:hover .icon-wrapper::before {
    width: 100%;
    height: 100%;
}

.icon-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    z-index: 1;
    position: relative;
}

.fallback-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Service Card Content */
.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--custom-blue-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-cta {
    margin-top: auto;
    padding-top: 1rem;
}

.service-cta .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.service-cta .btn:hover {
    background-color: var(--custom-blue);
    border-color: var(--custom-blue);
    color: white;
    transform: translateX(4px);
}

/* About Section Styles */
.about-section {
    background: transparent; /* Remove gradient and set background to transparent */
    position: relative;
}

.about-content {
    padding: 2rem 0;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--custom-blue-dark);
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.about-features {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--custom-blue);
}

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

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #495057;
}

.features-list .fas.fa-check-circle {
    color: var(--custom-blue);
}

.about-cta .btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.about-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--custom-blue-alpha-30);
}

/* About Image Styles */
.about-image-container {
    position: relative;
    padding: 2rem;
}

.about-figure {
    position: relative;
    margin: 0;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.image-fallback {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Custom Blue Gradient Classes */
.bg-gradient-blue {
    background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for browsers that don't support background-clip: text */
    color: var(--custom-blue);
}

.btn-gradient-blue {
    background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
    border: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-gradient-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient-blue:hover::before {
    left: 100%;
}

.btn-gradient-blue:hover,
.btn-gradient-blue:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--custom-blue-alpha-30);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-card {
        padding: 1.5rem;
    }

    .about-title {
        font-size: 2rem;
        text-align: center;
    }

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

    .about-image-container {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    .services-section .container,
    .services-cards-section .container,
    .about-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .icon-wrapper img {
        width: 40px;
        height: 40px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-features {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .service-card {
        padding: 1rem;
    }

    .about-cta .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {

    .service-card,
    .about-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .service-cta,
    .about-cta {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
        background: #fff;
    }

    .icon-wrapper {
        background: #000;
    }

    .service-title,
    .about-title {
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .service-card,
    .about-image,
    .icon-wrapper,
    .service-cta .btn,
    .about-cta .btn {
        transition: none;
    }

    .service-card:hover,
    .about-image:hover {
        transform: none;
    }
}

       /* News Section Styles - Matching Services Section */
       .news-section {
        background: linear-gradient(135deg, var(--custom-blue-alpha-10) 0%, rgba(102, 126, 153, 0.1) 100%);
        position: relative;
        overflow: hidden;
    }
    
    .news-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
        pointer-events: none;
    }
    
    .section-description {
        opacity: 0.9;
        line-height: 1.7;
    }
    
    /* News Cards Enhanced Styles - Matching Service Cards */
    .news-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .news-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, var(--custom-blue-alpha-10), transparent);
        transition: left 0.6s;
    }
    
    .news-card:hover::before {
        left: 100%;
    }
    
    .news-card:hover,
    .news-card:focus-within {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px var(--custom-blue-alpha-30);
        border-color: var(--custom-blue-alpha-30);
    }
    
    .news-card:focus {
        outline: 2px solid var(--custom-blue);
        outline-offset: 4px;
    }
    
    /* News Image Container Styles */
    .news-image-container {
        height: 200px;
        overflow: hidden;
        position: relative;
        border-radius: 20px 20px 0 0;
    }
    
    .news-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .news-card:hover .news-image {
        transform: scale(1.1);
    }
    
    .card-img-placeholder {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .card-img-placeholder::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.8s;
    }
    
    .news-card:hover .card-img-placeholder::before {
        left: 100%;
    }
    
    /* News Card Content Styles */
    .news-card .card-body {
        padding: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .news-meta {
        margin-bottom: 1rem;
    }
    
    .news-date {
        font-size: 0.9rem;
        color: var(--custom-blue);
        font-weight: 500;
    }
    
    .news-date .fas {
        color: var(--custom-blue);
    }
    
    .news-title {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--custom-blue-dark);
        margin-bottom: 1rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-description {
        color: #6c757d;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-cta {
        margin-top: auto;
        padding-top: 1rem;
    }
    
    .news-cta .btn {
        transition: all 0.3s ease;
        border-radius: 25px;
        padding: 0.5rem 1.5rem;
        font-weight: 500;
        border-color: var(--custom-blue);
        color: var(--custom-blue);
    }
    
    .news-cta .btn:hover {
        background-color: var(--custom-blue);
        border-color: var(--custom-blue);
        color: white;
        transform: translateX(4px);
    }
    
    /* Custom Blue Gradient Classes */
    .bg-gradient-blue {
        background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
    }
    
    .text-gradient-blue {
        background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* Fallback for browsers that don't support background-clip: text */
        color: var(--custom-blue);
    }
    
    .btn-gradient-blue {
        background: linear-gradient(135deg, var(--custom-blue) 0%, var(--custom-blue-dark) 100%);
        border: none;
        color: white;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .btn-gradient-blue::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .btn-gradient-blue:hover::before {
        left: 100%;
    }
    
    .btn-gradient-blue:hover,
    .btn-gradient-blue:focus {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px var(--custom-blue-alpha-30);
        color: white;
    }
    
    /* Empty State Styles */
    .empty-state-container {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Responsive Design */
    @media (max-width: 992px) {
        .news-card .card-body {
            padding: 1.5rem;
        }
        
        .news-image-container {
            height: 180px;
        }
    }
    
    @media (max-width: 768px) {
        .news-section .container,
        .news-cards-section .container {
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        .news-card {
            margin-bottom: 1.5rem;
        }
        
        .news-card:hover {
            transform: translateY(-6px) scale(1.01);
        }
        
        .news-image-container {
            height: 160px;
        }
        
        .news-card .card-body {
            padding: 1.5rem;
        }
        
        .news-title {
            font-size: 1.2rem;
        }
        
        .news-description {
            font-size: 0.95rem;
        }
    }
    
    @media (max-width: 576px) {
        .display-4 {
            font-size: 2rem;
        }
        
        .lead {
            font-size: 1rem;
        }
        
        .news-card .card-body {
            padding: 1rem;
        }
        
        .news-image-container {
            height: 140px;
        }
        
        .btn-gradient-blue {
            padding: 0.7rem 1.5rem;
            font-size: 1rem;
        }
    }
    
    /* Print Styles */
    @media print {
        .news-card {
            box-shadow: none;
            border: 1px solid #ddd;
            break-inside: avoid;
        }
        
        .news-cta,
        .btn-gradient-blue {
            display: none;
        }
    }
    
    /* High Contrast Mode */
    @media (prefers-contrast: high) {
        .news-card {
            border: 2px solid #000;
            background: #fff;
        }
        
        .news-title {
            color: #000;
        }
        
        .news-date {
            color: #000;
        }
    }
    
    /* Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        .news-card,
        .news-image,
        .news-cta .btn,
        .btn-gradient-blue {
            transition: none;
        }
        
        .news-card:hover,
        .news-image:hover {
            transform: none;
        }
    }