/* ==========================================================================
   1. GLOBAL RESETS & STYLING FOUNDATIONS
   ========================================================================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Urbanist", sans-serif;
    color: #333333;
    background-color: #ffffff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

/* ==========================================================================
   2. STICKY DYNAMIC NAVIGATION BAR (MATCHED ON RENDER HIERARCHY)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    box-shadow: none;
    padding: 0 80px;
    z-index: 1000;
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

#colab-logo {
    width: 150px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2b4c7e;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #7ca852 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ==========================================================================
   3. HERO COVER BACKDROP
   ========================================================================== */
.parallax {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 55vh;
    padding: 100px 10% 0 10%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.45)), url('../UpdatePhotos/Blue.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
}

.parallax h1 {
    font-size: 72px;
    font-weight: 800;
    color: #79a164;
    line-height: 1;
    margin: 0;
}

.parallax h2 {
    font-size: 72px;
    font-weight: 800;
    color: #2b4c7e;
    line-height: 1;
    margin: 5px 0 0 0;
}

/* ==========================================================================
   4. CEO SECTION CARD WITH DRIVING ANCHOR MICRO-ANIMATIONS
   ========================================================================== */
.ceo-section-wrapper {
    background-color: #ffffff;
    padding: 20px 0 80px 0;
    display: flex;
    justify-content: center;
}

.CEO {
    width: 90%;
    max-width: 1150px;
    background-color: #4f82ae;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-shadow: 0 15px 40px rgba(79, 130, 174, 0.2);
}

.ceo-text-side {
    flex: 1.5;
}

.ceo-badge-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Clickable Title Indicator Configuration */
.ceo-scholar-link {
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.Name h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
}

/* CSS Entry Highlight Effect Underline */
.ceo-scholar-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #dbf0cc;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.ceo-scholar-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.link-indicator-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
}

.ceo-scholar-link:hover .link-indicator-icon {
    color: #dbf0cc;
    transform: translate(2px, -2px);
}

.ceo-scholar-link:hover h1 {
    color: #dbf0cc;
}

.Name h2 {
    font-size: 16px;
    font-weight: 700;
    color: #dbf0cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 6px 0 4px 0;
}

.Name h3 {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 25px 0;
}

.Message p {
    font-size: 15px;
    line-height: 1.7;
    color: #ffffff;
    text-align: justify;
    margin: 0;
    font-weight: 400;
}

