/* ================================
   1. RESET & BASE STYLES
================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Mengelakkan horizontal scrolling di telefon */
    background: burlywood;
    color: #333;
}

/* ================================
   2. POP-UP ANIMATION
================================ */
.popup {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ================================
   3. NAVBAR
================================ */
.navbar {
    background: burlywood;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo a {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    color: #3D2B1F;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.logo a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 45%;
    height: 2px;
    background: #B38B59;
}

.menu {
    display: flex;
    gap: 12px;
    list-style: none;
}

.menu li a {
    background-color: #6F4E37;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    display: inline-block;
    white-space: nowrap;
}

.menu li a:hover {
    background-color: #5A3E2B;
}

/* ================================
   4. HERO SECTION
================================ */
.hero-about {
    position: relative;
    min-height: 50vh;
    background-image: linear-gradient(rgba(61, 43, 31, 0.6), rgba(61, 43, 31, 0.6)), url("img/MALAYA.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 50px 20px;
}

.hero-about .eyebrow {
    font-family: "Cinzel", serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    color: #C9A227;
    margin-bottom: 12px;
    font-weight: bold;
}

.hero-about h1 {
    font-family: "Cinzel", serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 16px;
}

.hero-about p {
    font-size: clamp(15px, 2.5vw, 18px);
    max-width: 650px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ================================
   5. MISSION SECTION
================================ */
.mission {
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.mission .label {
    font-family: "Cinzel", serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    color: #3D2B1F;
    margin-bottom: 8px;
    font-weight: bold;
}

.mission h2 {
    color: #3D2B1F;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 16px;
}

.mission p {
    color: #444;
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto;
}

/* ================================
   6. GOALS SECTION
================================ */
.goals {
    padding: 60px 5%;
    background: #f8f5ef;
}

.goals h2 {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    color: #3D2B1F;
    margin-bottom: 35px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.goal-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    border-top: 4px solid #C9A227;
    text-align: left;
}

.goal-card .num {
    font-family: "Cinzel", serif;
    font-size: 14px;
    color: #B38B59;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.goal-card h3 {
    color: #6F4E37;
    font-size: 18px;
    margin-bottom: 10px;
}

.goal-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* ================================
   7. TEAM SECTION
================================ */
.team {
    width: 90%;
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

.team .label {
    font-family: "Cinzel", serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    color: #3D2B1F;
    margin-bottom: 8px;
    font-weight: bold;
}

.team h2 {
    color: #3D2B1F;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 35px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    border-top: 4px solid #6F4E37;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #6F4E37;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 2px solid #C9A227;
}

.team-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    color: #3D2B1F;
    font-size: 19px;
    margin-bottom: 4px;
}

.team-card .role {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #B38B59;
    margin-bottom: 12px;
    font-weight: bold;
}

.team-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1; /* Supaya butang e-mel sentiasa selari di bawah */
}

.team-card .contact {
    display: inline-block;
    font-size: 13px;
    color: #6F4E37;
    text-decoration: none;
    border: 1px solid #C9A227;
    padding: 8px 14px;
    border-radius: 20px;
    transition: 0.3s;
    word-break: break-all; /* Halang alamat emel panjang memecahkan kad */
}

.team-card .contact:hover {
    background: #6F4E37;
    color: #fff;
    border-color: #6F4E37;
}

/* ================================
   8. BACKGROUND NOTE
================================ */
.background-note {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 10px;
}

.background-note p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid #C9A227;
    padding-top: 20px;
}

/* ================================
   9. ATURAN RESPONSIF (TELEFON & TABLET)
================================ */

/* TABLET (Bawah 900px) */
@media screen and (max-width: 900px) {
    .goals-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TELEFON (Bawah 650px) */
@media screen and (max-width: 650px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .menu {
        width: 100%;
        justify-content: center;
    }

    .menu li {
        flex: 1;
    }

    .menu li a {
        width: 100%;
        text-align: center;
        padding: 8px 10px;
    }

    .goals-grid, .team-grid {
        grid-template-columns: 1fr; /* Jadi 1 lajur mendatar */
    }

    .mission, .team, .hero-about {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .team-card p {
        min-height: auto;
    }
}