* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #fff;
}

header {
    background: #0a2f51;
    color: #fff;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    background:
        linear-gradient(rgba(10, 47, 81, 0.5), rgba(10, 47, 81, 0.5)),
        url('hero.webp') center/cover no-repeat;
    color: #fff;
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero .subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.75;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero .cta-link {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.hero .cta-link:hover {
    background: #fff;
    color: #0a2f51;
    transform: translateY(-3px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 6rem;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: #0a2f51;
    text-align: center;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: #f8f9fa;
    border-left: 4px solid #0a2f51;
    padding: 2rem;
    padding-bottom: 4.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cert-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #0a2f51;
    margin-bottom: 0.5rem;
}

.cert-card .cert-level {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-card ul {
    list-style: none;
    margin-bottom: 1rem;
}

.cert-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #5a6c7d;
}

.cert-card li:last-child {
    border-bottom: none;
}

.cert-card .duration {
    margin-top: 1rem;
    font-weight: 600;
    color: #0a2f51;
}

.course-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1.25rem;
    background: #0a2f51;
    border: none;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.3s;
}

.course-btn:hover {
    background: #16537e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 47, 81, 0.3);
}

.cert-card.horizon {
    grid-column: 1 / -1;
}

.table-container {
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th {
    background: #0a2f51;
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

tr:hover {
    background: #f8f9fa;
}

.bfi-row {
    background: #f0f7ff;
    font-weight: 600;
}

.heritage {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin: 6rem 0;
}

.heritage-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.heritage h2 {
    margin-bottom: 1.5rem;
}

.heritage p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #5a6c7d;
    margin-bottom: 1.5rem;
}

.contact {
    background: #0a2f51;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.contact h2 {
    color: #fff;
    margin-bottom: 2rem;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact a {
    display: inline-block;
    padding: 1rem 3rem;
    background: #fff;
    color: #0a2f51;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 600;
    transition: transform 0.3s;
    margin: 0.5rem;
}

.contact a:hover {
    transform: translateY(-3px);
}

footer {
    background: #000;
    color: #fff;
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .hero .subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero .cta-link {
        font-size: 0.95rem;
        padding: 0.9rem 2.5rem;
    }

    nav {
        flex-direction: row;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #0a2f51;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-menu a {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact a {
        display: block;
        margin: 0.5rem auto;
        max-width: 280px;
    }
}
