body {
    color: #495057;
}

/* ── Masthead / Carousel ── */
.masthead {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.40);
    z-index: 1;
}

.masthead-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 20px;
}

.masthead-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.masthead-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ── Carousel Buttons ── */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255,255,255,0.25);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* ── Carousel Dots ── */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: 2px solid #fff;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #fff;
}

/* ── Hero Buttons ── */
.hero-buttons {
    margin-top: 28px;
}

.hero-buttons .btn {
    margin: 6px;
    border-radius: 8px;
}

/* ── Page Content ── */
.post-preview {
    padding: 10px 0;
}

.post-preview .post-title {
    margin-bottom: 14px;
    color: #1f3c46;
}

.post-preview .post-subtitle {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

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

.landing-text {
    font-size: 1.02rem;
    line-height: 1.9;
    color: #5f6b72;
    margin-bottom: 16px;
}

/* ── Services Grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
    min-height: 380px;
}

.service-card-title {
    color: #fff;
}


.service-card {
    position: relative;
    padding: 0;
    border-left: none;
    background: none;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.service-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.service-card p {
    font-size: 0.88rem;
    flex-grow: 1;
    margin-bottom: 16px;
    color: #5f6b72;
    line-height: 1.6;
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 0;
}
.service-card:hover .service-card-bg {
    transform: scale(1.05);
}
 
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.service-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
    margin-bottom: 8px;
}

 
.service-card-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 18px 18px 0 18px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
 
.service-card-bottom {
    position: relative;
    z-index: 2;
    padding: 0 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
 
.service-card-bottom p {
    color: #f0f0f0;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    width: 100%;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ── Benefits ── */
.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 25px;
}

.benefit-item {
    padding: 20px 24px;
    border-left: 4px solid #005493;
    background: #f8fbfc;
    border-radius: 6px;
}

.benefit-item h4 {
    margin-bottom: 8px;
    color: #21424d;
    font-size: 1.05rem;
}

.benefit-item p {
    margin-bottom: 0;
    color: #5f6b72;
    line-height: 1.7;
}

/* ── CTA Box ── */
.cta-box {
    background: #f8fbfc;
    border: 1px solid #e2ebee;
    border-radius: 12px;
    padding: 36px 24px;
    margin-bottom: 40px;
}

/* ── Learn More Button ── */
.card-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: #005493;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.card-learn-more::after {
    content: '→';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
}

.card-learn-more:hover {
    background-color: #005493;
    color: #ffffff !important;
}

/* ── Buttons ── */
.btn-primary {
    background-color: #005493 !important;
    border-color: #005493 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #005493 !important;
    border-color: #005493 !important;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masthead-content h1 {
        font-size: 2rem;
    }

    .masthead-content p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
}