/*
Theme Name: GWI Command Center
Theme URI: https://gwipers.or.id/
Author: GWI
Description: Tema WordPress resmi Gabunganya Wartawan Indonesia. Portal berita, verifikasi pers, kepengurusan, dan layanan organisasi.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: gwi-command-center
*/

:root {
    --navy: #0b1f3a;
    --blue: #123f73;
    --gold: #c79a3b;
    --green: #16845b;
    --red: #c0392b;
    --white: #ffffff;
    --gray: #f3f5f8;
    --text: #263648;
    --muted: #6c7885;
    --border: #e1e6ec;
    --shadow: 0 10px 28px rgba(11, 31, 58, 0.08);
}

/* Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1140px, 92%);
    margin-right: auto;
    margin-left: auto;
}

/* Aksesibilitas */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 10px 14px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: #ffffff;
    color: var(--navy);
    box-shadow: var(--shadow);
}

/* Topbar */
.topbar {
    background: var(--navy);
    color: #dbe6f2;
    font-size: 13px;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #e8f4ec;
    background-image: url('https://gwipers.or.id/wp-content/uploads/2026/11/background-gwi.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid rgba(22, 132, 91, 0.35);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
}

.site-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 72px;
    max-height: 58px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 800;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    display: block;
    color: var(--navy);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.brand-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1.8px;
}

/* Navigasi WordPress */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
}

.primary-menu-list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu-list li {
    position: relative;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--navy);
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
    background: #eef4fb;
    color: var(--blue);
}

.primary-menu .menu-cta > a,
.primary-menu a.menu-cta,
.menu-cta {
    background: var(--blue);
    color: #ffffff !important;
    font-weight: 800;
}

.primary-menu .menu-cta > a:hover,
.primary-menu a.menu-cta:hover,
.menu-cta:hover {
    background: var(--navy);
    color: #ffffff !important;
}

/* Tombol menu mobile */
.menu-toggle {
    display: none;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 27px;
    cursor: pointer;
}

/* Hero */
.hero,
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 125px;
    background: linear-gradient(115deg, var(--navy), var(--blue));
    color: #ffffff;
}

.hero::after,
.hero-section::after {
    position: absolute;
    top: -130px;
    right: -130px;
    width: 480px;
    height: 480px;
    border: 70px solid rgba(199, 154, 59, 0.18);
    border-radius: 50%;
    content: "";
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1,
.hero-section h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.12;
}

.hero p,
.hero-section p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 0 28px;
    color: #dce8f5;
    font-size: 18px;
}

