/* ============================================
   Modern School Website - Responsive CSS
   ============================================ */

:root {
    --primary-color: #151A4A; /* Dark Blue */
    --secondary-color: #1e2563; /* Dark Blue Lighter */
    --accent-color: #FAAF17; /* Gold */
    --accent-hover: #e09d14; /* Gold Darker */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #0f1328;
    --light-color: #f9fafb;
    --text-color: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(21, 26, 74, 0.1), 0 2px 4px -1px rgba(21, 26, 74, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(21, 26, 74, 0.15), 0 4px 6px -2px rgba(21, 26, 74, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Saira', sans-serif;
}

/* Prevent horizontal scroll globally */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
    box-sizing: border-box;
}

body {
    font-family: 'Saira', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #ffffff;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   Top Bar - Hidden
   ============================================ */
.top-bar {
    display: none;
}

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

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 5px;
    color: var(--accent-color);
}

.top-bar-right a {
    color: #fff;
    margin-left: 15px;
    font-size: 18px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ============================================
   Header & Navigation
   ============================================ */
.main-header {
    background: linear-gradient(135deg, rgba(21, 26, 74, 0.98) 0%, rgba(30, 37, 99, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(21, 26, 74, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    overflow: visible;
}

/* Container in header allows dropdown overflow */
.main-header .container {
    overflow: visible !important;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
    min-width: 200px;
    flex-shrink: 0;
    overflow: visible;
    z-index: 1001;
    position: relative;
    margin-right: 15px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 80px;
    object-fit: fill;
    margin-right: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

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

.brand-text h1 {
    font-size: clamp(14px, 1.8vw, 22px);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: inline-block;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.brand-text p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    margin-top: 2px;
    padding: 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: inline-block;
}

/* ============================================
   Navigation Menu - Clean Template
   ============================================ */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: visible;
}

.nav-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Dropdown Menu Icon */
.nav-menu li.has-dropdown > a .fa-chevron-down {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s;
}

.nav-menu li.has-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    background: #fff;
    min-width: 200px;
    max-width: min(250px, calc(100vw - 40px));
    padding: 10px 0 5px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    display: none;
    z-index: 10000;
    white-space: nowrap;
}

/* Show dropdown on hover - parent and dropdown itself */
.nav-menu li.has-dropdown:hover > .dropdown-menu,
.nav-menu li.has-dropdown .dropdown-menu:hover {
    display: block;
}

/* Create invisible bridge to prevent gap between parent and dropdown */
.nav-menu li.has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 9999;
}

.nav-menu li.has-dropdown:hover::before {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu a:hover {
    background: rgba(21, 26, 74, 0.1);
    color: var(--primary-color);
}

/* Right align dropdown for last items to prevent overflow */
.nav-menu > li.has-dropdown:last-child .dropdown-menu,
.nav-menu > li.has-dropdown:nth-last-child(2) .dropdown-menu {
    left: auto;
    right: 0;
}

/* Ensure dropdown text doesn't wrap and cause overflow */
.dropdown-menu a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, rgba(250, 175, 23, 0.1) 100%);
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

@media (max-width: 992px) {
    .hero-section {
        aspect-ratio: 16 / 10;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: 4 / 3;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        aspect-ratio: 1 / 1;
        min-height: 280px;
    }
}

/* ============================================
   News Ticker / Running Text
   ============================================ */
.news-ticker-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 12px 0;
    border-bottom: 3px solid var(--accent-color);
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(250, 175, 23, 0.2);
}

.news-ticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker-label i {
    font-size: 16px;
}

.news-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-ticker-content {
    display: flex;
    gap: 30px;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    padding: 4px 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.news-ticker-item:hover {
    opacity: 0.8;
}

.news-ticker-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.news-ticker-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 20px;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

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

/* Hero slide already defined above */

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 26, 74, 0.5) 0%, rgba(30, 37, 99, 0.4) 50%, rgba(250, 175, 23, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: clamp(16px, 2.5vw, 20px);
    margin: 0 0 30px 0;
    padding: 0;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 175, 23, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

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

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

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

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

.btn-white:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 40px 0;
}

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

.homepage-main-full .section-header {
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 20px;
}

/* ============================================
   Greeting Section
   ============================================ */
.greeting-section {
    padding: 80px 0;
    background: #ffffff;
}

.greeting-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px;
    align-items: start;
    width: 100%;
}

.greeting-video,
.greeting-media {
    grid-column: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--light-color);
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    flex-direction: column;
    gap: 10px;
}

