/* ============================================================
   CSS - Website PPTSB Jateng
   Brand: Merah Batak #A6192E, Hitam #1A1A1A, Krem #F7F4EF, Emas #C9A227
   Font: Poppins (heading), Inter (body)
   ============================================================ */

/* === CSS Variables === */
:root {
    --red: #A6192E;
    --red-dark: #8B1526;
    --red-light: #C41E3A;
    --black: #1A1A1A;
    --black-light: #333333;
    --white: #FFFFFF;
    --cream: #F7F4EF;
    --cream-dark: #EDE8E0;
    --gold: #C9A227;
    --gold-dark: #B8921F;
    --gold-light: #D4B44A;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --blue: #0D6EFD;
    --green: #198754;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', 'Poppins', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 42px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
}

a {
    color: var(--red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--red-dark);
}

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

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--black);
}

.logo-icon svg {
    width: 42px;
    height: 42px;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red);
    display: block;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--gray-600);
    display: block;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: var(--black-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--red);
    background: rgba(166, 25, 46, 0.06);
}

.nav-item.active .nav-link {
    font-weight: 600;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--black-light);
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--red);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Marquee === */
.marquee-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 1px solid var(--gray-200);
    overflow: hidden;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    height: 36px;
}
.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 36px;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.3px;
    will-change: transform;
}
.marquee-text {
    flex-shrink: 0;
    white-space: nowrap;
    padding-right: 80px;
}
.marquee-bar:hover .marquee-track {
    animation-play-state: paused;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 50%, var(--black) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold-light);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--red);
}

/* Gold Ulos line */
.hero-line {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 24px;
    border-radius: 2px;
}

/* === Section === */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--black);
}

.section-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* === Cards === */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--cream) 0%, var(--gray-200) 100%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
    line-height: 1.4;
}

.card-title a {
    color: var(--black);
}

.card-title a:hover {
    color: var(--red);
}

.card-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* === Badge === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-red {
    background: rgba(166, 25, 46, 0.1);
    color: var(--red);
}

.badge-gold {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-dark);
}

.badge-dark {
    background: rgba(26, 26, 26, 0.1);
    color: var(--black-light);
}

.badge-green {
    background: rgba(25, 135, 84, 0.1);
    color: var(--green);
}

.badge-gray {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* === Stats === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* === Quick Links (Homepage) === */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--black);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.quick-link:hover {
    box-shadow: var(--shadow);
    border-color: var(--gold);
    transform: translateY(-3px);
    color: var(--red);
}

.quick-link-icon {
    font-size: 2rem;
}

.quick-link-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* === Organization Chart === */
.org-chart {
    padding: 20px 0;
}

.org-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    margin-bottom: 16px;
    transition: var(--transition);
}

.org-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.org-card.president {
    border-color: var(--red);
    border-width: 3px;
}

.org-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--red);
}

.org-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.org-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.org-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--gray-300);
}

.org-connector {
    text-align: center;
    color: var(--gold);
    font-size: 1.5rem;
    padding: 10px 0;
}

/* === Table === */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.table th {
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}

.table tr:hover td {
    background: rgba(166, 25, 46, 0.03);
}

.table tr:last-child td {
    border-bottom: none;
}

/* === Form === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--black);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--black);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* === Filter Bar === */
.filter-bar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.filter-bar .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-bar .form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.pagination-link {
    display: block;
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--black);
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
}

.pagination-link:hover {
    background: var(--cream);
    border-color: var(--red);
    color: var(--red);
}

.pagination-link.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.pagination-dots {
    display: block;
    padding: 8px 10px;
    color: var(--gray-500);
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 48px 0 36px;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.page-header p {
    opacity: 0.85;
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
    margin-top: 16px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 8px;
    opacity: 0.6;
}

.breadcrumb li:last-child::after {
    content: '';
}

/* === Detail Page === */
.detail-header {
    margin-bottom: 24px;
}

.detail-header h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--black-light);
}

.detail-content p {
    margin-bottom: 16px;
}

.detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

/* === Contact Form === */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--red);
}

.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.contact-item-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item-text span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* === Flash Messages === */
.flash-container {
    padding: 12px 0;
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.flash-error {
    background: rgba(166, 25, 46, 0.1);
    color: var(--red);
    border: 1px solid rgba(166, 25, 46, 0.2);
}

.flash-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--green);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.about-card h3 {
    font-size: 1.2rem;
    color: var(--red);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.about-card p {
    color: var(--black-light);
    line-height: 1.8;
}

.about-card ul {
    padding-left: 20px;
}

.about-card li {
    margin-bottom: 8px;
    color: var(--black-light);
    line-height: 1.6;
}

/* === Sektor/Cabang Card === */
.wilayah-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.wilayah-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.wilayah-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--red);
}

.wilayah-card h3 a {
    color: var(--red);
}

.wilayah-card h3 a:hover {
    text-decoration: underline;
}

.wilayah-info {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.sektor-list {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
}

.sektor-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.sektor-list li:last-child {
    border-bottom: none;
}

.sektor-list a {
    color: var(--black-light);
}

.sektor-list a:hover {
    color: var(--red);
}

.sektor-count {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-left: 8px;
}

/* === Member Card === */
.member-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: var(--transition);
}

.member-card:hover {
    box-shadow: var(--shadow);
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.member-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.member-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 2px;
}

/* === Login Page === */
.login-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.login-card h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--red);
}

.login-card .subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

/* === Dashboard Layout === */
.dashboard {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    background: var(--black);
    color: var(--white);
    padding: 24px 0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--white);
    background: rgba(166, 25, 46, 0.3);
    border-right: 3px solid var(--gold);
}

.sidebar-nav a .icon {
    font-size: 1.1rem;
}

.dashboard-main {
    flex: 1;
    padding: 24px;
    background: var(--cream);
    overflow-x: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-header h1 {
    font-size: 1.5rem;
}

/* === Alert === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--green);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.alert-danger {
    background: rgba(166, 25, 46, 0.1);
    color: var(--red);
    border: 1px solid rgba(166, 25, 46, 0.2);
}

/* === Utility === */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }

/* === Agenda Sidebar Widget === */
.agenda-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-date {
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 600;
}

.agenda-title {
    font-size: 0.9rem;
    color: var(--black);
    margin-top: 4px;
}

/* === Footer === */
.footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 0 0 24px;
    margin-top: auto;
}

.footer-pattern {
    height: 20px;
    background: var(--red);
    overflow: hidden;
}

.footer-pattern svg {
    width: 100%;
    height: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    padding: 48px 0 32px;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.footer-motto {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 999;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .detail-header h1 {
        font-size: 1.4rem;
    }
    
    .filter-bar .form-row {
        flex-direction: column;
    }
    
    .filter-bar .form-group {
        min-width: 100%;
    }
    
    .sidebar {
        display: none;
    }
    
    .dashboard-main {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .login-card {
        padding: 28px 20px;
    }
    
    .org-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}
