:root {
    --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial;
    --transition-smooth: all 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
    --primary-turquoise: #20b2aa;
    --gradient-primary: linear-gradient(90deg, #20b2aa, #0ab39c);
}

body {
    font-family: var(--font-sans);
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    z-index: 1050;
}

.navbar-brand {
    transition: var(--transition-smooth);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    position: relative;
    transition: var(--transition-smooth);
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-turquoise) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-icon {
    width: 25px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-turquoise);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-content {
    padding: 2rem;
}

.sidebar-logo {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-turquoise);
    padding-left: 1rem;
    border-left: 3px solid var(--primary-turquoise);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Language Buttons */
.language-btn {
    min-width: 40px;
    font-size: 0.875rem;
    font-weight: 600;
}

.language-btn.active {
    background: var(--primary-turquoise);
    border-color: var(--primary-turquoise);
    color: white;
}

.language-btn:not(.active):hover {
    background: var(--light-turquoise);
    border-color: var(--primary-turquoise);
    color: var(--primary-turquoise);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .language-btn {
        min-width: 35px;
        font-size: 0.75rem;
    }

    .partner-card {
        height: 120px;
        padding: 1.25rem 1rem;
    }

    .partner-name {
        font-size: 1.1rem;
    }
}

/* Hero section for fixed navbar */
.hero-section {
    margin-top: 76px;
}

/* Turquoise Blue & Green Theme */
:root {
    --primary-turquoise: #20b2aa;
    --primary-green: #3cb371;
    --accent-teal: #008b8b;
    --light-turquoise: #e0f2f1;
    --dark-turquoise: #006666;
    --btn-gradient: linear-gradient(90deg, #568b7b 0%, #81cbb5 100%);
    --card-float-distance: 6px;
    --motion-duration: 6s;
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary-turquoise),
        var(--primary-green)
    );
    --gradient-secondary: linear-gradient(
        135deg,
        var(--accent-teal),
        var(--primary-turquoise)
    );
    --shadow-primary: 0 10px 30px -10px rgba(32, 178, 170, 0.3);
    --shadow-hover: 0 20px 40px -10px rgba(32, 178, 170, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show All Button */
.btn-show-all {
    background: transparent;
    border: 2px solid var(--primary-turquoise);
    color: #555;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.2);
}

.btn-show-all:active {
    transform: translateY(0) scale(0.98);
}

/* Bootstrap Color Overrides */
.btn-primary {
    background: #33bc9c;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: #006666;
}

.btn-outline-primary {
    color: #000;
    border-color: #555;
    transition: var(--transition-smooth);
    background-color: #e8e8e8;
    max-width: 150px;
}

.btn-outline-primary:hover {
    background-color: #2c3e50;
    transform: translateY(-1px);
}

.text-primary {
    color: var(--primary-turquoise) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-primary {
    background: var(--primary-turquoise) !important;
}

.badge.bg-success {
    background: var(--primary-green) !important;
}

.badge.bg-info {
    background: var(--accent-teal) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("../img/environmental-conservation-garden-children.jpg")
            center/cover no-repeat;
    background-attachment: fixed;
}

/* Hero slideshow fade helper */
.hero-section {
    transition: opacity 0.8s ease;
}
.hero-section.fade-out {
    opacity: 0;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(32, 178, 170, 0.2),
        rgba(60, 179, 113, 0.2)
    );
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* News Cards */
.news-card {
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 12px;
}

.news-card:hover {
    transform: translateY(-50px);
    box-shadow: var(--shadow-hover);
}

/* News Image */
.news-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Card Body */
.news-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-turquoise);
    line-height: 1.4;
}

.news-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Date Styling */
.news-card .text-muted {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Button Styling */
.news-card .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card .btn-outline-primary:hover {
    background: #000;
    border-color: var(--primary-turquoise);
    transform: translateX(4px);
}

/* News Card Layout Fix */
.news-card-redesigned {
    border: 3px solid #e6e6e6 !important;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
}

.news-card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.news-card-link {
    margin-top: auto;
    align-self: flex-start;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #d89898, #c84a4a);
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.news-card-link:hover {
    color: #ffffff !important;
    gap: 0.5rem;
    background: linear-gradient(90deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    text-decoration: none;
}

/* Custom red button for View All News */
.btn-red {
    background: #008b8b;
    color: white !important;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-red:hover {
    background: #024d4d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 135, 114, 0.3);
}

/* Program Cards */
.program-card {
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.program-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.program-card:hover .program-image {
    transform: scale(1.05);
}

/* Stats Section */
.stat-item {
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(32, 178, 170, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}
.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-marker {
    position: absolute;
    left: -5px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-turquoise);
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(32, 178, 170, 0.3);
}

/* Hero Slider Styles */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Overlay untuk kontras yang lebih baik */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

/* Navigation Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-slider-dot {
    width: 1px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: rgb(209, 207, 207);
    transform: scale(1.2);
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Navigation Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

/* Responsive Design untuk Hero Slider */
@media (max-width: 768px) {
    .hero-slider-container {
        height: 70vh;
    }
    
    .hero-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-dots {
        bottom: 20px;
    }
    
    .hero-slider-arrow {
        display: none; /* Sembunyikan arrows di mobile untuk ruang yang lebih baik */
    }
}

@media (max-width: 576px) {
    .hero-slider-container {
        height: 60vh;
    }
    
    .hero-slider-dots {
        bottom: 15px;
    }
    
    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Smooth transitions untuk konten hero */
.hero-title-redesigned,
.hero-tagline,
.hero-description,
.hero-cta-group {
    transition: all 0.8s ease;
}

.hero-slide:not(.active) .hero-title-redesigned {
    transform: translateY(30px);
    opacity: 0;
}

.hero-slide:not(.active) .hero-tagline {
    transform: translateY(30px);
    opacity: 0;
    transition-delay: 0.1s;
}

.hero-slide:not(.active) .hero-description {
    transform: translateY(30px);
    opacity: 0;
    transition-delay: 0.2s;
}

.hero-slide:not(.active) .hero-cta-group {
    transform: translateY(30px);
    opacity: 0;
    transition-delay: 0.3s;
}

.hero-slide.active .hero-title-redesigned,
.hero-slide.active .hero-tagline,
.hero-slide.active .hero-description,
.hero-slide.active .hero-cta-group {
    transform: translateY(0);
    opacity: 1;
}

/* .timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
} */

/* ===== Activity Card ===== */
.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    position: relative;
}

.activity-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.activity-card:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== Activity Content ===== */
.activity-content {
    padding: 1.5rem;
}

.activity-card.with-image .activity-content {
    padding: 1.5rem 1.5rem 1.5rem 1.8rem;
}

.activity-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1.15rem;
}

.activity-card:hover .activity-title {
    color: var(--primary-turquoise);
}

.activity-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--light-turquoise);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 500;
    color: var(--dark-turquoise);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.activity-card:hover .activity-date {
    background: var(--primary-turquoise);
    color: white;
    transform: scale(1.05);
}

/* ===== Activity Image ===== */
.activity-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.activity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.activity-card:hover .activity-image-overlay {
    opacity: 1;
}

.activity-image-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0.5) rotate(-45deg);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.activity-card:hover .activity-image-overlay i {
    transform: scale(1) rotate(0deg);
}

/* ========================================
   COLLABORATION PARTNERS SECTION
   ======================================== */

/* Partners Section */
.partners-section {
    position: relative;
    overflow: hidden;
}

/* Partner Card Base Styles */
.partner-card {
    background: rgb(237, 237, 237);
    border-radius: 1px;
    padding: 2rem 1.5rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Partner Card - With Image */
.partner-with-image {
    padding: 1.5rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-image {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
}

/* Partner Card - Text Only */
.partner-text-only {
    background: linear-gradient(135deg, #f0fffe 0%, #e8f8f8 100%);
}

.partner-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-turquoise);
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

/* Horizontal Scrolling Container */
.partners-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-scroll-container {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    animation: scrollPartners 30s linear infinite;
    width: fit-content;
}

/* Partner Cards - Remove individual delays */
.partner-card {
    flex-shrink: 0;
    min-width: 180px;
    opacity: 1;
    animation: none;
}

/* Scrolling Animation */
@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Map Placeholder */
.map-placeholder {
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(32, 178, 170, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(32, 178, 170, 0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional Hover Effects */
.card {
    transition: var(--transition-smooth);
}

.btn {
    transition: var(--transition-smooth);
}

/* Icon Animations */
.bi {
    transition: var(--transition-smooth);
}

.stat-item:hover .bi {
    transform: scale(1.1);
}

/* Footer Links */
footer a {
    transition: var(--transition-smooth);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-turquoise) !important;
    transform: translateY(-2px);
}

/* Footer redesign styles */
.footer-redesign {
    font-family: var(
        --font-sans,
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial
    );
    color: #e6f7f5;
}
.footer-redesign .footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-redesign h4,
.footer-redesign h5 {
    font-weight: 600;
}
.footer-redesign .footer-links li {
    margin-bottom: 0.6rem;
}
.footer-redesign .footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.footer-redesign .footer-links a:hover {
    color: var(--primary-turquoise);
    text-decoration: underline;
}
.footer-redesign .newsletter-form input.form-control {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}
.footer-redesign .newsletter-form .btn-primary {
    background: linear-gradient(90deg, var(--primary-turquoise), #0ab39c);
    border: none;
}
.footer-bottom {
    background: linear-gradient(
        180deg,
        rgba(3, 37, 65, 0.95),
        rgba(3, 37, 65, 0.95)
    );
}

@media (max-width: 767px) {
    .footer-redesign .footer-top {
        background-position: center 30%;
    }
    .footer-redesign .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-redesign .newsletter-form .form-control {
        width: 100%;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(
        135deg,
        var(--light-turquoise),
        rgba(255, 255, 255, 0.9)
    );

    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-top: 76px;
}

.about-image-wrapper {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 50px;
    border: 5px solid #80959069;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Vision Section */
.vision-section {
    position: relative;
}

.vision-card {
    transition: var(--transition-smooth);
    border: none;
}

/* Mission Cards */
.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    height: 100%;
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: #d0ded8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
}

.mission-icon i {
    font-size: 2rem;
    color: white;
}

.mission-card h4 {
    color: var(--dark-turquoise);
    margin-bottom: 1rem;
    font-weight: 600;
}

.mission-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Goals Section */
.goal-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.goal-emoji {
    font-size: 2.5rem;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-emoji i {
    color: rgb(56, 180, 151);
}

.goal-item h5 {
    color: var(--dark-turquoise);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.goal-item p {
    color: #666;
    line-height: 1.5;
}

/* Services Page Styles */
.services-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 30px; /* Ubah dari 60px 20px menjadi 60px 0 */
    flex: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 50px;
    margin-top: 20px;
    padding: 0 20px; /* Tambahkan padding di grid, bukan di container */
}

/* Service Card */
.service-card {
    background: rgb(255, 252, 235);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out backwards;
    margin-bottom: 60px;
    border: 5px solid #80959069;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.service-card:nth-child(2) {
    animation-delay: 0.2s;
}
.service-card:nth-child(3) {
    animation-delay: 0.3s;
}
.service-card:nth-child(4) {
    animation-delay: 0.4s;
}
.service-card:nth-child(5) {
    animation-delay: 0.5s;
}
.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--light-turquoise);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.service-card-content {
    padding: 30px;
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-turquoise);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
    color: var(--primary-turquoise);
}

.service-card-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

.service-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
}

/* Projects Page Styles */
.projects-showcase {
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content h4 {
    color: var(--primary-turquoise);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-client {
    color: var(--primary-turquoise);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Contact Page Styles */
.contact-header {
    padding: 120px 0 40px; /* offset for fixed navbar and breathing room */
    background: linear-gradient(
        180deg,
        rgba(245, 255, 252, 0.9),
        rgba(238, 251, 249, 0.9)
    );
    text-align: center;
    border-bottom: 1px solid rgba(10, 69, 60, 0.04);
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-map h3,
.contact-info h3 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Make contact header text use theme color */
.contact-header h1,
.contact-title {
    color: var(--dark-turquoise, #064e47);
}

.map-container {
    background: rgb(181, 181, 181);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item p {
    font-size: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: inherit;
}

.whatsapp-link:hover {
    background: linear-gradient(
        90deg,
        rgba(32, 178, 170, 0.12),
        rgba(10, 179, 156, 0.18)
    );
    color: var(--dark-turquoise, #064e47);
}

.email-link:hover {
    background: linear-gradient(
        90deg,
        rgba(32, 178, 170, 0.12),
        rgba(10, 179, 156, 0.18)
    );
    color: white;
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.contact-link:hover .contact-icon {
    transform: scale(1.2);
}

.contact-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--primary-turquoise);
    transition: color 0.3s ease;
}

.contact-details p {
    margin: 0 0 0.3rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.contact-desc {
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

/* New contact card refinements */
.contact-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 6px 18px rgba(2, 62, 54, 0.06);
}

.contact-method-title {
    font-size: 1rem;
    color: var(--primary-turquoise);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.contact-primary {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b4f49;
    margin: 0 0 0.25rem 0;
}

/* Ensure contact items stack nicely and have spacing */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .contact-layout {
        display: grid;
        grid-template-columns: 1fr 460px;
        gap: 2rem;
        align-items: start;
    }
}

/* Responsive: stack layout on small screens */
@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-container iframe {
        height: 280px; /* slightly smaller on mobile */
    }
}

@media (min-width: 992px) {
    /* Ensure map column visual emphasis on desktop */
    .contact-map {
        order: 1;
    }
    .contact-info {
        order: 2;
    }
}

/* News Listing Page */
.news-listing-header {
    padding: 140px 0 60px;
    background: #eeeeee;
    text-align: center;
    margin-bottom: 3rem;
}

.news-listing-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-turquoise);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.news-listing-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.news-listing-section {
    padding: 1rem 0 5rem;
}

/* News List Item */
.news-list-item {
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.news-list-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--light-turquoise);
}

/* News Item with Image */
.news-list-image-wrapper {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* News Content */
.news-list-content {
    padding: 0;
}

.news-list-date {
    color: var(--primary-turquoise);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.news-list-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-turquoise);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-list-item:hover .news-list-title {
    color: var(--primary-turquoise);
}

.news-list-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* News Item without Image (Case B) */
.news-item-no-image {
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
}

.news-list-content-full {
    max-width: 900px;
}

/* Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    background: #9ca3af;
    color: rgb(255, 255, 255);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.btn-read-more:hover {
    background: #6b7280;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Override button colors for "View All" buttons - make them gray instead of primary */
.home_news_button,
.home_programs_button,
.home_activities_button {
    background: linear-gradient(90deg, #9ca3af, #9fa2a9) !important;
    border-color: #9ca3af !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.95rem !important;
}

.home_news_button:hover,
.home_programs_button:hover,
.home_activities_button:hover {
    background: linear-gradient(90deg, #6b7280, #4b5563) !important;
    border-color: #6b7280 !important;
}

/* Programs Grid Section */
.program-header-section {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0fffe 0%, #e8f8f8 100%);
    position: relative;
    overflow: hidden;
}

.program-header-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(25, 135, 135, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.breadcrumb-link {
    color: var(--primary-turquoise);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--dark-turquoise);
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: var(--text-gray);
    font-weight: 500;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-turquoise);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.programs-grid-section {
    padding: 80px 0;
    background: white;
}

/* Program Card */
.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(25, 135, 135, 0.1);
}

.program-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--light-turquoise),
        var(--primary-turquoise)
    );
}

.program-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(25, 135, 135, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover .program-card-overlay {
    opacity: 1;
}

.program-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card-date {
    font-size: 0.9rem;
    color: var(--primary-turquoise);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.program-card-date i {
    margin-right: 0.5rem;
}

.program-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-turquoise);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.program-card:hover .program-card-title {
    color: var(--primary-turquoise);
}

.program-card-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #f3f4a2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid transparent;
}

.program-card-link:hover {
    background: #dbdc72;
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(25, 135, 135, 0.3);
}

.program-card-link i {
    transition: transform 0.3s ease;
}

/* Program Card Featured (New Design) */
.program-card-featured {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.program-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.program-card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.program-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card-featured:hover .program-card-image-container img {
    transform: scale(1.1);
}

.program-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 1;
}

.program-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    color: white;
    display: flex;
    align-items: flex-end;
    height: 100%;
    justify-content: flex-end;
    z-index: 2;
}

.program-info-content {
    width: 100%;
}

.program-info-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideUpIn 0.6s ease forwards;
    animation-delay: 0.1s;
}

.program-info-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: white;
    opacity: 0;
    animation: slideUpIn 0.6s ease forwards;
    animation-delay: 0.2s;
}

.program-info-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: slideUpIn 0.6s ease forwards;
    animation-delay: 0.3s;
}

.program-info-meta i {
    margin-right: 0.5rem;
}

.program-card-featured:hover .program-info-label {
    opacity: 1;
}

.program-card-featured:hover .program-info-title {
    opacity: 1;
}

.program-card-featured:hover .program-info-meta {
    opacity: 1;
}

/* Program Card Link Wrapper */
.program-card-link-wrapper {
    display: block;
    height: 100%;
    color: inherit;
    transition: none;
}

.program-card-link-wrapper:hover {
    color: inherit;
    text-decoration: none;
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Detail Page */
.news-detail-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f0fffe 0%, #e8f8f8 100%);
    min-height: calc(100vh - 80px);
}

/* Back Button Styles */
.back-button-wrapper {
    margin-bottom: 2rem;
    display: flex;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(198, 43, 43, 0.1);
    color: #343232;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid rgba(25, 135, 135, 0.2);
}

.back-button:hover {
    background: rgba(7, 7, 7, 0.2);
    border-color: var(--primary-turquoise);
    transform: translateX(-4px);
    color: #000;
}

.back-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-3px);
}

.back-text {
    font-size: 0.95rem;
}

.news-detail-header {
    margin-bottom: 1.5rem;
}

.news-date {
    color: var(--primary-turquoise);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.news-detail-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 3rem;
}

.news-detail-image-wrapper {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #ffffff;
}

.news-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    padding: 3.5rem;
}

.news-detail-text {
    padding: 3rem;
}

/* Typography Styles */
.news-detail-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-turquoise);
}

.news-detail-text h2:first-child {
    margin-top: 0;
}

.news-detail-text h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.news-detail-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #555;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-detail-text h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #666;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.news-detail-text h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #777;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-detail-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.news-detail-text p:last-child {
    margin-bottom: 0;
}

