/*--------------------------------------------------------------
# Chaves Edit - FEK Team
--------------------------------------------------------------*/
.main-menu-three a {
    color: white !important;
}


.main-slider-three__right-btn2 {
    background-color: #FF6326;
    opacity: 1;
    color: #fff;
    border-radius: 25px;
    margin-top: 50px;
}

.stricky-header {
    background-color: #000068 !important;
}



.pb-011 {
    padding-bottom: .125rem !important
}

.pb-s1 {
    padding-bottom: 27.5px !important
}

.pb-s2 {
    padding-bottom: 66.8px !important
}

.pb-70 {
    padding-bottom: 70px !important
}

.pb-80 {
    padding-bottom: 80px !important
}

.pb-85 {
    padding-bottom: 85px !important
}

.pt-011 {
    padding-top: .125rem !important
}

.pt-85 {
    padding-top: 85px !important
}

.portfolio-details__imgx {
    position: relative;
    display: block;
}

.portfolio-details__imgx img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}



/*---------------------------------------------------------------------------
# we need to style the popup with CSS so it is placed as a common popup does
---------------------------------------------------------------------------*/

.chaves-popup {
    display:none;
    position:absolute;
    margin:0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}



/*--------------------------------------------------------------
# [Index] 1st Content Edit - Card Adjustment
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Index â€“ Value Proposition Cards (High Class)
--------------------------------------------------------------*/

.three-boxes-two {
    padding: 60px 0;
}

.three-boxes-two__single {
    padding: 10px;
}

.three-boxes-two__contentx {
    height: 100%;
    background: #1f73b7;
    border-radius: 8px;
    padding: 35px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    transition: all 0.3s ease;
}

/* Hover effect â€“ subtle & premium */
.three-boxes-two__contentx:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Icon */
.three-boxes-two__img img {
    max-width: 70px;
    margin-bottom: 15px;
}

/* Title */
.three-boxes-two__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Short description */
.three-boxes-two__text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/*--------------------------------------------------------------
# KKSB Image Grid (2x3, No Gap)
--------------------------------------------------------------*/

.kksb-image-grid {
    width: 100%;
}

.grid-item {
    position: relative;
    width: 100%;
    height: 280px;   /* ðŸ‘ˆ rectangle height */
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/*--------------------------------------------------------------
# [News] Content Edit - Card Adjustment
--------------------------------------------------------------*/

.news-one__contentx {
    position: relative;
    display: block;
    text-align: center;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 20px 60px 0px rgb(23 39 54 / 10%);
    padding: 29px 50px 30px;
    transition: all 500ms ease;
    min-height: 350px;
}

.news-one__contentx:before {
    position: absolute;
    bottom: -5px;
    right: 0;
    left: 0;
    width: 0;
    content: "";
    background-color: var(--thm-black);
    height: 1px;
    transition: all 500ms ease;
}

.news-one__single:hover .news-one__contentx:before {
    width: 100%;
}

.news-one__single:hover .news-one__contentx {
    background-color: var(--thm-black);
}


/*--------------------------------------------------------------
# [News Details] Edit - Img Adjustment
--------------------------------------------------------------*/

.news-details__imgx {
    position: relative;
    display: block;

}

.news-details__imgx>img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    
}

.news-details__date-boxx {
    position: absolute;
    bottom: -10px;
    right: 0px;
    background: var(--thm-black);
    padding: 3px 30px;
    z-index: 1;
}

.news-details__date-boxx p {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.1em;
}

/* Dropdown menu text color fix */
.main-menu-three .main-menu__list li ul li a {
    color: #000068 !important;
}

/* Mobile dropdown text fix */
.mobile-nav__container .main-menu__list li ul li a {
    color: #ffffff !important;
}


/* Optional: hover effect for dropdown */
.main-menu-three .main-menu__list li ul li a:hover {
    color: #FF6326 !important; /* or keep #000068 if you prefer */
}

/* ==================================================
   KKSB 3x2 Image Grid (Background Images, No Boxes)
================================================== */

/* Initial simple word – visible by default */
.kksb-initial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;  /* so it doesn't block hover on the tile */
    white-space: nowrap;
}

/* On tile hover, hide the initial word */
.kksb-tile:hover .kksb-initial {
    opacity: 0;
}

/* Ensure the overlay and content appear as before */
.kksb-tile::before {
    z-index: 2;  /* make sure overlay is above the initial word when visible */
}
.kksb-content {
    z-index: 3;  /* above the overlay */
}

.kksb-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.kksb-tile {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
}

/* Animated overlay */
.kksb-tile::before {
    content: "";
    position: absolute;
    inset: 40px;
    background: rgba(0, 0, 0, 0.9);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-115%);
    transition: all 800ms ease;
}

/* Hover trigger */
.kksb-tile:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
}

/* Content container */
.kksb-content {
    position: absolute;
    inset: 40px;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 600ms ease;
}

/* Show content on hover */
.kksb-tile:hover .kksb-content {
    opacity: 1;
    transform: translateY(0);
}

/* Title at top */
.kksb-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

/* Middle content centered */
.kksb-middle {
    font-size: 16px;
    color: #ccc;
    text-align: center;
    margin: auto 0;
}

.kksb-tile {
    transition: transform 600ms ease;
}

.kksb-tile:hover {
    transform: scale(1.05);
}

/* ============================================
   Fullscreen Video Hero
   ============================================ */
.video-hero {
    position: relative;        /* change from absolute to relative */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height :100vh;
}
/* Video element – covers entire section */
.video-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* ensures video fills area without distortion */
    z-index: 1;
}

/* Dark overlay – improves text readability */
.video-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);  /* adjust opacity as needed */
    z-index: 2;
}



/* Centered content */
.video-hero__content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
    z-index: 3;
    color: #fff;
}

/* Ensure text is white over the overlay */
.video-hero__content .main-slider-three__title,
.video-hero__content .main-slider-three__text {
    color: #fff;
}

/* Keep button styling consistent */
.video-hero__content .main-slider-three__right-btn {
    margin-top: 10px;

}



/* ============================================
   Hero Sequential Fade-In/Up
   ============================================ */
.video-hero__content {
    opacity: 1; /* parent visible, children animated individually */
}

.hero-title,
#type-1,
.hero-subtitle,
.main-slider-three__text,
.main-slider-three__right-btn {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 48px;
    animation-delay: 0.2s;      /* 1st: KKSB Cooperative */
}

#type-1 {
    font-size: 36px;
    animation-delay: 0.8s;      /* 2nd: typed phrase */
}

.hero-subtitle {
    font-size: 20px;
    animation-delay: 1.8s;      /* 3rd: full name */
}

.main-slider-three__text {
    margin-top: -20px;
    font-size: 18px;
    animation-delay: 2.8s;      /* 4th: description */
}


.video-hero__content .main-slider-three__right-btn {
    background:#000068;
    font-size: 14px;           /* smaller text */
    padding: 8px 24px;         /* was probably larger – adjust as needed */
    border-radius: 30px;      /* optional: keep rounded or make less */
    letter-spacing: 1px;      /* optional: tighten if needed */
    font-weight: 600;         /* keep boldness */
    margin-top: 10px;         /* maintain spacing from above */
    animation-delay: 3.8s;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Adjust for smaller screens */
@media (max-width: 768px) {
    .video-hero__content {
        width: 90%;
    }
    .main-slider-three__title {
        font-size: 28px;
    }
    .main-slider-three__text {
        font-size: 16px;
    }
}



/* Responsive */
@media (max-width: 991px) {
    .kksb-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .kksb-image-grid {
        grid-template-columns: 1fr;
    }
}
