﻿/*==================================================
                INSIDE HUDCO
==================================================*/

.inside-hudco-section {
    position: relative;
    padding: 30px 0;
    overflow: hidden;
    background: radial-gradient(circle at top left,#ffffff 0%,#fafafa 45%,#f3f5f8 100%);
}

    .inside-hudco-section::before {
        content: "";
        position: absolute;
        inset: 0;
       /* background: url("/images/hudco-logo.png") center center no-repeat;*/
        background-size: 420px;
        opacity: .04;
        pointer-events: none;
    }

/*==================================================
                HEADER
==================================================*/

.inside-header {
    text-align: center;
    margin-bottom: 20px;
}

.inside-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg,#880000,#620000);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    box-shadow: 0 12px 28px rgba(136,0,0,.22);
}

.inside-title {
    font-size: clamp(2.6rem,3vw,4.4rem);
    font-weight: 800;
    color: #13294b;
    margin-bottom: 18px;
}

.inside-subtitle {
    max-width: 760px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #6d7280;
}

/*==================================================
                CARDS
==================================================*/

.inside-card {
    height: 100%;
   /* background: #fff;*/
    border-radius: 28px;
    overflow: hidden;
   /* box-shadow: 0 25px 70px rgba(20,30,55,.08);*/
    transition: .45s;
    position: relative;
}

    .inside-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 35px 90px rgba(20,30,55,.15);
    }

/*==================================================
                IMAGE
==================================================*/

.inside-card-image {   
    height: 400px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

    .inside-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 1s;
        display: block;
    }

.inside-card:hover img {
    transform: scale(1.08);
}

/*==================================================
                BODY
==================================================*/

.inside-card-body {
    padding: 15px;
}

.inside-card-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #f3f4f8;
    /*color: #880000;*/
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient( 135deg, #880000, #6f0000 );
    color: white;
}

.inside-card-body h4 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #13294b;
    margin-bottom: 8px;
}

.inside-card-body p {
    color: #6d7280;
    line-height: 1.8;
    margin-bottom: 28px;
}

/*==================================================
                BUTTON
==================================================*/

.inside-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #880000;
    font-weight: 700;   
    transition: .35s;
}

    .inside-link i {
        transition: .35s;
    }

    .inside-link:hover i {
        transform: translateX(6px);
    }

/*=========================================
        PURPOSE CARD
=========================================*/

.purpose-card {
    position: relative;
    overflow: hidden;
    min-height: 575px;
    padding: 10px 10px;
    border-radius: 30px;
   /* background: #fff;*/
}

    .purpose-card::before {
        content: "";
        position: absolute;
        right: 30px;
        top: 20px;
        width: 220px;
        height: 220px;
      /*  background: url("/images/hudco-watermark.svg") no-repeat center;*/
        background-size: contain;
        opacity: .04;
    }

.purpose-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #13294b;
    margin-bottom: 60px;
}

.purpose-layout {
    position: relative;
    width: 100%;
    height: 560px;
}

.purpose-artwork {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    transform: translate(-50%,-50%);
    z-index:1;
}

    .purpose-artwork::after {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        background: radial-gradient(rgba(136,0,0,.12),transparent 70%);
        animation: targetPulse 4s infinite;
        pointer-events: none;
    }

@keyframes targetPulse {

    0% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(.7);
    }

    50% {
        opacity: .35;
    }

    100% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(1.6);
    }
}

    .purpose-artwork img {
        width: 100%;
        display: block;
        opacity: 0;
        transform: scale(.92);
        transition: opacity 1s ease, transform 1.2s cubic-bezier(.22,.61,.36,1);
        border-radius: 15px;
    }

/* Image enters */

.animate-on-scroll.in-view
.purpose-artwork img {
    opacity: 1;
    transform: scale(1);
}

/* Floating after reveal */

.animate-on-scroll.in-view
.purpose-artwork img {
    animation: artworkFloat 7s ease-in-out infinite 1.2s;
}

@keyframes artworkFloat {

    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.01);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.mission-content {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
    position: absolute;
    left: 25px;
    top: 35px;
    width: 50%;
    z-index: 5;
}

.animate-on-scroll.in-view
.mission-content {
    opacity: 1;
    transform: none;
}

.vision-content {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
    position: absolute;
    right: 25px;
    bottom: 35px;
    width: 50%;
    text-align: right;
    z-index: 5;
}