.media-placeholder i {
    font-size: 48px;
    opacity: 0.7;
}

.media-placeholder p {
    font-size: 16px;
    opacity: 0.9;
    border: none;
}

.video-placeholder {
    padding: 80px 40px;
    text-align: center;
    color: #999;
    background: #f5f5f5;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.greeting-content {
    grid-column: 2;
    padding: 20px 0;
    width: 100%;
}

.greeting-header {
    margin-bottom: 30px;
}

.greeting-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.greeting-author {
    padding: 15px 0;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 25px;
}

.greeting-author h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 5px 0;
}

.greeting-author p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

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

.greeting-text p {
    margin-bottom: 15px;
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .greeting-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .greeting-video,
    .greeting-media {
        grid-column: 1;
        width: 100%;
    }
    
    .greeting-content {
        grid-column: 1;
        width: 100%;
    }
    
    .greeting-header h2 {
        font-size: 28px;
    }
}

/* ============================================
   Latest News Section (Homepage)
   ============================================ */
.latest-news-section {
    padding: 40px 0;
    background: #ffffff;
}

.news-grid-homepage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card-homepage {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card-homepage:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image-homepage {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.news-image-homepage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
    max-height: 220px;
    display: block;
}

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

.news-content-homepage {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category-homepage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    width: fit-content;
}

.news-category-homepage i {
    font-size: 11px;
}

.news-content-homepage h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content-homepage h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-content-homepage h3 a:hover {
    color: var(--primary-color);
}

.news-content-homepage p {
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 14px;
    text-align: justify;
}

.news-meta-homepage {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: auto;
    flex-wrap: wrap;
}

.news-meta-homepage i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-meta-homepage span {
    display: flex;
    align-items: center;
}

/* ============================================
   Homepage Layout with Sidebar
   ============================================ */
.homepage-content-wrapper {
    padding: 0;
    background: #ffffff;
}

.homepage-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.homepage-layout-full {
    display: block;
    width: 100%;
}

.homepage-main {
    flex: 1 1 75%;
    min-width: 0;
    width: 75%;
}

.homepage-main-full {
    width: 100%;
    max-width: 100%;
}

.homepage-main section,
.homepage-main-full section {
    padding: 40px 0;
}

.homepage-main section:first-child,
.homepage-main-full section:first-child {
    padding-top: 40px;
}

.homepage-main .section-header,
.homepage-main-full .section-header {
    margin-bottom: 40px;
}

.homepage-sidebar {
    flex: 0 0 25%;
    width: 25%;
    max-width: 280px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
    padding-top: 40px;
}

.sidebar-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f9fafb;
    border-left: 3px solid;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-category-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-category-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-category-item span:first-of-type {
    flex: 1;
}

.category-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-post-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    transition: all 0.3s ease;
}

.sidebar-post-item:hover {
    transform: translateY(-2px);
}

