/* =========================================
   SERVICES / ACTIVITIES SECTION
========================================= */
.activities {
    position: relative;
    overflow: hidden;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #05142f 0%, #042d5a 40%, #064377 100%);
    margin: 50px 0;
    box-shadow: 0 30px 90px rgba(0, 28, 74, 0.25);
    color: #ffffff;
}

.activities::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.2;
    pointer-events: none;
}

.activities .home-section-title {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
    text-align: center;
    max-width: 840px;
    width: 100%;
}

.activities .home-section-title h2 {
    margin: 0 auto 18px;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    color: #e9f5ff;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.activities .home-section-title span {
    color: #80c8ff;
}

.activities .home-section-title p {
    margin: 0 auto;
    max-width: 700px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.8;
    font-family: inherit;
}

.activities-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 38px;
    margin-top: 24px;
}

.activities-container .act-card {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0, 27, 79, 0.16);
    width: 360px;
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
}

.activities-container .act-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(0, 112, 207, 0.16);
}

.activities-container .act-card h3 {
    font-size: 22px;
    margin: 16px 0 10px;
    color: #021b42;
}

.activities-container .act-card p {
    font-size: 15px;
    color: #2f3e5b;
    line-height: 1.75;
}

.activities-container .act-card a {
    display: inline-flex;
    margin-top: 14px;
    text-decoration: none;
    color: #0056d6;
    font-weight: 700;
}

.activities-container .act-card:hover a {
    color: #00a8ff;
}

.activities-container .act-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 70px rgba(0, 27, 79, 0.22);
    border-color: rgba(255,255,255,0.45);
}

@media (max-width: 760px) {
    .activities .activities-container {
        flex-direction: column;
        align-items: center;
    }
    .activities-container .act-card {
        width: 90%;
    }
}

@media (max-width: 500px) {
    .activities .home-section-title h2 {
        font-size: 35px;
    }
    .activities-container .act-card h3 {
        font-size: 15px;
    }
    .activities-container .act-card p {
        font-size: 13px;
    }
    .activities-container .act-card a {
        font-size: 15px;
    }
}

/* css/services.css */
.services-hero {
    background: linear-gradient(135deg, #000b3c 0%, #001a6e 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
}
#services-container {
    margin-top: 40px;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content span { color: #00b2ed; }
.services-catalog { padding: 60px 5%; background: #f8fafc; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: #000b3c; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 35px rgba(0,0,0,0.1); }
.card-image img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: #000b3c; }
.card-body p { color: #4a5568; line-height: 1.5; margin-bottom: 1.25rem; }
.card-btn {
    display: inline-block;
    background: #00b2ed;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s;
}
.card-btn:hover { background: #0095cc; }

/* Detail page */
.detail-container { max-width: 1200px; margin: 40px auto; padding: 20px; }
.detail-header { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; margin-bottom: 30px; }
.detail-image img { max-width: 100%; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.detail-description { font-size: 1.1rem; line-height: 1.7; margin: 30px 0; }
.video-wrapper { margin: 30px 0; position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 16px; }
.sub-list { display: grid; gap: 20px; margin-top: 20px; }
.sub-item {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 16px;
    border-left: 4px solid #00b2ed;
}
.sub-item h4 { margin: 0 0 8px; color: #000b3c; font-size: 1.25rem; }
.price-tag {
    display: inline-block;
    background: #00b2ed20;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    margin: 10px 0;
    color: #00b2ed;
}
.portfolio-link {
    display: inline-block;
    margin-top: 8px;
    color: #00b2ed;
    text-decoration: underline;
}
.cta-inquiry { text-align: center; margin: 50px 0; }
.btn-primary {
    background: #00b2ed;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: bold;
    display: inline-block;
    color: white;
}
.loading-skeleton, .error-msg { text-align: center; padding: 60px; font-size: 1.2rem; }

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; text-align: center; }
}

/* Update your existing services-hero class */
.services-hero {
    /* You can keep the gradient as a fallback while the video loads */
    background: linear-gradient(135deg, #000b3c 0%, #001a6e 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden; /* Crucial: Prevents the video from breaking outside the section */
    min-height: 60vh; /* Optional: Gives the hero a nice vertical presence */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Style the video to cover the entire background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Ensures the video scales proportionally */
    z-index: 1; /* Sets it at the very back */
}

/* Style the overlay to darken the video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using your brand's dark blue (#000b3c) with 70% opacity */
    background: rgba(0, 11, 60, 0.7); 
    z-index: 2; /* Places it above the video */
}

/* Ensure your text stays on top */
.hero-content {
    position: relative;
    z-index: 3; /* Places it above the overlay */
}

/* Existing rules for h1 and span stay the same */
.hero-content h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
}
.hero-content span { 
    color: #00b2ed; 
}

/* =========================================
   SERVICE CTA SECTION
========================================= */
.service-cta {
    padding: 80px 5%;
    display: flex;
    justify-content: center;
    background-color: #ffffff; /* Blends with the section above/below */
}

.cta-container {
    background: linear-gradient(135deg, #000b3c 0%, #001a6e 100%);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 11, 60, 0.15);
}

.cta-container h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-container p {
    font-size: 1.1rem;
    color: #e2e8f0; /* Soft off-white for better readability */
    margin-bottom: 35px;
}

/* Enhancing your existing btn-primary for this section */
.service-cta .btn-primary {
    background: #00b2ed;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 178, 237, 0.3);
    border: 2px solid #00b2ed;
}

.service-cta .btn-primary:hover {
    background: transparent;
    color: #00b2ed;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 178, 237, 0.4);
}

/* Make it responsive for mobile */
@media (max-width: 768px) {
    .service-cta {
        padding: 60px 5%;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-container h2 {
        font-size: 2rem;
    }
    
    .cta-container p {
        font-size: 1rem;
    }
}