/**
 * Homepage V2 – Campaign, Announcement & Events sections
 * Theme: Cloudflare-inspired (Princeton Orange #F48120, Arsenic #404041)
 */

.home-v2 {
    padding-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.home-v2-hero {
    position: relative;
    padding: calc(var(--mt-5rem) + 80px) 0 100px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 45%, #2a2118 100%);
    overflow: hidden;
}

.home-v2-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/our-service-bg.svg") center / cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.home-v2-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 129, 32, 0.22) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.home-v2-hero-inner {
    position: relative;
    z-index: 1;
}

.home-v2-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.home-v2-hero-badge i {
    font-size: 14px;
}

.home-v2-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: var(--white-color);
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 720px;
}

.home-v2-hero-title span {
    color: var(--accent-color);
}

.home-v2-hero-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.125rem;
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 32px;
}

.home-v2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.home-v2-hero-actions .btn-default.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--white-color);
}

.home-v2-hero-actions .btn-default.btn-outline-light:hover {
    border-color: var(--accent-color);
    color: var(--white-color);
}

.home-v2-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 640px;
}

.home-v2-stat {
    padding: 20px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.home-v2-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 129, 32, 0.45);
}

.home-v2-stat-value {
    display: block;
    font-family: var(--accent-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.home-v2-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ */
/* Shared section utilities                                            */
/* ------------------------------------------------------------------ */

.home-v2-section {
    padding: 90px 0;
}

.home-v2-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.home-v2-section-header .section-title {
    margin-bottom: 0;
    text-align: left;
    max-width: 640px;
}

.home-v2-section-header .section-title h3 {
    color: var(--accent-color);
    letter-spacing: 0.12em;
}

.home-v2-section-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
}

.home-v2-section-link:hover {
    color: var(--accent-color);
    gap: 14px;
}

.home-v2-section-link i {
    font-size: 0.875rem;
}

/* Compact btn-default buttons – preserve arrow icon clearance */
.home-v2-campaign-tile-cta.btn-default,
.home-v2-event-actions .btn-default,
.home-v2-announcements-aside .btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 52px 14px 24px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.home-v2-campaign-tile-cta.btn-default::before,
.home-v2-event-actions .btn-default::before,
.home-v2-announcements-aside .btn-default::before {
    transform: translate(-22px, -50%);
}

.home-v2-campaign-tile-cta.btn-default:hover::before,
.home-v2-event-actions .btn-default:hover::before,
.home-v2-announcements-aside .btn-default:hover::before {
    transform: translate(-20px, -50%);
}

.home-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.home-v2-badge--urgent {
    background: rgba(230, 87, 87, 0.12);
    color: var(--error-color);
    border: 1px solid rgba(230, 87, 87, 0.25);
}

.home-v2-badge--info {
    background: rgba(26, 26, 27, 0.08);
    color: var(--primary-color);
    border: 1px solid var(--divider-color);
}

/* Reveal animation (JS toggles .is-visible) */
.home-v2-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-v2-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-v2-reveal[data-delay="1"] { transition-delay: 0.1s; }
.home-v2-reveal[data-delay="2"] { transition-delay: 0.2s; }
.home-v2-reveal[data-delay="3"] { transition-delay: 0.3s; }
.home-v2-reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ------------------------------------------------------------------ */
/* Campaign section                                                    */
/* ------------------------------------------------------------------ */

.home-v2-campaigns {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(244, 129, 32, 0.1) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(26, 26, 27, 0.06) 0%, transparent 38%),
        linear-gradient(180deg, #faf8f5 0%, var(--secondary-color) 100%);
}

.home-v2-campaigns-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-v2-campaigns-decor-glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 129, 32, 0.14) 0%, transparent 70%);
}

.home-v2-campaigns-decor-ring {
    position: absolute;
    bottom: -180px;
    left: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(244, 129, 32, 0.12);
    border-radius: 50%;
}

.home-v2-campaigns .container {
    position: relative;
    z-index: 1;
}