/* Strong and Emphasis */
.news-detail-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.news-detail-text em,
.news-detail-text i {
    font-style: italic;
    color: #555;
}

/* Links */
.news-detail-text a {
    color: var(--primary-turquoise);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    word-break: break-word;
}

.news-detail-text a:hover {
    color: #1a8b8b;
    border-bottom-color: var(--primary-turquoise);
}

/* Lists */
.news-detail-text ul,
.news-detail-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.news-detail-text ul li,
.news-detail-text ol li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 0.875rem;
    padding-left: 0.5rem;
}

.news-detail-text ul li:last-child,
.news-detail-text ol li:last-child {
    margin-bottom: 0;
}

/* Unordered Lists */
.news-detail-text ul {
    list-style-type: none;
}

.news-detail-text ul li::before {
    content: "●";
    color: var(--primary-turquoise);
    font-weight: bold;
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
    font-size: 1.2em;
}

/* Ordered Lists */
.news-detail-text ol {
    counter-reset: item;
    list-style: none;
}

.news-detail-text ol li {
    counter-increment: item;
    position: relative;
}

.news-detail-text ol li::before {
    content: counter(item) ".";
    color: var(--primary-turquoise);
    font-weight: 700;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
    font-size: 1.1em;
}

/* ========================================
   NESTED LISTS - Decrease/Increase Indent
   ======================================== */

