/* ========================================
   Rutan Kelas IIB Humbang Hasundutan
   Kementerian Imigrasi dan Pemasyarakatan
   Modern Light Blue Theme
   ======================================== */

/* CSS Variables - Light Blue Color Palette */
:root {
    /* Primary Blues */
    --primary-dark: #1e3a5f;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;

    /* Accent Blues */
    --accent-blue: #0ea5e9;
    --accent-blue-light: #38bdf8;
    --accent-blue-lighter: #7dd3fc;

    /* Sky Blues for gradients */
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;

    /* Gold Accent */
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 10px 40px -10px rgba(37, 99, 235, 0.3);

    /* Gradients */
    --gradient-navbar: linear-gradient(135deg,
            var(--primary-dark) 0%,
            var(--primary) 100%);
    --gradient-hero: linear-gradient(135deg,
            var(--accent-blue) 0%,
            var(--accent-blue-light) 50%,
            var(--sky-300) 100%);
    --gradient-card: linear-gradient(180deg,
            var(--white) 0%,
            var(--sky-50) 100%);
    --gradient-gold: linear-gradient(135deg,
            var(--gold-dark) 0%,
            var(--gold) 50%,
            var(--gold-light) 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Segoe UI", "Roboto", sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--gradient-navbar);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.navbar-title {
    color: var(--white);
}

.navbar-title h1 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-title span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--sky-200);
    margin-top: 2px;
}

/* DateTime Display - Stacked Layout */
.navbar-datetime {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    color: var(--white);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    min-width: 190px;
}

.datetime-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.datetime-row i {
    color: var(--sky-300);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.date-row {
    font-weight: 500;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.time-row {
    font-weight: 600;
    font-size: 0.95rem;
    font-family: "Consolas", "Monaco", monospace;
    color: var(--sky-200);
}

/* ========================================
   MAIN SECTION (Hero)
   ======================================== */
.main-section {
    background: linear-gradient(135deg,
            var(--primary-dark) 0%,
            var(--primary) 50%,
            var(--primary-light) 100%);
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 2rem 100px;
    position: relative;
    overflow: hidden;
}

/* Decorative Pattern */
.main-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 40%),
        radial-gradient(circle at 90% 10%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 40%),
        radial-gradient(circle at 50% 50%,
            rgba(56, 189, 248, 0.1) 0%,
            transparent 60%),
        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");
}

/* Wave Bottom */
.main-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gray-50);
    clip-path: ellipse(70% 100% at 50% 100%);
}

.main-section-overlay {
    display: none;
}

.main-section-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Main Logos */
.main-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.main-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* Logo Flip Animation */
@keyframes logoFlip {
    0% {
        transform: perspective(400px) rotateY(0deg);
    }

    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

.logo-flip-animate {
    animation: logoFlip var(--logo-flip-speed, 3s) linear infinite;
}

.logo-flip-animate:hover {
    animation-play-state: paused;
    transform: perspective(400px) rotateY(0deg) scale(1.05);
}

.main-section-content h2 {
    color: var(--sky-200);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-section-content h1 {
    color: var(--white);
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.main-section-content p {
    color: var(--sky-100);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Hero Social Media Icons */
.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.hero-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-social-icon:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Menu Button */
.btn-menu {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--sky-400) 0%, var(--sky-500) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, var(--sky-500) 0%, var(--sky-600) 100%);
}

.btn-menu:active {
    transform: translateY(-1px);
}

.btn-menu i {
    font-size: 1.2rem;
}

/* ========================================
   MENU POPUP
   ======================================== */
.menu-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-popup.active {
    opacity: 1;
    visibility: visible;
}

.menu-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 95, 0.9);
    backdrop-filter: blur(10px);
}

.menu-popup-content {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.menu-popup.active .menu-popup-content {
    transform: scale(1) translateY(0);
}

.menu-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.menu-popup-header h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.menu-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: var(--primary);
    color: var(--white);
}

.menu-popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 0.8rem;
    border-radius: 16px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-item:hover {
    background: var(--sky-50);
    border-color: var(--primary-light);
    color: var(--primary);
}

.menu-item-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-light) 100%);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-item-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-blue);
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content {
    flex: 1;
    padding: 60px 2rem 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-container {
    width: 100%;
}

.content-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.content-header h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.content-header h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-light),
            var(--accent-blue));
    border-radius: 2px;
}