.sidebar-post-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-post-item:hover .sidebar-post-image img {
    transform: scale(1.05);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-post-content h4 {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.sidebar-post-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-post-content h4 a:hover {
    color: var(--primary-color);
}

.sidebar-post-content span {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-post-content span i {
    font-size: 10px;
}

@media (max-width: 968px) {
    .homepage-layout {
        flex-direction: column;
        gap: 30px;
    }

    .homepage-main {
        width: 100%;
        flex: 1 1 100%;
    }

    .homepage-sidebar {
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
        position: relative;
        top: 0;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(21, 26, 74, 0.3);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

/* ============================================
   Programs Section
   ============================================ */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    padding: 40px;
    text-align: center;
    color: #fff;
    font-size: 48px;
    box-shadow: 0 4px 15px rgba(21, 26, 74, 0.2);
}

.program-card h3 {
    padding: 20px 25px 10px;
    font-size: 22px;
    color: var(--dark-color);
}

.program-card p {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.program-card .btn {
    margin: 0 25px 25px;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    margin: 50px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(21, 26, 74, 0.05) 0%, rgba(30, 37, 99, 0.05) 50%, rgba(250, 175, 23, 0.03) 100%);
}

.testimonials-slider-wrapper {
    position: relative;
    margin-top: 40px;
    padding: 0 50px;
}

.testimonials-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonials-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 25px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.testimonial-card-slide {
    flex: 0 0 calc(25% - 18.75px);
    min-width: 0;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card-header {
    padding: 20px 20px 15px;
    text-align: center;
    background: linear-gradient(135deg, rgba(21, 26, 74, 0.1) 0%, rgba(30, 37, 99, 0.1) 50%, rgba(250, 175, 23, 0.05) 100%);
}

.testimonial-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.testimonial-card-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    margin: 0 auto;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(21, 26, 74, 0.2);
}

.testimonial-card-body {
    padding: 15px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-card-rating {
    text-align: center;
    margin-bottom: 12px;
    color: #ffc107;
    font-size: 14px;
}

.testimonial-card-rating .far {
    color: #ddd;
}

.testimonial-card-text {
    flex: 1;
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
}

.testimonial-card-text p {
    margin: 0;
    font-size: 13px;
}

.testimonial-card-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.testimonial-card-footer h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.testimonial-card-position {
    margin: 0;
    font-size: 12px;
    color: var(--text-light);
}

.testimonials-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.testimonials-slider-btn {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 18px;
}

.testimonials-slider-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.testimonials-slider-prev {
    left: 0;
}

.testimonials-slider-next {
    right: 0;
}

.testimonials-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonials-slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.testimonials-slider-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   Prestasi Section
   ============================================ */
.prestasi-section {
    margin: 50px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(21, 26, 74, 0.05) 0%, rgba(250, 175, 23, 0.08) 100%);
}

.prestasi-slider-wrapper {
    position: relative;
    margin-top: 40px;
    padding: 0 50px;
}

.prestasi-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.prestasi-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 25px;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
}

.prestasi-card-slide {
    flex: 0 0 calc(25% - 18.75px);
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    box-sizing: border-box;
}

.prestasi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.prestasi-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.prestasi-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 87, 34, 0.1) 100%);
}

.prestasi-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.prestasi-card:hover .prestasi-photo {
    transform: scale(1.1);
}

.prestasi-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.prestasi-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prestasi-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 12px;
    line-height: 1.4;
}

.prestasi-text {
    flex: 1;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prestasi-year {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.prestasi-year i {
    font-size: 16px;
}

.prestasi-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.prestasi-slider-btn {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 18px;
}

.prestasi-slider-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.prestasi-slider-prev {
    left: 0;
}

.prestasi-slider-next {
    right: 0;
}

.prestasi-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.prestasi-slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.prestasi-slider-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    padding: 40px 0 !important;
    margin-top: 0 !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
    max-height: 150px;
    display: block;
}

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

.news-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    width: fit-content;
}

.news-category i {
    font-size: 10px;
}

.news-content h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    flex-grow: 1;
    text-align: justify;
    font-size: 13px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
    flex-wrap: wrap;
}

.news-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, rgba(250, 175, 23, 0.2) 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(21, 26, 74, 0.2);
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #fff;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    color: #d1d5db;
    line-height: 2;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-section .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-section .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.footer-section .social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-map {
    margin-top: 15px;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for visitor counter */
.visitor-counter::-webkit-scrollbar {
    width: 4px;
}

.visitor-counter::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.visitor-counter::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.visitor-counter::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.visitor-counter {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: var(--transition);
}

.counter-item.counter-total {
    grid-column: 1 / -1;
    padding: 10px 12px;
    background: rgba(250, 175, 23, 0.1);
    border: 1px solid rgba(250, 175, 23, 0.2);
}

.counter-item.counter-total:hover {
    background: rgba(250, 175, 23, 0.15);
    border-color: rgba(250, 175, 23, 0.3);
}

.counter-item.counter-total .counter-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.counter-item.counter-total .counter-number {
    font-size: 18px;
}

.counter-item.counter-total .counter-label {
    font-size: 11px;
}

.counter-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.counter-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(21, 26, 74, 0.2);
}

