/* ======================================================
   CARITAS MOROGORO — Main Stylesheet
   ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: url("/assets/images/pattern-thread.svg"), #f8f6f1;
    background-size: 400px;
    color: #1a1a1a;
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at top right,
            rgba(200, 16, 46, 0.05),
            transparent 45%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(200, 16, 46, 0.03),
            transparent 40%
        );
    pointer-events: none;
    z-index: -2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
}

/* ===== HEADER ===== */
.main-nav {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 12px rgba(26, 26, 26, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(200, 16, 46, 0.08);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
}

.main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.25rem;
    max-width: 1180px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    min-width: max-content;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

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

.brand-title {
    font-family: "Playfair Display", serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 0.58rem;
    font-weight: 600;
    color: #c8102e;
    letter-spacing: 0.2em;
    margin-top: 2px;
}

.brand-sub-line {
    font-size: 0.55rem;
    color: #6b6b6b;
    letter-spacing: 0.15em;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0.32rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 28px rgba(26, 26, 26, 0.05);
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    transition:
        color 0.2s,
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #c8102e;
    background: rgba(255, 232, 235, 0.85);
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, #c8102e, #8d1025);
    box-shadow: 0 8px 18px rgba(200, 16, 46, 0.2);
}

.nav-menu a.active::before {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: -10px;
    height: 10px;
    background: url("/assets/images/thread-wavy-underline.svg") no-repeat
        center/100% 100%;
    pointer-events: none;
}

.nav-menu .has-caret::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 4px;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    min-width: 205px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 16, 46, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(26, 26, 26, 0.13);
    padding: 0.45rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;
    z-index: 100;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown li {
    padding: 0;
}

.nav-dropdown a {
    display: flex;
    padding: 0.62rem 0.8rem;
    font-size: 0.82rem;
    color: #1a1a1a;
    border-radius: 10px;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.nav-dropdown a:hover {
    background: #ffe8eb;
    color: #c8102e;
    transform: translateX(2px);
}

.nav-dropdown a::after {
    display: none;
}

.donate-pill {
    background: #c8102e;
    color: #fff !important;
    border-radius: 9999px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.84rem;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.22);
    transition: all 0.25s;
}

.donate-pill:hover {
    background: #8d1025;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1200;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #c8102e;
    border-radius: 3px;
    transition:
        transform 0.3s,
        opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ===== PAGE HERO (internal pages) ===== */
.page-hero {
    background:
        linear-gradient(
            135deg,
            rgba(26, 26, 26, 0.94) 0%,
            rgba(42, 4, 11, 0.92) 100%
        ),
        url("/uploads/media_edited_6a3ed4e7edde5.jpg") center/cover;
    padding: 7.5rem 2rem 4.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("/assets/images/thread-separator.svg") no-repeat
        center/contain;
    opacity: 0.15;
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(248, 246, 241, 0.18));
    pointer-events: none;
    z-index: -1;
}

.page-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.05;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
}

.page-hero .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.page-hero .breadcrumb a:hover {
    color: #c8102e;
}

.page-hero .breadcrumb span {
    margin: 0 0.5rem;
}

/* ===== INTERNAL PAGE LAYOUT ===== */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.4rem 2rem;
}

.page-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.page-content > h2,
.page-content .grid + h2 {
    letter-spacing: 0;
}

.page-content h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #c8102e;
    border-radius: 2px;
}

.page-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
}

.page-content p {
    color: #6b6b6b;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.page-image-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(26, 26, 26, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
}

.page-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.about-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.page-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.page-content ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6b6b6b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    background: #c8102e;
    border-radius: 50%;
}

/* ===== SECTION TAG ===== */
.section-tag {
    display: inline-block;
    background: #ffe8eb;
    padding: 8px 20px;
    border-radius: 40px;
    color: #c8102e;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ===== CARDS ===== */
.card-stitched {
    position: relative;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card-stitched:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 42px rgba(26, 26, 26, 0.1);
}

.card-thread-top {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    border: 1px solid rgba(26, 26, 26, 0.04);
}

.card-thread-top:hover,
.location-card:hover,
.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(26, 26, 26, 0.1);
}