.home-v2-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.home-v2-campaign-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--white-color);
    border: 1px solid rgba(26, 26, 27, 0.08);
    box-shadow: 0 12px 36px rgba(26, 26, 27, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-v2-campaign-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 129, 32, 0.28);
    box-shadow: 0 22px 50px rgba(244, 129, 32, 0.12);
}

.home-v2-campaign-tile-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    text-decoration: none;
}

.home-v2-campaign-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.home-v2-campaign-tile:hover .home-v2-campaign-tile-media img {
    transform: scale(1.06);
}

.home-v2-campaign-tile-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(26, 26, 27, 0.35), transparent);
    pointer-events: none;
}

.home-v2-campaign-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 28px 30px;
}

.home-v2-campaign-tile-body h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.home-v2-campaign-tile-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-v2-campaign-tile-body h3 a:hover {
    color: var(--accent-color);
}

.home-v2-campaign-tile-body > p {
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.7;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.home-v2-campaign-tile-footer {
    margin-top: auto;
    padding-top: 8px;
}

.home-v2-campaign-tile-cta {
    width: 100%;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Announcement section                                                */
/* ------------------------------------------------------------------ */

.home-v2-announcements {
    background: var(--white-color);
}

.home-v2-announcements-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
}

.home-v2-announcements-aside {
    position: sticky;
    top: 120px;
    padding: 36px;
    border-radius: 28px;
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
}

.home-v2-announcements-aside h3 {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.home-v2-announcements-aside p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.7;
}

.home-v2-announcements-aside-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(244, 129, 32, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.home-v2-announcement-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-v2-announcement-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 28px 32px;
    background: var(--secondary-color);
    border: 1px solid var(--divider-color);
    border-radius: 24px;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.home-v2-announcement-item:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 40px rgba(26, 26, 27, 0.08);
    border-left-color: var(--accent-dark);
}

.home-v2-announcement-item--urgent {
    border-left-color: var(--error-color);
}

.home-v2-announcement-item--urgent:hover {
    border-left-color: rgb(200, 60, 60);
}

.home-v2-announcement-date {
    text-align: center;
    min-width: 64px;
}

.home-v2-announcement-date-day {
    display: block;
    font-family: var(--accent-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.home-v2-announcement-date-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin-top: 4px;
}

.home-v2-announcement-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    line-height: 1.35;
}

.home-v2-announcement-content p {
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.65;
}

.home-v2-announcement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.home-v2-announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.25s ease;
}

.home-v2-announcement-link:hover {
    gap: 12px;
    color: var(--accent-dark);
}

/* ------------------------------------------------------------------ */
/* Events section                                                      */
/* ------------------------------------------------------------------ */

.home-v2-events {
    background: var(--secondary-color);
    background-image: url("../images/our-service-bg.svg");
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 60% auto;
}

.home-v2-events-slider {
    position: relative;
    width: 100%;
}

.home-v2-events-slider .swiper {
    overflow: hidden;
    width: 100%;
    padding-bottom: 4px;
}

.home-v2-events-slider .swiper-wrapper {
    align-items: stretch;
}

.home-v2-events-slider .swiper-slide {
    height: auto;
}

.home-v2-events-slider .swiper-slide .home-v2-event-card {
    height: 100%;
}

.home-v2-event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 26, 27, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home-v2-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(244, 129, 32, 0.14);
}

.home-v2-event-card-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.home-v2-event-card:hover .home-v2-event-card-accent {
    transform: scaleX(1);
}

.home-v2-event-card-inner {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-v2-event-date-block {
    margin-bottom: 20px;
}

.home-v2-event-date-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 8px 24px rgba(26, 26, 27, 0.12);
}

.home-v2-event-date-pill .day {
    font-family: var(--accent-font);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.home-v2-event-date-pill .month {
    margin-top: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.home-v2-event-date-pill .year {
    margin-top: 2px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.65);
}

.home-v2-event-location address {
    font-style: normal;
    margin: 0;
}

.home-v2-events-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}

