/* =============================== */
/* GLOBAL */
/* =============================== */
body {
    margin: 0;
    font-family: Poppins, sans-serif;
    background: #f1f7ff;
}

/* =============================== */
/* TOP MENU */
/* =============================== */
.topnav {
    background: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.topnav .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #003c90;
}

.topnav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.topnav li {
    font-weight: 500;
    color: #0066cc;
    cursor: pointer;
}

/* =============================== */
/* PAGE CONTAINER */
/* =============================== */
.page-container {
    width: 90%;
    max-width: 1450px;
    margin: 20px auto 5px;   /* top 20, sides auto, bottom 5 instead of 20 */
}


/* =============================== */
/* GREETING HERO (RIBBON + TEENS) */
/* =============================== */

/* Main card */
.greeting-card {
    background: #ffffff;
    position: relative;
    overflow: visible;
    padding: 60px 40px 40px 40px;  /* top, right, bottom, left */
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Image layer – full-width ribbon */
.greet-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;  /* no mouse interaction */
}

.greet-left .staff-teens {
    width: 100%;      /* 🔥 stretch image to full card width */
    height: auto;
    display: block;
    border-radius: 0;
}

/* Text layer – sits on top, right side */
.greet-right {
    position: relative;
    z-index: 2;
    text-align: right;
    max-width: 60%;
    margin-left: auto;   /* push text to the right */
}

/* =============================== */
/* PORTAL CARDS */
/* =============================== */
.portal-cards {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.portal-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.portal-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.portal-card a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 15px;
    background: #006cff;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* =============================== */
/* MAIN LAYOUT (QUICK LINKS + DEPARTMENTS) */
/* =============================== */
.main-layout {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* =============================== */
/* SERVICES CAROUSEL */
/* =============================== */
.services-container {
    flex: 3;
    max-width: 1000px;
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.services-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.services-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.service-card {
    min-width: 240px;
    background: #e8f3ff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-info {
    padding: 15px;
}

.service-info button {
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #007bff;
    color: #007bff;
    cursor: pointer;
}

/* Carousel arrows */
.arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.arrow.left { left: -10px; }
.arrow.right { right: -10px; }

/* =============================== */
/* QUICK LINKS */
/* =============================== */
.quick-links {
    width: 340px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.quick-links h3 {
    margin-bottom: 15px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #0052bb;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.25s ease, opacity 0.25s ease, padding-left 0.25s ease;
}

.quick-links img {
    width: 32px;
}

/* =============================== */
/* RESPONSIVE FIXES */
/* =============================== */
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }

    .quick-links {
        width: 100%;
    }

    .services-container {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .greeting-card {
        padding: 40px 20px 30px 20px;
    }

    .greet-left {
        position: relative;
    }

    .greet-left .staff-teens {
        width: 100%;
    }

    .greet-right {
        max-width: 100%;
        text-align: center;
        margin: 20px auto 0;
    }

    .arrow.left { left: 0; }
    .arrow.right { right: 0; }
}

/* =============================== */
/* EXTRAVAGANT HOVER EFFECTS */
/* =============================== */

/* Smooth transition for cards + logo + greeting card */
.portal-card,
.service-card,
.quick-links,
.greeting-card,
.topnav .logo {
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

/* Portal cards hover */
.portal-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 18px 40px rgba(0,120,255,0.25);
    filter: brightness(1.06);
}

.portal-card:hover img {
    transform: scale(1.12);
    transition: transform 0.4s ease;
}

/* Department cards hover */
.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 16px 35px rgba(0,140,255,0.22);
    border: 3px solid rgba(0,150,255,0.45);
}

/* Quick links hover */
.quick-links a:hover {
    transform: translateX(6px);
    opacity: 0.85;
    padding-left: 12px;
}

.quick-links a:hover img {
    transform: scale(1.18);
    transition: transform 0.25s ease;
}

/* Greeting card hover */
.greeting-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,120,255,0.18);
}

/* Logo hover */
.topnav .logo {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.topnav .logo:hover {
    transform: translateY(-4px);
    text-shadow: 0 0 18px rgba(0,140,255,0.65),
                 0 0 28px rgba(0,160,255,0.55);
}

/* Section titles hover */
.services-header h3,
.quick-links h3 {
    transition: transform 0.35s ease, text-shadow 0.35s ease;
}

.services-header h3:hover,
.quick-links h3:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(0,120,255,0.4);
}

/* =============================== */
/* FOOTER */
/* =============================== */
.main-footer {
    margin-top: 5px;          /* was 40px – this closes the big gap above the footer */
    padding: 12px 40px 16px;  /* smaller padding so it sits visually closer to the bottom */
    background: transparent;
    color: #4a5d75;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}


.footer-right a {
    margin-left: 18px;
    display: inline-flex;
}

.footer-right img {
    width: 22px;
    height: 22px;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-right img:hover {
    opacity: 1;
    transform: scale(1.12);
}

@media (max-width: 700px) {
    .main-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-right img {
        width: 26px;
        height: 26px;
    }
}


/* Lift only the greeting text upward */
.greet-right {
    position: relative;
    z-index: 10;       /* stay above ribbon */
    text-align: right;
    margin-left: auto;
    max-width: 60%;
    padding-top: 0;

    transform: translateY(-80px);  /* ⬆ move text upward */
}

/* Do NOT move the teen image */
.greet-left,
.greet-left .staff-teens {
    transform: none !important;
    margin: 0 !important;
    top: auto !important;
}


/* Adjust only the greeting text positions */
.greet-right h2 {
    transform: translateY(10px);   /* move title DOWN */
}

.greet-right p {
    transform: translateY(-15px);  /* move subtitle UP */
}


/* Reduce empty space below the last sections */
.page-container {
    margin-bottom: 5px !important;
}

.main-footer {
    margin-top: 5px !important;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-footer {
    margin-top: auto;
}






/* MOBILE FIX — Reset greeting card layout for small screens */
@media (max-width: 600px) {

    .greeting-card {
        display: flex !important;
        flex-direction: column;      /* stack vertically */
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        padding: 40px 20px 60px 20px; /* space for bottom ribbon */
        position: relative;
        overflow: visible;
    }

    /* Move titles to the top */
    .greet-right {
        position: relative;
        order: 1;                    /* appear first */
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        transform: none !important;  /* remove desktop offsets */
    }

    /* Move ribbon + teens to the bottom */
    .greet-left {
        order: 2;                    /* appear after text */
        position: relative;
        width: 100%;
        margin-top: 20px;
    }

    .greet-left .staff-teens {
        width: 100%;
        height: auto;
        position: relative;
        bottom: 0;
    }
}



/* MOBILE — Make ribbon image full-width & touch borders */
@media (max-width: 600px) {

    .greet-left {
        width: 100%;
        margin: 0;
        padding: 0;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .greet-left .staff-teens {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
        transform: scale(1.25);      /* make image bigger */
        transform-origin: bottom;    /* grow upward to avoid white gap */
    }

    /* Add bottom padding so text doesn’t overlap the bigger image */
    .greeting-card {
        padding-bottom: 180px !important;
    }
}



/* MOBILE — Reduce greeting card height */
@media (max-width: 600px) {

    .greeting-card {
        padding-top: 10px !important;
        padding-bottom: 50px !important;  /* reduce from 180px */
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Ribbon image positioning */
    .greet-left {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .greet-left .staff-teens {
        width: 100%;
        height: auto;
        transform: scale(1.22);     /* adjust size */
        transform-origin: bottom;
    }

    /* Text stays centered */
    .greet-right {
        text-align: center;
        width: 100%;
        position: relative;
        z-index: 3;
    }
}