/* Nested Unordered Lists - Level 2 */
.news-detail-text ul ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 2.5rem;
}

.news-detail-text ul ul li::before {
    content: "○";
    font-size: 1.1em;
}

/* Nested Unordered Lists - Level 3 */
.news-detail-text ul ul ul li::before {
    content: "■";
    font-size: 0.9em;
}

/* Nested Ordered Lists - Level 2 */
.news-detail-text ol ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 2.5rem;
    counter-reset: item-level-2;
}

.news-detail-text ol ol > li {
    counter-increment: item-level-2;
}

.news-detail-text ol ol > li::before {
    content: counter(item-level-2, lower-alpha) ".";
}

/* Nested Ordered Lists - Level 3 */
.news-detail-text ol ol ol {
    counter-reset: item-level-3;
}

.news-detail-text ol ol ol > li {
    counter-increment: item-level-3;
}

.news-detail-text ol ol ol > li::before {
    content: counter(item-level-3, lower-roman) ".";
}

/* Nested Ordered Lists - Level 4 */
.news-detail-text ol ol ol ol {
    counter-reset: item-level-4;
}

.news-detail-text ol ol ol ol > li {
    counter-increment: item-level-4;
}

.news-detail-text ol ol ol ol > li::before {
    content: counter(item-level-4, upper-alpha) ".";
}

