/* 
   SDN 008 Sungai Kuning - Public Stylesheet (Design System Pro)
   Philosophy: Merah Hati SD (#991B1B), Cokelat Pramuka (#78350F), Kuning Prestasi (#EAB308)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary: #991B1B;       /* Merah Hati SD - Energi & Karakter */
    --color-primary-rgb: 153, 27, 27;
    --color-secondary: #78350F;     /* Cokelat Pramuka - Humilitas & Pramuka */
    --color-secondary-rgb: 120, 53, 15;
    --color-accent: #D97706;        /* Kuning Prestasi - Keceriaan */
    --color-accent-rgb: 217, 119, 6;
    --bg-main: #FAF9F6;             /* Alabaster Warm White background */
    --bg-card: #FFFFFF;
    --text-main: #0F172A;           /* Slate Dark Text */
    --text-muted: #475569;
    --border-color: #E2E8F0;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;              /* Soft organic rounded corners */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(153, 27, 27, 0.02);
    --shadow-md: 0 16px 40px rgba(153, 27, 27, 0.05);
    --shadow-lg: 0 24px 60px rgba(153, 27, 27, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--color-primary-rgb), 0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-primary-rgb), 0.5);
}

/* Header & Sticky Dual Bar Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.top-bar {
    background-color: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar a {
    color: white;
    opacity: 0.9;
}
.top-bar a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-circle:hover {
    transform: rotate(10deg) scale(1.05);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: white;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Nav Menu with Uniform Badge & Pencil Colors */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 50px; /* Lencana Kapsul */
    border: 1.5px dashed transparent; /* Garis jahitan seragam */
    display: inline-block;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li.active a {
    color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb), 0.05);
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

/* Dropdown styling */
nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 0;
    min-width: 200px;
    display: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

nav ul li:hover ul {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

nav ul li ul li a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent; /* Garis vertikal pensil warna */
    background-color: transparent;
}

nav ul li ul li:nth-child(3n+1) a:hover {
    border-left-color: var(--color-primary); /* Merah Hati */
    background-color: rgba(var(--color-primary-rgb), 0.03);
    color: var(--color-primary);
    padding-left: 24px;
}

nav ul li ul li:nth-child(3n+2) a:hover {
    border-left-color: var(--color-accent); /* Kuning Prestasi */
    background-color: rgba(var(--color-accent-rgb), 0.03);
    color: var(--color-accent);
    padding-left: 24px;
}

nav ul li ul li:nth-child(3n+3) a:hover {
    border-left-color: var(--color-secondary); /* Cokelat Pramuka */
    background-color: rgba(var(--color-secondary-rgb), 0.03);
    color: var(--color-secondary);
    padding-left: 24px;
}

/* Page Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Hero Section with Asymmetric Layout */
.hero-slider {
    position: relative;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.slide.active img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(15, 23, 42, 0.75) 40%, rgba(15, 23, 42, 0.95) 100%);
    padding: 100px 50px 50px 50px;
    color: white;
    z-index: 2;
}

.slide-tag {
    background-color: var(--color-accent);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.slide-title {
    font-size: 34px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    max-width: 850px;
    line-height: 1.25;
}

.slide-excerpt {
    font-size: 14px;
    opacity: 0.85;
    max-width: 750px;
    margin-bottom: 24px;
}

/* Beautiful school sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    position: relative;
}

.section-title-wrapper {
    position: relative;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    display: inline-block;
}

/* Red-Gold School Underline Deco */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    margin-top: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.section-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 50px;
    background-color: rgba(var(--color-primary-rgb), 0.05);
}

.section-link:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateX(4px);
}

/* Card layout - Asymmetrical & Organic */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Custom Card redesign */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--color-primary-rgb), 0.15);
}

.card-image {
    position: relative;
    padding-top: 56.25%;
    background-color: var(--bg-main);
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: rgba(153, 27, 27, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    color: var(--text-main);
}

.card-title a {
    color: var(--text-main);
}
.card-title a:hover {
    color: var(--color-primary);
}

.card-excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: rgba(var(--color-primary-rgb), 0.6);
}

