:root {
    --color-brand: #0f4c81;
    --color-brand-deep: #0b2f51;
    --color-brand-soft: #d8e7f3;
    --color-accent: #c76c29;
    --color-bg: #f4f1eb;
    --color-surface: #ffffff;
    --color-surface-alt: #f8fbff;
    --color-border: rgba(11, 47, 81, 0.12);
    --color-text: #1d2a34;
    --color-muted: #61707b;
    --color-success: #156b52;
    --color-error: #b33a3a;
    --shadow-card: 0 20px 50px rgba(11, 47, 81, 0.12);
    --shadow-soft: 0 10px 30px rgba(11, 47, 81, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f7f4ed 0%, #f8fbff 55%, #f4f1eb 100%);
    color: var(--color-text);
    line-height: 1.6;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 1rem;
    color: var(--color-brand-deep);
    line-height: 1.15;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 4.5rem 0;
}

.section-tight {
    padding: 3rem 0;
}

.eyebrow {
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
}

.button,
button,
input,
textarea,
select {
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.button:hover {
    transform: perspective(500px) translateZ(10px) translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12), 0 4px 6px rgba(0,0,0,0.06);
    z-index: 2;
}

.button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-primary {
    background: var(--color-brand);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-brand-deep);
    border: 1px solid var(--color-border);
}

.button-small {
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
}

.button-donate {
    background: #e63946;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    animation: heartPulse 2.5s infinite ease-in-out;
    border-radius: 24px;
    border: 2px solid transparent;
    will-change: transform, box-shadow;
}

.button-donate span {
    margin-right: 6px;
    font-size: 1.2rem;
    display: inline-block;
    animation: heartBeat 1s infinite alternate;
}

.button-donate:hover {
    background: #ffffff;
    color: #e63946 !important;
    border-color: #e63946;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

@keyframes heartPulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); }
}

@keyframes heartBeat {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 255, 0.88);
    border-bottom: 1px solid rgba(11, 47, 81, 0.08);
}




.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.15);
    border: 2px solid #fff;
    background: #fff;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-deep) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.2);
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo-wrap {
    transform: rotate(5deg) scale(1.05);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 0.98rem;
}

.brand-copy .foundation-name {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 280px;
    color: var(--color-brand-deep);
}

.brand-copy .site-tagline {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 500;
}

.brand-copy span:not(.foundation-name) {
    font-size: 0.83rem;
    color: var(--color-muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.site-nav a {
    color: var(--color-muted);
    font-weight: 600;
    white-space: nowrap;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--color-brand-deep);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-brand-deep);
}

.flash-stack {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.flash {
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
    background: #fff;
    border-left: 4px solid var(--color-brand);
}

.flash-success {
    border-left-color: var(--color-success);
}

.flash-error {
    border-left-color: var(--color-error);
}

.card,
.panel,
.stats-card,
.list-card,
.feature-card,
.story-card,
.program-card,
.testimonial-card,
.empty-state,
.form-card,
.admin-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero {
    padding: 2rem 0 3rem;
}

.hero-main-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    background: #111;
}

.hero-media img,
.feature-media img,
.program-card > img,
.story-card > img,
.testimonial-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy,
.feature-copy,
.card-body,
.content-card {
    padding: 1.5rem 1.75rem; 
    flex-grow: 1;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 1.25rem;
}

.hero-copy p {
    font-size: 1.06rem;
}

.section-alt {
    background: rgba(216, 231, 243, 0.35);
}

.section-heading {
    margin-bottom: 1.75rem;
}

.section-heading h1,
.section-heading h2 {
    max-width: 760px;
}