.card-thread-top::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: #c8102e;
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.card-thread-top:hover::before {
    transform: scaleX(1);
}

.location-card,
.media-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.location-card img,
.media-card img,
.project-item .h-48,
.news-item img {
    transition: transform 0.5s ease;
}

.location-card:hover img,
.media-card:hover img,
.project-item:hover .h-48,
.news-item:hover img {
    transform: scale(1.05);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #c8102e, #8d1025);
    color: #fff;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    border: 2px solid #c8102e;
    color: #c8102e;
    border-radius: 9999px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: #c8102e;
    color: #fff;
}

/* ===== FORMS ===== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e8e6e0;
    border-radius: 0.75rem;
    background: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-input::placeholder {
    color: #a3a3a3;
}

/* ===== TABS ===== */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e8e6e0;
    margin-bottom: 2rem;
    overflow-x: auto;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b6b6b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
    color: #c8102e;
    border-bottom-color: #c8102e;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ===== MODALS ===== */
.modal-backdrop {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
}

.amt-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e8e6e0;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #1a1a1a;
}

.amt-btn.active,
.amt-btn:hover {
    border-color: #c8102e;
    background: #c8102e;
    color: #fff;
}

/* ===== TOASTS ===== */
.toast {
    animation:
        slideInRight 0.4s ease,
        fadeOut 0.4s ease 3.6s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ===== THREAD CONNECTOR ===== */
.thread-connector {
    pointer-events: none;
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-connector img {
    width: 100%;
    max-width: 760px;
    display: block;
    height: auto;
    max-height: 38px;
    opacity: 0.82;
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CAROUSEL ===== */
.partners-track {
    display: flex;
    gap: 2rem;
    animation: scrollPartners 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== SCROLLBAR ===== */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f8f6f1;
}

::-webkit-scrollbar-thumb {
    background: #c8102e;
    border-radius: 3px;
}

/* ===== LOADER ===== */
@keyframes loaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderText {
    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.9;
    }
}

.loader-label {
    animation: loaderText 2s ease-in-out infinite;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b6b6b;
    font-weight: 500;
}

#pageLoader {
    position: fixed;
    inset: 0;
    background: #f8f6f1;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.6s ease;
}

#pageLoader.hiding {
    opacity: 0;
    pointer-events: none;
}

/* ===== THREAD FLOWER (hero decoration) ===== */
.thread-flower {
    position: absolute;
    width: 140px;
    opacity: 0.85;
    pointer-events: none;
    animation: rotateFlower 22s linear infinite;
    z-index: 0;
}

@keyframes rotateFlower {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== HERO (split layout) ===== */
.hero-split {
    position: relative;
    min-height: 80vh;
    background: #f8f6f1;
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
}

.hero-split::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(232, 224, 217, 0.35), transparent);
    pointer-events: none;
}

.hero-left {
    padding: 4rem 3rem 3rem 5rem;
    position: relative;
    z-index: 2;
}

.hero-display {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.hero-display .line-god {
    color: #1a1a1a;
    display: block;
    font-size: 0.85em;
}

.hero-display .line-love {
    color: #c8102e;
    display: block;
    font-family: "Caveat", "Kalam", cursive;
    font-size: 1.55em;
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.01em;
    font-style: italic;
}

.hero-display .line-action {
    color: #1a1a1a;
    display: block;
    font-size: 0.85em;
}

.hero-tagline-wrap {
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: "Caveat", "Kalam", cursive;
    font-size: 1.85rem;
    color: #c8102e;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.hero-tagline-underline {
    position: relative;
    display: inline-block;
}

.hero-tagline-underline::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: -8px;
    height: 10px;
    background: url("/assets/images/thread-wavy-underline.svg") no-repeat
        center/100% 100%;
    pointer-events: none;
}

.hero-quote-mark {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: #c8102e;
    line-height: 1;
    margin-right: 0.5rem;
}