.content-header p {
    color: var(--gray-500);
    font-size: 1rem;
    margin-top: 1.2rem;
}

/* Search Bar */
.content-search {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-clear {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    color: var(--gray-600);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn span {
    display: none;
}

@media (min-width: 480px) {
    .search-btn span {
        display: inline;
    }
}

/* Filter Tabs */
.content-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: inherit;
}

.tab-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--sky-50);
}

.tab-btn.active {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-light) 100%);
    color: var(--white);
    border-color: var(--primary);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Post Card */
.post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

/* Post Image */
.post-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg,
            var(--primary-light) 0%,
            var(--accent-blue-light) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg,
            var(--gray-100) 0%,
            var(--gray-200) 100%);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Post Category Badge */
.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category.berita {
    background: var(--gold);
    color: var(--gray-900);
}

.post-category.pengumuman {
    background: #ef4444;
    color: var(--white);
}

.post-category.informasi {
    background: var(--accent-blue);
    color: var(--white);
}

.post-category.artikel {
    background: #10b981;
    color: var(--white);
}

/* Post Content */
.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    color: var(--primary-light);
    font-size: 0.85rem;
}

.post-title {
    color: var(--gray-800);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.post-link:hover {
    color: var(--accent-blue);
    gap: 12px;
}

.post-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.post-link:hover i {
    transform: translateX(3px);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary-light);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--gray-300);
    color: var(--gray-400);
}

.page-btn i {
    font-size: 0.8rem;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-num {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.page-num:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--sky-50);
}

.page-num.active {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-light) 100%);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.page-ellipsis {
    color: var(--gray-400);
    font-weight: 600;
    padding: 0 0.5rem;
}

.page-btn.disabled,
a.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    border-color: var(--gray-300);
    color: var(--gray-400);
}