.with-action {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

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

.align-start {
    align-items: start;
}

.program-card,
.story-card,
.list-card {
    overflow: hidden;
}

.program-card img,
.story-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.text-link {
    color: var(--color-brand);
    font-weight: 700;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.stats-card {
    padding: 1.75rem;
    text-align: center;
}

.stats-card strong {
    display: block;
    font-size: 2.2rem;
    color: var(--color-brand-deep);
}

.stats-card span {
    color: var(--color-muted);
}

.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slider {
    display: grid;
    gap: 1rem;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.testimonial-card {
    display: none;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
}

.testimonial-card.is-active {
    display: grid;
}

.testimonial-message {
    font-size: 1.1rem;
    color: var(--color-brand-deep);
}

.cta-banner {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-brand-deep), var(--color-brand));
    color: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.cta-banner h2,
.cta-banner p,
.cta-banner .eyebrow {
    color: inherit;
}

.content-card {
    padding: 2rem;
}

.map-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    background: #fff;
}

.map-card iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    border: 0;
    filter: grayscale(1) contrast(1.1) brightness(1.05);
    transition: filter 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-card:hover iframe {
    filter: grayscale(0) contrast(1) brightness(1);
}

.article-shell {
    max-width: 900px;
}

.article-card {
    overflow: hidden;
}

.article-body {
    padding: 2.5rem;
}

.article-image {
    margin: 1.5rem 0;
}

.story-excerpt {
    font-size: 1.08rem;
    color: var(--color-brand-deep);
}

.rich-text {
    display: grid;
    gap: 1rem;
}

.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 0 1rem;
    background: var(--color-brand-deep);
    color: rgba(255, 255, 255, 0.85);
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.site-footer h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.site-footer h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.site-footer p,
.site-footer a {
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

.empty-state {
    padding: 2.5rem;
    text-align: center;
}

.empty-state-large {
    padding: 4rem 2rem;
}

.form-card,
.admin-card {
    padding: 1.5rem;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--color-brand-deep);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="url"],
input[type="file"],
textarea,
select {
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(11, 47, 81, 0.16);
    background: #fff;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.95rem;
    border-bottom: 1px solid rgba(11, 47, 81, 0.08);
    text-align: left;
    vertical-align: top;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--color-brand-soft);
    color: var(--color-brand-deep);
}

.status-pill.success {
    background: rgba(21, 107, 82, 0.12);
    color: var(--color-success);
}

.status-pill.warning {
    background: rgba(199, 108, 41, 0.14);
    color: var(--color-accent);
}

.admin-body {
    background: #eef3f8;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    position: relative;
}

.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 47, 81, 0.4);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.admin-sidebar {
    padding: 1.5rem;
    background: var(--color-brand-deep);
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-admin .brand-copy strong,
.brand-admin .brand-copy span {
    color: #fff;
}

.admin-nav {
    display: grid;
    gap: 0.45rem;
}

.admin-nav a {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.admin-nav a.is-active,
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 0.8rem;
}

.admin-main {
    padding: 1.5rem;
}

.admin-section {
    margin-top: 1.5rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-menu-btn {
    display: none;
}

.topbar-title {
    flex: 1;
}

.admin-user-chip {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
}

.stack {
    display: grid;
    gap: 1rem;
}

.muted {
    color: var(--color-muted);
}

.table-wrap {
    overflow-x: auto;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--color-brand);
    font-weight: 700;
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11, 47, 81, 0.08);
}

.list-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(15, 76, 129, 0.12), transparent 45%), var(--color-bg);
}

.admin-login-wrapper {
    width: min(460px, calc(100% - 2rem));
}

.admin-login-card {
    padding: 2rem;
}

.image-preview,
.media-preview {
    border-radius: 18px;
    overflow: hidden;
    background: var(--color-surface-alt);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 76, 129, 0.12);
    color: var(--color-brand-deep);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        background: #fff;
        border: 0;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .admin-menu-btn span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: var(--color-brand-deep);
        border-radius: 2px;
    }

    .admin-main {
        padding: 1.25rem;
    }

    .admin-topbar h1 {
        font-size: 1.5rem;
    }

    .admin-user-chip {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .split,
    .hero-card,
    .story-feature,
    .testimonial-card,
    .cta-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    .nav-toggle span {
        margin: 0;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--color-border);
        border-radius: 24px;
        box-shadow: var(--shadow-card);
    }

    .site-nav.is-open {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero,
    .section {
        padding: 3rem 0;
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .card-body,
    .content-card,
    .hero-copy,
    .feature-copy,
    .article-body {
        padding: 1.4rem;
    }
}

.flash-fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hover-3d {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    will-change: transform;
}
.hover-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 2;
}