.hero-quote {
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 1.05rem;
    max-width: 540px;
}

.hero-quote-source {
    color: #6b6b6b;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    margin-left: 2.5rem;
    display: block;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #c8102e, #8d1025);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.3);
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(200, 16, 46, 0.4);
}

.hero-btn-outline {
    border: 2px solid #c8102e;
    color: #c8102e;
    background: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s;
    cursor: pointer;
}

.hero-btn-outline:hover {
    background: #ffe8eb;
    transform: translateY(-2px);
}

.hero-right {
    position: relative;
    height: 100%;
    min-height: 540px;
    overflow: hidden;
}

.hero-image-main {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?w=1400&q=80");
    background-size: cover;
    background-position: center;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f8f6f1 0%, rgba(248, 246, 241, 0) 8%);
    pointer-events: none;
}

.hero-ribbon-text {
    position: absolute;
    top: 28%;
    right: 2rem;
    color: #1a1a1a;
    text-align: right;
    z-index: 3;
    font-family: "Inter", sans-serif;
    line-height: 1.4;
}

.hero-ribbon-text .rb-line {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.hero-ribbon-text .rb-line.rb-mission {
    color: #c8102e;
}

.hero-ribbon-text .rb-underline {
    display: block;
    width: 60px;
    height: 3px;
    background: #c8102e;
    margin-left: auto;
    margin-top: 0.6rem;
    border-radius: 2px;
}

.hero-thread-flower-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    width: 240px;
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 5rem 2rem 3rem;
    }

    .hero-right {
        min-height: 420px;
        order: -1;
    }

    .hero-image-main {
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }

    .hero-image-overlay {
        background: linear-gradient(
            180deg,
            rgba(248, 246, 241, 0) 60%,
            #f8f6f1 100%
        );
    }

    .hero-ribbon-text {
        top: auto;
        bottom: 1.5rem;
        right: 1.5rem;
        left: 1.5rem;
        text-align: right;
    }

    .nav-menu {
        display: none;
    }
}

/* ===== MISSION JOURNEY (single row) ===== */
.mission-journey {
    padding: 3.5rem 2rem 3rem;
    background: #f8f6f1;
    position: relative;
}

.mission-section-title {
    font-family: "Playfair Display", serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.05;
}

.mission-section-sub {
    color: #6b6b6b;
    max-width: 100%;
    line-height: 1.55;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
}

.btn-learn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #c8102e, #8d1025);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.25);
    transition: all 0.25s;
}

.btn-learn:hover {
    transform: translateY(-2px);
}

.mission-row {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 1.5rem;
    align-items: center;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 2rem;
}

.journey-track {
    position: relative;
    padding: 1rem 0 0.6rem;
    width: 100%;
}

.journey-thread {
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    height: 24px;
    width: 100%;
    z-index: 0;
    pointer-events: none;
}

.journey-thread img {
    width: 100%;
    height: 100%;
    display: block;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.journey-step {
    text-align: center;
    position: relative;
    padding: 0 0.2rem;
}

.journey-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    color: #c8102e;
    box-shadow: 0 8px 22px rgba(200, 16, 46, 0.15);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.journey-step:hover .journey-circle {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(200, 16, 46, 0.22);
}

.journey-step strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    font-family: "Inter", sans-serif;
}

.journey-step p {
    font-size: 0.76rem;
    color: #6b6b6b;
    line-height: 1.4;
    max-width: 100%;
    margin: 0 auto;
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 2rem;
}