/* Nested Ordered Lists - Level 5+ */
.news-detail-text ol ol ol ol ol {
    counter-reset: item-level-5;
}

.news-detail-text ol ol ol ol ol > li {
    counter-increment: item-level-5;
}

.news-detail-text ol ol ol ol ol > li::before {
    content: counter(item-level-5, upper-roman) ".";
}

/* Mixed nested lists */
.news-detail-text ul ol,
.news-detail-text ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 2.5rem;
}

/* Blockquote */
.news-detail-text blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f0fffe 0%, #e8f8f8 100%);
    border-left: 5px solid var(--primary-turquoise);
    border-radius: 0 12px 12px 0;
    position: relative;
    font-style: italic;
}

.news-detail-text blockquote::before {
    content: "";
    font-size: 4rem;
    color: var(--primary-turquoise);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    line-height: 1;
}

.news-detail-text blockquote p {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.news-detail-text blockquote p:last-child {
    margin-bottom: 0;
}

/* Table Styles */
.news-detail-text figure.table {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-detail-text table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 1rem;
    /* min-width: 600px; */
    border: 1px solid #e0e0e0;
}

.news-detail-text table thead {
    background: linear-gradient(
        135deg,
        var(--primary-turquoise) 0%,
        #1a8b8b 100%
    );
}

.news-detail-text table thead tr th {
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-detail-text table tbody tr {
    transition: background-color 0.3s ease;
}

.news-detail-text table tbody tr:nth-child(even) {
    background-color: #f9fafa;
}

.news-detail-text table tbody tr:hover {
    background-color: #f0fffe;
}

.news-detail-text table tbody tr td {
    padding: 1rem 1.25rem;
    color: var(--text-gray);
    border: 1px solid #e8e8e8;
    vertical-align: top;
}

/* Merged Cells Styling */
.news-detail-text table td[colspan],
.news-detail-text table th[colspan] {
    text-align: center;
    font-weight: 600;
    background-color: #f0fffe;
}

.news-detail-text table td[rowspan],
.news-detail-text table th[rowspan] {
    vertical-align: middle;
    font-weight: 600;
    background-color: #f8fffe;
}

/* Multiple paragraphs in table cells */
.news-detail-text table td p,
.news-detail-text table th p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.news-detail-text table td p:last-child,
.news-detail-text table th p:last-child {
    margin-bottom: 0;
}

/* ========================================
   EMBEDDED MEDIA - YouTube, Videos, etc.
   ======================================== */
.news-detail-text figure.media {
    margin: 2.5rem 0;
    position: relative;
    width: 100%;
}

.news-detail-text figure.media oembed {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #000;
}

.news-detail-text figure.media oembed::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(32, 178, 170, 0.1) 0%,
        rgba(26, 139, 139, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Responsive iframes for embedded content */
.news-detail-text figure.media iframe,
.news-detail-text figure.media embed,
.news-detail-text figure.media object,
.news-detail-text figure.media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Direct iframe embeds (not in figure.media) */
.news-detail-text iframe {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin: 2rem 0;
}

/* Code Blocks */
.news-detail-text pre {
    background: #2d2d2d;
    color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-detail-text code {
    background: #f5f5f5;
    color: #e74c3c;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    word-break: break-word;
}

.news-detail-text pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Horizontal Rule */
.news-detail-text hr {
    border: none;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary-turquoise),
        transparent
    );
    margin: 2.5rem 0;
}

/* Post Navigation - Minimalist & Elegant */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid #c83737;
    margin-top: 2rem;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f66e6e;
    border-radius: 40px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
   
    position: relative;
}

.post-nav-link:hover {
    background: #f74747;
    border-color: #2c3e50;
    transform: none;
    box-shadow: none;
    color: #989b9e;
    scale: 1.1;
}

.nav-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #ebebeb;
}