.page-dots {
    color: var(--gray-400);
    font-weight: 600;
    padding: 0 0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gradient-navbar);
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer span {
    color: var(--sky-200);
    font-weight: 600;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

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

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .content {
        padding: 50px 1.5rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Tablets */
@media (max-width: 992px) {
    .navbar-datetime {
        padding: 0.4rem 0.8rem;
        min-width: 160px;
    }

    .date-row {
        font-size: 0.75rem;
    }

    .time-row {
        font-size: 0.85rem;
    }

    .main-section-content h1 {
        font-size: 2.2rem;
    }

    .main-section-content h2 {
        font-size: 1.1rem;
    }

    .menu-popup-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .pagination {
        gap: 0.75rem;
    }

    .page-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .page-btn span {
        display: none;
    }

    .page-num {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .navbar-container {
        height: 70px;
    }

    .navbar-logo {
        width: 42px;
        height: 42px;
    }

    .navbar-title h1 {
        font-size: 0.95rem;
    }

    .navbar-title span {
        font-size: 0.7rem;
    }

    .navbar-datetime {
        padding: 0.35rem 0.7rem;
        min-width: 130px;
        border-radius: 8px;
    }

    .date-row {
        font-size: 0.7rem;
    }

    .time-row {
        font-size: 0.8rem;
    }

    .navbar-title span {
        display: block;
        font-size: 0.6rem;
    }

    .main-logos {
        gap: 2rem;
    }

    .main-logo {
        width: 70px;
        height: 70px;
    }

    .main-section {
        min-height: 50vh;
        padding: 110px 1.5rem 80px;
    }

    .main-section-content h1 {
        font-size: 1.8rem;
    }

    .main-section-content h2 {
        font-size: 1rem;
    }

    .main-section-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-social {
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .hero-social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .btn-menu {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .menu-popup-content {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .menu-popup-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .menu-item {
        padding: 1rem 0.5rem;
        font-size: 0.75rem;
    }

    .menu-item-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .content {
        padding: 40px 1rem;
    }

    .content-header h2 {
        font-size: 1.6rem;
    }

    .content-tabs {
        gap: 0.4rem;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

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

    .pagination {
        gap: 0.5rem;
    }

    .page-btn {
        padding: 0.5rem 1rem;
    }

    .page-num {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .page-dots {
        padding: 0 0.25rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .navbar-brand {
        gap: 10px;
    }

    .navbar-logo {
        width: 38px;
        height: 38px;
    }

    .navbar-title h1 {
        font-size: 0.85rem;
        max-width: 160px;
    }

    .navbar-title span {
        display: none;
    }

    .navbar-title span {
        display: block;
        font-size: 0.55rem;
    }

    .navbar-datetime {
        padding: 0.3rem 0.5rem;
        min-width: 100px;
    }

    .date-row {
        font-size: 0.6rem;
    }

    .time-row {
        font-size: 0.7rem;
    }

    .datetime-row i {
        font-size: 0.6rem;
        width: 12px;
    }

    .main-logos {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .main-logo {
        width: 60px;
        height: 60px;
    }

    .main-section {
        min-height: 45vh;
        padding: 100px 1rem 70px;
    }

    .main-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .main-section-content h1 {
        font-size: 1.5rem;
    }

    .main-section-content h2 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .btn-menu {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    .menu-popup-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .menu-item {
        padding: 0.8rem 0.3rem;
        font-size: 0.7rem;
    }

    .menu-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .content {
        padding: 30px 1rem;
    }

    .content-header h2 {
        font-size: 1.4rem;
    }

    .content-header p {
        font-size: 0.9rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .post-image {
        height: 180px;
    }

    .post-content {
        padding: 1.2rem;
    }

    .post-title {
        font-size: 1.05rem;
    }

    .pagination {
        gap: 0.4rem;
    }

    .page-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .page-num {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .page-dots {
        display: none;
    }

    .footer {
        padding: 1.2rem 1rem;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .navbar-title h1 {
        font-size: 0.75rem;
        max-width: 110px;
    }

    .navbar-title span {
        display: block;
        font-size: 0.5rem;
    }

    .navbar-datetime {
        min-width: 90px;
        padding: 0.2rem 0.35rem;
    }

    .date-row {
        font-size: 0.55rem;
    }

    .time-row {
        font-size: 0.65rem;
    }

    .datetime-row i {
        width: 10px;
        font-size: 0.55rem;
    }

    .main-logo {
        width: 50px;
        height: 50px;
    }

    .main-section-content h1 {
        font-size: 1.3rem;
    }

    .content-header h2 {
        font-size: 1.2rem;
    }

    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .menu-popup-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-item {
        font-size: 0.65rem;
    }

    .menu-item-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .page-num {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .page-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar {
        position: relative;
        background: var(--primary);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .navbar-datetime {
        display: none;
    }

    .main-section {
        min-height: auto;
        padding: 2rem;
    }

    .btn-menu,
    .menu-popup {
        display: none;
    }

    .pagination {
        display: none;
    }

    .footer {
        background: var(--primary);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========================================
   LEADERS CAROUSEL SECTION
   ======================================== */
.leaders-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--sky-50) 50%, var(--gray-50) 100%);
    padding: 60px 1rem 80px;
    position: relative;
    overflow: hidden;
}

.leaders-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.leaders-container {
    max-width: 1200px;
    margin: 0 auto;
}

.leaders-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.leaders-header h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.leaders-header h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-blue));
    border-radius: 2px;
}

.leaders-header p {
    color: var(--gray-500);
    font-size: 1rem;
    margin-top: 1.2rem;
}

/* Carousel Container */
.leaders-carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    padding: 0 10px;
}

.leaders-track-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    padding: 20px 0;
}

.leaders-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

/* Leader Card */
.leader-card {
    flex: 0 0 auto;
    width: 220px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s ease-out,
        filter 0.5s ease-out,
        box-shadow 0.4s ease-out,
        border-color 0.4s ease-out;
    transform: scale(0.8);
    opacity: 0.4;
    filter: blur(2px);
    border: 2px solid transparent;
}

.leader-card.active {
    transform: scale(1.05);
    opacity: 1;
    filter: blur(0);
    box-shadow: var(--shadow-lg), 0 10px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-light);
    z-index: 10;
}

.leader-card.adjacent {
    transform: scale(0.9);
    opacity: 0.7;
    filter: blur(0.5px);
}

/* Leader Photo */
.leader-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-blue-light) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.leader-card.active .leader-photo img {
    transform: scale(1.02);
}

.leader-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3.5rem;
}

/* Leader Info */
.leader-info {
    padding: 1rem 0.75rem;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-50) 100%);
    transition: all 0.4s ease;
}

.leader-card.active .leader-info {
    padding: 1.25rem 1rem;
}

.leader-name {
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    transition: font-size 0.4s ease;
}

.leader-card.active .leader-name {
    font-size: 1rem;
}

.leader-position {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
    transition: all 0.4s ease;
}

.leader-card.active .leader-position {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Navigation Buttons */
.leaders-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.leaders-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-blue);
}

.leaders-nav:active {
    transform: scale(0.98);
}

.leaders-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--gray-100);
}

.leaders-nav:disabled:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-600);
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Indicators */
.leaders-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.leaders-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.leaders-indicators .indicator:hover {
    background: var(--primary-lighter);
    transform: scale(1.2);
}

.leaders-indicators .indicator.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* Tablets */
@media (max-width: 992px) {
    .leaders-section {
        padding: 50px 1rem 60px;
    }

    .leaders-header h2 {
        font-size: 1.75rem;
    }

    .leaders-header {
        margin-bottom: 2rem;
    }

    .leader-card {
        width: 200px;
    }

    .leaders-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .leaders-section {
        padding: 40px 0.75rem 50px;
    }

    .leaders-header h2 {
        font-size: 1.5rem;
    }

    .leaders-header p {
        font-size: 0.9rem;
    }

    .leaders-carousel {
        gap: 0.25rem;
        padding: 0 5px;
    }

    .leaders-track-wrapper {
        max-width: 100%;
        padding: 15px 0;
    }

    .leader-card {
        width: 160px;
        border-radius: 12px;
        transform: scale(0.75);
    }

    .leader-card.active {
        transform: scale(1);
    }

    .leader-card.adjacent {
        transform: scale(0.85);
        opacity: 0.6;
    }

    .leaders-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .leader-name {
        font-size: 0.8rem;
    }

    .leader-card.active .leader-name {
        font-size: 0.9rem;
    }

    .leader-position {
        font-size: 0.7rem;
    }

    .leader-info {
        padding: 0.75rem 0.5rem;
    }

    .leader-card.active .leader-info {
        padding: 1rem 0.75rem;
    }

    .leader-photo-placeholder {
        font-size: 2.5rem;
    }

    .leaders-indicators {
        gap: 6px;
        margin-top: 1.25rem;
    }

    .leaders-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    .leaders-indicators .indicator.active {
        width: 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .leaders-section {
        padding: 35px 0.5rem 45px;
    }

    .leaders-header {
        margin-bottom: 1.5rem;
    }

    .leaders-header h2 {
        font-size: 1.35rem;
    }

    .leaders-header p {
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    .leaders-carousel {
        gap: 0;
    }

    .leaders-nav {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }

    .leaders-nav:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .leaders-prev {
        left: 0;
    }

    .leaders-next {
        right: 0;
    }

    .leaders-track-wrapper {
        padding: 10px 0;
    }

    .leader-card {
        width: 140px;
        transform: scale(0.7);
    }

    .leader-card.active {
        transform: scale(0.95);
    }

    .leader-card.adjacent {
        transform: scale(0.8);
        opacity: 0.5;
    }

    .leader-name {
        font-size: 0.75rem;
    }

    .leader-card.active .leader-name {
        font-size: 0.85rem;
    }

    .leader-position {
        font-size: 0.65rem;
    }

    .leader-card.active .leader-position {
        font-size: 0.75rem;
    }

    .leader-info {
        padding: 0.6rem 0.4rem;
    }

    .leader-card.active .leader-info {
        padding: 0.8rem 0.6rem;
    }

    .leader-photo-placeholder {
        font-size: 2rem;
    }

    .leaders-indicators {
        margin-top: 1rem;
    }

    .leaders-indicators .indicator {
        width: 7px;
        height: 7px;
    }

    .leaders-indicators .indicator.active {
        width: 18px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .leaders-section {
        padding: 30px 0.25rem 40px;
    }

    .leaders-header h2 {
        font-size: 1.2rem;
    }

    .leaders-header p {
        font-size: 0.8rem;
    }

    .leader-card {
        width: 120px;
        border-radius: 10px;
    }

    .leader-card.active {
        transform: scale(0.9);
    }

    .leaders-nav {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .leader-name {
        font-size: 0.7rem;
    }

    .leader-card.active .leader-name {
        font-size: 0.8rem;
    }

    .leader-position {
        font-size: 0.6rem;
    }

    .leader-info {
        padding: 0.5rem 0.3rem;
    }
}