.mission-content,
.vision-content {   
    padding: 5px 15px;
    border-radius: 22px;
    background: rgba(255,255,255,.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 12px 40px rgba(20,35,70,.06);
    overflow: hidden;
}

    .mission-content::before,
    .vision-content::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient( 135deg, rgba(255,255,255,.45), rgba(255,255,255,.08) );
        opacity: 0;
        transition: 1s ease;
        pointer-events: none;
    }

.animate-on-scroll.in-view
.vision-content {
    opacity: 1;
    transform: none;
    transition-delay: .25s;
}

.mission-content h4,
.vision-content h4 {    
    color: #222;
    margin-bottom: 18px;
    opacity: 0;
    letter-spacing: 6px;
    transition: .8s;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.05;
}

    .vision-content h4::after {
        margin-left: auto;
    }

    .mission-content h4::after {
        margin-left: 0;
    }

.animate-on-scroll.in-view
.mission-content h4,
.animate-on-scroll.in-view
.vision-content h4 {
    opacity: 1;
    letter-spacing: 1px;
}

        .mission-content h4::after,
        .vision-content h4::after {
            content: "";
            display: block;
            width: 70px;
            height: 4px;
            margin-top: 14px;
            border-radius: 10px;
            background: #880000;
        }

.mission-content p,
.vision-content p {
    font-size: 1rem;
    line-height: 2.2;
    color: #444;
    opacity: 0;
    transform: translateY(20px);
    transition: .8s ease;
}

.animate-on-scroll.in-view
.mission-content p {
    opacity: 1;
    transform: none;
    transition-delay: .35s;
}

.animate-on-scroll.in-view
.vision-content p {
    opacity: 1;
    transform: none;
    transition-delay: .55s;
}

    .mission-content span,
    .vision-content span {
        color: #880000;
        font-weight: 700;
    }

.target-rings {
    position: absolute;
    inset: 0;
    animation: ringRotate 45s linear infinite;
}

.target-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient( rgba(136,0,0,.15), transparent 70% );
}

/* =========================================
   PURPOSE / CMD MESSAGE SWITCH
========================================= */

.purpose-card {
    position: relative;
    overflow: hidden;
}


/* Both states occupy exactly the same space */

.purpose-state {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}


/* Vision / Mission is the default */

.purpose-vm-state {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}


/* Video is hidden initially */

.purpose-video-state {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    z-index: 3;
}


/* =========================================
   ACTIVE VIDEO STATE
========================================= */

.purpose-card.show-cmd-video .purpose-vm-state {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97);
    pointer-events: none;
}


.purpose-card.show-cmd-video .purpose-video-state {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}


/* =========================================
   CMD VIDEO
========================================= */

.cmd-message-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================
   VIDEO OVERLAY
========================================= */

.cmd-video-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 35px 30px 28px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15), transparent );
    color: #fff;
    z-index: 2;
}


    .cmd-video-overlay h4 {
        margin: 8px 0 0;
        font-size: 22px;
        font-weight: 600;
        color: #fff;
    }

/* =========================================
   CMD VIDEO SOUND BUTTON
========================================= */

.cmd-video-sound {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}


    .cmd-video-sound:hover {
        background: rgba(136, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.7);
        transform: scale(1.08);
    }


    .cmd-video-sound i {
        font-size: 16px;
    }


/* Mobile */

@media (max-width: 768px) {

    .cmd-video-sound {
        width: 40px;
        height: 40px;
        right: 14px;
        bottom: 14px;
    }
}

/* =========================================
   OPTIONAL VIDEO PLAYING EFFECT
========================================= */

.purpose-card.show-cmd-video .cmd-message-video {
    transform: scale(1);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .cmd-video-overlay {
        padding: 25px 20px 20px;
    }

        .cmd-video-overlay h4 {
            font-size: 18px;
        }
}

/*==================================================
                GALLERY
==================================================*/

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 370px;
    overflow: hidden;
}

    .gallery-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: 1s;
        position: relative;      
        z-index: 2;
    }

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.04) translateY(-6px);
}

.gallery-body {
    padding: 30px;
    text-align: center;
}

    .gallery-body h4 {
        font-size: 1.45rem;
        color: #13294b;
        margin-bottom: 12px;
        font-weight: 700;
    }

    .gallery-body p {
        color: #777;
        margin-bottom: 0;
    }

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 16px;   
    padding: 20px 0;
    margin-top: auto;
}

    .gallery-controls button {
        width: 52px;
        height: 52px;
        border: none;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 12px 28px rgba(0,0,0,.12);
        transition: .35s;
    }

        .gallery-controls button:hover {
            background: #880000;
            color: #fff;
            transform: translateY(-5px);
        }

