/* CSS Variables */
:root {
    --primary-color: #064469;
    --link-hover-color: #acdcff;
    --hover-color: #3a6e93;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --dark-bg: #eee;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

.main {
    background-color: #fff;
}

a {
    color: #3a6e93;
}
a:hover {
    color: #064469;
}

.footer a {
    color: #f7f7f7 !important;
}

.footer a:hover {
    color: #acdcff !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    background: url('../images/hero3.webp') no-repeat center center/cover;
}

.hero-section-blog2 {
    position: relative;
    height: 50vh;
    background: url('../images/hero3.webp') no-repeat center center/cover;
}

.hero-section-blog3 {
    position: relative;
    height: 50vh;
    background: url('../images/hero3.webp') no-repeat center center/cover;
}

/* Overlay Styling */
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* Center text inside the container */
    padding: 2rem;
    box-sizing: border-box;
}

/* Text Styling */
.hero-content h1{
    color: #fff;
    font-size: 3rem !important;
}

.hero-content p {
    color: #fff !important;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-overlay {
        width: 100%; /* Cover entire image on smaller screens */
        height: auto;
        padding: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}


/* Blog Content */
.modern-blog-content {
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem;
}

/* Overlapping Sections */
.content-section {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.content-section:nth-child(odd) .text {
    order: 2; /* Flip text and image for alternating layout */
    text-align: left;
}

.content-section .text {
    flex: 1;
    padding: 2rem;
    z-index: 2;
}

.content-section .text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 100;
}

.content-section .text p {
    font-size: 1.1rem;
    color: #555;
}

.content-section .image-container {
    flex: 1;
    position: relative;
    z-index: 1;
}

.content-section .image-container img {
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.content-section:hover .image-container img {
    transform: translateY(0);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Call-to-Action */
.cta {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.cta a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--hover-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cta a:hover {
    background: white;
    color: var(--primary-color);
}
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem;
    text-align: center;
}

.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
}

.service-card i {
    font-size: 3rem;
    color: #064469;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    color: #064469;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .services-container {
        padding: 1.5rem;
    }
}

.more-blogs h2 {
    font-size: 2rem;
    font-weight: 100;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.blog-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.blog-card {
    background-color: white;
    overflow: hidden;
    text-decoration: none;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card h3 {
    color: #333;
    font-weight: 100;
    padding: 1rem;
    font-size: 1.1rem;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* ==== MODERN BLOG SLIDER ==== */
.modern-slider {
    padding: 4rem 1rem 4.5rem;
    text-align: center;
}

.modern-slider h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1f1f1f;
    letter-spacing: 0.5px;
}

.blog-slider-shell {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-viewport {
    overflow: hidden;
    width: 100%;
}

.blog-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s ease-in-out;
}

.blog-card-modern {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    min-width: 320px;
    max-width: 320px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 8px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    flex-shrink: 0;
}

.blog-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.04);
}


.blog-card-modern a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card-modern img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.blog-card-body {
    padding: 1.2rem 1.2rem 1.5rem;
    text-align: left;
}

.tag-pill {
    display: inline-block;
    background: rgba(178, 31, 36, 0.1);
    color: #b21f24;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.blog-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: #111;
    line-height: 1.3;
}

.blog-card-body .excerpt {
    font-size: 0.85rem;
    color: #5a5a5a;
    line-height: 1.5;
}

.blog-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Arrows */
.slider-btn-modern {
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.25s ease;
}

.slider-btn-modern:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slider-btn-modern span {
    font-size: 1.5rem;
    line-height: 1;
}

.slider-btn-modern.prev {
    margin-left: 0.2rem;
}

.slider-btn-modern.next {
    margin-right: 0.2rem;
}

/* Dots */
.slider-dots {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.slider-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dots .dot.active {
    width: 32px;
    background: #b21f24;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-card-modern {
        min-width: 270px;
        max-width: 270px;
    }
}

@media (max-width: 650px) {
    .blog-slider-shell {
        gap: 0.5rem;
    }
    .slider-btn-modern {
        display: none;
    }
    .blog-card-modern {
        min-width: 85vw;
        max-width: 85vw;
        margin: 0 auto;
    }
}


@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }

    .content-section .image-container {
        order: -1; /* Moves image to top */
        padding: 1rem;
    }

    .content-section .text {
        order: 1;
        padding: 1rem;
        text-align: center;
    }

    .content-section .text h2 {
        font-size: 1.5rem;
    }

    .content-section .text p {
        font-size: 1rem;
    }

    .content-section .image-container img {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}
