/* ISU Cauayan City FabLab homepage v4 */
.home-v4 {
    --home-green-950: #063d2d;
    --home-green-900: #07543d;
    --home-green-800: #086547;
    --home-green-700: #0c7b56;
    --home-green-600: #0f9667;
    --home-green-100: #dff4ea;
    --home-green-50: #f0faf5;
    --home-ink: #16352a;
    --home-muted: #667b72;
    --home-line: #dce8e2;
    --home-shadow: 0 20px 55px rgba(6, 61, 45, .11);
    color: var(--home-ink);
    background: #f8fbf9;
}

.home-v4 h1,
.home-v4 h2,
.home-v4 h3,
.home-v4 p {
    margin-top: 0;
}

.home-navbar {
    z-index: 1030;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(6, 61, 45, .09);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 28px rgba(6, 61, 45, .07);
    backdrop-filter: blur(18px);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--home-green-900);
}

.home-brand:hover { color: var(--home-green-900); }

.home-brand-logo {
    display: grid;
    place-items: center;
    width: 3.35rem;
    height: 3.35rem;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
}

.home-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-brand-copy {
    display: grid;
    line-height: .92;
}

.home-brand-copy strong,
.home-brand-copy b {
    font-size: .98rem;
    letter-spacing: .02em;
}

.home-brand-copy b { font-size: 1.36rem; }
.home-brand-copy small { margin-top: .24rem; color: #3e4f48; font-size: .82rem; }

.home-navbar .nav-link {
    position: relative;
    padding: .65rem .1rem !important;
    color: #263d34;
    font-weight: 700;
}

.home-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: .2rem;
    height: 2px;
    background: var(--home-green-700);
    transition: right .2s ease;
}

.home-navbar .nav-link:hover,
.home-navbar .nav-link.active { color: var(--home-green-800); }
.home-navbar .nav-link:hover::after,
.home-navbar .nav-link.active::after { right: 0; }

.home-btn-primary,
.home-btn-outline,
.home-hero-primary,
.home-hero-secondary {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .58rem;
    padding-inline: 1.3rem;
    font-weight: 800;
}

.home-btn-primary,
.home-hero-primary {
    color: #fff;
    border: 1px solid var(--home-green-700);
    background: linear-gradient(135deg, #0d9f6c, var(--home-green-700));
    box-shadow: 0 12px 25px rgba(13, 123, 86, .18);
}

.home-btn-primary:hover,
.home-hero-primary:hover {
    color: #fff;
    border-color: var(--home-green-900);
    background: var(--home-green-900);
    transform: translateY(-1px);
}

.home-btn-outline {
    color: var(--home-green-900);
    border: 1px solid rgba(7, 84, 61, .48);
    background: #fff;
}

.home-btn-outline:hover {
    color: #fff;
    border-color: var(--home-green-900);
    background: var(--home-green-900);
}

.home-hero-v4 {
    overflow: hidden;
    background: #fff;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(390px, .72fr) minmax(0, 1.48fr);
    min-height: 555px;
}

.home-hero-copy {
    display: grid;
    align-items: center;
    padding: clamp(2.2rem, 5vw, 5rem);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(4, 54, 39, .98), rgba(5, 75, 52, .96)),
        #064b38;
}

.home-hero-copy-inner { max-width: 560px; margin-left: auto; }
.home-kicker { display: inline-flex; color: #c9f3df; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.home-hero-copy h1 {
    margin: 1rem 0 .65rem;
    color: #fff;
    font-size: clamp(3.4rem, 5.5vw, 6.6rem);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: .9;
}

.home-title-accent {
    display: block;
    width: 3.5rem;
    height: .26rem;
    margin: 1rem 0;
    border-radius: 999px;
    background: #19c98c;
}

.home-hero-copy p {
    max-width: 490px;
    margin-bottom: 1.55rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
    line-height: 1.62;
}

