*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* overall page */
html,
body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;      /* light page background */
    color: #111111;
    overflow-x:hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* offset fixed header for anchor links */
}

/* ----------------- TOP NAV ----------------- */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55); /* slight dark bar over hero */
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.1;
}

.nav-toggle {
    display: none; /* shown on mobile */
    background: transparent;
    border: 0;
    color: #ffffff;
    padding: 6px 8px;
    line-height: 1;
    font-size: 18px;
    cursor: pointer;
}

.nav-toggle:focus {
    outline: 2px solid #ff8800;
    outline-offset: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 25px;
}

.nav-right a {
    margin-left: 0;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.nav-right a:hover {
    color: #ff8800;
}

/* Auto-compact header when space is tight (JS toggles .is-compact) */
.top-nav.is-compact {
    align-items: flex-start;
}

.top-nav.is-compact .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-nav.is-compact .nav-right {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 10px;
}

.top-nav.is-compact .nav-right.is-open {
    display: flex;
}

.top-nav.is-compact .nav-right a {
    width: 100%;
    padding: 8px 0;
}

@media (max-width: 900px) {
    .top-nav {
        padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
        align-items: center;
        gap: 8px 10px;
    }

    .nav-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-brand {
        font-size: clamp(16px, 5vw, 22px);
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.2);
        background: rgba(255,255,255,.06);
    }

    .nav-right {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 6px;
        padding: 10px 12px 12px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 12px;
        background: rgba(0,0,0,.72);
        backdrop-filter: blur(10px);
    }

    .nav-right.is-open {
        display: flex;
    }

    .nav-right a {
        width: 100%;
        padding: 10px 6px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .nav-right a:last-child {
        border-bottom: 0;
    }
}

/* ===== FULLSCREEN BACKGROUND ANIMATION (behind everything) ======================================================================================================== */
#bgAnimation {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page {
    position: relative;
    z-index: 1;
}

/* ----------------- HERO / AIT SECTION ------------------------------------------------------------------------------------------------------------------------------ */

/* background image + layout */
.ait {
    position: relative;
    min-height: 100vh;
    /* Point to shared images folder one level above /assets */
    background: url('../../images/frontpagebg.jpg') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 110px 40px 140px;      /* top padding offsets fixed nav; bottom padding keeps overlap */
    color: #ffffff;                 /* hero text stays white */
    z-index: 0; /* create stacking context for canvas + overlay */
    isolation: isolate;
}

/* dark overlay to control “opacity” of bg */
.ait::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);  /* adjust darkness here */
    z-index: 0;
    pointer-events: none;
}

/* centered hero content (slightly left & up) */
.ait-content {
    position: relative;
    z-index: 2;                 /* above overlay */
    max-width: 2000px;
    text-align: left;
    transform: translateX(-150px) translateY(-80px);
}

/* we’re not using the old overlay div anymore */
.ait-overlay {
    display: none;
}

/* logo */
.ait-logo {
    height: 110px;
    width: auto;
}

/* “Home of Experts. Hub of Tech Talent” */
.ait-kicker {
    font-size: 20px;
    font-weight: 600;
    color: #ff8800;
    margin-bottom: 10px;
}

/* Aquino Information Technology Institute */
.ait-title {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* paragraph */
.ait-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 1000px;
    margin-bottom: 35px;
}

