/*
Theme Name: KBA - اتحاد الخرطوم لكرة السلة
Theme URI: https://www.kba.sd
Author: Khartoum Basketball Association
Description: القالب الرسمي لموقع اتحاد الخرطوم لكرة السلة
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: kba
*/

/* ===== المتغيرات ===== */
:root {
    --green: #056f1d;
    --green-d: #034d14;
    --green-l: #0a9e2a;
    --orange: #ff5814;
    --white: #fff;
    --gray-l: #f5f5f5;
    --gray: #777;
    --black: #111;
    --shadow: 0 4px 20px rgba(0,0,0,.12);
    --radius: 12px;
    --tr: all .3s ease;
    --font: 'Cairo', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); direction: rtl; background: #fff; color: var(--black); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--tr); }
ul { list-style: none; }
::selection { background: var(--green); color: #fff; }

/* ===== Utilities ===== */
.container { width: 90%; max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.section-title { text-align: center; font-size: 1.9rem; font-weight: 800; color: var(--green-d); margin-bottom: 40px; position: relative; padding-bottom: 14px; }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 70px; height: 4px; background: var(--orange); border-radius: 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; padding: 11px 26px; border-radius: 30px; font-weight: 700; font-size: 14px; border: 2px solid transparent; transition: var(--tr); }
.btn:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(5,111,29,.3); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.table-wrap { overflow-x: auto; }
.page-section { padding: 60px 0; }
.bg-light { background: var(--gray-l); }

/* ===== TOP BAR ===== */
.top-bar { background: var(--green-d); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 7px 5%; font-size: 13px; }
.top-bar .social-icons { display: flex; gap: 12px; }
.top-bar .social-icons a { color: rgba(255,255,255,.7); font-size: 15px; }
.top-bar .social-icons a:hover { color: var(--orange); transform: scale(1.2); }
.top-bar .email { color: rgba(255,255,255,.8); }

/* ===== HEADER BRANDING ===== */
.header-branding { background: url('assets/img/header-img.jpg') center/cover no-repeat; position: relative; min-height: 205px; display: flex; align-items: center; }
.header-branding::before { content: ''; position: absolute; inset: 0; background: rgba(3,77,20,.78); }
.header-branding .inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1280px; margin: 0 auto; padding: 20px; }
.header-branding .site-title { color: #fff; text-align: center; position: relative; padding-bottom: 16px; }
.header-branding .site-title h1 { font-size: clamp(0.95rem, 4vw, 1.5rem); font-weight: 800; line-height: 1; white-space: nowrap; }
.header-branding .site-title span { position: absolute; left: 0; right: 0; top: 100%; margin-top: 0; font-size: clamp(9px, 1.8vw, 13px); font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: clamp(0.6px, 0.25vw, 1.5px); white-space: nowrap; text-align: justify; text-align-last: justify; }
.header-branding .logo-wrap img, .header-branding .logo-wrap .custom-logo { height: 165px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

/* ===== NAV ===== */
.site-nav { background: var(--green); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.nav-inner { display: flex; align-items: stretch; padding: 0 5%; position: relative; }
.nav-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > span.has-ch { display: flex; align-items: center; gap: 5px; color: #fff; padding: 15px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; transition: var(--tr); white-space: nowrap; }
.nav-menu > li:hover > a, .nav-menu > li:hover > span.has-ch, .nav-menu > li.current-menu-item > a, .nav-menu > li.current-menu-ancestor > a { background: var(--green-d); border-bottom-color: var(--orange); }
/* Dropdown */
.nav-menu .sub-menu { position: absolute; top: 100%; right: 0; background: #fff; min-width: 210px; border-radius: 0 0 10px 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: var(--tr); z-index: 999; border-top: 3px solid var(--orange); }
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu li a { display: block; padding: 11px 18px; color: var(--black); font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.nav-menu .sub-menu li a:hover { background: var(--gray-l); color: var(--green); padding-right: 26px; }
/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 12px; margin-right: auto; background: none; border: none; outline: none; }
.hamburger span { display: block; width: 24px; height: 3px; background: var(--orange); border-radius: 3px; transition: var(--tr); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== NEWS TICKER ===== */
.ticker-bar { background: var(--green-d); border-bottom: 3px solid var(--orange); display: flex; align-items: center; overflow: hidden; height: 42px; }
.ticker-label { background: var(--orange); color: #fff; padding: 0 18px; font-size: 13px; font-weight: 700; white-space: nowrap; height: 100%; display: flex; align-items: center; border-radius: 0 20px 20px 0; margin-left: 15px; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: flex; gap: 60px; white-space: nowrap; animation: tickerRTL 35s linear infinite; }
.ticker-items:hover { animation-play-state: paused; }
.ticker-item a { color: rgba(255,255,255,.9); font-size: 13px; }
.ticker-item a::before { content: '🏀 '; }
.ticker-item a:hover { color: var(--orange); }
@keyframes tickerRTL { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== HERO SLIDER ===== */
/* ===== سلايدر الصفحة الرئيسية - تصميم المجلة الإخبارية ===== */
.mid-slide { padding: 24px 0; }
.news-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 15px; max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 70vh; max-height: 560px; min-height: 340px; }
.news-grid .column { display: flex; flex-direction: column; gap: 15px; height: 100%; }
.news-grid .news-item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; flex: 1; box-shadow: var(--shadow); }
.news-grid .news-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-grid .news-item:hover img { transform: scale(1.06); }
.news-grid .news-item .text { direction: rtl; position: absolute; bottom: 0; right: 0; left: 0; padding: 14px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.news-grid .center { height: 100%; position: relative; }
.news-grid .slider { width: 100%; height: 100%; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-grid .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.news-grid .slide.active { opacity: 1; }
.news-grid .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-grid .text-slide { position: absolute; bottom: 26px; right: 50%; transform: translateX(50%); color: #fff; background: rgba(0,0,0,.55); padding: 12px 24px; border-radius: 24px; font-weight: 700; font-size: 15px; text-align: center; max-width: 85%; z-index: 2; }
.news-grid .slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; transition: var(--tr); }
.slider-dots button.active { background: var(--orange); transform: scale(1.35); }
@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; height: auto; padding: 0 16px; }
    .news-grid .column { flex-direction: row; height: 130px; }
    .news-grid .center { height: 280px; }
}
@media (max-width: 560px) {
    .news-grid .column { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .news-grid .center { height: 260px; }
}

/* ===== PRESIDENT SECTION ===== */
.president-card { display: flex; align-items: stretch; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 920px; margin: 0 auto; }
.president-card .pres-img { flex-shrink: 0; width: 270px; }
.president-card .pres-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.president-card .pres-text { padding: 35px 35px; flex: 1; }
.president-card .pres-text h3 { font-size: 1.25rem; font-weight: 800; color: var(--green-d); margin-bottom: 8px; }
.president-card .pres-name { color: var(--orange); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.president-card .pres-text p { color: #555; line-height: 1.9; margin-bottom: 22px; }

/* ===== NEWS CARDS ===== */
.news-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px,1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(0,0,0,.15); }
.news-card .card-img { position: relative; height: 195px; overflow: hidden; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .card-img img { transform: scale(1.07); }
.card-tag { position: absolute; top: 10px; right: 10px; background: var(--orange); color: #fff; padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.news-card .card-body { padding: 16px 18px; }
.news-card .card-body h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray); }
.card-meta .src { color: var(--green); font-weight: 600; }

/* ===== CLUBS GRID ===== */
.clubs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.club-card { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; width: 145px; box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: var(--tr); border: 2px solid transparent; cursor: pointer; }
.club-card:hover { transform: translateY(-5px); border-color: var(--green-l); box-shadow: 0 8px 24px rgba(5,111,29,.18); }
.club-card img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 10px; }
.club-card span { font-size: 12.5px; font-weight: 700; color: var(--black); }

/* ===== شريط شعارات كل الأندية المتحرك (منقول من الموقع الأصلي) ===== */
.slider-container { width: 100%; position: relative; }
.slider-row { display: flex; transition: opacity .3s ease; min-height: 110px; }
.slider-row.fade { opacity: .35; }
.slider-group { display: flex; justify-content: center; align-items: center; gap: 34px; flex-wrap: wrap; width: 100%; }
.slider-group a { display: block; border-radius: 13px; }
.slider-group img { width: 90px; height: 90px; border-radius: 13px; object-fit: contain; background: #fff; box-shadow: var(--shadow); transition: var(--tr); padding: 8px; }
.slider-group img:hover { transform: scale(1.08) rotate(-1deg); box-shadow: 0 10px 25px rgba(255,88,20,.25); }
.slider-pagination { display: flex; justify-content: center; margin-top: 26px; gap: 10px; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; background: rgba(5,111,29,.5); border: 2px solid var(--green); transition: var(--tr); display: block; padding: 0; }
.slider-dot.active { background: var(--orange); border-color: var(--orange); }
@media (max-width: 700px) {
    .slider-group img { width: 68px; height: 68px; }
    .slider-group { gap: 16px; }
}

/* ===== STANDINGS TABLE ===== */
.kba-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 13.5px; }
.kba-table thead { background: var(--green); color: #fff; }
.kba-table thead th { padding: 13px 14px; text-align: center; font-size: 13px; font-weight: 700; }
.kba-table tbody tr { background: #fff; border-bottom: 1px solid #eee; transition: background .2s; }
.kba-table tbody tr:nth-child(even) { background: #f8fbf8; }
.kba-table tbody tr:hover { background: #e8f5e9; }
.kba-table tbody td { padding: 11px 14px; text-align: center; }
.kba-table .team-cell { display: flex; align-items: center; gap: 8px; text-align: right; }
.rank-badge { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rank-badge.g { background: #d4af37; }
.rank-badge.s { background: #9e9e9e; }
.rank-badge.b { background: #cd7f32; }
.pos { color: var(--green); font-weight: 700; }
.neg { color: #e53935; font-weight: 700; }

/* ===== MATCHES TABLE ===== */
.score-box { background: var(--green); color: #fff; padding: 3px 14px; border-radius: 20px; font-weight: 700; font-size: 14px; }
.vs-box { background: #ff5814; color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-done { background: #e8f5e9; color: #2e7d32; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-upcoming { background: #fff3e0; color: #e65100; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* ===== BOARD / TEAM MEMBERS ===== */
.board-section { padding: 60px 0; }
/* ===== مجلس الإدارة - مطابقة حرفية لملف B-of-D.css الأصلي في الموقع القديم ===== */
.board-section .container { max-width: 1100px; padding: 50px 15px; }
.board-center { display: flex; justify-content: center; }
.member-card { background: #fff; width: 300px; padding: 25px 20px; margin: 20px auto; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.477); transition: .3s; text-align: center; }
.member-card:hover { transform: translateY(-10px); }
.member-card img { width: 180px; height: 220px; margin: 0 auto 15px; border-radius: 50%; object-fit: cover; display: block; }
.member-card .minfo h4 { margin: 10px 0 5px; font-size: 16px; font-weight: bold; color: var(--black); }
.member-card .minfo span { display: block; background: var(--green); border: none; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 15px; transition: .3s; }
.member-card .minfo span:hover { background: #054b16; }
.members-row { display: flex; justify-content: space-around; flex-wrap: wrap; }
.member-card.pres-card { margin-bottom: 40px; }

/* ===== COMMITTEES ===== */
.committees-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px; }
.comm-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.07); border: 1px solid #e4f2e4; }
.comm-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; border-right: 4px solid var(--green); transition: var(--tr); }
.comm-header:hover, .comm-header.open { background: #f0faf0; }
.comm-icon { width: 34px; height: 34px; background: var(--green); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comm-header h3 { flex: 1; font-size: 14.5px; font-weight: 700; color: var(--green-d); margin: 0; }
.comm-arrow { color: var(--gray); transition: transform .3s; font-size: 12px; }
.comm-header.open .comm-arrow { transform: rotate(180deg); color: var(--green); }
.comm-body { display: none; padding: 0 18px 16px; }
.comm-body.open { display: block; }
.comm-body li { padding: 7px 0; border-bottom: 1px dashed #e8e8e8; font-size: 13.5px; color: #555; display: flex; align-items: center; gap: 7px; }
.comm-body li::before { content: '◆'; color: var(--orange); font-size: 7px; flex-shrink: 0; }
.comm-body li:last-child { border: none; }

/* ===== المدربون - مطابقة حرفية لملف Trainers.css الأصلي في الموقع القديم ===== */
.trainers-section { margin: 0; padding: 40px; background: #f1f1f1; text-align: center; }
.trainers-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 40px; }
.trainer-card { width: 29%; text-align: center; }
.trainer-card img { width: 180px; height: 220px; object-fit: cover; border-radius: 25px; box-shadow: 0 4px 10px rgba(0,0,0,.15); margin: 0 auto; }
.trainer-card h4 { margin-top: 12px; color: #066a29; font-size: 22px; font-weight: bold; }
.trainer-card .lvl { display: block; margin-top: 4px; color: var(--green); font-size: 13px; font-weight: 600; }
@media (max-width: 435px) {
    .trainer-card { width: 55%; }
    .trainers-grid { gap: 25px; }
}

/* ===== PLAYERS TABLE ===== */
.players-wrap { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.players-wrap .club-header { background: var(--green); color: #fff; padding: 20px 25px; display: flex; align-items: center; gap: 15px; }
.players-wrap .club-header img { width: 55px; height: 55px; object-fit: contain; }
.players-wrap .club-header h2 { font-size: 1.3rem; font-weight: 800; }

/* ===== HISTORY ===== */
.history-timeline { position: relative; padding-right: 28px; }
.history-timeline::before { content: ''; position: absolute; right: 8px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--green), var(--orange)); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 32px; }
.tl-dot { position: absolute; right: -24px; top: 6px; width: 16px; height: 16px; background: var(--green); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--green); }
.tl-dot.hl { background: var(--orange); box-shadow: 0 0 0 3px var(--orange); }
.tl-content { background: #fff; border-radius: 10px; padding: 18px 22px; box-shadow: 0 2px 12px rgba(0,0,0,.07); border-right: 4px solid var(--green); }
.tl-content.hl { border-right-color: var(--orange); }
.tl-year { font-size: 1.05rem; font-weight: 800; color: var(--green-d); margin-bottom: 8px; }
.tl-content.hl .tl-year { color: #b84010; }
.tl-content p { color: #555; line-height: 1.85; font-size: 14.5px; }
.tl-list { margin-top: 10px; padding-right: 18px; }
.tl-list li { color: #555; margin-bottom: 6px; font-size: 14px; list-style: disc; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding: 14px; background: var(--gray-l); border-radius: 10px; border-right: 4px solid var(--green); }
.contact-item i { color: var(--green); font-size: 19px; margin-top: 2px; flex-shrink: 0; }
.contact-item h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: 13.5px; color: var(--gray); }
.contact-item a:hover { color: var(--green); }
.contact-form-box { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form-box h3 { font-size: 1.15rem; font-weight: 800; color: var(--green-d); margin-bottom: 22px; }
.kba-input, .kba-textarea, .kba-select { width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 9px; font-family: var(--font); font-size: 14px; margin-bottom: 14px; outline: none; direction: rtl; transition: border-color .3s; }
.kba-input:focus, .kba-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(5,111,29,.1); }
.kba-textarea { height: 140px; resize: vertical; }
.kba-btn { width: 100%; background: var(--green); color: #fff; border: none; padding: 13px; border-radius: 30px; font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--tr); }
.kba-btn:hover { background: var(--green-d); }
.form-msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; display: none; }
.form-msg.ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; display: block; }
.form-msg.err { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; display: block; }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--green-d), var(--green)); padding: 48px 0; text-align: center; color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: '🏀'; position: absolute; font-size: 190px; opacity: .05; right: -10px; top: -20px; }
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.breadcrumb { color: rgba(255,255,255,.7); font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { margin: 0 6px; }

/* ===== PAGINATION ===== */
.kba-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.kba-pagination a, .kba-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-weight: 700; font-size: 14px; border: 2px solid #e0e0e0; color: var(--black); transition: var(--tr); }
.kba-pagination a:hover, .kba-pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== COMP TABS ===== */
.div-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.div-tab { padding: 9px 20px; border-radius: 25px; border: 2px solid var(--green); background: #fff; color: var(--green); font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--tr); }
.div-tab.active, .div-tab:hover { background: var(--green); color: #fff; }
.sub-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.sub-tab { padding: 11px 24px; border-radius: 8px 8px 0 0; border: none; border-bottom: 3px solid transparent; background: #f0f0f0; font-family: var(--font); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: var(--tr); color: #555; }
.sub-tab.active, .sub-tab:hover { background: var(--green); color: #fff; }

/* ===== FOOTER ===== */
.site-footer { background: url('assets/img/footer-img.jpg') center/cover no-repeat fixed; position: relative; margin-top: 60px; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: rgba(10,15,30,.9); }
.footer-inner { position: relative; z-index: 1; padding: 55px 5% 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; margin-bottom: 36px; }
.footer-col h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--orange); display: inline-block; }
.footer-col ul li { color: rgba(255,255,255,.7); margin-bottom: 9px; font-size: 13.5px; display: flex; align-items: flex-start; gap: 7px; }
.footer-col ul li i { color: var(--orange); font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.footer-col ul li a { color: rgba(255,255,255,.7); }
.footer-col ul li a:hover { color: var(--orange); padding-right: 4px; }
.footer-logo-col { display: flex; align-items: center; justify-content: center; }
.footer-logo-col img { height: 140px; width: auto; filter: drop-shadow(0 0 20px rgba(5,111,29,.6)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-copy { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { color: rgba(255,255,255,.6); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: var(--tr); }
.footer-social a:hover { color: #fff; background: var(--orange); border-color: var(--orange); transform: translateY(-3px); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 28px; left: 28px; background: var(--green); color: #fff; width: 45px; height: 45px; border-radius: 50%; border: none; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(5,111,29,.4); opacity: 0; visibility: hidden; transition: var(--tr); z-index: 999; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--orange); transform: translateY(-3px); }

/* ===== SINGLE NEWS ===== */
.single-layout { display: grid; grid-template-columns: 1fr 310px; gap: 40px; align-items: start; }
.sidebar-widget { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.widget-title { font-size: 1rem; font-weight: 800; color: var(--green-d); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); }
.related-item { display: flex; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.related-item img { width: 65px; height: 58px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.related-item a { font-size: 13px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item time { font-size: 11px; color: var(--gray); }
.entry-content { line-height: 2; color: #333; font-size: 15.5px; }
.entry-content p { margin-bottom: 18px; }
.entry-content h2, .entry-content h3 { color: var(--green-d); margin: 24px 0 12px; }
.share-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding: 18px; background: var(--gray-l); border-radius: 10px; }
.share-btn { padding: 7px 16px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.share-wa { background: #25d366; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background: var(--green-d); z-index: 999; padding: 8px 0; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a, .nav-menu > li > span.has-ch { padding: 13px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; border-top: none; display: none; background: rgba(0,0,0,.15); }
    .nav-menu li.open-dd > .sub-menu { display: block; }
    .nav-menu .sub-menu li a { color: rgba(255,255,255,.85); padding: 10px 38px; }
    .president-card { flex-direction: column; }
    .president-card .pres-img { width: 100%; height: 260px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .single-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .header-branding { min-height: 165px; }
    .header-branding .inner { padding: 14px; }
    .header-branding .site-title { padding-bottom: 12px; }
    .header-branding .logo-wrap img, .header-branding .logo-wrap .custom-logo { height: 105px; }
}
@media (max-width: 600px) {
    .section-title { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .kba-table { font-size: 12px; }
    .kba-table thead th, .kba-table tbody td { padding: 9px 7px; }
    .contact-grid { gap: 25px; }
    .div-tabs { gap: 8px; }
    .div-tab { font-size: 12px; padding: 7px 14px; }
}
