/* ========================================
   TEMPLATE 5 - FILIPI (Video Magazine Style)
   ======================================== */
/* CSS Variables */
:root {
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --text-secondary: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; 
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-label {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trending-ticker {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
}

.trending-ticker span {
    position: relative;
}

.trending-ticker span::after {
    content: '•';
    position: absolute;
    right: -12px;
    color: var(--primary-color);
}

.trending-ticker span:last-child::after {
    display: none;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.date-display i {
    color: var(--primary-color);
}

/* ========================================
   MAIN HEADER
   ======================================== */
.main-header {
    background: var(--bg-card);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    padding: 10px;
    flex-shrink: 0;
}

.logo-icon img.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search form {
    display: flex;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    outline: none;
}

.header-search button {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.header-search button:hover {
    background: var(--primary-dark);
}

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

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s;
}

/* ========================================
   NAVIGATION
   ======================================== */
.main-nav {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.nav-link:hover {
    background: rgba(0, 0, 0, 0.2);
}

.nav-link i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-item:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1001;
}

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

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--bg-card-hover);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu li a i {
    width: 20px;
    color: var(--primary-color);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
}

.hero-slide {
    position: relative;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.hero-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

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

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: calc((450px - 30px) / 3);
}

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-side-item:hover img {
    transform: scale(1.1);
}

.hero-side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.hero-side-overlay .hero-category {
    font-size: 9px;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.hero-side-overlay h4 {
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
}

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

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hero-side-item {
    height: calc((450px - 40px) / 2); 
}

.hero-grid:not(.single-news) .hero-main {
    height: 650px;
}

.hero-grid.single-news .hero-main {
    height: 500px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
    }
    .hero-side-item {
        min-width: 250px;
        height: 300px;
        flex-shrink: 0;
    }
}
/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 50px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 24px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-nav {
    display: flex;
    gap: 10px;
}

.section-nav button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.section-nav button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

/* ========================================
   CONTENT CARDS
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

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

.content-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.content-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-placeholder i {
    font-size: 48px;
    color: var(--text-muted);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-stats {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
}

.card-body {
    padding: 20px;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.card-date i {
    color: var(--primary-color);
}

.card-title {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.author-name {
    font-size: 13px;
    color: var(--text-light);
}

.card-read-more {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.card-read-more:hover {
    text-decoration: underline;
}

/* ========================================
   LIST CARDS (Sidebar Style)
   ======================================== */
.list-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: all 0.3s;
}

.list-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.list-card-image {
    width: 150px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-card-body {
    flex: 1;
}

.list-card-category {
    display: inline-block;
    background: var(--bg-card-hover);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.list-card-title {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   SIDEBAR
   ======================================== */
.main-content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.widget-header {
    background: var(--primary-color);
    padding: 15px 20px;
}

.widget-title {
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-body {
    padding: 20px;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header.has-banner-img {
    background: none;
    padding: 0;
    height: clamp(200px, 26vw, 420px);
}

.page-header.has-banner-img .page-header-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 2;
}

.page-header.has-banner-img .page-title {
    color: #ffffff;
}

.page-header.has-banner-img .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.page-header.has-banner-img .breadcrumb,
.page-header.has-banner-img .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.page-header-content {
    text-align: center;
}

.page-title {
    font-size: clamp(24px, 3.5vw, 42px);
    color: var(--text-color);
    margin-bottom: 15px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: clamp(13px, 1.5vw, 16px);
    max-width: 600px;
    margin: 0 auto 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: clamp(12px, 1.4vw, 14px);
    color: var(--text-muted);
}

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

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

/* ========================================
   JADWAL MISA TABLE
   ======================================== */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.schedule-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-table th:first-child {
    border-radius: 10px 0 0 0;
}

.schedule-table th:last-child {
    border-radius: 0 10px 0 0;
}

.schedule-table td {
    padding: 15px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.schedule-table tr:hover td {
    background: var(--bg-card-hover);
}

.schedule-table tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.schedule-table tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

.day-badge {
    display: inline-block;
    background:  var(--bg-card-hover);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
}

body.dark-mode .day-badge {
    color: var(--primary-light);
}


/* ========================================
   PASTOR CARDS
   ======================================== */
.pastor-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s;
}

.pastor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pastor-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pastor-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pastor-image-placeholder i {
    font-size: 80px;
    color: var(--text-muted);
}

.pastor-body {
    padding: 25px;
}

.pastor-name {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.pastor-title {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pastor-period {
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.pastor-bio {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.pastor-email {
    position: absolute;
    right: 15px;
    bottom: 255px;

    width: 45px;
    height: 45px;
    border-radius: 50%;

    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pastor-email:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}
/* ========================================
   PASTOR CARDS RESPONSIVE
   ======================================== */
.pastor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 10px;
    box-sizing: border-box;
}

.pastor-card {
    flex: 1 1 320px;       /* minimal 320px */
    max-width: 420px;      /* maksimal lebar */
    min-width: 280px;
    height: 580px;         /* tinggi default desktop */
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pastor-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* IMAGE */
.pastor-image {
    height: 400px; /* desktop */
    position: relative;
    overflow: hidden;
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pastor-placeholder-large {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pastor-placeholder-large i {
    font-size: 80px;
    color: var(--text-muted);
}

/* BODY */
.pastor-body {
    padding: 20px 25px;
    flex: 1; /* fleksibel untuk menyesuaikan tinggi */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pastor-name {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 6px;
}

.pastor-title {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pastor-bio {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1; /* mengisi sisa ruang */
}

/* EMAIL */
.pastor-email {
    position: absolute;
    right: 15px;
    top: 315px; /* default desktop */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pastor-email:hover {
    background-color: var(--primary-dark);
}

/* =============================
   RESPONSIVE MEDIA QUERIES
   ============================= */

/* Mobile S (≤ 480px) */
@media (max-width: 480px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 8px;
    }

    .logo-name {
        font-size: 15px;
    }

    .logo-tagline {
        display: none;
    }

    .logo a {
        gap: 8px;
    }

    .pastor-card {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
    }
    .pastor-image {
        height: 250px;
    }
    .pastor-placeholder-large {
        height: 250px;
    }
    .pastor-email {
        top: 220px;
    }
}

/* Mobile M (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .pastor-card {
        flex: 1 1 45%; /* 2 cards per row */
        max-width: 45%;
        height: auto;
    }
    .pastor-image {
        height: 300px;
    }
    .pastor-placeholder-large {
        height: 300px;
    }
    .pastor-email {
        top: 270px;
    }
}

/* Tablet / small desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .pastor-card {
        flex: 1 1 40%;
        max-width: 40%;
        height: 550px;
    }
    .pastor-image {
        height: 350px;
    }
    .pastor-placeholder-large {
        height: 350px;
    }
    .pastor-email {
        top: 285px;
    }
}

/* Desktop (≥1025px) */
@media (min-width: 1025px) {
    .pastor-card {
        flex: 1 1 30%; /* 4 cards per row */
        max-width: 30%;
        height: 580px;
    }
    .pastor-image {
        height: 400px;
    }
    .pastor-placeholder-large {
        height: 400px;
    }
    .pastor-email {
        top: 315px;
    }
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-icon i {
    font-size: 24px;
    color: #fff;
}

.contact-card h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 8px;
}

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

.contact-form-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px;
}

.form-title {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-title i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--bg-dark), 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-container {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
}

.map-placeholder i {
    font-size: 60px;
    color: var(--primary-color);
}

/* ========================================
   FORMULIR CARDS
   ======================================== */
.form-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.form-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(var(--bg-dark), 0.2) 0%, rgba(var(--bg-dark), 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

:root {
    --form-red: #ef4444;
    --form-red-rgb: 239, 68, 68; /* untuk rgba */
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg,rgba(239, 68, 68, 0.2) 0%,rgba(239, 68, 68, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-icon i {
    font-size: 32px;
    color: #ef4444;
}


.form-card h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
}

.form-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ========================================
   ARTICLE DETAIL
   ======================================== */
.article-content {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 40px;
}

.article-body {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.9;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text-color);
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    border-radius: 8px;
    margin: 20px 0;
}

/* ========================================
   VISI MISI
   ======================================== */
.visi-card,
.misi-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 30px;
}

.visi-card {
    border-left: 5px solid var(--primary-color);
}

.misi-card {
    border-left: 5px solid #22c55e;
}

.vm-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.vm-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.misi-card .vm-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.vm-icon i {
    font-size: 24px;
    color: #fff;
}

.vm-title {
    font-size: 28px;
    color: var(--text-color);
}

.vm-content {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.vm-content ul {
    padding-left: 20px;
}

.vm-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.vm-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.misi-card .vm-content li::before {
    color: #22c55e;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.empty-state i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-top {
    padding: 60px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.footer-logo span {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.youtube { background: #ff0000; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.whatsapp { background: #25d366; }

.widget-title {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-widget .widget-title{
    color: var(--text-color);
}

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links a i {
    color: var(--primary-color);
    font-size: 10px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-info li i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    background: var(--bg-dark);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(var(--bg-dark), 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) and (max-width: 991px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 17px;
        bottom: 25px;
        right: 25px;
    }
}

@media (min-width: 992px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 30px;
        right: 30px;
    }
}
/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        flex-direction: row;
    }

    .hero-side-item {
        height: 150px;
    }

    .main-content-area {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
    }

    .top-bar-left {
        display: none;
    }

    .header-search {
        display: none;
    }

    .main-header {
        padding: 14px 0;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .logo-icon img.logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .logo-name {
        font-size: 18px;
    }

    .logo-tagline {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .mobile-toggle {
        display: flex;
        padding: 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        z-index: 1001;
        transition: left 0.3s;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-link {
        color: var(--text-light);
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg-dark);
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-sidebar {
        flex-direction: column;
    }

    .hero-side-item {
        height: 120px;
    }

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

    .footer-logo .logo-icon {
        width: 50px;
        height: 50px;
    }

    .footer-logo span {
        font-size: 16px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .content-grid,
    .content-grid-2,
    .content-grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .hero-main {
        height: 300px;
    }

    .footer-logo .logo-icon {
        width: 40px;
        height: 40px;
    }

    .footer-logo span {
        font-size: 14px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* History Page */
.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-image {
    margin-bottom: 32px;
}

.history-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.history-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.history-text p {
    margin-bottom: 16px;
}


/* Sejarah Slideshow */
.sejarah-card .sejarah-slideshow {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sejarah-card .sejarah-slideshow:hover {
    transform: scale(1.02);
}

/* Semua slide */
.sejarah-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sejarah-slide:first-child {
    position: relative;
}

.sejarah-slide.active {
    opacity: 1;
    z-index: 2;
}

.sejarah-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Tombol Prev & Next */
.sejarah-prev,
.sejarah-next {
    position: absolute;
    top: 45%;
    z-index: 3;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.sejarah-prev:hover,
.sejarah-next:hover {
    background: var(--primary-color);
}

.sejarah-prev {
    left: 10px;
}

.sejarah-next {
    right: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sejarah-card .sejarah-slideshow {
        height: 545px !important;
    }

    .sejarah-prev,
    .sejarah-next {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 992px) {
    .sejarah-card .sejarah-slideshow {
        height: 400px !important;
    }

    .sejarah-prev,
    .sejarah-next {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 769px) {
    .sejarah-section .section-title::after {
        width: 60%;
    }

    .sejarah-card .sejarah-slideshow {
        height: 400px !important;
    }

    .sejarah-img-wrapper {
        margin-right: 1.5rem;
    }

    .sejarah-prev,
    .sejarah-next {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .sejarah-card .sejarah-slideshow {
        height: 200px !important;
    }

    .sejarah-prev,
    .sejarah-next {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 400px) {
    .sejarah-card .sejarah-slideshow {
        height: 150px !important;
    }

    .sejarah-prev,
    .sejarah-next {
        width: 26px;
        height: 26px;
    }
}

/* Content Tag */
.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.content-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
}

/* Jadwal Misa */
.main-column .schedule-section {
    flex: 1;
}

.schedule-section {
    margin-bottom: 40px;
}

.schedule-section-title {
    font-size: 24px; /* sedikit lebih besar */
    font-weight: 600; /* lebih tegas */
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    transition: color 0.3s ease;
}

.schedule-section-title i {
    color: var(--primary-color);
    font-size: 1.3em; /* ikon lebih menonjol */
    transition: transform 0.3s ease;
}

/* Hover efek untuk ikon jika ingin sedikit interaktif */
.schedule-section-title:hover i {
    transform: translateY(-2px);
}
.schedule-title {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-title i {
    color: var(--primary-color);
}
.main-column .schedule-section {
    flex: 1; 
}

/* .sidebar {
    width: 300px;
    flex-shrink: 0;
} */

@media (max-width: 767px) {
    .main-column {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        order: -1; 
        margin-bottom: 20px;
    }

    .main-column .schedule-section {
        width: 100%;
    }

        .schedule-table {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0 15px; 
        border: none;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .schedule-table tr {
        display: block;
        width: 100%;
        background: var(--bg-card);
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        box-sizing: border-box;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .schedule-table td i{
        display: none;
    }

    .schedule-table td {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 5px 0;
        font-size: 13px;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid var(--border-color);
    }

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

    .schedule-table td span.day-badge {
        margin-bottom: 5px;
    }

    .schedule-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--primary-color);
        margin-bottom: 3px;
        width: 100%;
    }
}

/* Kontak */
.contact-map {
    background: var(--bg-card, #fff);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.map-title {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-title i {
    color: var(--primary-color);
}

.contact-map a, .contact-map i{
    color: var(--primary-color);
}

.map-wrapper {
    width: 100%;
    height: 460px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-direction {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-weight: 600;
}

.office-hour {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 12px 16px;
    margin-bottom: 12px;

    background: var(--bg-card, #fff);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.office-hour .day {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.time-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.office-hour .time {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Map Page */
.leaflet-control{
    display: none;
}

.map-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    margin-top: 24px;
    align-items: stretch;
}

.map-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 520px; 
}

#map {
    width: 100%;
    height: 100%;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 520px; 
    overflow-y: auto;
    padding-right: 6px;
}

.location-info::-webkit-scrollbar {
    width: 6px;
}
.location-info::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius:var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-border-radius:var(--radius-lg);
    -moz-border-radius:var(--radius-lg);
    -ms-border-radius:var(--radius-lg);
    -o-border-radius:var(--radius-lg);
}

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

.location-card.active {
    border-left: 4px solid var(--primary-color);
    background: color-mix(in srgb, var(--primary-light) 30%, transparent);
}

.location-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-details h4 {
    font-size: 14px;   
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-color);
}

.location-details p {
    font-size: 12px;   
    color: var(--text-secondary);
    text-transform: capitalize;
}

@media (max-width: 992px) {
    .map-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 360px;
    }

    .location-info {
        max-height: none;
    }
}

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

.search {
    width: 70%;
    padding: 10px 18px;
    border: 2px solid var(--primary-color);
    background: color-mix(in srgb, var(--primary-light) 50%, transparent);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 5px var(--primary-dark);
    transition: all 0.3s ease;
}

.search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-dark);
}


/* Pagination */
.pagination-container {
    margin-top: 1rem;
    text-align: center;
}

#pagination-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#pagination-nav.show {
    opacity: 1;
    pointer-events: auto;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: var(--bg-card);
    color: var(--primary-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/*  Pengumuman Modal Fullscreen  */
.pengumuman-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    z-index: 1050;
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

.pengumuman-modal.active {
    display: block;
}

/* ===== HEADER ===== */
.pengumuman-header {
    text-align: center;
    padding: 30px 20px 10px;
    color: var(--text-color);
}

.pengumuman-header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.pengumuman-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* ===== BODY ===== */
.pengumuman-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.pengumuman-body p:has(img) {
    margin: 0;
    padding: 0;
}

.pengumuman-body img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Kolom Gambar */
.pengumuman-col-img {
    flex: 1.5 1 500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pengumuman-col-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Kolom Konten */
.pengumuman-col-content {
    flex: 1.5 1 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pengumuman-modal .pengumuman-info {
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 8px;
    transition: background-color 0.3s ease;
}

body.dark-mode .pengumuman-modal .pengumuman-info{
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* ===== IMAGE ===== */
.pengumuman-img {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    object-fit: cover;
}

.pengumuman-img img {
    width: 100%;
    max-height: 720px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===== CONTENT ===== */
.pengumuman-isi {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.8;
    transition: color 0.3s ease;
}

/* ===== CLOSE BUTTON ===== */
.btn-close-custom {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #e9162b;
    z-index: 1100;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-close-custom:hover {
    transform: scale(1.2);
    color: #a01a28;
}

/* ===== INFO ===== */
.pengumuman-info {
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .pengumuman-body {
        padding: 25px 80px 40px;
    }

    .pengumuman-header h1 {
        font-size: 2.1rem;
    }

    .pengumuman-meta {
        font-size: 0.95rem;
    }

    .pengumuman-isi {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .pengumuman-img img {
        max-height: 600px;
    }

    .btn-close-custom {
        font-size: 1.9rem;
    }
}

/* Tablet / Large Mobile */
@media (max-width: 768px) {
    .pengumuman-body {
        padding: 20px 50px 40px;
    }

    .pengumuman-header h1 {
        font-size: 2rem;
    }

    .pengumuman-meta {
        font-size: 0.9rem;
    }

    .pengumuman-isi {
        font-size: 1rem;
        line-height: 1.6;
    }

    .pengumuman-col-img,
    .pengumuman-col-content {
        flex: 1 1 100%;
    }

    .pengumuman-col-img img {
        max-width: 100%;
        max-height: 100%;
    }

    .btn-close-custom {
        font-size: 1.8rem;
    }
}

/* Mobile L */
@media (max-width: 425px) {
    .pengumuman-body {
        padding: 20px 15px 30px;
    }

    .pengumuman-header h1 {
        padding: 28px 20px 10px;
        font-size: 1.6rem;
    }

    .pengumuman-meta {
        font-size: 0.85rem;
    }

    .pengumuman-isi {
        font-size: 1rem;
        line-height: 1.5;
    }

    .pengumuman-img img {
        max-height: 400px;
    }

    .btn-close-custom {
        font-size: 1.6rem;
    }
}

/* Mobile M */
@media (max-width: 375px) {
    .pengumuman-body {
        padding: 15px 10px 25px;
    }

    .pengumuman-header h1 {
        padding: 25px 18px 9px;
        font-size: 1.4rem;
    }

    .pengumuman-meta {
        font-size: 0.8rem;
    }

    .pengumuman-isi {
        font-size: 0.95rem;
    }

    .pengumuman-img img {
        max-height: 300px;
    }
}

/* Mobile S */
@media (max-width: 320px) {
    .pengumuman-body {
        padding: 10px 5px 20px;
    }

    .pengumuman-header h1 {
        padding: 20px 15px 8px;
        font-size: 1.2rem;
    }

    .pengumuman-meta {
        font-size: 0.75rem;
    }

    .pengumuman-isi {
        font-size: 0.9rem;
    }

    .pengumuman-img img {
        max-height: 250px;
    }

    .btn-close-custom {
        top: 5px;
        right: 5px;
        font-size: 1.4rem;
    }
}

/*  Modal Fullscreen  */
.modal-full-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    z-index: 1050;
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

.modal-full-modal.active {
    display: block;
}

/* ===== HEADER ===== */
.modal-full-header {
    text-align: center;
    padding: 30px 20px 10px;
    color: var(--text-color);
}

.modal-full-header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-full-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* ===== BODY ===== */
.modal-full-body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 150px 40px;
}

.modal-full-body p:has(img) {
    margin: 0;
    padding: 0;
}

.modal-full-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

/* ===== IMAGE ===== */
.modal-full-img {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    object-fit: cover;
}

.modal-full-img img {
    width: 100%;
    max-height: 720px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===== CONTENT ===== */
.modal-full-isi {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.8;
    transition: color 0.3s ease;
}

.article-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.article-tag-item {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.article-tag-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--primary-dark);
}

body.dark-mode .article-tag-item {
    color: var(--primary-light);
    background: var(--primary-dark);
}

/* ===== CLOSE BUTTON ===== */
.btn-close-custom {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #e9162b;
    z-index: 1100;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-close-custom:hover {
    transform: scale(1.2);
    color: #a01a28;
}

/* ===== INFO ===== */
.modal-full-info {
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .modal-full-body {
        padding: 25px 80px 40px;
    }

    .modal-full-header h1 {
        font-size: 2.1rem;
    }

    .modal-full-meta {
        font-size: 0.95rem;
    }

    .modal-full-isi {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .modal-full-img img {
        max-height: 600px;
    }

    .btn-close-custom {
        font-size: 1.9rem;
    }
}

/* Tablet / Large Mobile */
@media (max-width: 768px) {
    .modal-full-body {
        padding: 20px 50px 40px;
    }

    .modal-full-header h1 {
        font-size: 2rem;
    }

    .modal-full-meta {
        font-size: 0.9rem;
    }

    .modal-full-isi {
        font-size: 1rem;
        line-height: 1.6;
    }

    .modal-full-img img {
        max-height: 500px;
    }

    .btn-close-custom {
        font-size: 1.8rem;
    }
}

/* Mobile L */
@media (max-width: 425px) {
    .modal-full-body {
        padding: 20px 15px 30px;
    }

    .modal-full-header h1 {
        padding: 28px 20px 10px;
        font-size: 1.6rem;
    }

    .modal-full-meta {
        font-size: 0.85rem;
    }

    .modal-full-isi {
        font-size: 1rem;
        line-height: 1.5;
    }

    .modal-full-img img {
        max-height: 400px;
    }

    .btn-close-custom {
        font-size: 1.6rem;
    }
}

/* Mobile M */
@media (max-width: 375px) {
    .modal-full-body {
        padding: 15px 10px 25px;
    }

    .modal-full-header h1 {
        padding: 25px 18px 9px;
        font-size: 1.4rem;
    }

    .modal-full-meta {
        font-size: 0.8rem;
    }

    .modal-full-isi {
        font-size: 0.95rem;
    }

    .modal-full-img img {
        max-height: 300px;
    }
}

/* Mobile S */
@media (max-width: 320px) {
    .modal-full-body {
        padding: 10px 5px 20px;
    }

    .modal-full-header h1 {
        padding: 20px 15px 8px;
        font-size: 1.2rem;
    }

    .modal-full-meta {
        font-size: 0.75rem;
    }

    .modal-full-isi {
        font-size: 0.9rem;
    }

    .modal-full-img img {
        max-height: 250px;
    }

    .btn-close-custom {
        top: 5px;
        right: 5px;
        font-size: 1.4rem;
    }
}


/* ==============================
   Mobile / Small Devices
   ============================== */
@media (max-width: 1024) {
    .nav-menu {
        flex-direction: column;
        display: none; /* akan ditampilkan lewat toggle menu */
        width: 100%;
        background: var(--primary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.has-dropdown.active .dropdown-menu {
        max-height: 1000px; /* tinggi fleksibel */
    }

    .nav-link i.fa-chevron-down {
        margin-left: auto;
        transform: rotate(0);
    }

    .nav-item.has-dropdown.active .fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* ==============================
   Tablet / Medium Devices
   ============================== */
@media (min-width: 768px) and (max-width: 1199px) {
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dropdown-menu {
        min-width: 180px;
    }
}

/* ==============================
   Large / Desktop
   ============================== */
@media (min-width: 1200px) {
    .nav-menu {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .dropdown-menu {
        min-width: 220px;
    }
}

/* ============================================
   LARGE SCREEN SUPPORT (2K / 4K)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }

    body {
        font-size: 17px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    body {
        font-size: 18px;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
    }

    .logo-name {
        font-size: 26px;
    }

    .footer-logo .logo-icon {
        width: 80px;
        height: 80px;
    }

    .footer-logo span {
        font-size: 22px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 1920px;
    }

    body {
        font-size: 20px;
    }

    .logo-icon {
        width: 90px;
        height: 90px;
    }

    .logo-name {
        font-size: 30px;
    }

    .footer-logo .logo-icon {
        width: 90px;
        height: 90px;
    }

    .footer-logo span {
        font-size: 24px;
    }
}

@media (min-width: 3840px) {
    .container {
        max-width: 2200px;
    }

    body {
        font-size: 22px;
    }

    .logo-icon {
        width: 100px;
        height: 100px;
    }

    .logo-name {
        font-size: 34px;
    }

    .footer-logo .logo-icon {
        width: 100px;
        height: 100px;
    }

    .footer-logo span {
        font-size: 28px;
    }
}
