/* ==========================================================================
   NCIP Nueva Ecija — Home page (design v2)
   Loaded after public-v2.css, which supplies the tokens, navigation,
   organisation strip, shared headings, news cards and footer.
   ========================================================================== */

@keyframes slideFade {
    from {
        opacity: 0;
        transform: scale(1.015);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(1rem, 2vw, 1.5rem);
}

.hero-container {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background:
        radial-gradient(520px 320px at 100% 0, rgba(200, 150, 46, .16), transparent 65%),
        radial-gradient(520px 320px at 0 100%, rgba(46, 125, 70, .12), transparent 65%),
        linear-gradient(135deg, #fff, var(--g-50));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--sh-lg);
}

.hero-text h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(2rem, 5.2vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
    color: var(--ink);
}

.hero-text h2 span {
    color: var(--g-700);
}

.hero-text p {
    max-width: 520px;
    margin-bottom: 1.75rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--muted);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--g-700), var(--g-800));
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(46, 125, 70, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cta-button::after {
    content: "\2192";
    transition: transform .2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(46, 125, 70, .42);
}

.cta-button:hover::after {
    transform: translateX(4px);
}

.hero-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--sh-lg);
}

@media (max-width: 860px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
}

/* ---------- Carousel ---------- */
.carousel {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--sh-lg);
    background: var(--g-100);
}

.carousel-slide {
    display: none;
}

.carousel-slide.fade {
    animation: slideFade .7s ease;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13, 36, 23, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease;
}

.prev {
    left: 14px;
}

.next {
    right: 14px;
}

.prev:hover,
.next:hover {
    background: var(--g-700);
}

.dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: #cfdcd3;
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.dot:hover {
    background: var(--g-600);
}

.dot.active {
    width: 28px;
    background: var(--g-700);
}

@media (max-width: 600px) {

    .prev,
    .next {
        width: 36px;
        height: 36px;
        font-size: .95rem;
    }

    .prev {
        left: 8px;
    }

    .next {
        right: 8px;
    }
}

/* ---------- Quote ---------- */
.quote-section {
    position: relative;
    overflow: hidden;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0, rgba(200, 150, 46, .25), transparent 60%),
        linear-gradient(135deg, var(--g-800), var(--g-950));
}

.quote-content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(1.75rem, 5vw, 4rem);
    max-width: var(--wrap);
    margin: 0 auto;
}

.quote-text {
    position: relative;
    margin-bottom: 1.25rem;
    padding-top: 3.2rem;
    font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.55;
}

.quote-text::before {
    content: "\201C";
    position: absolute;
    top: -.55rem;
    left: -.25rem;
    font-size: 6rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
    opacity: .9;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.quote-author::before {
    content: "";
    width: 36px;
    height: 3px;
    border-radius: 99px;
    background: var(--gold);
}

.quote-image {
    height: clamp(220px, 32vw, 360px);
    border: 4px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 56px rgba(0, 0, 0, .35);
}

@media (max-width: 800px) {
    .quote-content {
        grid-template-columns: 1fr;
    }
}

/* ---------- Shared section rhythm ---------- */
.groups-section,
.livelihood-section,
.coc-section,
.our-heritage,
.news-preview-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
}

.groups-section .section-header,
.livelihood-section .section-header,
.news-preview-section .section-header {
    max-width: 760px;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.groups-section .section-header>h2,
.livelihood-section .section-header>h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

/* ---------- ICCs / IPs groups ---------- */
.groups-section {
    background: #fff;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    max-width: var(--wrap);
    margin: 0 auto;
}

.group-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}

.group-image {
    height: 210px;
    background-color: var(--g-100);
    background-size: cover;
    background-position: center;
}

.group-content {
    padding: 1.35rem 1.5rem 1.6rem;
}

.group-title {
    margin-bottom: .6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--g-800);
}

.group-description {
    font-size: .94rem;
    color: var(--muted);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: 2.25rem;
}