.mission-stat {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    line-height: 1;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mission-stat:last-child {
    border-bottom: none;
}

.mission-stat-num {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #c8102e;
    line-height: 1;
    white-space: nowrap;
}

.mission-stat-label {
    font-size: 0.88rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.3;
}

.vision-column {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 2rem;
}

.vision-column .mission-section-title {
    font-size: 2.6rem;
}

.vision-column .mission-section-sub {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .mission-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .mission-stats {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        padding-left: 0;
        gap: 1rem;
    }

    .vision-column {
        border-left: none;
        padding-left: 0;
    }

    .mission-stat {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journey-track::before,
    .journey-thread {
        display: none;
    }
}

/* ===== PROGRAMS CAROUSEL ===== */
.programs-showcase {
    background: linear-gradient(180deg, #f8f6f1 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.programs-showcase::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 16, 46, 0.3),
        transparent
    );
}

.programs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.programs-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.programs-sub {
    color: #6b6b6b;
    margin-top: 0.35rem;
    max-width: 560px;
}

.carousel-nav {
    display: flex;
    gap: 0.6rem;
}

.carousel-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(200, 16, 46, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 22px rgba(26, 26, 26, 0.07);
}

.carousel-nav button:hover {
    background: #c8102e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(200, 16, 46, 0.24);
}

.program-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -8px;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 24px,
        #000 calc(100% - 24px),
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 24px,
        #000 calc(100% - 24px),
        transparent 100%
    );
}

.program-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 8px;
    scrollbar-width: none;
    padding: 0.25rem 8px 1rem;
}

.program-carousel-track::-webkit-scrollbar {
    display: none;
}

.program-card {
    flex: 0 0 calc(33.333% - 0.85rem);
    min-width: 300px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(26, 26, 26, 0.06);
    scroll-snap-align: start;
}

.program-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(26, 26, 26, 0.15);
    border-color: rgba(200, 16, 46, 0.18);
}

.program-card-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: #f0ede6;
    position: relative;
}

.program-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0) 40%,
        rgba(26, 26, 26, 0.48) 100%
    );
}

.program-card-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(26, 26, 26, 0.18);
}

.program-card-body {
    padding: 1.35rem 1.35rem 1.45rem;
    position: relative;
}

.program-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffe8eb;
    color: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.program-card h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.program-card p {
    font-size: 0.88rem;
    color: #6b6b6b;
    line-height: 1.6;
    min-height: 4.2rem;
}

.program-card-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c8102e;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
}

.program-card-link:hover {
    color: #8d1025;
}

.program-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.program-carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(200, 16, 46, 0.25);
    cursor: pointer;
    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.program-carousel-dots button.active {
    width: 28px;
    background: #c8102e;
}

@media (max-width: 1024px) {
    .program-card {
        flex: 0 0 calc(50% - 0.7rem);
    }
}

@media (max-width: 640px) {
    .program-card {
        flex: 0 0 85%;
    }
}

/* ===== MOBILE MENU ===== */
#mobMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 1100;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    padding: 5rem 1.5rem 2rem;
}

#mobMenu.open {
    transform: translateX(0);
}

#mobOverlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#mobOverlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mob-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mob-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.mob-nav-link:hover {
    color: #c8102e;
}

.mob-nav-link.active {
    color: #c8102e;
}

.mob-sub-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #6b6b6b;
    transition:
        transform 0.25s,
        color 0.2s;
}

.mob-sub-toggle.open {
    transform: rotate(180deg);
    color: #c8102e;
}

.mob-sub-menu {
    list-style: none;
    padding: 0 0 0.5rem 1rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mob-sub-menu.open {
    max-height: 500px;
}

.mob-sub-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s;
}

.mob-sub-menu a:hover {
    color: #c8102e;
}

.mob-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    background: #c8102e;
    color: #fff !important;
    border-radius: 9999px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
}

.mob-donate:hover {
    background: #8d1025;
    color: #fff;
}

/* ===== EVENTS/CAMPAIGNS AUTO-SWAP PANEL ===== */
.ec-panel {
    animation: ecFadeIn 0.5s ease;
}

@keyframes ecFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GET INVOLVED CARDS ===== */
.gi-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

button.gi-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.gi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(200, 16, 46, 0.15);
}

.gi-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #c8102e, #8d1025);
}

.gi-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.gi-card p {
    font-size: 0.8rem;
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 2.4rem;
}

.gi-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c8102e;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== SDG FLIP CARDS ===== */
.sdg-card {
    perspective: 800px;
    height: 120px;
}

.sdg-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.sdg-card:hover .sdg-card-inner {
    transform: rotateY(180deg);
}

