
/* ==========================================================
   FGSJB - WEBSITE STYLESHEET V3
   Forum Global Strategi Jenderal Bersahaja
   ========================================================== */

/* 01. WARNA DAN VARIABEL */

:root {
    --navy: #071d36;
    --navy-dark: #041426;
    --navy-light: #123c60;
    --gold: #d6b46b;
    --gold-light: #edcf8c;
    --ink: #14283e;
    --muted: #66788a;
    --background: #f5f7fa;
    --white: #ffffff;
    --border: #e3e8ee;
    --shadow: 0 12px 35px rgba(7, 29, 54, 0.08);
}

/* 02. RESET DAN GLOBAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

a {
    color: #145e8a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ad843b;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* 03. HEADER DAN BRAND */

.topbar {
    background: var(--navy);
    color: var(--white);
}

.topbar > .container {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}

.brand:hover {
    color: var(--white);
}

.brand-mark {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--gold);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 900;
}

.brand strong {
    display: block;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.brand small {
    display: block;
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 0.3px;
}

.topbar .small {
    color: #d8e1eb;
}

/* 04. NAVIGASI */

.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(7, 29, 54, 0.05);
    position: relative;
    z-index: 10;
}

.navbar > .container {
    min-height: 62px;
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 15px 12px;
    color: #26394b;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #a77a2c;
    border-bottom-color: var(--gold);
}

.navbar-toggler {
    display: none;
}

/* 05. HERO BANNER */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 95px 0;
    overflow: hidden;
    color: var(--white);

    background-color: var(--navy-dark);

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 20, 38, 0.97) 0%,
            rgba(4, 20, 38, 0.92) 35%,
            rgba(4, 20, 38, 0.55) 65%,
            rgba(4, 20, 38, 0.12) 100%
        ),
        url("../images/fgsjb-hero-banner.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .row {
    display: block;
}

.hero .col-lg-9 {
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding-left: 18px;
    border-left: 4px solid var(--gold);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 12px 0 22px;
    color: var(--white);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero p {
    max-width: 620px;
    margin-bottom: 30px;
    color: #e3eaf2;
    font-size: 19px;
    line-height: 1.8;
}

/* 06. TOMBOL */

.btn,
.btn-gold {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--navy-dark);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 1px solid #1c5579;
    color: #1c5579;
}

/* 07. KONTEN BERANDA */

.home-content {
    padding: 80px 0;
}

.home-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, 1fr);
    gap: 45px;
    align-items: start;
}

.section-kicker {
    margin-bottom: 10px;
    color: #a47d36;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 20px;
    color: #0a2c49;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}

.home-intro {
    max-width: 760px;
    color: #53677a;
    font-size: 17px;
    line-height: 1.9;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 48px 0 22px;
}

.section-head h3 {
    margin: 0;
}

/* 08. KARTU EVENT */

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.event-tile {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.event-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(7, 29, 54, 0.14);
}

.event-tile img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e7edf3;
}

.event-tile-body {
    padding: 22px;
}

.event-date {
    color: #a47d36;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.event-tile h4 {
    margin: 9px 0;
    color: #0a2c49;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.event-tile p {
    margin: 0 0 16px;
}

.event-tile a {
    font-size: 14px;
    font-weight: 700;
}

/* 09. SIDEBAR */

.side-card {
    margin-bottom: 22px;
    padding: 27px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.side-card h3 {
    margin: 0 0 15px;
    color: #0a2c49;
    font-size: 20px;
    font-weight: 800;
}

.side-card p {
    color: #617386;
}

.side-card ul {
    margin: 0 0 18px;
    padding-left: 20px;
}

.side-card li {
    margin-bottom: 12px;
}

.side-card a:not(.btn) {
    font-weight: 600;
}

/* 10. FEATURE STRIP */

.feature-strip {
    padding: 55px 0;
    background: #0c2b49;
    color: var(--white);
}

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

.feature-inner > div {
    padding-left: 22px;
    border-left: 3px solid var(--gold);
}

.feature-inner h3 {
    margin: 0 0 8px;
    color: var(--gold-light);
    font-size: 20px;
}

.feature-inner p {
    margin: 0;
    color: #c9d7e4;
}

/* 11. FOOTER */

.footer {
    padding: 45px 0;
    background: var(--navy-dark);
    color: var(--white);
}

.footer .container {
    max-width: 1180px;
}

.footer a {
    color: var(--gold-light);
}

.footer .row {
    justify-content: space-between;
    gap: 20px;
}

.footer hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid #31506c;
}