/* Home Layout: Grid Asymmetry */
.home-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Mading Digital Bullet Board Widget Styles */
.mading-board {
    background-color: var(--bg-card);
    border: 2px solid rgba(var(--color-secondary-rgb), 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.mading-board::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mading-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-secondary);
    border-bottom: 2.5px solid var(--color-accent);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mading-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.mading-item {
    border-bottom: 1px dashed var(--border-color);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.mading-item:first-of-type {
    padding-top: 4px;
}

.mading-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mading-item:hover {
    transform: translateX(4px);
}

.mading-item-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.mading-item-title a {
    color: var(--text-main);
}
.mading-item-title a:hover {
    color: var(--color-primary);
}

.mading-item-excerpt {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.mading-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.mading-item-meta svg {
    width: 12px;
    height: 12px;
    color: var(--color-accent);
}

/* Calendar Badge for Agenda */
.calendar-badge-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.calendar-badge {
    flex-shrink: 0;
    width: 55px;
    background-color: var(--bg-main);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.calendar-badge-top {
    background-color: var(--color-primary);
    color: white;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 0;
    letter-spacing: 0.5px;
}

.calendar-badge-bottom {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    padding: 4px 0;
}

/* Medal Stat Section */
.stat-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7F1D1D 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 45px 30px;
    margin: 50px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.medal-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--color-accent);
    transition: var(--transition);
}

.stat-item:hover .medal-circle {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(255, 255, 255, 0.2);
}

.medal-circle svg {
    width: 32px;
    height: 32px;
}

.stat-item h3 {
    font-size: 38px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.stat-item p {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms & Inputs styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14.5px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.08);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.5px;
    border-radius: 50px; /* Modern pill buttons */
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #821515;
    box-shadow: 0 6px 15px rgba(153, 27, 27, 0.25);
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #602A0C;
    box-shadow: 0 6px 15px rgba(120, 53, 15, 0.25);
    color: white;
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background-color: #B45309;
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.25);
    color: white;
}

/* Footer redesign */
footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 70px 0 24px 0;
    border-top: 4px solid var(--color-primary);
    font-size: 14px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-links li a::before {
    content: '→';
    color: var(--color-accent);
    font-weight: 700;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0 24px;
    border-top: 1px solid #1E293B;
    text-align: center;
    font-size: 12.5px;
    color: #64748B;
}

/* 5W1H Info Box - Redesign */
.box-5w1h {
    background-color: rgba(153, 27, 27, 0.02);
    border: 1.5px solid rgba(153, 27, 27, 0.08);
    border-left: 4.5px solid var(--color-primary);
    padding: 28px;
    border-radius: var(--radius-md);
    margin-bottom: 35px;
    box-shadow: var(--shadow-soft);
}

.grid-5w1h {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.item-5w1h-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11.5px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.item-5w1h-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

/* Pagination Styling */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: inline-flex;
    list-style: none;
    gap: 6px;
}

.pagination li a, .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pagination li a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(153, 27, 27, 0.04);
}

.pagination li.active span {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(153, 27, 27, 0.2);
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsiveness & Navigation toggler */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

@media (max-width: 991px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-slider {
        height: 380px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-overlay {
        padding: 50px 30px 30px 30px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    nav.open {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        gap: 8px;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 16px;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    nav ul li ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        transform: none;
        opacity: 1;
        display: block;
    }
}

/* Post/Article Detail Page Styles */
.post-detail-container {
    max-width: 900px !important;
    padding-top: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
}

.post-header {
    margin-bottom: 24px;
}

.post-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-secondary);
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 32px;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 12px;
    line-height: 1.25;
    color: var(--text-main);
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.post-cover {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.post-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 60px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Rich Text Content Typography Styles */
.post-content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.post-content h2 { font-size: 24px; }
.post-content h3 { font-size: 20px; }
.post-content h4 { font-size: 17px; }

.post-content ul, 
.post-content ol {
    margin-bottom: 24px;
    padding-left: 28px; /* Indentation for bullets/numbers */
}

.post-content ul {
    list-style-type: disc !important; /* Force browser default bullets */
}

.post-content ol {
    list-style-type: decimal !important; /* Force browser default numbers */
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.post-content ul ul, 
.post-content ol ol, 
.post-content ul ol, 
.post-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 20px;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 14px 24px;
    margin: 24px 0;
    background-color: rgba(var(--color-primary-rgb), 0.02);
    font-style: italic;
    color: var(--text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Additional Rich Text Formatting Elements */
.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.post-content a:hover {
    color: var(--color-accent);
}

.post-content hr {
    border: 0;
    border-top: 1.5px solid var(--border-color);
    margin: 32px 0;
}

.post-content iframe {
    max-width: 100% !important;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Auto-scale YouTube/Vimeo embeds */
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.post-content pre, 
.post-content code {
    font-family: monospace, Courier;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.post-content code {
    padding: 2px 6px;
    font-size: 0.9em;
    color: var(--color-primary);
}

.post-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content pre code {
    padding: 0;
    font-size: 14px;
    color: inherit;
    border: none;
    background: none;
}


/* Ensure rich text content inside posts is fully responsive */
.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
}

.post-content table {
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
}

/* Responsive styles for tablet and mobile devices */
@media (max-width: 768px) {
    .post-title {
        font-size: 24px;
    }
    
    .post-detail-container {
        padding-top: 15px;
    }
    
    .post-cover {
        border-radius: var(--radius-md);
        margin-bottom: 20px;
    }
    
    .post-cover img {
        max-height: 300px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 12px;
    }
    
    .post-content {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 40px;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Vision & Mission Grid */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Search Filter Form */
.search-filter-card {
    padding: 24px;
    margin-bottom: 40px;
    border-color: rgba(var(--color-primary-rgb), 0.1);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

.search-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.search-input-wrapper {
    flex-grow: 1;
    min-width: 250px;
}

.filter-select-wrapper {
    width: 200px;
}

.reset-btn {
    background-color: var(--text-muted) !important;
    color: white !important;
}
.reset-btn:hover {
    background-color: var(--text-main) !important;
    color: white !important;
}

/* Agenda Card Styles */
.agenda-card {
    padding: 24px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.agenda-date-badge {
    width: 100px;
    text-align: center;
    border-right: 2px solid var(--border-color);
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Overrides (under max-width: 768px) */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-select-wrapper {
        width: 100%;
    }
    
    .search-btn, .reset-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .agenda-card {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    
    .agenda-date-badge {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 12px;
        align-items: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