/* hero buttons */
.ait-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-outline {
    padding: 12px 32px;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.btn-primary {
    background-color: #ff6200;
    color: #ffffff;
    border: 1px solid #ff6200;
}

.btn-primary:hover {
    background-color: #ff8800;
    border-color: #ff8800;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}

/* nav is on top of hero, so no extra padding needed */
body {
    padding-top: 0;
}

/* ---------- GROWTH & POTENTIAL SECTION ---------------------------------------------------------------------------------------------------------------------------- */

/* This whole block floats slightly over the bottom of the hero */
.growth-section {
    position: relative;
    max-width: 1150px;
    margin: -200px auto 0;            /* negative top margin = overlap */
    z-index: 20;                     /* above hero background */
}

/* wrapper: blue card + white grid together */
.growth-wrapper {
    display: flex;
    border-radius: 4px;
    overflow: hidden;                /* rounded corners for both sides */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* LEFT BLUE PANEL */
.growth-left {
    background: linear-gradient(135deg, #ff6200, #ff6200);
    padding: 60px;
    width: 45%;
    color: #ffffff;
}

.growth-kicker {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.growth-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
}

.growth-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.growth-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 420px;
}

.growth-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #262626;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    border-radius: 2px;
}

.growth-btn:hover {
    background: #111111;
}

/* RIGHT WHITE 2x2 GRID */
.growth-right {
    flex: 1;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.growth-stat {
    padding: 50px 45px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
}

.growth-stat:nth-child(2),
.growth-stat:nth-child(4) {
    border-right: none;  /* no right border on second column */
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* ---------- RESPONSIVE ------------------------------------------------------------------------------------------------------------------------------------------ */
@media (max-width: 900px) {
    .ait-content {
        transform: none;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ait {
        min-height: auto;
        padding: 96px 16px 56px;
        align-items: flex-start;
    }

    .ait-logo {
        height: 72px;
    }

    .ait-kicker {
        font-size: 16px;
    }

    .ait-title {
        font-size: clamp(30px, 9vw, 40px);
        margin-bottom: 14px;
    }

    .ait-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 36ch;
        margin-left: auto;
        margin-right: auto;
    }

    .ait-buttons {
        width: min(80%, 300px);
        flex-direction: column;
        margin: 0 auto;
    }

    .ait-buttons .btn-primary,
    .ait-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .growth-section {
        margin: -34px auto 0;
        max-width: 100%;
        padding: 0 12px;
    }

    .growth-wrapper {
        flex-direction: column;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    }

    .growth-left,
    .growth-right {
        width: 100%;
    }

    .growth-left {
        padding: 26px 20px;
    }

    .growth-title {
        font-size: clamp(28px, 9vw, 34px);
        margin-bottom: 16px;
    }

    .growth-text {
        max-width: none;
        margin-bottom: 20px;
    }

    .growth-right {
        grid-template-columns: 1fr; /* stack stats on small screens */
        background: #ffffff;
    }

    .growth-stat {
        border-right: none;
        padding: 22px 20px;
    }

    .stat-number {
        font-size: clamp(34px, 11vw, 46px);
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 15px;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ait {
        padding: 90px 12px 48px;
    }

    .growth-section {
        margin-top: -20px;
        padding: 0 8px;
    }
}
/* ---------- SCROLL FADE-IN FOR GROWTH SECTION --------------------------------------------------------------------------------------------------------------------- */

/* Initial hidden state */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s ease-out,
        transform 0.9s ease-out;
}

/* When it becomes visible */
.fade-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============== FREE WEBINARS SECTION ====================================================================================================================== */

.webinars {
    background: #f5f5f500;
    color: #111111;
    padding: 80px 0 100px;
}

.webinars-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* small title: Here’s our free Webinars */
.webinars-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 12px;
}

.webinars-heading {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.webinars-view-all {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #444;
}

.webinars-view-all:hover {
    color: #ff6200;
}

/* Big title: Cyber Threat Monitoring level I */
.webinars-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 40px;
}

/* Grid of cards */
.webinars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Each card */
.webinar-card {
    display: flex;
    flex-direction: column;
}

.webinar-thumb {
    margin-bottom: 18px;
    overflow: hidden;
}

.webinar-thumb img {
    width: 100%;
    display: block;
}

/* Text inside the card */
.webinar-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0px 5px;   /* <— Adjusted padding for inner spacing */
}

.webinar-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
    padding: 0px 5px;   /* <— Adjusted padding for inner spacing */
}

/* Responsive: stack on smaller screens */
@media (max-width: 1100px) {
    .webinars-inner {
        padding: 0 24px;
    }

    .webinars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .webinars {
        padding: 60px 0 80px;
    }

    .webinars-inner {
        padding: 0 18px;
    }

    .webinars-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
        margin-bottom: 10px;
    }

    .webinars-heading {
        width: 100%;
        text-align: center;
        line-height: 1.25;
    }

    .webinars-view-all {
        width: 100%;
        text-align: center;
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .webinars-title {
        text-align: center;
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.16;
        max-width: 14ch;
        margin: 0 auto 22px;
    }

    .webinars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ----------------- WEBINAR CARDS HOVER EFFECT ----------------- */

.webinar-card {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    /* starting state */
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(15, 23, 42, 0);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* slight zoom + lift on hover */
.webinar-card:hover {
transform: translateY(-8px) scale(1.03);   /* change -8px / 1.03 */
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);  /* change blur/opacity */

}

/* smooth zoom on the image itself */
.webinar-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.webinar-card:hover .webinar-thumb img {
    transform: scale(1.05);
}
/* =============== QUALITY SECTION (TWO PANEL) ============================================================================================================================ */

.quality-section {
    display: flex;
    min-height: 480px;
    width: 100%;
}

/* LEFT SIDE ---------------------------------------------------------- */
.quality-left {
    position: relative;
    flex: 1;
    background: url("../../images/city-bg.jpg") center center / cover no-repeat;
    /* use your own image file instead of city-bg.jpg */
    color: #fff;
}

.quality-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);   /* dark overlay */
}