.post-nav-link:hover .nav-arrow {
    color: #ffffff;
}

.post-nav-link.prev-post:hover .nav-arrow {
    transform: translateX(-2px);
}

.post-nav-link.next-post:hover .nav-arrow {
    transform: translateX(2px);
}

.nav-text {
    font-size: 0.95rem;
    color: #ebebeb;
}

.post-nav-link:hover .nav-text {
    color: #ffffff;
}

/* Atau alternatif kedua yang lebih flat dan clean */
.post-navigation.alternative {
    border-top: none;
    padding: 1.5rem 0;
}

.post-navigation.alternative .post-nav-link {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.post-navigation.alternative .post-nav-link:hover {
    background: transparent;
    border-bottom-color: #2c3e50;
}

/* Atau alternatif ketiga yang super minimal */
.post-navigation.minimal {
    border-top: none;
}

.post-navigation.minimal .post-nav-link {
    border: none;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #495057;
}

.post-navigation.minimal .post-nav-link:hover {
    background: #e9ecef;
    color: #2c3e50;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .post-navigation {
        border-top-color: #404040;
    }
    
    .post-nav-link {
        color: #e9ecef;
        border-color: #404040;
        background: transparent;
    }
    
    .post-nav-link:hover {
        background: #2a2a2a;
        border-color: #666;
        color: #e9ecef;
    }
    
    .nav-text {
        color: #adb5bd;
    }
    
    .nav-arrow {
        color: #868e96;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .post-nav-link {
        justify-content: space-between;
    }
}