a.hover-3d {
    display: block;
}

.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.scroll-snap-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    scroll-snap-align: start;
    min-width: 280px;
}
.scrolling-wrapper::-webkit-scrollbar {
    height: 8px;
}
.scrolling-wrapper::-webkit-scrollbar-track {
    background: var(--color-background);
    border-radius: 4px;
}
.scrolling-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
.scrolling-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

.hero-slider-wrap {
    position: relative;
    width: 100%;
    height: 580px; 
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 10s linear;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 3;
}

.hero-floating-content {
    position: absolute;
    bottom: 12%;
    left: 8%;
    right: 8%;
    z-index: 10;
    color: #fff;
    max-width: 850px;
}

.hero-floating-content * {
    pointer-events: auto;
}

.floating-3d {
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.7),
        0 0 40px rgba(0,0,0,0.5);
    transform: translateZ(60px);
}

.hero-floating-content .eyebrow {
    color: var(--color-brand-soft);
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-floating-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); 
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 800;
}

.hero-floating-content .subtext {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 580px;
    margin-bottom: 2rem;
    opacity: 1;
    color: #ffffff;
    -webkit-text-stroke: 0.2px rgba(255,255,255,0.5);
    text-shadow: 
        0 0 1px rgba(0,0,0,1),
        0 0 3px rgba(0,0,0,1),
        0 4px 10px rgba(0,0,0,0.8);
}

.hero-slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 30;
    display: flex;
    gap: 0.75rem;
}

.hero-slider-controls button {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-slider-controls button:hover {
    background: #fff;
    color: var(--color-brand-deep);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero-slider-wrap {
        height: 550px;
    }
    .hero-floating-content {
        bottom: 15%;
        text-align: center;
    }
    .hero-floating-content .subtext {
        margin-inline: auto;
    }
    .hero-floating-content .button-row {
        justify-content: center;
    }
    .hero-slider-controls {
        display: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .admin-sidebar,
    .admin-topbar,
    .flash-stack,
    .button-row,
    .button,
    .actions-cell,
    form {
        display: none !important;
    }

    body, .admin-body, .admin-shell, .admin-main {
        background: transparent !important;
        color: #000 !important;
        margin: 0;
        padding: 0;
    }

    .card, .admin-card, .article-card {
        border: none !important;
        box-shadow: none !important;
    }
}

.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
    border: 1px solid var(--color-border);
}

.video-thumb-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.table-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.admin-table th {
    background: #f8fbff;
    padding: 1rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f9f9f9;
}

.admin-table tr:hover {
    background: #fcfdfe;
}

.upload-preview-wrap {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.upload-preview-wrap img, 
.upload-preview-wrap video {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--color-brand-soft);
}

.date-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #f0f4f8;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-brand-deep);
}

#page-skeleton {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    padding-top: 100px;
    transition: opacity 0.25s ease-out, visibility 0.25s;
}

.page-loaded #page-skeleton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#page-skeleton .sk-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
}

.sk-hero, .sk-card, .sk-title, .sk-text {
    background: linear-gradient(90deg, #f2f2f2 25%, #fafafa 50%, #f2f2f2 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 12px;
}

@keyframes shimmer {
    from { background-position: 150% 0; }
    to { background-position: -150% 0; }
}

.sk-hero { width: 100%; border-radius: 20px; }
.sk-card { height: 400px; }
.sk-title { height: 50px; margin-bottom: 1.5rem; }
.sk-text { height: 20px; width: 100%; margin-bottom: 1rem; border-radius: 6px; }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff !important;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.social-links a {
    background: var(--color-brand-soft);
    color: var(--color-brand-deep);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(15, 76, 129, 0.05);
}

.social-links a:hover {
    background: var(--color-brand);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.2);
}