.counter-info {
    flex: 1;
    min-width: 0;
}

.counter-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
    margin-bottom: 2px;
}

.counter-label {
    font-size: 10px;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ============================================
   Responsive Design - Mobile First
   ============================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: clamp(5px, 0.9vw, 15px);
        max-width: calc(100% - 120px);
    }
    
    .nav-menu li {
        max-width: 110px;
    }
    
    .nav-menu a {
        padding: 8px clamp(4px, 0.7vw, 8px);
        font-size: clamp(11px, 0.95vw, 14px);
    }
    
    .nav-brand {
        min-width: 180px;
        margin-right: 10px;
    }
    
    .brand-text h1 {
        font-size: clamp(13px, 1.6vw, 18px);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: clamp(4px, 0.8vw, 10px);
        max-width: calc(100% - 180px);
        overflow-x: hidden;
    }
    
    .nav-menu li {
        max-width: 90px;
    }
    
    .nav-menu a {
        padding: 8px clamp(3px, 0.6vw, 7px);
        font-size: clamp(10px, 0.85vw, 13px);
    }
    
    .nav-brand {
        min-width: 160px;
        margin-right: 8px;
    }
    
    .brand-text h1 {
        font-size: clamp(12px, 1.4vw, 16px);
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-left span {
        display: block;
        margin: 5px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(21, 26, 74, 0.98) 0%, rgba(30, 37, 99, 0.98) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 0 20px;
        box-shadow: 4px 0 20px rgba(21, 26, 74, 0.4);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1001;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Overlay untuk mobile menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 320px;
        width: calc(100vw - 320px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        margin: 0 !important;
    }

    .nav-menu > li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 25px;
        border-bottom: none;
        font-size: 16px;
        white-space: normal;
        text-align: left;
        border-radius: 0;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 30px;
    }
    
    .nav-menu li.has-dropdown > a {
        padding-right: 25px;
    }

    .nav-menu li.has-dropdown > a .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .nav-menu li.has-dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden !important;
        overflow-x: hidden !important;
        transition: max-height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-radius: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .nav-menu li.has-dropdown.active .dropdown-menu {
        max-height: 1000px;
        padding: 5px 0;
    }
    
    .dropdown-menu a {
        padding: 12px 25px 12px 40px;
        color: rgba(255, 255, 255, 0.95);
        font-size: 15px;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(255, 255, 255, 0.2);
        padding-left: 45px;
    }
    
    .dropdown-menu .dropdown-menu {
        position: static !important;
        margin-left: 0;
        background: rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu .dropdown-menu a {
        padding-left: 55px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Hero section height is controlled by padding-bottom aspect ratio */

    .section-header h2 {
        font-size: 28px;
    }

    section {
        padding: 50px 0;
    }

    .features-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .news-image {
        height: 120px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-content h3 {
        font-size: 14px;
    }
    
    .news-content p {
        font-size: 12px;
    }
    
    .news-meta {
        font-size: 11px;
    }
    
    @media (max-width: 1200px) {
        .testimonial-card-slide {
            flex: 0 0 300px;
            min-width: 300px;
            max-width: 300px;
            width: 300px;
        }
        
        .prestasi-card-slide {
            flex: 0 0 300px;
            min-width: 300px;
            max-width: 300px;
            width: 300px;
        }
    }
    
    @media (max-width: 992px) {
        .testimonials-slider-wrapper {
            padding: 0 40px;
        }
        
        .testimonial-card-slide {
            flex: 0 0 calc(50% - 12.5px);
            min-width: calc(50% - 12.5px);
            max-width: calc(50% - 12.5px);
            width: calc(50% - 12.5px);
        }
        
        .prestasi-slider-wrapper {
            padding: 0 40px;
        }
        
        .prestasi-card-slide {
            flex: 0 0 calc(50% - 12.5px);
            min-width: calc(50% - 12.5px);
            max-width: calc(50% - 12.5px);
            width: calc(50% - 12.5px);
        }
    }
    
    @media (max-width: 640px) {
        .news-grid {
            grid-template-columns: 1fr;
        }
        
        .testimonials-slider-wrapper {
            padding: 0 20px;
        }
        
        .testimonial-card-slide {
            flex: 0 0 100%;
        }
        
        .testimonials-slider-controls {
            display: none;
        }
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .visitor-counter {
        grid-template-columns: 1fr;
        gap: 6px;
        max-height: 250px;
    }
    
    .counter-item {
        padding: 6px 8px;
    }
    
    .counter-item.counter-total {
        grid-column: 1;
        padding: 8px 10px;
    }
    
    .counter-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .counter-item.counter-total .counter-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .counter-number {
        font-size: 14px;
    }
    
    .counter-item.counter-total .counter-number {
        font-size: 16px;
    }
    
    .counter-label {
        font-size: 9px;
    }
    
    .counter-item.counter-total .counter-label {
        font-size: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 60px;
        transform: scaleX(4);
        transform-origin: left center;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }
}

/* ============================================
   Page Header & Breadcrumb
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, rgba(250, 175, 23, 0.15) 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(21, 26, 74, 0.2);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

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

.page-content {
    padding: 60px 0;
}

.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.page-article {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.page-body {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 16px;
    text-align: justify;
}

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

.page-body h1,
.page-body h2,
.page-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Saira', sans-serif;
}

.page-body h1 {
    font-size: 42px;
    color: var(--primary-color); /* Fallback untuk browser yang tidak support gradient */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 4px solid var(--primary-color);
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: left;
    display: inline-block;
    width: 100%;
}

.page-body h2 {
    font-size: 36px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 12px;
    margin-top: 35px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.page-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.page-body h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-body ul,
.page-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-body li {
    margin-bottom: 10px;
}

/* ============================================
   About Page
   ============================================ */
.about-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-section h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.about-section p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.8;
    color: var(--text-color);
}

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

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

.contact-info-section h2,
.contact-form-section h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(21, 26, 74, 0.2);
}

.contact-info-item h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.map-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.contact-form {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.contact-form .required {
    color: var(--danger-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Saira', sans-serif;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 26, 74, 0.1);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* ============================================
   Gallery Page
   ============================================ */
.category-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
    max-height: 300px;
    display: block;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 15px;
}

.gallery-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.gallery-view:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

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

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

.news-detail-header h1 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   News Detail Page - Modern Layout
   ============================================ */
.news-detail {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    width: 100%;
}

.news-detail-header-content {
    padding: 40px 40px 30px;
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
}

.news-detail-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-light);
}

.news-detail-meta-top .news-category {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-detail-meta-top .news-category i {
    font-size: 11px;
}

.news-detail-meta-top .news-date,
.news-detail-meta-top .news-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-meta-top i {
    color: var(--primary-color);
}

.news-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.news-detail-subtitle {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 400;
    margin: 0 0 25px 0;
    font-style: italic;
}

.news-detail-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    margin-top: 25px;
}

.news-detail-image {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f3f4f6;
    max-height: 500px;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.news-detail-content {
    padding: 40px;
    line-height: 1.9;
    color: var(--text-color);
    font-size: 17px;
    max-width: 100%;
    text-align: justify;
}

.news-detail-content p:first-of-type {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: justify;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-content h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.news-detail-content h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-detail-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    text-align: justify;
}

.news-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-light);
    background: #f9fafb;
    padding: 20px;
    border-radius: 5px;
}

.news-detail-footer {
    padding: 30px 40px;
    background: #f9fafb;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.news-detail-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tag-item i {
    color: var(--primary-color);
}

.news-detail-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-detail-share span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    font-size: 18px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-detail-content h2,
.news-detail-content h3 {
    color: var(--dark-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.news-detail-content img {
    max-width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Programs Page
   ============================================ */
.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Program Detail Page Layout */
.program-detail-page-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-items: flex-start;
    padding: 0;
}

.program-detail-main {
    flex: 1 1 70% !important;
    min-width: 0;
    width: 70% !important;
    max-width: 70%;
}

.program-detail-sidebar {
    flex: 0 0 30% !important;
    width: 30% !important;
    max-width: 360px;
    min-width: 280px;
    display: flex !important;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

.program-detail {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.program-detail-header {
    margin-bottom: 30px;
}

.program-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(21, 26, 74, 0.4);
}

.program-detail-icon i {
    font-size: 40px;
    color: #fff;
}

.program-detail-title {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.program-detail-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 2px;
    margin-top: 20px;
}

.program-detail-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

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

.program-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.program-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary-color);
}

.program-detail-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-detail-share span {
    color: var(--text-light);
    font-size: 14px;
    margin-right: 5px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.sidebar-program-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-program-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.sidebar-program-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(21, 26, 74, 0.2);
}

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

.sidebar-program-content {
    flex: 1;
    min-width: 0;
}

.sidebar-program-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-program-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-program-content h4 a:hover {
    color: var(--primary-color);
}

.sidebar-program-content span {
    color: var(--text-light);
    font-size: 13px;
}

@media (max-width: 968px) {
    .program-detail-page-wrapper {
        flex-direction: column !important;
        gap: 30px;
    }

    .program-detail-main {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100%;
    }

    .program-detail-sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100%;
        position: relative;
        top: 0;
    }

    .program-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ============================================
   News Grid Full & Large Cards
   ============================================ */
.news-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.news-card-large {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-image-large {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}

.news-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
    max-height: 180px;
    display: block;
}

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

.news-content-large {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content-large h2 {
    font-size: 16px;
    margin: 10px 0 8px 0;
    line-height: 1.4;
}

.news-content-large h2 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-content-large h2 a:hover {
    color: var(--primary-color);
}

.news-content-large p {
    color: var(--text-light);
    margin-bottom: 10px;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 13px;
    text-align: justify;
}

.news-content-large .btn {
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 10px;
    align-self: flex-start;
    border-radius: 6px;
    width: auto;
    display: inline-block;
}

.news-content-large .news-meta {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ============================================
   Programs Grid Full
   ============================================ */
.programs-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.program-card-large {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.program-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    box-shadow: 0 8px 25px rgba(21, 26, 74, 0.3);
}

.program-card-large h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.program-card-large p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ============================================
   Related Posts
   ============================================ */
.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-posts h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.related-post-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f3f4f6;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
    max-height: 150px;
    display: block;
}

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

.related-post-card h4 {
    padding: 15px;
    font-size: 16px;
    margin: 0;
}

.related-post-card h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-post-card h4 a:hover {
    color: var(--primary-color);
}

.related-post-card span {
    display: block;
    padding: 0 15px 15px;
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   Content Layout
   ============================================ */

/* Category Filter Card Standalone - Di sidebar kanan */
.category-filter-card-standalone {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(21, 26, 74, 0.3);
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
}

.category-filter-card-standalone .category-filter-header {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.category-filter-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-filter-header-icon i {
    font-size: 18px;
    color: #fff;
}

.category-filter-header-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
}

.category-filter-header-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.3;
}

.category-filter-card-standalone .category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.category-filter-card-standalone .category-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    font-size: 13px;
}

.category-filter-card-standalone .category-filter-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-filter-card-standalone .category-filter-item.active {
    background: #ffffff;
    color: var(--primary-color);
    border-left-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.category-filter-card-standalone .category-filter-item.active:hover {
    background: #fff;
    transform: translateX(5px);
}

.category-filter-card-standalone .category-filter-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.category-filter-card-standalone .category-filter-item span {
    flex: 1;
}

/* ============================================
   News Detail Page Layout - Redesigned
   ============================================ */
.news-detail-page-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-items: flex-start;
    padding: 0;
}

.news-detail-main {
    flex: 1 1 70% !important;
    min-width: 0;
    width: 70% !important;
    max-width: 70%;
}

.news-detail-sidebar {
    flex: 0 0 30% !important;
    width: 30% !important;
    max-width: 360px;
    min-width: 280px;
    display: flex !important;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-widget h3 i {
    color: var(--primary-color);
    font-size: 12px;
}


.category-filter-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.category-filter-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-filter-sidebar h3 i {
    color: var(--primary-color);
    font-size: 14px;
}

.category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
}


/* Legacy styles untuk sidebar (jika masih digunakan) */
.category-filter-sidebar .category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-filter-sidebar .category-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border-left: 4px solid var(--border-color);
    margin-bottom: 8px;
}

.category-filter-sidebar .category-filter-item:last-child {
    margin-bottom: 0;
}

.category-filter-sidebar .category-filter-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-filter-sidebar .category-filter-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-left-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(21, 26, 74, 0.3);
}