.home-v2-events-button-prev,
.home-v2-events-button-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--divider-color);
    border-radius: 50%;
    background: var(--white-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.home-v2-events-button-prev:hover,
.home-v2-events-button-next:hover,
.home-v2-events-button-prev:focus-visible,
.home-v2-events-button-next:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(244, 129, 32, 0.06);
    outline: none;
}

.home-v2-events-button-prev.swiper-button-disabled,
.home-v2-events-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.home-v2-events-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 24px;
}

.home-v2-events-pagination .swiper-pagination-bullet {
    position: relative;
    height: 12px;
    width: 12px;
    background: var(--divider-color);
    opacity: 1;
    margin: 0 8px;
    transition: all 0.4s ease-in-out;
}

.home-v2-events-pagination .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    height: 0;
    width: 0;
    border-radius: 50%;
    transition: all 0.4s ease-in-out;
}

.home-v2-events-pagination .swiper-pagination-bullet-active {
    background: var(--accent-color);
}

.home-v2-events-pagination .swiper-pagination-bullet-active::before {
    border-color: var(--accent-color);
    height: 24px;
    width: 24px;
}

.home-v2-event-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.home-v2-event-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-v2-event-card h3 a:hover {
    color: var(--accent-color);
}

.home-v2-event-card p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.65;
}

.home-v2-event-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 24px;
    padding: 14px 16px;
    background: var(--secondary-color);
    border-radius: 14px;
}

.home-v2-event-location i {
    color: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.home-v2-event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.home-v2-event-actions .btn-link-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--divider-color);
    border-radius: 999px;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.home-v2-event-actions .btn-link-event:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(244, 129, 32, 0.06);
}

/* ------------------------------------------------------------------ */
/* CTA strip                                                           */
/* ------------------------------------------------------------------ */

.home-v2-cta-strip {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
}

.home-v2-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.home-v2-cta-inner h2 {
    color: var(--white-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.home-v2-cta-inner p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 520px;
    line-height: 1.65;
}

.home-v2-cta-inner .btn-default {
    background: var(--white-color);
    color: var(--accent-dark);
    flex-shrink: 0;
    white-space: nowrap;
}

.home-v2-cta-inner .btn-default:hover {
    color: var(--primary-color);
}

.home-v2-cta-inner .btn-default::after {
    background: var(--primary-color);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1199px) {
    .home-v2-announcements-layout {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }
}

@media (max-width: 991px) {
    .home-v2-section {
        padding: 70px 0;
    }

    .home-v2-hero {
        padding: calc(var(--mt-5rem) + 60px) 0 70px;
    }

    .home-v2-hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .home-v2-stat {
        padding: 16px;
    }

    .home-v2-stat-value {
        font-size: 1.375rem;
    }

    .home-v2-announcements-layout {
        grid-template-columns: 1fr;
    }

    .home-v2-announcements-aside {
        position: static;
    }

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

@media (max-width: 767px) {
    .home-v2-section {
        padding: 56px 0;
    }

    .home-v2-section-header {
        margin-bottom: 32px;
        flex-direction: column;
        align-items: flex-start;
    }

    .home-v2-campaign-tile-cta.btn-default,
    .home-v2-event-actions .btn-default {
        width: 100%;
    }

    .home-v2-event-actions .btn-link-event {
        width: 100%;
        justify-content: center;
    }

    .home-v2-hero-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .home-v2-announcement-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .home-v2-announcement-date {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .home-v2-announcement-date-day {
        font-size: 1.5rem;
    }

    .home-v2-campaigns-grid {
        grid-template-columns: 1fr;
    }

    .home-v2-campaign-tile-body {
        padding: 22px 22px 26px;
    }

    .home-v2-cta-inner {
        text-align: center;
        justify-content: center;
    }

    .home-v2-cta-inner p {
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-v2-campaign-tile,
    .home-v2-announcement-item,
    .home-v2-event-card,
    .home-v2-stat {
        transition: none;
    }

}