@media (max-width: 375px) {
    .activity-image-wrapper {
        min-height: 160px;
    }

    .activity-title {
        font-size: 0.95rem;
    }

    .activity-content p {
        font-size: 0.9rem;
    }

    .news-detail-section {
        padding: 50px 0 35px;
    }

    .news-detail-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .news-date {
        font-size: 0.85rem;
    }

    .news-detail-text {
        padding: 1.25rem 1rem;
    }

    /* Typography */
    .news-detail-text h2 {
        font-size: 1.25rem;
    }

    .news-detail-text h3 {
        font-size: 1.15rem;
    }

    .news-detail-text h4 {
        font-size: 1.05rem;
    }

    .news-detail-text h5 {
        font-size: 1.05rem;
    }

    .news-detail-text h6 {
        font-size: 0.95rem;
    }

    .news-detail-text p,
    .news-detail-text ul li,
    .news-detail-text ol li {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .news-detail-image-wrapper {
        height: 220px;
    }

    /* Lists - Mobile Portrait */
    .news-detail-text ul,
    .news-detail-text ol {
        padding-left: 1.25rem;
        margin: 1rem 0;
    }

    .news-detail-text ul li,
    .news-detail-text ol li {
        margin-bottom: 0.65rem;
        padding-left: 0.3rem;
    }

    .news-detail-text ul ul,
    .news-detail-text ol ol,
    .news-detail-text ul ol,
    .news-detail-text ol ul {
        padding-left: 1.75rem;
        margin-top: 0.4rem;
        margin-bottom: 0.4rem;
    }

    /* Smaller bullets for mobile */
    .news-detail-text ul li::before {
        font-size: 1em;
        width: 1em;
        margin-left: -1em;
    }

    .news-detail-text ol li::before {
        width: 1.25em;
        margin-left: -1.25em;
        font-size: 0.95em;
    }

    /* Nested list bullets - smaller on mobile */
    .news-detail-text ul ul li::before {
        font-size: 0.95em;
    }

    .news-detail-text ul ul ul li::before {
        font-size: 0.85em;
    }

    .news-detail-text figure.table {
        margin: 1.25rem -1.25rem;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e8e8e8;
        border-bottom: 1px solid #e8e8e8;
    }

    .news-detail-text table {
        font-size: 0.85rem;
        min-width: 450px;
        border-radius: 0;
    }

    .news-detail-text table thead tr th,
    .news-detail-text table tbody tr td {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    .news-detail-text table td p,
    .news-detail-text table th p {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
        line-height: 1.5;
    }

    /* Merged cells - Mobile Portrait */
    .news-detail-text table td[colspan],
    .news-detail-text table th[colspan],
    .news-detail-text table td[rowspan],
    .news-detail-text table th[rowspan] {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Media embeds - Mobile Portrait */
    .news-detail-text figure.media {
        margin: 1.5rem -1.25rem;
        border-radius: 0;
    }

    .news-detail-text figure.media oembed {
        border-radius: 0;
        box-shadow: none;
        padding-bottom: 56.25%;
    }

    .news-detail-text iframe {
        border-radius: 8px;
        margin: 1.5rem 0;
    }

    .news-detail-text blockquote {
        padding: 0.75rem 1rem;
    }

    .news-detail-text blockquote::before {
        font-size: 2rem;
    }

    .post-nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .services-grid {
        gap: 15px;
    }

    .services-container {
        padding: 30px 10px;
    }

    .service-card-image {
        height: 200px;
    }

    .service-card-content {
        padding: 20px 15px;
    }

    .service-card-title {
        font-size: 1.2rem;
    }

    .service-card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .partner-card {
        height: 110px;
        padding: 1rem 0.75rem;
    }

    .partner-name {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .services-container {
        padding: 30px 15px;
    }

    .service-card {
        max-width: 100%;
    }

    .service-card-image {
        height: 200px;
    }

    .service-card-content {
        padding: 25px 20px;
    }

    .service-card-title {
        font-size: 1.35rem;
    }

    .service-card-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item {
        padding-left: 1.2rem;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        left: -6px;
        width: 10px;
        height: 10px;
    }

    .activity-content {
        padding: 1rem;
    }

    .activity-title {
        font-size: 1rem;
    }

    .activity-date {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .activity-date i {
        font-size: 0.85rem;
    }

    .activity-image-wrapper {
        min-height: 180px;
    }

    .activity-image-overlay i {
        font-size: 2rem;
    }

    /* Adjust flex wrap for mobile */
    .d-flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .news-detail-section {
        padding: 70px 0 50px;
    }

    .news-detail-header {
        margin-bottom: 1.25rem;
    }

    .news-date {
        font-size: 0.875rem;
    }

    .news-detail-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .news-detail-content {
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .news-detail-text {
        padding: 1.75rem 1.5rem;
    }

    .news-detail-text h2 {
        font-size: 1.5rem;
        margin-top: 1.75rem;
        margin-bottom: 1rem;
        border-bottom-width: 2px;
    }

    .news-detail-text h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .news-detail-text h4 {
        font-size: 1.15rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .news-detail-text h5 {
        font-size: 1.05rem;
    }

    .news-detail-text h6 {
        font-size: 0.95rem;
    }

    .news-detail-text p,
    .news-detail-text ul li,
    .news-detail-text ol li {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .news-detail-text ul,
    .news-detail-text ol {
        padding-left: 1.5rem;
        margin: 1.25rem 0;
    }

    .news-detail-text ul li,
    .news-detail-text ol li {
        margin-bottom: 0.75rem;
    }

    .news-detail-text ul ul,
    .news-detail-text ol ol,
    .news-detail-text ul ol,
    .news-detail-text ol ul {
        padding-left: 2rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .news-detail-text ul li::before {
        font-size: 1.1em;
        width: 1.1em;
        margin-left: -1.1em;
    }

    .news-detail-text ol li::before {
        width: 1.35em;
        margin-left: -1.35em;
        font-size: 1em;
    }

    /* Tables - Mobile Landscape */
    .news-detail-text figure.table {
        margin: 1.5rem 0;
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .news-detail-text table {
        font-size: 0.9rem;
        min-width: 500px;
    }

    .news-detail-text table tbody tr td,
    .news-detail-text table thead tr th {
        padding: 0.75rem 0.9rem;
        white-space: nowrap;
    }

    .news-detail-text table td p,
    .news-detail-text table th p {
        font-size: 0.9rem;
        white-space: normal;
    }

    /* Merged cells - Mobile Landscape */
    .news-detail-text table td[colspan],
    .news-detail-text table th[colspan] {
        white-space: normal;
    }

    /* Media embeds - Mobile Landscape */
    .news-detail-text figure.media {
        margin: 1.75rem 0;
    }

    .news-detail-text figure.media oembed {
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    /* Blockquote */
    .news-detail-text blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
        border-radius: 0 10px 10px 0;
    }

    .news-detail-text blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 10px;
    }

    .news-detail-text blockquote p {
        font-size: 1rem;
    }

    .news-detail-image-wrapper {
        height: 300px;
    }

    .news-detail-text figure.table {
        margin: 1.5rem -1.5rem;
        border-radius: 0;
    }

    .news-detail-text table {
        font-size: 0.875rem;
        min-width: 450px;
    }

    .news-detail-text table thead tr th,
    .news-detail-text table tbody tr td {
        padding: 0.75rem 0.875rem;
    }

    .news-detail-text pre {
        padding: 1.25rem;
        font-size: 0.875rem;
        margin: 1.25rem -1.5rem;
        border-radius: 0;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .post-nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    /* Responsive adjustments for About page */
    .about-hero {
        background-attachment: scroll;
        min-height: 50vh;
        text-align: center;
    }

    .about-image-placeholder {
        height: 200px;
        margin-top: 2rem;
    }

    .mission-card {
        padding: 1.5rem;
    }

    .mission-icon {
        width: 60px;
        height: 60px;
    }

    .mission-icon i {
        font-size: 1.5rem;
    }

    .goal-emoji {
        font-size: 2rem;
        min-width: 50px;
    }

    .goal-item {
        padding: 1rem;
    }

    /* Services page mobile adjustments */
    .services-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px;
    }

    .service-card-image {
        height: 200px;
    }

    .service-card-content {
        padding: 20px;
    }

    .service-card-title {
        font-size: 1.25rem;
    }

    .service-card-description {
        font-size: 0.95rem;
    }

    .services-container {
        padding: 50px 15px;
    }

    /* Projects page mobile adjustments */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .project-image {
        height: 200px;
    }

    .project-overlay {
        padding: 1rem;
    }

    .project-content h4 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.85rem;
    }

    /* Contact page mobile adjustments */
    .contact-header h1 {
        font-size: 2.5rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-link {
        padding: 1rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-details h4 {
        font-size: 1rem;
    }

    /* Responsive Design for News */
    .news-listing-header {
        padding: 120px 0 40px;
    }

    .news-listing-title {
        font-size: 2rem;
    }

    .news-listing-subtitle {
        font-size: 1rem;
    }

    .news-list-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .news-list-image-wrapper {
        height: 220px;
    }

    .news-list-title {
        font-size: 1.3rem;
    }

    .news-list-description {
        font-size: 0.95rem;
    }

    .btn-read-more {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Programs Grid Responsive */
    .program-header-section {
        padding: 100px 0 40px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.05rem;
    }

    .program-card-image-wrapper {
        height: 220px;
    }

    .program-card-content {
        padding: 1.5rem;
    }

    .program-card-title {
        font-size: 1.25rem;
    }

    .program-card-description {
        font-size: 0.95rem;
    }

    .program-card-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Responsive Design for News Detail */
    .news-detail-section {
        padding: 80px 0 60px;
    }

    .news-detail-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .news-detail-image-wrapper {
        height: 300px;
    }

    .news-detail-text {
        padding: 2rem 1.5rem;
    }

    .news-detail-text p {
        font-size: 1rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .post-nav-link {
        width: 100%;
        justify-content: center;
    }

    .post-nav-link.prev-post {
        order: 2;
    }

    .post-nav-link.next-post {
        order: 1;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: 10px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .timeline-marker {
        left: -8px;
        width: 12px;
        height: 12px;
        border: 2px solid white;
        box-shadow: 0 0 0 2px var(--primary-turquoise);
    }

    .activity-card {
        border-radius: 12px;
    }

    .activity-card:hover {
        transform: translateX(5px) translateY(-3px);
    }

    .activity-image-wrapper {
        min-height: 200px;
        margin-bottom: 0;
    }

    .activity-content {
        padding: 1.25rem;
    }

    .activity-title {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }

    .activity-date {
        font-size: 0.85rem;
        padding: 0.35rem 0.75rem;
        margin-top: 0.5rem;
    }

    /* Stack image on top for mobile */
    .activity-card.with-image .row {
        flex-direction: column;
    }

    .activity-card.with-image .col-md-4,
    .activity-card.with-image .col-md-8 {
        width: 100%;
        max-width: 100%;
    }

    .news-detail-section {
        padding: 80px 0 60px;
    }

    .news-detail-title {
        font-size: 2rem;
        margin-bottom: 1.75rem;
    }

    .news-detail-content {
        border-radius: 16px;
    }

    .news-detail-text {
        padding: 2rem;
    }

    /* Typography */
    .news-detail-text h2 {
        font-size: 1.7rem;
        margin-top: 2rem;
        margin-bottom: 1.25rem;
    }

    .news-detail-text h3 {
        font-size: 1.4rem;
        margin-top: 1.75rem;
    }

    .news-detail-text h4 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    .news-detail-text h5 {
        font-size: 1.1rem;
    }

    .news-detail-text h6 {
        font-size: 1rem;
    }

    .news-detail-text p,
    .news-detail-text ul li,
    .news-detail-text ol li {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Lists - Tablet */
    .news-detail-text ul,
    .news-detail-text ol {
        padding-left: 1.75rem;
        margin: 1.25rem 0;
    }

    .news-detail-text ul ul,
    .news-detail-text ol ol,
    .news-detail-text ul ol,
    .news-detail-text ol ul {
        padding-left: 2.25rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Tables - Tablet */
    .news-detail-text figure.table {
        margin: 1.75rem 0;
        border-radius: 10px;
    }

    .news-detail-text table {
        font-size: 0.95rem;
    }

    .news-detail-text table tbody tr td,
    .news-detail-text table thead tr th {
        padding: 0.85rem 1.1rem;
    }

    .news-detail-text table td p,
    .news-detail-text table th p {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    /* Merged cells - Tablet */
    .news-detail-text table td[colspan],
    .news-detail-text table th[colspan],
    .news-detail-text table td[rowspan],
    .news-detail-text table th[rowspan] {
        padding: 1rem 1.15rem;
    }

    /* Media embeds - Tablet */
    .news-detail-text figure.media {
        margin: 2rem 0;
    }

    .news-detail-text figure.media oembed {
        border-radius: 10px;
    }

    .news-detail-text blockquote {
        padding: 1.25rem 1.75rem;
        margin: 1.75rem 0;
    }

    .news-detail-text blockquote::before {
        font-size: 3.5rem;
        top: -8px;
        left: 12px;
    }

    .news-detail-text blockquote p {
        font-size: 1.05rem;
    }

    .news-detail-image-wrapper {
        height: 400px;
    }

    .news-detail-text ul,
    .news-detail-text ol {
        padding-left: 1.75rem;
    }

    .news-detail-text table {
        font-size: 0.95rem;
        min-width: 500px;
    }

    .news-detail-text table thead tr th,
    .news-detail-text table tbody tr td {
        padding: 0.875rem 1rem;
    }

    .post-navigation {
        gap: 1.5rem;
    }

    .post-nav-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .nav-arrow {
        font-size: 1.35rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /*  Projects page tablet adjustments */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    /*  Contact page mobile adjustments */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 991.98px) {
    .partner-card {
        height: 130px;
        padding: 1.5rem 1rem;
    }

    .partner-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .activity-card.with-image .activity-content {
        padding: 1.5rem;
    }

    .activity-image-wrapper {
        min-height: 180px;
    }

    .news-detail-section {
        padding: 90px 0 70px;
    }

    .news-detail-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    .news-detail-text {
        padding: 2.5rem;
    }

    .news-detail-text h2 {
        font-size: 1.85rem;
    }

    .news-detail-text h3 {
        font-size: 1.5rem;
    }

    .news-detail-text h4 {
        font-size: 1.25rem;
    }

    .news-detail-text p,
    .news-detail-text ul li,
    .news-detail-text ol li {
        font-size: 1.05rem;
    }

    .news-detail-image-wrapper {
        height: 450px;
    }

    .post-nav-link {
        padding: 0.875rem 1.75rem;
    }
}

@media (min-width: 1025px) {
    /*  Projects page desktop adjustments */
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-detail-title {
        font-size: 2.5rem;
    }

    .news-detail-image-wrapper {
        height: 500px;
    }
}

@media (min-width: 1400px) {
    .news-detail-section {
        padding: 120px 0 100px;
    }

    .news-detail-title {
        font-size: 3rem;
    }

    .news-detail-text {
        padding: 3.5rem;
    }

    .news-detail-text h2 {
        font-size: 2.25rem;
    }

    .news-detail-text h3 {
        font-size: 1.75rem;
    }

    .news-detail-image-wrapper {
        height: 600px;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .news-detail-text {
        padding: 2.5rem;
    }

    .news-detail-title {
        font-size: 2.25rem;
    }

    /* Table adjustments for large tablets */
    .news-detail-text table tbody tr td,
    .news-detail-text table thead tr th {
        padding: 0.9rem 1.15rem;
    }
}

/* ===== HOMEPAGE REDESIGN STYLES ===== */

/* About Section Redesign */
.about-section-redesigned {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef5 100%);
    position: relative;
}

.about-content {
    padding: 2rem 0;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #4b5563;
    transition: all 0.3s ease;
}

.about-features li:hover {
    transform: translateX(10px);
}

.about-features i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    margin-left: auto; /* Posisi ke kanan */
    margin-right: 0; /* Pastikan rata kanan */
    float: right; /* Float ke kanan */
    border-radius: 10px; /* Hilangkan border radius */
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 0 !important; /* Hilangkan border radius pada gambar */
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 71, 161, 0.5),
        rgba(0, 0, 0, 0.25)
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-stat {
    text-align: center;
    width: 100%;
}

.about-stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Hero Section Redesign */
.hero-section-redesigned {
    min-height: 650px;
    background-image: url("/assets/img/hero.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-overlay-redesigned {
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section-redesigned::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.45)
    );
    z-index: 0;
}

.hero-badge {
    display: inline-block;
}

.hero-badge .badge {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(25, 135, 84, 0.15) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero-title-redesigned {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1.5rem 0 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: #e0e7ff;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-group .btn-outline-light {
    border: 2px solid white;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-group .btn-outline-light:hover {
    background-color: white;
    color: #1e3c72;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.hero-cta-group .btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-group .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-section-redesigned {
        min-height: 500px;
    }

    .hero-title-redesigned {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta-group .btn {
        width: 100%;
    }
}

/* News Section Redesign */
.news-section-redesigned {
    background: #f8f9fa;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(13, 71, 161, 0.1);
    color: #0d47a1;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    margin-bottom: 3rem;
}

.news-card-redesigned {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-card-redesigned:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-redesigned:hover .news-card-image {
    transform: scale(1.08);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.news-card-redesigned:hover .news-card-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-body {
    padding: 1.75rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.news-category {
    display: inline-block;
    background: rgba(13, 71, 161, 0.1);
    color: #0d47a1;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.news-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.news-card-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-card-link {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.news-card-link:hover {
    color: #1565c0;
    gap: 0.5rem;
}

/* Programs Section Redesign */
.programs-section-redesigned {
    background: #f8f9fa;
}

.program-type-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 71, 161, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Tambahkan ini */
}

.program-type-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8fe9c8, #fff7b1);
}

.program-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(205, 210, 217, 0.1),
        rgba(21, 101, 192, 0.1)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #7fe8d3;
    transition: all 0.3s ease;
}

.program-type-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.program-type-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Tambahkan ini */
}

.program-type-link {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto; /* Tambahkan ini */
    justify-content: center;
}

.program-type-link:hover {
    color: #c01515;
    gap: 1rem;
}

.programs-recent-section {
    padding-top: 3rem;
}

.program-card-redesigned {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.program-card-redesigned:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-card-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.program-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card-redesigned:hover .program-card-image {
    transform: scale(1.1);
}

.program-card-overlay-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.program-card-redesigned:hover .program-card-overlay-new {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #0d47a1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.program-card-body {
    padding: 1.75rem;
}

.program-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.program-card-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.program-card-link {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.program-card-link:hover {
    color: #1565c0;
}

/* Activities Section Redesign */
.activities-section-redesigned {
    background: white;
}

.activity-card-redesigned {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-card-redesigned:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.activity-card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-card-no-image {
    height: 220px;
    background: linear-gradient(
        135deg,
        rgba(13, 71, 161, 0.1),
        rgba(21, 101, 192, 0.1)
    );
}

.activity-card-redesigned:hover .activity-card-image {
    transform: scale(1.08);
}

.activity-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.activity-card-redesigned:hover .activity-card-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.activity-card-body {
    padding: 1.75rem;
}

.activity-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.activity-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.activity-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.activity-card-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.activity-card-link {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.activity-card-link:hover {
    color: #1565c0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .program-type-card {
        padding: 2rem 1.5rem;
    }

    .program-type-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section-redesigned {
        min-height: 450px;
    }

    .hero-title-redesigned {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .news-card-image-wrapper,
    .program-card-image-wrapper,
    .activity-card-image-wrapper {
        height: 180px;
    }

    .program-type-title {
        font-size: 1.2rem;
    }

    .program-type-desc {
        font-size: 0.9rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
    }
}

/* Impact Stats Section */
.impact-stats-section {
    background: linear-gradient(135deg, #c3f7e7 0%, #8caaaa 20%, #a6c3bb 30%);
    color: white;
    position: relative;
    overflow: hidden;
}

.impact-stats-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.impact-stats-section .section-header {
    position: relative;
    z-index: 1;
}

.stat-item-redesigned {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #515353;
    transition: all 0.3s ease;
}

.stat-item-redesigned:hover .stat-icon {
    background: rgba(146, 147, 147, 0.2);
    transform: scale(1.1) rotate(10deg);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(39, 35, 35, 0.8);
    margin: 0;
}

@media (max-width: 576px) {
    .hero-title-redesigned {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .news-card-redesigned,
    .program-card-redesigned,
    .activity-card-redesigned {
        margin-bottom: 1rem;
    }

    .program-type-card {
        padding: 1.75rem 1rem;
    }

    .program-type-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.75rem !important;
    }

    .about-image-container {
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* === Background images and subtle decorative backgrounds === */
.hero-section-redesigned {
    background-attachment: fixed;
}

.about-image-container .about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programs-section-redesigned .row > div:nth-child(1) .program-type-card::after,
.programs-section-redesigned .row > div:nth-child(2) .program-type-card::after,
.programs-section-redesigned .row > div:nth-child(3) .program-type-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.06;
    background-size: cover;
    background-position: center center;
    border-radius: 12px;
    pointer-events: none;
}

.programs-section-redesigned .row > div:nth-child(1) .program-type-card::after {
    background-image: url("/assets/img/reforestation.jpg");
}
.programs-section-redesigned .row > div:nth-child(2) .program-type-card::after {
    background-image: url("/assets/img/environmental-conservation-garden-children.jpg");
}
.programs-section-redesigned .row > div:nth-child(3) .program-type-card::after {
    background-image: url("/assets/img/wildlife-protection.jpg");
}

.programs-section-redesigned .program-type-card {
    position: relative;
    z-index: 1;
}

/* News fallback background for cards without images */
.news-card-image-wrapper.bg-gradient {
    background-image: url("/assets/img/ocean-conservation.jpg");
    background-size: cover;
    background-position: center center;
}

/* Slight parallax touch for hero on large screens */
@media (min-width: 992px) {
    .hero-section-redesigned {
        background-attachment: fixed;
    }
}

/* Micro-interactions & polish */
:root {
    --card-floating: 8px;
}

.card-float {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
        box-shadow 0.35s ease;
}
.card-float:hover {
    transform: translateY(calc(-1 * var(--card-floating))) scale(1.02);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.btn-gradient {
    background: var(--btn-gradient);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.15);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(13, 71, 161, 0.25);
}

.icon-bop {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.icon-bop:hover {
    transform: translateY(-6px) rotate(-6deg) scale(1.06);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card-float,
    .btn-gradient,
    .icon-bop,
    .news-card-redesigned,
    .program-card-redesigned,
    .activity-card-redesigned {
        transition: none !important;
        transform: none !important;
    }
}

/* Utility: subtle shimmer for CTA if needed */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shimmer 2.2s linear infinite;
    pointer-events: none;
}
@keyframes shimmer {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* Clamp utility (fallbacks already applied to selectors) */
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}