.home-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.home-hero-primary { min-width: 205px; }
.home-hero-secondary { min-width: 175px; color: #fff; border: 1px solid rgba(255, 255, 255, .72); background: transparent; }
.home-hero-secondary:hover { color: var(--home-green-950); background: #fff; }

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.2rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    font-weight: 700;
}

.home-trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.home-trust-row i { color: #66e2b7; }

.home-hero-banner {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #e9f8f4;
}

.home-hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 555px;
    object-fit: cover;
    object-position: center;
}

.home-section { padding: 4rem 0; }
.home-section-soft { background: #f1f7f4; }
.home-bottom-section { padding-top: 1rem; }

.home-section-header,
.home-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.45rem;
}

.home-eyebrow {
    display: inline-block;
    color: var(--home-green-700);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-section-header h2,
.home-panel h2 {
    margin: .35rem 0 .4rem;
    color: var(--home-green-950);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.home-section-header p { max-width: 720px; margin: 0; color: var(--home-muted); }
.home-text-link { white-space: nowrap; font-weight: 800; }

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-service-card,
.home-panel {
    border: 1px solid var(--home-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--home-shadow);
}

.home-service-card {
    min-width: 0;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-service-card:hover { transform: translateY(-4px); box-shadow: 0 25px 60px rgba(6, 61, 45, .16); }
.home-service-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--home-green-100); }
.home-service-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-service-card:hover .home-service-image img { transform: scale(1.04); }
.home-service-body { padding: 1rem; }
.home-service-body h3 { margin-bottom: .45rem; color: var(--home-ink); font-size: 1.02rem; font-weight: 800; }
.home-service-body p { min-height: 3.8rem; margin-bottom: .85rem; color: var(--home-muted); font-size: .88rem; line-height: 1.5; }
.home-service-body a { font-size: .87rem; font-weight: 800; }

.home-info-grid,
.home-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 1rem;
}

.home-panel { padding: 1.4rem; }
.home-how-panel { overflow: hidden; }

.home-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
}

.home-process::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 2rem;
    height: 1px;
    background: repeating-linear-gradient(90deg, #9fc9b6 0 8px, transparent 8px 14px);
}

