/* Borneo/Sarawak Inspired Palette */
:root {
    --primary: #1a237e; /* fallback, replaced below */
    --secondary: #ffd600; /* Sarawak yellow */
    --accent: #388e3c; /* Rainforest green */
    --background: #f9f7f3; /* Light, natural */
    --sarawak-red: #b71c1c;
    --sarawak-yellow: #ffd600;
    --sarawak-black: #222;
    --motif-grey: #e0d7c3;
    --motif-green: #a3cfa2;
    --motif-brown: #bfa77a;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    color: var(--sarawak-black);
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    color: var(--sarawak-black);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--sarawak-yellow);
}
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}
.logo img {
    height: 48px;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    color: var(--sarawak-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
}
.nav-menu li a:hover {
    color: #fff;
    background: var(--sarawak-yellow);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger {
    display: inline-block;
    width: 32px;
    height: 24px;
    position: relative;
}
.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--sarawak-black);
    border-radius: 2px;
    margin: 4px 0;
    transition: all 0.3s;
}
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0 3rem 0;
    text-align: center;
    /* Add will-change for better performance */
    will-change: transform;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: blur(6px);
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(34,34,34,0.60);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-company {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--sarawak-yellow);
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero-desc {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero .tagline {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero .subtext {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero .cta-btn {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.hero .cta-btn:hover {
    background: var(--accent);
    color: #fff;
}
.footer {
    background: var(--sarawak-black);
    color: #fff;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
    border-top: 8px solid var(--sarawak-yellow);
    font-family: 'Segoe UI', Arial, sans-serif;
}
.footer-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
.footer-section h4 {
    color: var(--sarawak-yellow);
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}
.footer-section ul li a:hover {
    color: var(--secondary);
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--sarawak-yellow);
}
/* Add a hornbill SVG accent in the footer */
.footer-bottom::before {
    content: '';
    display: block;
    width: 48px;
    height: 32px;
    margin: 0 auto 0.5rem auto;
    background: url('data:image/svg+xml;utf8,<svg width="48" height="32" viewBox="0 0 48 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 28 Q24 8 40 28" stroke="%23ffd600" stroke-width="4" fill="none"/><ellipse cx="24" cy="20" rx="8" ry="6" fill="%23b71c1c"/><ellipse cx="24" cy="20" rx="4" ry="3" fill="%23ffd600"/><path d="M20 18 Q24 10 28 18" stroke="%23388e3c" stroke-width="2" fill="none"/></svg>') no-repeat center/contain;
}
@media (max-width: 900px) {
    .footer-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-menu {
        gap: 1rem;
    }
}
@media (max-width: 700px) {
    .nav-flex {
        flex-direction: row;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 0 0 12px 12px;
        border: 2px solid var(--sarawak-yellow);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        min-height: 260px;
        padding: 2.5rem 0 1.5rem 0;
    }
    .hero-company {
        font-size: 1.1rem;
    }
    .tagline {
        font-size: 1.3rem;
    }
    .subtext, .hero-desc {
        font-size: 1rem;
    }
}
/* Placeholder for Sarawak/Borneo motif (e.g. hornbill, batik pattern) */
/* Our Credentials Section */
.credentials {
    background: #fff;
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.section-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2.1rem;
    color: var(--sarawak-red);
    margin-bottom: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 0 var(--motif-grey);
}
.credentials-flex {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.credential-item {
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.credential-logo {
    max-width: 130px;
    max-height: 78px;
    margin-bottom: 1rem;
}
.credential-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sarawak-black);
    margin-bottom: 1rem;
}
.cert-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 0.2rem;
    transition: background 0.2s;
    box-shadow: none;
    border: 1.5px solid var(--primary);
    cursor: pointer;
    border: none;
}
.cert-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}
@media (max-width: 900px) {
    .credentials-flex {
        gap: 1.5rem;
    }
    .credential-item {
        min-width: 180px;
        max-width: 220px;
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
}
@media (max-width: 700px) {
    .credentials-flex {
        flex-direction: column;
        align-items: center;
    }
    .credential-item {
        width: 90%;
        max-width: 350px;
    }
}
/* Who We Serve Section */
.audience {
    background: #f5f5f5;
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.audience-flex {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.audience-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.audience-card:hover {
    box-shadow: 0 4px 16px rgba(26,35,126,0.10);
}
.audience-icon {
    margin-bottom: 1rem;
    color: var(--primary);
}
.audience-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sarawak-black);
    margin-bottom: 0.5rem;
}
.audience-desc {
    font-size: 1rem;
    color: #444;
}
@media (max-width: 900px) {
    .audience-flex {
        gap: 1.2rem;
    }
    .audience-card {
        min-width: 180px;
        max-width: 220px;
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
}
@media (max-width: 700px) {
    .audience-flex {
        flex-direction: column;
        align-items: center;
    }
    .audience-card {
        width: 90%;
        max-width: 350px;
    }
}
/* Course Catalogue Section */
.courses {
    background: #fff;
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.courses-flex {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.course-card {
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 260px;
    max-width: 320px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}
.course-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.course-desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
}
.course-meta {
    font-size: 0.98rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.course-btn {
    background: linear-gradient(90deg, var(--sarawak-yellow) 60%, var(--accent) 100%);
    color: var(--sarawak-black);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 30px 18px 30px 18px/18px 30px 18px 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.08);
    align-self: flex-end;
}
.course-btn:hover {
    background: var(--sarawak-red);
    color: #fff;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 24px rgba(26,35,126,0.10);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}
.course-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0 0.5rem 0;
    font-size: 1rem;
}
.course-table th, .course-table td {
    border: 2px solid #333;
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: top;
}
.course-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}
.course-table tr:nth-child(even) td {
    background: #f7f7f7;
}
.course-table ul {
    margin: 0.2rem 0 0.2rem 1.2rem;
    padding: 0;
    list-style: disc inside;
    text-align: left;
}
.course-table li {
    margin-bottom: 0.2rem;
    text-align: left;
}
@media (max-width: 900px) {
    .courses-flex {
        gap: 1.2rem;
    }
    .course-card {
        min-width: 200px;
        max-width: 260px;
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
}
@media (max-width: 700px) {
    .courses-flex {
        flex-direction: column;
        align-items: center;
    }
    .course-card {
        width: 90%;
        max-width: 350px;
    }
    .modal-content {
        width: 95vw;
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }
}
@media (max-width: 700px) {
    .course-table th, .course-table td {
        font-size: 0.95rem;
        padding: 0.5rem 0.4rem;
    }
}

/* Certificate Modal Styles */
#cert-modal-body {
    text-align: center;
}

#cert-modal-body h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#cert-modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #333;
}

       .cert-pdf-container {
           margin: 1.5rem 0;
           padding: 1rem;
           background: #f8f9fa;
           border-radius: 8px;
           border: 2px dashed #dee2e6;
           height: 500px;
           overflow: hidden;
       }
       
       .cert-pdf-viewer {
           width: 100%;
           height: 100%;
           border-radius: 4px;
           box-shadow: 0 2px 8px rgba(0,0,0,0.1);
       }

.cert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cert-download-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.cert-download-btn:hover {
    background: var(--sarawak-red);
}

.cert-close-btn {
    background: #6c757d;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cert-close-btn:hover {
    background: #5a6268;
}

       @media (max-width: 600px) {
           .cert-pdf-container {
               height: 300px;
           }
           
           .cert-actions {
               flex-direction: column;
               align-items: center;
           }
           
           .cert-download-btn,
           .cert-close-btn {
               width: 100%;
               max-width: 200px;
           }
       } 
/* Training Kits Section */
.kits {
    background: #f5f5f5;
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.kits-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}
.kit-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1rem 1rem;
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    margin-bottom: 1.5rem;
}
.kit-card:hover {
    box-shadow: 0 4px 16px rgba(26,35,126,0.10);
    transform: translateY(-4px) scale(1.03);
}
.kit-img {
    width: 100%;
    max-width: 180px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #eee;
}
.kit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.kit-model {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}
.kit-features {
    margin: 1rem 0 1.2rem 1.2rem;
    padding: 0;
    list-style: disc inside;
    text-align: left;
}
.kit-features li {
    margin-bottom: 0.2rem;
    text-align: left;
}
.kit-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--sarawak-yellow) 60%, var(--accent) 100%);
    color: var(--sarawak-black);
    padding: 0.9rem 2.5rem;
    border-radius: 30px 18px 30px 18px/18px 30px 18px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.08);
}
.kit-btn:hover {
    background: var(--sarawak-red);
    color: #fff;
}
@media (max-width: 900px) {
    .kits-flex {
        gap: 1.2rem;
    }
    .kit-card {
        min-width: 180px;
        max-width: 220px;
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
}
@media (max-width: 700px) {
    .kits-flex {
        flex-direction: column;
        align-items: center;
    }
    .kit-card {
        width: 90%;
        max-width: 350px;
    }
} 
/* Why Choose BKKT Section */
.why-bkkt {
    background: #fff;
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.benefits-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    max-width: 160px;
}
.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--sarawak-yellow);
    text-shadow: 0 1px 0 var(--motif-brown);
}
.benefit-title {
    color: var(--sarawak-red);
}
.testimonials-slider {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    min-height: 340px;
}
.testimonial-item {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 1rem 1rem;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 320px;
    height: 100%;
}
.testimonial-item.active {
    display: flex;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.testimonial-photo {
    width: 100%;
    max-width: 320px;
    max-height: 320px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1rem;
    border: 6px solid var(--primary);
    background: #eee;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.testimonial-quote {
    font-size: 1.08rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-style: italic;
}
.testimonial-name {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.testimonial-controls button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
}
.testimonial-controls button:hover {
    background: var(--secondary);
    color: var(--primary);
}
@media (max-width: 900px) {
    .benefits-flex {
        gap: 1rem;
    }
    .benefit-item {
        min-width: 100px;
        max-width: 120px;
    }
}
@media (max-width: 700px) {
    .benefits-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .testimonials-slider {
        max-width: 98vw;
        min-height: 320px;
    }
} 
/* Contact / Enrolment Section */
.contact {
    background: #f5f5f5;
    padding: 3rem 0 2rem 0;
}
.contact-flex {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.contact-info {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 400px;
    margin-bottom: 2rem;
    margin-right: 2rem;
}
.contact-company {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.contact-detail {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}
.contact-detail a {
    color: var(--primary);
    text-decoration: none;
}
.contact-detail a:hover {
    text-decoration: underline;
}
.contact-map {
    margin-top: 1rem;
}
.contact-form-wrap {
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.contact-form .form-group {
    margin-bottom: 1.1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary);
    text-align: left;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--motif-brown);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #f7f3e9;
    transition: border 0.2s;
    margin-top: 0.1rem;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border: 2px solid var(--accent);
    outline: none;
}
.contact-btn {
    background: linear-gradient(90deg, var(--sarawak-yellow) 60%, var(--accent) 100%);
    color: var(--sarawak-black);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 30px 18px 30px 18px/18px 30px 18px 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: background 0.2s, color 0.2s;
    align-self: center;
    width: 100%;
    max-width: 220px;
}
.contact-btn:hover {
    background: var(--sarawak-red);
    color: #fff;
}
#contact-success {
    text-align: left;
}
@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-info, .contact-form-wrap {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .contact-form {
        max-width: 100%;
    }
} 