.pagination>button {
    min-height: 40px;
    padding: 0 1.15rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.pagination>button:hover:not(:disabled) {
    border-color: var(--g-700);
    background: var(--g-50);
    color: var(--g-700);
}

.pagination>button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ---------- Livelihood ---------- */
.livelihood-section {
    background: linear-gradient(180deg, var(--g-50), #fff);
}

.livelihood-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
    max-width: var(--wrap);
    margin: 0 auto;
}

.livelihood-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.livelihood-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
}

.livelihood-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--g-700), var(--g-800));
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 18px rgba(46, 125, 70, .3);
}

.livelihood-content h3 {
    margin-bottom: .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.livelihood-content h3 i {
    margin-right: .35rem;
    font-size: .8rem;
    color: var(--g-700);
}

.livelihood-content p {
    font-size: .94rem;
    color: var(--muted);
}

@media (max-width: 480px) {
    .livelihood-card {
        flex-direction: column;
    }
}

/* ---------- Certificate of Confirmation ---------- */
.coc-section {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
}

.coc-intro {
    max-width: 820px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
}

.coc-intro h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.coc-intro h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: .85rem auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--g-700), var(--gold));
}

.coc-intro p {
    margin-bottom: .8rem;
    font-size: clamp(.97rem, 1.8vw, 1.06rem);
    color: var(--muted);
}

.coc-process {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    border-radius: 26px;
    background:
        radial-gradient(600px 260px at 100% 0, rgba(200, 150, 46, .25), transparent 60%),
        linear-gradient(135deg, var(--g-800), var(--g-950));
    box-shadow: var(--sh-lg);
}

.coc-process h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
}

.step {
    padding: 1.4rem;
    background: #fff;
    border-radius: 18px;
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    transition: transform .25s ease;
}

.step:hover {
    transform: translateY(-4px);
}

.step-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: .9rem;
    border-radius: 14px;
    background: var(--g-100);
    color: var(--g-700);
    font-size: 1.2rem;
}

.step h4 {
    margin-bottom: .4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.step p {
    font-size: .92rem;
    color: var(--muted);
}

.data-privacy-short {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-top: 1.5rem;
    padding: 1.1rem 1.3rem;
    background: var(--gold-soft);
    border: 1px solid #efd9a0;
    border-left: 5px solid var(--gold);
    border-radius: 14px;
}

.data-privacy-short i {
    flex-shrink: 0;
    margin-top: .2rem;
    font-size: 1.35rem;
    color: var(--gold);
}

.data-privacy-short p {
    font-size: .95rem;
    color: var(--ink);
}

/* ---------- Heritage ---------- */
.our-heritage {
    background: var(--g-50);
}

.heritage-container {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: clamp(1.75rem, 5vw, 4rem);
    max-width: var(--wrap);
    margin: 0 auto;
}

.heritage-image {
    position: relative;
}

.heritage-image::before {
    content: "";
    position: absolute;
    inset: 18px -14px -14px 18px;
    border: 3px solid var(--gold);
    border-radius: 28px;
    opacity: .5;
}

.heritage-image img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--sh-lg);
}

.heritage-text h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.heritage-text>p {
    margin-bottom: 1.75rem;
    font-size: clamp(.97rem, 1.6vw, 1.05rem);
    color: var(--muted);
}

.heritage-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 1rem;
}

.heritage-card {
    padding: 1.3rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--sh-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.heritage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
}

.heritage-card>i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: .8rem;
    border-radius: 14px;
    background: var(--g-100);
    color: var(--g-700);
    font-size: 1.15rem;
}

.heritage-card h3 {
    margin-bottom: .35rem;
    font-size: 1.02rem;
    font-weight: 700;
}

.heritage-card p {
    font-size: .9rem;
    color: var(--muted);
}

@media (max-width: 860px) {
    .heritage-container {
        grid-template-columns: 1fr;
    }

    .heritage-image::before {
        inset: 12px -8px -8px 12px;
    }
}

/* ---------- News preview ---------- */
.news-preview-section {
    background: #fff;
}

.news-preview-section .section-wrapper {
    max-width: var(--wrap);
    margin: 0 auto;
}

.news-preview-section .section-title {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}