.home-process-step { position: relative; z-index: 1; text-align: center; }
.home-process-step > span { position: absolute; top: -.28rem; right: calc(50% - 2.2rem); display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; color: #fff; background: var(--home-green-700); font-size: .66rem; font-weight: 800; }
.home-process-step > i { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto .7rem; border: 1px solid #cfe6da; border-radius: 50%; color: var(--home-green-800); background: var(--home-green-50); font-size: 1.35rem; }
.home-process-step h3 { margin-bottom: .35rem; color: var(--home-green-900); font-size: .92rem; font-weight: 800; }
.home-process-step p { margin: 0; color: var(--home-muted); font-size: .77rem; line-height: 1.5; }

.home-secure-note { display: flex; align-items: center; gap: .65rem; margin-top: 1.25rem; padding: .85rem 1rem; border-radius: .65rem; color: var(--home-green-900); background: #e7f5ee; font-size: .86rem; font-weight: 700; }
.home-secure-note i { font-size: 1.15rem; }

.home-benefit-list { display: grid; }
.home-benefit-list > div { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: .95rem 0; border-bottom: 1px solid var(--home-line); }
.home-benefit-list > div:last-child { border-bottom: 0; }
.home-benefit-list i { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; color: var(--home-green-800); background: var(--home-green-100); }
.home-benefit-list strong,
.home-benefit-list small { display: block; }
.home-benefit-list strong { color: var(--home-green-900); font-size: .9rem; }
.home-benefit-list small { margin-top: .2rem; color: var(--home-muted); font-size: .78rem; line-height: 1.45; }

.home-announcement-list { display: grid; gap: .85rem; }
.home-announcement-item { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1rem; border: 1px solid var(--home-line); border-radius: .8rem; background: #fbfdfc; }
.home-announcement-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .75rem; color: var(--home-green-800); background: var(--home-green-100); }
.home-announcement-item h3 { margin-bottom: .25rem; font-size: .95rem; font-weight: 800; }
.home-announcement-item p { margin-bottom: .35rem; color: var(--home-muted); font-size: .82rem; line-height: 1.5; }
.home-announcement-item small { color: #8a9b93; font-size: .73rem; }
.home-empty-state { padding: 2rem; color: var(--home-muted); text-align: center; }
.home-empty-state i { display: block; margin-bottom: .6rem; color: var(--home-green-700); font-size: 2rem; }

.home-contact-panel { display: grid; grid-template-columns: 1.15fr .85fr; padding: 0; overflow: hidden; }
.home-contact-copy { padding: 1.5rem; }
.home-contact-copy ul { display: grid; gap: .7rem; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.home-contact-copy li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .55rem; color: var(--home-muted); font-size: .86rem; }
.home-contact-copy li i { color: var(--home-green-700); }
.home-contact-copy a { color: inherit; }
.home-contact-copy a:hover { color: var(--home-green-800); }
.home-contact-image { min-height: 270px; overflow: hidden; background: var(--home-green-100); }
.home-contact-image img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }

.home-footer { padding: 1.5rem 0; color: rgba(255, 255, 255, .8); background: var(--home-green-950); font-size: .82rem; }
.home-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.home-footer-brand { display: flex; align-items: center; gap: .7rem; }
.home-footer-brand img { width: 2.4rem; height: 2.4rem; object-fit: contain; border-radius: 50%; background: #fff; }
.home-footer-brand strong,
.home-footer-brand span { display: block; }
.home-footer-brand span { margin-top: .12rem; color: rgba(255, 255, 255, .6); }

@media (max-width: 1199.98px) {
    .home-hero-grid { grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); }
    .home-hero-copy { padding: 3rem; }
    .home-hero-copy h1 { font-size: clamp(3.1rem, 5vw, 4.8rem); }
    .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-info-grid,
    .home-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .home-navbar .navbar-collapse { margin-top: .75rem; padding: .9rem; border: 1px solid var(--home-line); border-radius: .9rem; background: #fff; box-shadow: var(--home-shadow); }
    .home-navbar .navbar-nav { align-items: stretch !important; }
    .home-navbar .nav-link { padding-inline: .4rem !important; }
    .home-navbar .btn { width: 100%; margin-top: .25rem; }
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-hero-copy-inner { max-width: 720px; margin: 0 auto; }
    .home-hero-banner img { min-height: 0; height: auto; object-fit: contain; }
    .home-process { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
    .home-process::before { display: none; }
}

@media (max-width: 767.98px) {
    .home-brand-copy { display: none; }
    .home-brand-logo { width: 2.9rem; height: 2.9rem; }
    .home-hero-copy { padding: 2.35rem 1.3rem; }
    .home-hero-copy h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
    .home-hero-actions { display: grid; }
    .home-hero-actions .btn { width: 100%; }
    .home-services-grid { grid-template-columns: 1fr; }
    .home-service-body p { min-height: 0; }
    .home-section { padding: 3rem 0; }
    .home-section-header,
    .home-panel-heading { align-items: flex-start; flex-direction: column; }
    .home-process { grid-template-columns: repeat(2, 1fr); }
    .home-contact-panel { grid-template-columns: 1fr; }
    .home-contact-image { min-height: 200px; }
    .home-footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 479.98px) {
    .home-process { grid-template-columns: 1fr; }
    .home-process-step { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; text-align: left; }
    .home-process-step > span { left: 2.85rem; right: auto; }
    .home-process-step > i { grid-row: 1 / span 2; margin: 0; }
    .home-process-step h3 { align-self: end; }
}


/* Announcement images uploaded from the admin announcement form */
.home-announcement-item.has-image {
    align-items: stretch;
}
.home-announcement-photo {
    width: 116px;
    min-width: 116px;
    height: 86px;
    overflow: hidden;
    border-radius: 14px;
    background: #edf7f2;
}
.home-announcement-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-announcement-copy {
    min-width: 0;
    flex: 1;
}
@media (max-width: 575.98px) {
    .home-announcement-item.has-image {
        flex-direction: column;
    }
    .home-announcement-photo {
        width: 100%;
        height: 170px;
    }
}
