/* training.css */

/* SERVICE HERO SECTION */
.service-hero {
    height: 60vh;
    min-height: 550px;
    position: relative;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.service-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding-top: 60px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    width: 100%;
}

.service-hero-content.container,
.container.service-hero-content {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

.service-hero-content .category-tag,
.category-tag {
    display: inline-block;
    color: #ffcc33;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.service-hero-content h1,
.service-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.1;
    display: block;
}

.service-hero-content .hero-subtitle,
.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 10px;
    font-weight: 300;
    max-width: 700px;
    line-height: 1.4;
    display: block;
}

/* CAPABILITIES SECTION */
.capabilities {
    padding: 60px 0 100px 0;
    background: #0a0a0a;
    color: #fff;
}

.cap-header {
    margin-bottom: 40px;
    max-width: 700px;
}

.cap-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cap-header p {
    color: #666;
    font-size: 1rem;
}

.cap-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    padding: 35px 0;
    border-top: 1px solid #222;
}

.cap-row:last-child {
    border-bottom: 1px solid #222;
}

.cap-label {
    color: #ffcc33;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-top: 5px;
}

.cap-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cap-desc li {
    margin-bottom: 20px;
    color: #999;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cap-desc li strong {
    color: #eee;
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.cap-desc p {
    margin-bottom: 20px;
    color: #999;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cap-desc p:last-child {
    margin-bottom: 0;
}

.cap-desc p strong {
    color: #eee;
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
}

/* FIXED BENTO GRID LAYOUT */
.bento-details { 
    padding: 120px 0 80px 0; 
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    color: #fff; 
    position: relative;
}

.bento-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 51, 0.3), transparent);
}

.section-intro { 
    margin-bottom: 70px; 
    max-width: 850px; 
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-intro h2 { 
    font-size: 3rem; 
    margin-bottom: 25px; 
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-intro p { 
    color: #ddd; 
    font-size: 1.05rem; 
    line-height: 1.7;
    margin-bottom: 15px;
}

/* 6-Column Grid to accommodate 1 big (4 cols) and side stack (2 cols) */
.service-grid-container { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    grid-auto-rows: 220px; 
    gap: 20px; 
}

.service-box { 
    position: relative; 
    border-radius: 28px; 
    overflow: hidden; 
    background: #111; 
    border: 2px solid #444;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 40px; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    background-size: cover; 
    background-position: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.service-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.service-box:hover::before {
    border-color: #ffcc33;
    opacity: 1;
    box-shadow: 0 0 30px rgba(255, 204, 51, 0.4), inset 0 0 30px rgba(255, 204, 51, 0.1);
}

.service-box:hover { 
    border-color: #ffcc33; 
    transform: translateY(-12px) scale(1.02);
    background-size: 110%;
    filter: brightness(1.05);
    box-shadow: 0 25px 50px rgba(255, 204, 51, 0.3), 0 0 40px rgba(255, 204, 51, 0.2);
}

/* Grid Spans */
.box-feature { 
    grid-column: span 4; 
    grid-row: span 3; /* Spans the full height of the 3 boxes next to it */
}
.box-right-stack { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Bento Background Images */
.training-bento-1 { background-image: url('../images/Training/Bento1.webp'); }
.training-bento-2 { background-image: url('../images/Training/Bento2.webp'); }
.training-bento-3 { background-image: url('../images/Training/Bento3.webp'); }
.training-bento-4 { background-image: url('../images/Training/Bento4.webp'); }

.box-overlay { 
    position: absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.92) 90%); 
    z-index:1;
    transition: background 0.5s ease;
}

.service-box:hover .box-overlay {
    background: linear-gradient(to bottom, transparent 25%, rgba(0,0,0,0.85) 90%);
}

.box-content { 
    position: relative; 
    z-index:2;
    transition: padding 0.4s ease;
}

.service-box:hover .box-content {
    padding: 0;
}
.showcase-tag { display: inline-block; background: rgba(255, 204, 51, 0.2); color: #ffcc33; padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.service-box h3 { 
    font-size: 2.2rem; 
    color: #fff; 
    font-weight: 800; 
    margin-bottom: 15px; 
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.service-box:hover h3 {
    transform: translateX(5px);
    text-shadow: 0 4px 20px rgba(255, 204, 51, 0.5);
}

.service-box h4 { 
    color: #fff; 
    font-weight: 800; 
    margin-bottom: 10px; 
    font-size: 1.2rem; 
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.service-box:hover h4 {
    transform: translateX(5px);
    text-shadow: 0 4px 20px rgba(255, 204, 51, 0.5);
}

.service-box p { 
    font-size: 0.95rem; 
    color: #bbb; 
    line-height: 1.5; 
    margin-bottom: 5px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.service-box:hover p {
    opacity: 1;
    transform: translateX(5px);
    color: #ccc;
}

/* Blue Button in Bento */
.visual-accent-btn-blue { 
    display: inline-block; background: #ffcc33; color: #000 !important; 
    padding: 12px 24px; border-radius: 30px; font-weight: 800; 
    text-transform: uppercase; font-size: 0.75rem; text-decoration: none; 
    margin-top: 15px; transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(255, 204, 51, 0.3);
}
.visual-accent-btn-blue:hover { background: #ffd966; transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 204, 51, 0.5); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .service-hero {
        min-height: 400px;
    }
    
    .service-hero-content {
        padding-top: 40px;
    }
    
    .service-hero-content h1,
    .service-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .service-hero-content .hero-subtitle,
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .service-grid-container { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .box-feature, .box-right-stack { grid-column: span 1; min-height: 280px; }
    .cap-row { grid-template-columns: 1fr; gap: 15px; padding: 25px 0; }
}