.sdg-face {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.sdg-back {
    transform: rotateY(180deg);
    padding: 0.5rem;
}

.sdg-num {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.sdg-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

/* ===== READ MORE TRUNCATION ===== */
.read-more-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.read-more-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
}

/* ===== TOP CONTACT BAR ===== */
.top-contact-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a040b 100%);
    color: #fff;
    font-size: 0.78rem;
    position: relative;
    z-index: 60;
}

.top-contact-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-contact-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-contact-left a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.top-contact-left a:hover {
    color: #fff;
}

.top-contact-left span {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-contact-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-contact-social a {
    color: rgba(255, 255, 255, 0.7);
    transition:
        color 0.2s,
        transform 0.2s;
    display: inline-flex;
}

.top-contact-social a:hover {
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .top-contact-inner {
        justify-content: center;
        text-align: center;
    }

    .top-contact-left {
        justify-content: center;
    }
}

/* ===== EMERGENCY APPEALS ===== */
.appeal-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(26, 26, 26, 0.04);
}

.appeal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(200, 16, 46, 0.15);
}

.appeal-card-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
}

.appeal-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0) 40%,
        rgba(26, 26, 26, 0.5) 100%
    );
}

.appeal-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    background: #c8102e;
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.appeal-progress {
    height: 6px;
    background: #e8e6e0;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.appeal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c8102e, #8d1025);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* ===== INTERLACED PHOTO COLLAGE ===== */
.photo-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 0.75rem;
}

.photo-collage-item {
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    position: relative;
}

.photo-collage-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-collage-item:nth-child(4) {
    grid-column: span 2;
}

.photo-collage-item:nth-child(6) {
    grid-row: span 2;
}

.photo-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-collage-item:hover img {
    transform: scale(1.08);
}

.photo-collage-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(26, 26, 26, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-collage-item:hover::after {
    opacity: 1;
}

@media (max-width: 1024px) {
    .photo-collage {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }

    .photo-collage-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .photo-collage-item:nth-child(4) {
        grid-column: span 1;
    }

    .photo-collage-item:nth-child(6) {
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .photo-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .photo-collage-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .photo-collage-item:nth-child(4) {
        grid-column: span 1;
    }
}

/* ===== PROGRAMS TEXT-BASED (NO IMAGES) ===== */
.programs-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.programs-text-grid::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 3px;
    background: url("/assets/images/thread-journey.svg") no-repeat center/100%
        100%;
    opacity: 0.4;
    transform: translateY(-50%);
    pointer-events: none;
}

.program-text-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(200, 16, 46, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.program-text-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(200, 16, 46, 0.12);
}

.program-text-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8102e, #8d1025);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 22px rgba(200, 16, 46, 0.25);
}

.program-text-card h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.program-text-card p {
    font-size: 0.88rem;
    color: #6b6b6b;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .programs-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-text-grid::before {
        display: none;
    }
}

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

/* ===== FAQ ACCORDION ===== */
.faq-item {
    background: #fff;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
    border: 1px solid rgba(26, 26, 26, 0.04);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #c8102e;
}

.faq-question .faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.35s ease,
        padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: #6b6b6b;
    line-height: 1.7;
    font-size: 0.92rem;
}

/* ===== SOCIAL MEDIA SECTION ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.social-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(26, 26, 26, 0.04);
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(200, 16, 46, 0.15);
}

.social-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8102e, #8d1025);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.social-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.social-card p {
    font-size: 0.78rem;
    color: #6b6b6b;
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c8102e;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: #8d1025;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 900;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== MODAL ENHANCEMENTS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 1.25rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f6f1;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #ffe8eb;
}

/* ===== LIGHTBOX ===== */
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== DOWNLOAD CARD ===== */
.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    text-decoration: none;
    color: #1a1a1a;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(200, 16, 46, 0.12);
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffe8eb;
    color: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.download-info p {
    font-size: 0.78rem;
    color: #6b6b6b;
    margin: 0;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
    }
}
