/* Colors */
:root {
    --primary: #01185E;
    --secondary: #E2A52A;
    --accent: #A91F24;
}

/* HERO */
.education-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-hero img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.education-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 55%;
    z-index: 2;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    padding: 1rem;
    width: 90%;
    max-width: 900px;
}

.education-hero .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-hero .hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Model Image */
.hero-model {
    position: absolute;
    bottom: 0;
    left: 20%;
    height: 35rem !important;
    overflow: visible !important;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInModel 1.2s ease-out 0.4s forwards, floatUpDown 4s ease-in-out infinite;
}

/* Intro */
.education-intro {
    padding: 4rem 1rem;
    text-align: center;
}

.education-intro h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.education-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards */
.training-programs {
    padding: 4rem 1rem;
}

.training-programs h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.training-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 320px;
    transition: transform 0.3s ease;
}

.training-card:hover {
    transform: scale(1.03);
}

.training-card .img-box {
    height: 200px;
    overflow: hidden;
}

.training-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.training-card .content {
    padding: 1.5rem;
}

.training-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.training-card p {
    font-size: 0.95rem;
    color: #333;
}

/* Gallery */
.gallery-section {
    padding: 4rem 1rem;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2rem;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-thumb {
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
}

.close {
    position: absolute;
    top: 50px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay { transition-delay: 0.2s; }
.fade-up.delay2 { transition-delay: 0.4s; }
.fade-up.delay3 { transition-delay: 0.6s; }

@keyframes slideInModel {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-model {
        height: 15rem !important;
        left: 2%;
    }

    .education-hero {
        padding-top: 5rem;
    }

    .education-hero .hero-text h1 {
        font-size: 2rem;
        margin-left: -10%;
    }

    .education-hero .hero-text p {
        font-size: 1rem;
        margin-left: -10%;
    }
}

@media (max-width: 480px) {
    .education-hero {
        height: 55vh;
    }

    .hero-model {
        width: 35vw;
        max-width: 100px;
        left: 2%;
    }

    .education-hero .hero-text h1 {
        font-size: 1.6rem;
    }

    .education-hero .hero-text p {
        font-size: 0.95rem;
    }
}