/* Tombol */
.button {
    display: inline-block;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.button-primary {
    background: var(--gold);
    color: var(--navy);
}

.button-primary:hover {
    background: #dfb75c;
    color: var(--navy);
}

.button-outline {
    margin-left: 8px;
    border-color: #ffffff;
    color: #ffffff;
}

.button-outline:hover {
    background: #ffffff;
    color: var(--navy);
}

/* Layanan cepat */
.quick-services {
    position: relative;
    z-index: 2;
    margin-top: -48px;
    padding: 0 0 22px;
    background: var(--gray);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.service-card {
    padding: 22px 17px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #eaf2fb;
    color: var(--blue);
    font-size: 20px;
}

.service-card h3 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 15px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* Section */
.section,
.content-section {
    padding: 76px 0;
}

.section-gray {
    background: var(--gray);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2,
.content-section h2 {
    margin: 7px 0 10px;
    color: var(--navy);
    font-size: 32px;
}

.section-heading p,
.content-section p {
    color: var(--muted);
}

/* Tentang */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.about-visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--navy);
    background-image: url('https://gwipers.or.id/wp-content/uploads/2026/11/tentang-gwi-background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.about-visual::before {
    position: absolute;
    bottom: 35px;
    left: 35px;
    color: rgba(255, 255, 255, 0.15);
    content: "GWI";
    font-size: 130px;
    font-weight: 900;
}

.about-copy h2 {
    margin: 8px 0 16px;
    color: var(--navy);
    font-size: 32px;
    line-height: 1.2;
}

.about-copy p {
    color: var(--muted);
}

.check-list {
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.check-list li {
    margin: 9px 0;
    font-weight: 700;
}

.check-list li::before {
    margin-right: 10px;
    color: var(--green);
    content: "✓";
    font-weight: 900;
}

/* Berita */
.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
}

.news-image {
    position: relative;
    height: 175px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
}

.news-card:first-child .news-image {
    height: 245px;
}

.news-image::after {
    position: absolute;
    bottom: 15px;
    left: 18px;
    color: rgba(255, 255, 255, 0.75);
    content: "BERITA GWI";
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.news-body {
    padding: 18px;
}

.news-category {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-body h3 {
    margin: 8px 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.35;
}

.news-card:not(:first-child) h3 {
    font-size: 16px;
}

.news-meta {
    color: var(--muted);
    font-size: 12px;
}

/* Portal berita */
.portal-section {
    background: var(--gray);
}

.portal-placeholder {
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
}

/* Statistik */
.stats {
    padding: 52px 0;
    background: var(--navy);
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number {
    color: var(--gold);
    font-size: 38px;
    font-weight: 900;
}

.stat-label {
    color: #d4deea;
    font-size: 14px;
}

/* Verifikasi */
.verify-box {
    max-width: 850px;
    margin: auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--gray);
}

.verify-form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.verify-form input {
    flex: 1;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.verify-form button {
    border: 0;
    cursor: pointer;
}

/* Organisasi */
.org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.org-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.org-icon {
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 38px;
}

.org-card h3 {
    margin: 0 0 7px;
    color: var(--navy);
}

.org-card p {
    color: var(--muted);
    font-size: 14px;
}

/* CTA */
.cta {
    padding: 70px 0;
    background: linear-gradient(110deg, var(--blue), var(--navy));
    color: #ffffff;
    text-align: center;
}

.cta h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.cta p {
    max-width: 680px;
    margin: 0 auto 25px;
    color: #d8e3ef;
}

/* Footer */
.site-footer {
    padding: 55px 0 20px;
    background: #071526;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 35px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 16px;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #b9c6d4;
    font-size: 13px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9eacbb;
    font-size: 12px;
    text-align: center;
}

/* Responsif tablet */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .news-card:first-child {
        grid-column: 1 / -1;
    }

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

/* Responsif mobile */
@media (max-width: 700px) {
    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 16px 4%;
        border-bottom: 1px solid var(--border);
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .primary-menu.is-open {
        display: flex;
    }

    .primary-menu-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .primary-menu-list a {
        width: 100%;
        padding: 10px 12px;
    }

    .service-grid,
    .stats-grid,
    .org-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .news-card:first-child {
        grid-column: auto;
    }

    .verify-form {
        flex-direction: column;
    }

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

/* Layar sangat kecil */
@media (max-width: 450px) {
    .service-grid,
    .stats-grid,
    .org-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-section {
        padding: 70px 0 100px;
    }

    .section,
    .content-section {
        padding: 55px 0;
    }

    .site-brand .custom-logo {
        max-width: 56px;
    }

    .brand-title {
        font-size: 14px;
    }
}
/* =========================================================
   Kompatibilitas Header, Menu WordPress, dan Front Page
   ========================================================= */

/* Logo custom */
.site-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 72px;
    max-height: 58px;
}

/* Menu WordPress */
.primary-menu-list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu-list li {
    position: relative;
    margin: 0;
    padding: 0;
}

.primary-menu-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-menu-list a:hover,
.primary-menu-list a:focus,
.primary-menu-list .current-menu-item > a,
.primary-menu-list .current-menu-ancestor > a {
    background: #eef4fb;
    color: var(--blue);
}

/* Tombol CTA dari menu WordPress */
.primary-menu-list .menu-cta > a,
.primary-menu-list a.menu-cta {
    background: var(--blue);
    color: #ffffff !important;
    font-weight: 800;
}

.primary-menu-list .menu-cta > a:hover,
.primary-menu-list a.menu-cta:hover {
    background: var(--navy);
    color: #ffffff !important;
}

/* Kompatibilitas nama class front-page.php */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 125px;
    background: linear-gradient(115deg, var(--navy), var(--blue));
    color: #ffffff;
}

.hero-section::after {
    position: absolute;
    top: -130px;
    right: -130px;
    width: 480px;
    height: 480px;
    border: 70px solid rgba(199, 154, 59, 0.18);
    border-radius: 50%;
    content: "";
}

.hero-section h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.12;
}

.hero-section p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 0 28px;
    color: #dce8f5;
    font-size: 18px;
}

.content-section {
    padding: 76px 0;
}

.content-section h2 {
    color: var(--navy);
}

.button-primary {
    display: inline-block;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--gold);
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease;
}

.button-primary:hover,
.button-primary:focus {
    background: #dfb75c;
    color: var(--navy);
}

/* Portal Berita */
.portal-section {
    background: var(--gray);
}

<?php
wp_nav_menu(
    array(
        'theme_location' => 'media',
        'container'      => false,
        'menu_class'     => 'media-grid',
        'fallback_cb'    => false,
    )
);
?>
}

/* Tombol mobile */
.menu-toggle {
    display: none;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 27px;
    cursor: pointer;
}

/* Status menu mobile */
@media (max-width: 700px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        padding: 16px 4%;
        border-bottom: 1px solid var(--border);
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .primary-menu.is-open {
        display: block;
    }

    .primary-menu-list {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .primary-menu-list a {
        width: 100%;
        padding: 10px 12px;
    }
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.media-grid a {
    display: block;
    padding: 12px 8px;
    text-align: center;
    overflow-wrap: anywhere;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .media-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.portal-section .button-primary {
    display: table;
    margin: 20px auto 0;
}
.media-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  text-align: center;
}

.media-grid img {
  width: 100%;
  max-width: 100px;
  height: 80px;
  object-fit: contain;
}
body {
  background-image: url("https://gwipers.or.id/wp-content/uploads/2026/11/background-gwi.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}