.gallery-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-image {
    position: relative;
    z-index: 2;
    object-fit: contain;
}

.event-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
}

    .event-slide.active {
        opacity: 1;
        visibility: visible;
        position: relative;
    }

.gallery-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 10px;
    padding: 22px;
    border-radius: 24px;
    /*background: rgba(255,255,255,.15);*/
    background: linear-gradient(rgba(18, 25, 40, 0.15), rgba(18, 25, 40, 0.72));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
    transform: translateY(35px);
    opacity: 0;
    transition: .55s cubic-bezier(.22,.61,.36,1);
    z-index: 5;
}

    .gallery-overlay h4 {
        color: #fff;
        font-size: 1.35rem;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .gallery-overlay p {
        color: rgba(255,255,255,.88);
        margin-bottom: 18px;
    }

.gallery-footer {
    padding: 22px 20px 10px;
    text-align: center;
    transition: .45s;
}

    .gallery-footer h4 {
        color: #13294b;
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .gallery-footer p {
        color: #777;
        margin: 0;
    }

.gallery-card:hover .gallery-footer {
    opacity: 0;
    transform: translateY(15px);
}

.gallery-click {
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 22px;
    z-index: 1;
}

    .gallery-image-wrapper::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 120px;
        background: linear-gradient( transparent, rgba(0,0,0,.28) );
    }

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.15);
    opacity: .45;
}

.gallery-card:hover .event-image {
    transform: scale(1.04) translateY(-8px);
}

.gallery-card:hover .gallery-image-bg {
    transform: scale(1.22);
    filter: blur(24px);
}

.gallery-content {
    color: white;
}

    .gallery-content h4 {
        color: white;
    }

    .gallery-content p {
        color: rgba(255,255,255,.85);
    }

.gallery-footer {
    padding: 25px;
    text-align: center;
}

.gallery-card:hover .gallery-footer {
    opacity: 0;
}

.leadership-card {
    overflow: hidden;
}

.leadership-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background: linear-gradient( 180deg, rgba(18,25,40,.15), rgba(18,25,40,.72) );
    backdrop-filter: blur(1.5px);
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s cubic-bezier(.22,.61,.36,1);
    pointer-events: auto;
    z-index: 2;
}

.leadership-card:hover .leadership-overlay {   
    opacity: 1;
    transform: none;
}

.leadership-card:hover img {
    transform: scale(1.08) translateY(-8px);

}


.leadership-card:hover .inside-link {
    transform: translateX(8px);
}

.leadership-content {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.18);
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,.18), 0 0 35px rgba(255,255,255,.06);
    z-index: 5;
}

    .leadership-content h4 {
        color: white;
    }

    .leadership-content p {
        color: rgba(255,255,255,.85);
        font-style:italic;
        text-align:justify;
        margin:auto;
        padding:0.5%;
        margin-bottom: 5%;
    }

.leadership-footer {
    padding: 30px;
    text-align: center;
    background: #fff;
    position: relative;
}

    .leadership-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 4px;
        border-radius: 20px;
        background: linear-gradient( 90deg, #880000, #0d4b94 );
    }

    .leadership-footer h4 {
        font-size: 1.4rem;
        font-weight: 800;
        color: #13294b;
        margin-bottom: 10px;
    }

    .leadership-footer p {
        color: #666;
        line-height: 1.7;
        margin: 0;
    }

.leadership-card:hover .leadership-footer {
    opacity: 0;
}



/*==================================================
            SVG CONNECTORS
==================================================*/

.purpose-connectors {
    position: absolute;
    width: 520px;
    height: 240px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    overflow: visible;
    pointer-events: none;
}

.connector {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    transition: 1.5s ease;
    filter: drop-shadow(0 0 5px rgba(255,255,255,.5)) drop-shadow(0 0 10px rgba(255,255,255,.25));
    animation: connectorFlow 5s linear infinite;
}

.connector-left {
    stroke: #880000;
}

.connector-right {
    stroke: #0d4b94;
}

.animate-on-scroll.in-view .connector {
    stroke-dashoffset: 0;
}

@keyframes connectorFlow {

    0% {
        stroke-dashoffset: 420;
    }

    100% {
        stroke-dashoffset: 0;
    }
}



/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:991px) {

    .inside-hudco-section {
        padding: 80px 0;
    }

    .inside-card-image,
    .gallery-image {
        height: 300px;
    }

    .purpose-card {
        margin: 30px 0;
    }

    .purpose-stage {
        flex-direction: column;
    }

    .purpose-callout {
        width: 100%;
    }

    .purpose-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

}