.footer p {
    margin: 5px 0;
}

/* 12. KOMPONEN HALAMAN LAIN */

.card {
    padding: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.card-body {
    padding: 22px;
}

.card-header {
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.list-group-item {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid #e9edf0;
}

.article-body {
    white-space: pre-wrap;
    line-height: 1.9;
}

.badge-soft {
    padding: 5px 10px;
    background: #e8f0f6;
    color: #184d72;
    border-radius: 5px;
}

/* 13. UTILITIES */

.text-muted {
    color: var(--muted);
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.row.g-3 {
    gap: 18px;
}

.py-5 {
    padding-top: 50px;
    padding-bottom: 50px;
}

.mt-5 {
    margin-top: 48px;
}

.mt-3 {
    margin-top: 16px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-0 {
    margin-bottom: 0;
}

.h4 {
    font-size: 24px;
}

.h5 {
    font-size: 20px;
}

.small {
    font-size: 13px;
}

.fw-bold {
    font-weight: 800;
}

.text-white-50 {
    color: #c1cdd8;
}

/* 14. RESPONSIVE TABLET */

@media (max-width: 850px) {

    .home-layout {
        grid-template-columns: 1fr;
    }

    .navbar > .container {
        flex-wrap: wrap;
    }

    .navbar-toggler {
        display: block;
        margin: 10px 0;
        padding: 9px 12px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        display: block;
    }

    .nav-link {
        padding: 10px;
    }

    .hero {
        min-height: 470px;
        padding: 70px 0;
    }

    .feature-inner {
        grid-template-columns: 1fr;
    }

    .topbar .small {
        display: none !important;
    }

}

/* 15. RESPONSIVE MOBILE */

@media (max-width: 550px) {

    .container {
        width: calc(100% - 30px);
    }

    .topbar > .container {
        min-height: 80px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand strong {
        font-size: 20px;
    }

    .brand small {
        font-size: 10px;
    }

    .hero {
        min-height: 430px;
        padding: 55px 0;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .home-content {
        padding: 50px 0;
    }

    .section-title {
        font-size: 27px;
    }

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

    .side-card {
        padding: 22px;
    }

}

/* 16. AKSESIBILITAS */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}

/* ==========================================
   LOGO RESMI FGSJB
========================================== */

.topbar .brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.fgsjb-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 3px;
}

.brand-info strong {
    display: block;
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.brand-info small {
    display: block;
    font-size: 12px;
    color: #e6c783;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .fgsjb-logo {
        width: 60px;
        height: 60px;
    }

    .brand-info strong {
        font-size: 21px;
    }

    .brand-info small {
        font-size: 10px;
    }
}

/* ==========================================
   PERBAIKAN UKURAN LOGO HEADER FGSJB
========================================== */

.topbar .fgsjb-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    width: auto;
    max-width: 100%;
    text-decoration: none;
}

.topbar .fgsjb-logo {
    display: block;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: contain;
    flex: 0 0 64px;
    background: #ffffff;
    border-radius: 8px;
    padding: 2px;
}

.topbar .brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar .brand-info strong {
    font-size: 24px;
    line-height: 1.2;
    color: #ffffff;
}

.topbar .brand-info small {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #e6c783;
    max-width: 320px;
}

@media (max-width: 576px) {
    .topbar .fgsjb-logo {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        flex-basis: 52px;
    }

    .topbar .brand-info strong {
        font-size: 20px;
    }

    .topbar .brand-info small {
        font-size: 10px;
    }
}

/* ==========================================
   EVENT GRID DINAMIS
========================================== */

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Jika hanya satu event */
.event-grid.single-event {
    grid-template-columns: 1fr;
}

.event-grid.single-event .event-tile {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    min-height: 300px;
}

.event-grid.single-event .event-tile img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.event-grid.single-event .event-tile-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-grid.single-event .event-tile h4 {
    font-size: 24px;
    line-height: 1.4;
    margin: 12px 0;
}

.event-grid.single-event .event-tile-body a {
    margin-top: 16px;
    font-weight: 700;
}

/* Tampilan HP */
@media (max-width: 767px) {
    .event-grid,
    .event-grid.single-event {
        grid-template-columns: 1fr;
    }

    .event-grid.single-event .event-tile {
        display: block;
        min-height: auto;
    }

    .event-grid.single-event .event-tile img {
        height: 220px;
        min-height: 0;
    }

    .event-grid.single-event .event-tile-body {
        padding: 22px;
    }

    .event-grid.single-event .event-tile h4 {
        font-size: 20px;
    }
}