.category-filter-sidebar .category-filter-item.active:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateX(5px);
}

.category-filter-sidebar .category-filter-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

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

.sidebar-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

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

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sidebar-post-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-post-content h4 a:hover {
    color: var(--primary-color);
}

.sidebar-post-content span {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Subcategory Widget Styles */
.subcategory-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subcategory-widget-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.subcategory-widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subcategory-widget-icon i {
    font-size: 18px;
}

.subcategory-widget-title {
    flex: 1;
}

.subcategory-widget-title h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.subcategory-widget-title p {
    font-size: 11px;
    margin: 2px 0 0 0;
    opacity: 0.9;
}

.subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: #fff;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 13px;
    margin-bottom: 6px;
    position: relative;
}

.subcategory-item:last-child {
    margin-bottom: 0;
}

.subcategory-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left-color: var(--border-color);
}

.subcategory-item.active {
    background: linear-gradient(135deg, rgba(21, 26, 74, 0.1) 0%, rgba(21, 26, 74, 0.05) 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(21, 26, 74, 0.15);
    font-weight: 600;
}

.subcategory-item.active:hover {
    background: linear-gradient(135deg, rgba(21, 26, 74, 0.15) 0%, rgba(21, 26, 74, 0.08) 100%);
    transform: translateX(5px);
}

.subcategory-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.subcategory-item:hover i {
    transform: scale(1.1);
}

.subcategory-item span {
    flex: 1;
    font-weight: 500;
}

.subcategory-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.subcategory-item.active .subcategory-count {
    background: rgba(21, 26, 74, 0.2);
    color: var(--primary-color);
}

.subcategory-item:hover .subcategory-count {
    background: rgba(0, 0, 0, 0.12);
}

.subcategory-item.active:hover .subcategory-count {
    background: rgba(21, 26, 74, 0.3);
}

/* News Page Layout dengan Sidebar (for news.php and announcements.php) */
.news-page-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-items: flex-start;
    padding: 0;
}