.quality-left-inner {
    position: relative;
    max-width: 800px;
    padding: 80px 60px;
}

.quality-kicker {
    font-size: 18px;
    font-weight: 600;
    color: #ff6200;
    margin-bottom: 10px;
}

.quality-heading {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
}

.quality-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.quality-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #ff6200;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    font-size: 13px;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.quality-btn:hover {
    background: #ff6200;
    transform: translateY(-2px);
}

/* RIGHT SIDE --------------------------------------------------------- */
.quality-right {
    flex: 1;
    background: #ff8400;   /* blue panel */
    color: #fff;
    display: flex;
    align-items: center;
}

.quality-right-inner {
    max-width: 800px;
    padding: 80px 30px;
}

.quality-right-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.quality-right-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.quality-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quality-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.quality-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: 12px;
    position: relative;
}

.quality-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.quality-label {
    font-weight: 500;
}

/* RESPONSIVE --------------------------------------------------------- */
@media (max-width: 960px) {
    .quality-section {
        flex-direction: column;
    }

    .quality-left-inner,
    .quality-right-inner {
        padding: 50px 30px;
    }
}

/* ================= EMPOWERING LEARNERS SECTION ================================================================================================================== */

.empower-section {
    width: 100%;
    padding: 80px 0;
    background: #ffffff00;
}

.empower-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.empower-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "subtitle desc"
        "title desc";
    gap: 12px 48px;
    align-items: start;
    margin-bottom: 40px;
}

.empower-subtitle {
    grid-area: subtitle;
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
    margin-top: 0;
}

.empower-title {
    grid-area: title;
    font-size: clamp(32px, 4.8vw, 48px);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    color: #222;
    margin-top: 0;
}

.empower-description {
    grid-area: desc;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    max-width: 65ch;
    margin: 0;
    transform: translateY(50px)
}

.empower-right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.empower-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 4px;
    transition: 0.3s ease;
}

.empower-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.empower-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.direction-link {
    display: inline-block;
    margin-top: 20px;
    color: #ff6200;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.direction-link:hover {
    margin-left: 5px;
}

.empower-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.empower-btn {
    background: #ff8800;
    color: #fff;
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s ease;
}

.empower-btn:hover {
    background: #ff6200;
}

@media (max-width: 900px) {
    .empower-section {
        padding: 64px 0;
    }

    .empower-container {
        padding: 0 20px;
    }

    .empower-left {
        grid-template-columns: 1fr;
        grid-template-areas:
            "subtitle"
            "title"
            "desc";
        gap: 12px;
        margin-bottom: 24px;
        justify-items: center;
        text-align: center;
    }

    .empower-subtitle {
        width: 100%;
        text-align: center;
    }

    .empower-title {
        font-size: clamp(32px, 9vw, 46px);
        line-height: 1.15;
        width: 100%;
        text-align: center;
    }

    .empower-description {
        transform: none;
        width: 100%;
        margin: 0 auto;
        max-width: 38ch;
        text-align: center;
    }

    .empower-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 12px;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .empower-section {
        padding: 52px 0;
    }

    .empower-container {
        padding: 0 12px;
    }

    .empower-left {
        gap: 8px;
        margin-bottom: 14px;
    }

    .empower-title {
        font-size: clamp(28px, 10.5vw, 40px);
        max-width: 11ch;
        margin: 0 auto;
    }

    .empower-description {
        max-width: 30ch;
        margin: 0 auto;
        line-height: 1.6;
    }

    .empower-right {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 10px;
    }

    .empower-card {
        padding: 18px 16px;
        text-align: center;
    }

    .empower-card h3 {
        margin-bottom: 8px;
    }

    .empower-card p {
        margin: 0 auto;
    }

    .direction-link {
        margin-top: 12px;
    }
}

/* =============== PARTNER COMPANIES ========================================================================================================================== */
.partners {
    padding: 100px 0;
    text-align: center;
    margin: auto;
}

.partners-heading {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Grid */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* Partner cards */
.partner-card {
    opacity: 0;
    transform: scale(0.6);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.partner-card img {
    width: 300px;
    height: 200px;
}

/* When visible, animate */
.partner-card.visible {
    opacity: 1;
    transform: scale(1);
}
/* ================== FOOTER ======================================================================================================================================= */

.site-footer {
    background-color: #000;
    color: #ffffff;
    font-size: 14px;
}

.footer-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}

/* Top row */
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;

}

.footer-text {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-hours {
    margin-top: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    color: #cccccc;
    margin-bottom: 6px;
}

/* Bottom row */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copy {
    color: #888888;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #ff6200;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
