/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', Helvetica, sans-serif;
    background: linear-gradient(135deg, #667b8d 0%, #4a6b8a 100%);
    color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffd166;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #1a3b5c 0%, #0f2c44 100%);
    padding: 12px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ffd166;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-text span {
    color: #ffd166;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: bold;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 30px;
}

nav a:hover {
    background: #ffd166;
    color: #1a3b5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,209,102,0.4);
}

/* ===== BACK BUTTON STYLES ===== */
.back-to-parent {
    text-align: center;
    padding: 20px 0;
    margin-top: 100px;
    background: linear-gradient(135deg, #1a3b5c 0%, #0f2c44 100%);
    border-bottom: 1px solid #ffd166;
    position: relative;
    z-index: 900;
    width: 100%;
    clear: both;
}

.back-to-parent.bottom-version {
    margin-top: 0;
    margin-bottom: 0;
    border-top: 1px solid #ffd166;
    border-bottom: none;
}

.back-to-parent a {
    color: #ffd166;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffd166;
}

.back-to-parent a:hover {
    background: #ffd166;
    color: #1a3b5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 102, 0.4);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    height: auto;
    padding: 130px 20px 80px;
    background: linear-gradient(135deg, rgba(26,59,92,0.85) 0%, rgba(15,44,68,0.9) 100%), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
    padding-top: 30px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    color: #e6eef5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .button {
    display: inline-block;
    padding: 16px 45px;
    background: #ffd166;
    color: #1a3b5c;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(255,209,102,0.3);
    border: 2px solid #ffd166;
}

.hero .button:hover {
    background: #ffc233;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255,209,102,0.5);
    border-color: #ffffff;
}

/* ===== WHY CHOOSE US ===== */
.why-choose {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c4b6e 0%, #1e3b59 100%);
}

.badge {
    text-align: center;
    margin-bottom: 60px;
}

.badge-item {
    display: inline-block;
    background: linear-gradient(135deg, #ffd166 0%, #ffc233 100%);
    padding: 20px 50px;
    border-radius: 60px;
    margin: 0 20px;
    color: #1a3b5c;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 2px solid #ffffff;
}

.badge-item p {
    font-size: 1.1rem;
    font-weight: bold;
}

/* ===== TRAINING COURSES GRID ===== */
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.training-card {
    background: linear-gradient(135deg, #3a6085 0%, #2a4a70 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ffd166;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    transform: translateY(-10px);
    border-color: #ffffff;
    box-shadow: 0 20px 30px rgba(255, 209, 102, 0.3);
}

.training-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 2px solid #ffd166;
}

.training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.training-card:hover .training-image img {
    transform: scale(1.1);
}

.training-title {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-title h4 {
    color: #ffd166;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.4;
}

/* ===== CAPABILITY CARDS ===== */
.capabilities {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3b59 0%, #12304b 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.capability-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #ffd166;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.capability-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 45px rgba(255,209,102,0.4);
    border-color: #ffffff;
}

.card-image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a3b5c;
    border-bottom: 4px solid #ffd166;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s;
    filter: contrast(1.05) brightness(1.02);
}

.capability-card:hover .card-image-container img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.card-content h3 {
    color: #1a3b5c;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-left: 4px solid #ffd166;
    padding-left: 15px;
}

.card-content p {
    color: #2c4b6e;
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== TRAINING PROGRAMS ===== */
.training {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c4b6e 0%, #1e3b59 100%);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.program-card {
    background: linear-gradient(135deg, #3a6085 0%, #2a4a70 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #ffd166;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.program-header {
    background: linear-gradient(135deg, #ffd166 0%, #ffc233 100%);
    padding: 25px;
    border-bottom: 2px solid #ffffff;
}

.program-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #1a3b5c;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.program-content {
    padding: 30px;
}

/* ===== CONSISTENT ARROW LIST STYLES ===== */
.arrow-list {
    list-style: none;
}

.arrow-list li {
    margin-bottom: 15px;
    padding-left: 28px;
    position: relative;
    color: #ffffff;
    font-size: 1.05rem;
}

.arrow-list li:before {
    content: '→';
    color: #ffd166;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== COURSE MODULES ===== */
.modules {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3b59 0%, #12304b 100%);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.module-card {
    background: linear-gradient(135deg, #3a6085 0%, #2a4a70 100%);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #ffd166;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-card h4 {
    color: #ffd166;
    font-size: 1.3rem;
    border-bottom: 2px solid #ffd166;
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== AUDIENCE ===== */
.audience {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3b59 0%, #12304b 100%);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.audience-item {
    background: linear-gradient(135deg, #3a6085 0%, #2a4a70 100%);
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    border: 2px solid #ffd166;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.audience-item:hover {
    border-color: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(255,209,102,0.3);
}

.audience-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: #ffd166;
    color: #1a3b5c;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.audience-item h4 {
    color: #ffd166;
    font-size: 1.2rem;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #2c4b6e 0%, #1e3b59 100%);
}

.contact-info {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #3a6085 0%, #2a4a70 100%);
    padding: 60px;
    border-radius: 30px;
    border: 3px solid #ffd166;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-info p {
    font-size: 1.3rem;
    margin: 20px 0;
    color: #ffffff;
}

.contact-info .email, .contact-info .web {
    color: #ffd166;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Remove phone number from contact section */
.contact-info p:has(📞) {
    display: none;
}

/* ===== BOTTOM BRAND SECTION ===== */
.bottom-brand {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a1f30 0%, #051525 100%);
    border-top: 4px solid #ffd166;
}

.bottom-brand img {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 3px solid #ffd166;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 25px;
    background: #030c14;
    color: #b0c9e0;
    font-size: 0.95rem;
    border-top: 1px solid #ffd166;
}

/* ===== FIREFOX-SPECIFIC FIXES ===== */
@-moz-document url-prefix() {
    .hero {
        padding-top: 150px;
        padding-bottom: 100px;
    }
    
    .hero h1 {
        padding-top: 40px;
        margin-top: 20px;
    }
    
    .card-image-container img {
        image-rendering: crisp-edges;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cards-grid,
    .program-grid,
    .module-grid,
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid,
    .program-grid,
    .module-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .logo-container {
        margin-bottom: 5px;
    }
    
    nav a {
        margin: 0 8px;
        padding: 6px 12px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        padding-top: 50px;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .badge-item {
        display: block;
        margin: 10px auto;
        max-width: 300px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .back-to-parent {
        margin-top: 120px;
    }
}

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}