/* ==========================================================================
   1. TETAPAN ASAS & VARIABLE (Global Variables & Base)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --navy: #0B2545;
    --orange: #F58220;
    --primary-green: #007A5E;
    --text-dark: #1E302B;
    --text-muted: #52606D;
    --border: #CBE3DC;
    --bg-base: #EBF1F5; /* Soft Cool Slate Blue */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    color: #0f172a;
    background: var(--bg-base);
}

/* ==========================================================================
   2. NAVIGATION BAR (Navbar)
   ========================================================================== */
.custom-navbar {
    background: #ffffff !important;
    padding: 10px 0;
    border-bottom: 2px solid #EAEAEA;
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.04);
}

.logo-img {
    width: 99px !important;
    height: 35px !important;
    object-fit: contain;
}

.brand-title {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
}

.custom-navbar .nav-link {
    color: var(--navy) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 12px !important;
    position: relative;
    transition: 0.2s;
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: 0.25s;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--orange) !important;
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    width: 80%;
}

/* ==========================================================================
   2.1 DROPDOWN LOGIN PERSIS SEPERTI GAMBAR (Login & First Time Login)
   ========================================================================== */
.login-nav-dropdown .dropdown-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

/* Buang anak panah kecil bootstrap */
.login-nav-dropdown .dropdown-toggle::after {
    display: none !important;
}

/* Kotak Dropdown Putih Bersih Kemas */
.dropdown-menu-simple-login {
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 4px 0;
    min-width: 170px;
    margin-top: 6px !important;
}

.dropdown-menu-simple-login .dropdown-item {
    padding: 9px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu-simple-login .dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--orange);
}

/* Garisan putus-putus antara Login & First Time Login */
.dropdown-menu-simple-login .dropdown-divider {
    margin: 2px 0;
    border-top: 1px dashed #94a3b8;
}

/* Dropdown Profil Pengguna (Bila Dah Login) */
.profile-dropdown-button {
    padding: 6px 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-dropdown-button::after {
    display: none;
}

.profile-dropdown-button i {
    color: var(--navy);
    font-size: 1.9rem;
}

.profile-dropdown-button:hover i {
    color: var(--orange);
}

.profile-menu {
    width: 280px;
    padding: 0;
    margin-top: 12px;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(11, 37, 69, 0.18);
}

.profile-menu-header {
    padding: 22px 18px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #005642 100%);
    color: #ffffff;
    text-align: center;
}

.profile-menu-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: #ffffff;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-menu-name {
    margin-bottom: 3px;
    font-size: 0.92rem;
    font-weight: 700;
}

.profile-menu-matric {
    font-size: 0.78rem;
    opacity: 0.9;
}

.profile-menu .dropdown-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 0.86rem;
    font-weight: 500;
    background: #ffffff;
}

.profile-menu .dropdown-item i {
    width: 20px;
    color: var(--primary-green);
}

.profile-menu .dropdown-item:hover {
    background: #EAF4F1;
    color: var(--primary-green);
}

.logout-dropdown {
    color: #DC3545 !important;
}

.logout-dropdown i {
    color: #DC3545 !important;
}

.logout-dropdown:hover {
    background: #FFF1F2 !important;
}

/* ==========================================================================
   3. HERO / CAROUSEL SECTION
   ========================================================================== */
.hero-section {
    width: 100%;
}

.carousel-item img {
    height: 380px;
    object-fit: cover;
    object-position: center;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.45) 0%, rgba(11, 37, 69, 0.8) 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 10 !important;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption p,
.carousel-caption .slide-small {
    color: #ffffff !important;
    text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.8) !important;
}

.slide-small {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFD166 !important;
    margin-bottom: 10px;
}

/* ==========================================================================
   4. TAJUK SEKSYEN UMUM (General Section Headings)
   ========================================================================== */
.section-heading {
    max-width: 750px;
    margin: auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #241d4e;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 36px;
    font-weight: 700;
    color: #202570;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 10px !important;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 3px;
    background-color: #f18826;
    border-radius: 2px;
}

.main-content {
    max-width: 1250px;
    margin: 0 auto;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ==========================================================================
   5. WELCOME / ABOUT SECTION
   ========================================================================== */
.welcome-section {
    padding: 50px 20px 40px 20px !important;
    background: #EAF4F2;
}

.about-box {
    background: #bcebd5;
    border: 2px solid #ace6c4;
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 780px;
    margin: 20px auto 0 auto !important;
    box-shadow: 0 8px 20px rgba(0, 122, 94, 0.08);
}

.about-box p {
    margin-bottom: 0 !important;
    color: #1A3E36;
    font-size: 1.02rem;
    line-height: 1.8;
    font-weight: 600;
}

/* ==========================================================================
   6. SUPPORT SECTION
   ========================================================================== */
.support-section {
    padding: 50px 20px 60px 20px !important;
    background: #cedeec;
}

.support-card-vertical {
    background: #DCE8EE;
    border-radius: 22px;
    border: 2px solid #BCD3DF;
    box-shadow: 0 8px 20px rgba(11, 37, 69, 0.06);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}

.support-card-vertical:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    background: #D2E2EB;
    box-shadow: 0 15px 30px rgba(0, 122, 94, 0.2);
}

.support-img-box {
    width: 100% !important;
    height: 160px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.support-img-box img {
    max-height: 140px !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.support-card-vertical:hover .support-img-box img {
    transform: scale(1.1);
}

/* ==========================================================================
   7. OFFICERS SECTION
   ========================================================================== */
.officers-section {
    padding: 50px 20px 70px 20px !important;
    background: #EAF4F2;
}

.officer-card {
    background: #bcebd5;
    border-radius: 22px;
    border: 2px solid #4b856c;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.08);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}

.officer-card:hover {
    transform: translateY(-8px);
    border-color: #4b856c;
    background: #c4f0ca;
    box-shadow: 0 15px 35px rgba(0, 122, 94, 0.2);
}

.officer-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border: 4px solid var(--primary-green);
    box-shadow: 0 8px 20px rgba(11, 37, 69, 0.2);
}

.officer-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.officer-card p {
    font-size: 0.92rem;
    color: #1d1755;
    font-weight: 600;
    margin-bottom: 0;
}

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #ccc;
    }
}