.social-links a svg {
    display: block;
    transition: transform 0.3s ease;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

.story-stack .eyebrow {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    color: var(--color-brand);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.story-stack h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    background: linear-gradient(180deg, #0b2f51 0%, #1a5695 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
    filter: drop-shadow(0 4px 8px rgba(11, 47, 81, 0.2));
    margin-bottom: 1.5rem;
    position: relative;
}

.story-stack p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-dim);
}

.story-stack p:last-of-type {
    font-weight: 600;
    color: var(--color-brand-deep);
    border-left: 3px solid var(--color-brand-soft);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.activity-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--color-brand-soft);
    background: #f8fbff;
}

.activity-item strong {
    display: block;
    font-size: 1rem;
    color: var(--color-brand-deep);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.activity-item p {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.text-link {
    color: var(--color-brand);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--color-brand-deep);
    text-decoration: underline;
}

.text-small {
    font-size: 0.85rem;
}

.single-column {
    max-width: 600px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(15, 76, 129, 0.03);
    border-radius: 12px;
    width: fit-content;
}

.tab-link {
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tab-link:hover {
    color: var(--color-brand);
    background: #fff;
}

.tab-link.is-active {
    background: var(--color-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.15);
}

.divider {
    height: 1px;
    background: rgba(15, 76, 129, 0.08);
    margin: 2rem 0;
}

.seo-group summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.seo-group summary::after {
    content: '↓';
    font-size: 0.8rem;
    opacity: 0.5;
}

.seo-group[open] summary {
    background: var(--color-brand-soft);
    border-color: var(--color-brand);
    margin-bottom: 12px;
}

.seo-group[open] summary::after {
    content: '↑';
}

.notif-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: 0 15px 50px rgba(11, 47, 81, 0.18);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 10001;
    animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 768px) {
    .notif-banner {
        bottom: 30px;
        left: 30px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 550px;
    }
}

.notif-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.notif-icon {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--color-brand-soft) 0%, #fff 100%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.08);
}

.notif-text h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-brand-deep);
    letter-spacing: -0.01em;
}

.notif-text p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.notif-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-dismiss {
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-dismiss:hover {
    color: var(--color-error);
}

.btn-enable {
    background: var(--color-brand);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

.btn-enable:hover {
    background: var(--color-brand-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 76, 129, 0.25);
}

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

.brand-logo-wrap {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 25px rgba(15, 76, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: transform 0.3s ease;
}

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

.brand-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(15, 76, 129, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--color-brand-deep);
}

.admin-dashboard-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

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

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.activity-item:last-child { border-bottom: none; }

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.button-full {
    width: 100%;
    justify-content: center;
}

.foundation-name {
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-weight: 900;
    line-height: 1.05;
    display: block;
    color: var(--color-brand-deep);
}

.foundation-name.footer-version {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    background-clip: none;
    max-width: 400px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .brand-logo-wrap {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

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

.admin-details-popup {
    position: relative;
    cursor: pointer;
}
.admin-details-popup .details-content {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: 1rem;
    border-radius: 12px;
    width: 250px;
    text-align: left;
    white-space: normal;
    font-size: 0.85rem;
    color: var(--color-brand-deep);
}
.admin-details-popup summary {
    list-style: none;
    font-weight: 600;
    font-size: 0.85rem;
}
.admin-details-popup summary::-webkit-details-marker {
    display: none;
}

/* Partners Section */
.partners-section {
    padding: 3rem 0;
    overflow: hidden;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    align-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    perspective: 1000px;
    padding: 10px;
}

.partner-item img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.5s;
}

.partner-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.partner-item:hover img {
    transform: rotateX(8deg) rotateY(8deg);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .partner-item img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-item img {
        max-height: 60px;
    }
}