.Picture {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-border-frame {
    background-color: #ffffff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-border-frame img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover combination layout overlay scale triggers */
.image-border-frame:hover img {
    transform: scale(1.04);
}

/* Autonomous Continuous Float Loop Animation Processing Engine */
.auto-float-animation {
    animation: floatingFluidLoop 4.5s ease-in-out infinite;
}

@keyframes floatingFluidLoop {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
        box-shadow: 0 20px 35px rgba(0,0,0,0.15);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ==========================================================================
   INTERSECTION OBSERVER REVEAL LOGIC OVERLAYS
   ========================================================================== */
.scroll-animate .animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate .animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.reveal-active .animate-left,
.scroll-animate.reveal-active .animate-right {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate.reveal-active .animate-right {
    transition-delay: 0.15s;
}

/* ==========================================================================
   5. PROFILE LAYOUT MIDDLE CONTEXT BLOCKS
   ========================================================================== */
.Location {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 60px auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.location-graphic {
    flex: 1.2;
}

.location-graphic img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.location-desc-box {
    flex: 1.5;
    display: flex;
    gap: 20px;
}

.accent-pillar {
    width: 4px;
    background-color: #7ca852;
    border-radius: 2px;
    flex-shrink: 0;
}

.location-desc-box p {
    font-size: 18px;
    line-height: 1.7;
    color: #444444;
    margin: 0;
    text-align: justify;
    font-weight: 500;
}

.location-desc-box b {
    color: #2b4c7e;
    font-weight: 700;
}

.vision-statement-row {
    width: 90%;
    max-width: 950px;
    margin: 0 auto 100px auto;
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: #f8fafc;
    padding: 30px 40px;
    border-radius: 12px;
}

.vision-icon-circle {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7ca852;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.vision-statement-row p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   6. MISSION, VISION, VALUES SYSTEM PANEL COMPONENT
   ========================================================================== */
.page5 {
    background-color: #2b4c7e;
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card-icon-header {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #f0f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b4c7e;
    font-size: 24px;
    margin-bottom: 15px;
}

.card h2 {
    color: #7ca852;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.card .read-more {
    display: inline-block;
    padding: 10px 24px;
    border: 1.5px solid #2b4c7e;
    color: #2b4c7e;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    margin-bottom: 30px;
}

.card .read-more:hover {
    background-color: #2b4c7e;
    color: #ffffff;
}

.card-image-wrapper {
    width: 100%;
    margin-top: auto;
    border-radius: 8px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   7. UNIFORM SUB-FOOTER MATCH COMPONENT
   ========================================================================== */
.sub-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    padding: 80px 40px;
    gap: 50px;
    border-top: 1px solid #eeeeee;
}

.footer-logo-side img {
    width: 240px;
    height: auto;
}

.footer-divider {
    width: 1px;
    height: 140px;
    background-color: #dddddd;
}

.foot-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
}

.info-row {
    display: flex;
    align-items: center;
    color: #444444;
}

.info-row p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.address-row {
    align-items: flex-start;
    gap: 12px;
}

.icon-marker {
    color: #333333;
    font-size: 20px;
    margin-top: 2px;
}

.connect-row {
    gap: 40px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    color: #111111;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #1d4477;
}

.mail-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-mail {
    color: #555555;
    font-size: 18px;
}

.phones-row {
    gap: 30px;
}

.phones-row p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-phone, .icon-globe {
    color: #2b4c7e;
    font-size: 16px;
}

footer {
    background-color: #1a4273;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   8. RESPONSIVE HOOK BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar { padding: 0 40px; }
    .CEO, .Location, .vision-statement-row { gap: 35px; }
    .parallax h1, .parallax h2 { font-size: 56px; }
}

@media (max-width: 768px) {
    .navbar { height: 80px; padding: 0 20px; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        padding-top: 60px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 10px rgba(0,0,0,0.05);
    }
    
    .nav-links a { color: #2b4c7e !important; }
    .nav-links.active { right: 0; }
    .hamburger { display: flex; }
    
    .hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .parallax { height: 40vh; background-attachment: scroll; padding-top: 80px; }
    .parallax h1, .parallax h2 { font-size: 44px; }
    
    .CEO { flex-direction: column-reverse; padding: 35px 25px; text-align: center; }
    .ceo-badge-icon { margin: 0 auto 20px auto; }
    .divider-line { margin: 20px 0; }
    .Message p { text-align: center; }
    .image-border-frame img { max-width: 280px; margin: 0 auto; }
    
    /* Responsive adjustment overriding infinite transforms */
    .scroll-animate .animate-left,
    .scroll-animate .animate-right {
        transform: translateY(20px);
    }
    .scroll-animate.reveal-active .animate-left,
    .scroll-animate.reveal-active .animate-right {
        transform: translateY(0);
    }
    
    /* Ensure floating is correctly appended inside fluid boundaries */
    .scroll-animate.reveal-active .auto-float-animation {
        animation: floatingFluidLoop 4.5s ease-in-out infinite;
    }

    .Location { flex-direction: column; text-align: center; gap: 30px; }
    .location-graphic img { margin: 0 auto; }
    .location-desc-box { flex-direction: column; align-items: center; }
    .accent-pillar { width: 40px; height: 3px; }
    .location-desc-box p { text-align: center; }
    
    .vision-statement-row { flex-direction: column; text-align: center; padding: 25px; }
    
    .page5 { padding: 60px 0; }
    .container { gap: 30px; }
    .card { max-width: 100%; }
    
    .sub-footer { flex-direction: column; text-align: center; padding: 50px 24px; gap: 30px; }
    .footer-divider { display: none; }
    .foot-info-side { align-items: center; }
    .info-row { flex-direction: column; align-items: center; gap: 10px; }
    .connect-row, .phones-row { gap: 20px; }
}

@media (max-width: 480px) {
    .parallax h1, .parallax h2 { font-size: 36px; }
    .Name h1 { font-size: 24px; flex-wrap: wrap; justify-content: center; }
    .card-icon-header { width: 55px; height: 55px; font-size: 20px; }
}