.news-page-main {
    flex: 1 1 80% !important;
    min-width: 0;
    width: 80% !important;
    max-width: 80%;
}

.news-page-sidebar {
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 280px;
    min-width: 240px;
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

@media (max-width: 1200px) {
    .news-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .news-page-wrapper {
        flex-direction: column !important;
        gap: 30px;
    }

    .news-page-main {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100%;
    }

    .news-page-sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100%;
        position: relative;
        top: 0;
    }
    
    .news-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .news-grid-full {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Comments Section
   ============================================ */
.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.comments-count {
    color: var(--text-light);
    font-weight: 400;
    font-size: 20px;
}

.comment-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 2px solid var(--border-color);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form .form-row {
    display: flex;
    gap: 20px;
}

.comment-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form .required {
    color: #ef4444;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Saira', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 26, 74, 0.1);
}

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

.comment-form .btn {
    align-self: flex-start;
    padding: 12px 30px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(21, 26, 74, 0.2);
}

.comment-avatar i {
    font-size: 16px;
    color: #fff;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

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

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.reply-item .comment-author {
    font-size: 13px;
}

.comment-date {
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reply-item .comment-date {
    font-size: 11px;
}

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

.comment-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
    margin-top: 8px;
}

.reply-item .comment-text {
    font-size: 13px;
}

.comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.comments-empty i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 15px;
}

.comments-empty p {
    font-size: 16px;
    margin: 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert i {
    font-size: 18px;
}

/* Reply Form Styles */
.reply-form-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.reply-form {
    margin: 0;
}

.reply-form .form-group {
    margin-bottom: 15px;
}

.reply-form .form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reply-form .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Comment Replies */
.comment-replies {
    margin-top: 15px;
    margin-left: 55px;
    padding-left: 15px;
    border-left: 2px solid var(--border-color);
}

.reply-item {
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
}

.reply-item .comment-avatar {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

.reply-item .comment-avatar i {
    font-size: 18px;
}

.reply-to {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 5px;
}

/* Admin Badge */
.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(21, 26, 74, 0.2);
}

.admin-badge i {
    font-size: 9px;
}

.admin-avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.comment-actions {
    margin-top: 12px;
    display: flex;
    gap: 15px;
}

.btn-reply {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.btn-reply:hover {
    color: var(--secondary-color);
}

.btn-reply i {
    font-size: 12px;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}

.reply-item .comment-author {
    font-size: 13px;
}

.comment-date {
    font-size: 12px;
}

.reply-item .comment-date {
    font-size: 11px;
}

@media (max-width: 768px) {
    .comment-form .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .comment-item {
        flex-direction: column;
        gap: 15px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form-wrapper {
        padding: 20px;
    }

    .comment-replies {
        margin-left: 20px;
        padding-left: 15px;
    }

    .reply-form-wrapper {
        padding: 15px;
    }
}

.related-post-info {
    padding: 15px;
}

.related-post-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.related-post-card h4 {
    margin: 10px 0 5px 0;
}

.related-post-card span {
    font-size: 12px;
    color: var(--text-light);
}

.main-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ============================================
   Responsive Updates
   ============================================ */
@media (max-width: 768px) {
    .news-grid-homepage {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-image-homepage {
        height: 200px;
    }
    
    .news-content-homepage {
        padding: 20px;
    }
    
    .news-content-homepage h3 {
        font-size: 18px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .programs-list,
    .programs-grid-full {
        grid-template-columns: 1fr;
    }

    .news-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .news-image-large {
        height: 150px;
    }
    
    .news-content-large {
        padding: 12px;
    }
    
    .news-content-large h2 {
        font-size: 14px;
    }
    
    .news-content-large p {
        font-size: 12px;
    }

    .news-detail-header h1 {
        font-size: 24px;
    }

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

    .news-detail-page-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .news-detail-main {
        width: 100%;
        flex: 1 1 100%;
    }

    .news-detail-sidebar {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        position: relative;
        top: 0;
        order: -1;
    }

    .news-detail-page-wrapper {
        flex-direction: column;
    }

    .news-detail-main {
        width: 100%;
    }

    .news-detail-sidebar {
        width: 100%;
        order: -1;
    }

    .category-filter-card-standalone {
        position: relative;
        top: 0;
        margin-bottom: 25px;
    }

    .category-filter-card-standalone .category-filter-header {
        padding: 18px;
        gap: 12px;
    }

    .category-filter-header-icon {
        width: 45px;
        height: 45px;
    }

    .category-filter-header-icon i {
        font-size: 20px;
    }

    .category-filter-header-text h3 {
        font-size: 16px;
    }

    .category-filter-header-text p {
        font-size: 11px;
    }

    .category-filter-card-standalone .category-filter-list {
        padding: 15px;
        gap: 8px;
    }

    .category-filter-card-standalone .category-filter-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .news-detail-image {
        max-width: 100%;
    }

    .news-detail-image img,
    .news-detail-content img {
        max-width: 100% !important;
    }

    .news-detail-header-content {
        padding: 30px 25px 20px;
    }

    .news-detail-title {
        font-size: 28px;
    }

    .news-detail-subtitle {
        font-size: 18px;
    }

    .news-detail-content {
        padding: 30px 25px;
        font-size: 16px;
    }

    .news-detail-image {
        max-height: 400px;
    }

    .news-detail-image img {
        max-height: 400px;
    }

    .news-detail-footer {
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-detail-share {
        width: 100%;
        justify-content: flex-start;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .news-detail-image {
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .news-detail-image img,
    .news-detail-content img {
        max-width: 100% !important;
        border-radius: 10px;
    }

    .news-detail-header-content {
        padding: 25px 20px 15px;
    }

    .news-detail-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .news-detail-subtitle {
        font-size: 16px;
    }

    .news-detail-content {
        padding: 25px 20px;
        font-size: 15px;
    }

    .news-detail-image {
        max-height: 300px;
    }

    .news-detail-image img {
        max-height: 300px;
    }

    .news-detail-footer {
        padding: 20px;
    }

    .news-detail-meta-top {
        gap: 10px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-detail-tags {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Loading Animation
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

