/* Campaigns — infinite horizontal marquee with girih backdrop */
@keyframes girihDraw { to { stroke-dashoffset: 0; } }
@keyframes campBandIn { to { opacity: 1; transform: translateY(0); } }
@keyframes campRipple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes campMarqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section */
.camp-section {
    position: relative;
    padding: calc(var(--site-header-height, 72px) + 48px) 0 100px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 900px 500px at 12% -10%, rgba(200,155,60,0.10), transparent 60%),
        radial-gradient(ellipse 900px 500px at 92% 6%, rgba(11,77,62,0.06), transparent 55%),
        var(--parchment, #F7F4EA);
}

/* Girih watermark */
.girih-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.6s ease;
    pointer-events: none;
}
.girih-field.is-drawn { opacity: 1; }
.girih-field svg {
    position: absolute;
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1700px, 150%);
    height: auto;
}
.girih-field path.tile-line {
    fill: none;
    stroke: var(--emerald-deep, #0B4D3E);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.07;
    stroke-dasharray: 14;
    stroke-dashoffset: 14;
    animation: girihDraw 2.2s ease forwards;
}

/* Inner */
.camp-inner {
    position: relative;
    z-index: 2;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header band */
.camp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 52px;
    opacity: 0;
    transform: translateY(-10px);
}
.camp-header.in-view {
    animation: campBandIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Eyebrow */
.camp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 16px 6px 13px;
    border-radius: 2px;
    background: var(--parchment, #F7F4EA);
    border: 1px solid rgba(200, 155, 60, 0.55);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--emerald-deep, #0B4D3E);
    text-transform: uppercase;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    margin-bottom: 14px;
}
.camp-eyebrow svg { width: 11px; height: 11px; flex-shrink: 0; }
.camp-eyebrow svg path { fill: var(--gold, #C89B3C); }

/* Header row */
.camp-header-row {
    display: grid;
    grid-template-columns: auto 1px 1fr auto;
    align-items: center;
    gap: 26px;
    width: 100%;
}

/* Headline */
.camp-headline {
    font-family: 'Amiri', serif;
    font-weight: 700;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.1;
    margin: 0;
    color: var(--emerald-deep, #0B4D3E);
    white-space: nowrap;
    text-align: center;
}
.camp-headline em {
    font-style: italic;
    color: var(--gold, #C89B3C);
}

/* Vertical rule */
.camp-header-rule {
    width: 1px;
    height: 54px;
    background: linear-gradient(180deg, transparent, var(--gold, #C89B3C) 20%, var(--gold, #C89B3C) 80%, transparent);
}

/* Subhead */
.camp-subhead {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    color: #3F534C;
    margin: 0;
    max-width: 380px;
    text-align: center;
}

/* CTA row */
.camp-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
}

/* CTA button — arrow-shaped */
.camp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--emerald-deep, #0B4D3E);
    color: var(--parchment, #F7F4EA);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    overflow: hidden;
    white-space: nowrap;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.camp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold, #C89B3C);
    transform: translateX(-101%);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}
.camp-btn span,
.camp-btn svg { position: relative; z-index: 1; transition: transform 0.3s ease; }
.camp-btn svg path { stroke: var(--parchment, #F7F4EA); transition: stroke 0.3s ease; }
.camp-btn:hover { transform: translateY(-2px); }
.camp-btn:hover::before { transform: translateX(0); }
.camp-btn:hover span { color: var(--emerald-deep, #0B4D3E); }
.camp-btn:hover svg path { stroke: var(--emerald-deep, #0B4D3E); }
.camp-btn:hover svg { transform: translateX(3px); }

/* Pulse dot */
.camp-pulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--rose, #C4685C);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.camp-pulse::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 50%;
    border: 1.5px solid var(--rose, #C4685C);
    animation: campRipple 2.4s ease-out infinite;
}
.camp-pulse i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose, #C4685C);
    font-style: normal;
}

/* Marquee container */
.camp-marquee {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.camp-marquee.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Edge fade masks */
.camp-marquee::before,
.camp-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}
.camp-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--parchment, #F7F4EA) 0%, transparent 100%);
}
.camp-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--parchment, #F7F4EA) 0%, transparent 100%);
}

/* Track — scrolling strip */
.camp-marquee-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: campMarqueeLeft 40s linear infinite;
}
.camp-marquee:hover .camp-marquee-track {
    animation-play-state: paused;
}

/* Card */
.camp-card {
    position: relative;
    flex: 0 0 280px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Arch shape */
.camp-arch {
    position: relative;
    width: 100%;
    min-height: 340px;
    clip-path: url(#campArchClip);
    background: var(--ink, #14231F);
    overflow: hidden;
}
.camp-arch img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) saturate(88%) brightness(0.8);
    transform: scale(1.1);
    transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease;
}
.camp-card:hover .camp-arch img {
    transform: scale(1.2);
    filter: grayscale(0%) saturate(108%) brightness(0.66);
}

/* Scrim */
.camp-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,20,17,0.02) 0%, rgba(11,20,17,0.1) 40%, rgba(6,17,13,0.82) 100%);
}

/* Arch outline — drawn on hover */
.camp-outline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.camp-card:hover .camp-outline { opacity: 1; }
.camp-outline svg { width: 100%; height: 100%; }
.camp-outline path {
    fill: none;
    stroke: var(--gold-soft, #E4C878);
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 560;
    stroke-dashoffset: 560;
}
.camp-card:hover .camp-outline path {
    animation: campOutlineDraw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes campOutlineDraw { to { stroke-dashoffset: 0; } }

/* Keystone */
.camp-keystone {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.5) rotate(-20deg);
    width: 22px;
    height: 22px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 4;
}
.camp-card:hover .camp-keystone {
    opacity: 1;
    transform: translate(-50%, -40%) scale(1) rotate(0deg);
}
.camp-keystone path { fill: var(--gold-soft, #E4C878); }

/* Tag */
.camp-tag {
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 9px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink, #14231F);
    clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%);
}
.camp-tag.tag-active { background: #8FD4B4; }
.camp-tag.tag-scholarship { background: var(--gold-soft, #E4C878); }
.camp-tag.tag-health { background: #E3AFA6; }
.camp-tag i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink, #14231F);
    opacity: 0.65;
    font-style: normal;
}

/* Content inside arch */
.camp-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 20px 28px;
    color: var(--parchment, #F7F4EA);
}
.camp-cat {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold-soft, #E4C878);
    display: block;
    margin-bottom: 8px;
    opacity: 0.9;
}
.camp-content h3 {
    font-family: 'Amiri', serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.24;
    margin: 0 0 10px;
    color: #fff !important;
}

/* Meta row — description + arrow */
.camp-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}
.camp-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(247, 244, 234, 0.72);
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.camp-arrow-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(247, 244, 234, 0.35);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s, background 0.3s ease, border-color 0.3s ease;
}
.camp-card:hover .camp-arrow-wrap {
    opacity: 1;
    transform: translateX(0);
    background: var(--gold-soft, #E4C878);
    border-color: var(--gold-soft, #E4C878);
}
.camp-arrow-wrap svg { width: 12px; height: 12px; }
.camp-arrow-wrap svg path { stroke: var(--parchment, #F7F4EA); transition: stroke 0.3s ease; }
.camp-card:hover .camp-arrow-wrap svg path { stroke: var(--ink, #14231F); }

/* Plinth */
.camp-plinth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 3px 0;
    border-top: 1px solid rgba(11, 77, 62, 0.16);
    margin-top: 10px;
}
.camp-plinth-label {
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--emerald-deep, #0B4D3E);
}
.camp-plinth-dots {
    display: flex;
    gap: 4px;
}
.camp-plinth-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold, #C89B3C);
    opacity: 0.4;
    font-style: normal;
}
.camp-plinth-dots i.is-on { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
    .camp-header-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .camp-header-rule { display: none; }
    .camp-headline { white-space: normal; }
    .camp-cta-row { margin-top: 6px; }
    .camp-card { flex: 0 0 240px; }
}
@media (max-width: 560px) {
    .camp-section { padding: calc(var(--site-header-height, 72px) + 56px) 0 70px; }
    .camp-header { margin-bottom: 36px; }
    .camp-inner { padding: 0 16px; }
    .camp-card { flex: 0 0 220px; }
    .camp-marquee::before,
    .camp-marquee::after { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .camp-header.in-view { opacity: 1 !important; transform: none !important; }
    .camp-marquee.in-view { opacity: 1 !important; transform: none !important; }
}
