/* ==========================================================================
   Custom Navigation Header & Hero Carousel Redesign Stylesheet
   ========================================================================== */

/* 1. Header Navigation Overrides */
.main-header-three {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-menu-three__wrapper {
    background-color: #ffffff !important;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.main-menu-three__wrapper-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100%;
}

.main-menu-three__logo-container {
    display: flex;
    align-items: center;
    padding: 8px 0;
    flex-shrink: 0;
}

.main-menu-three__logo-image {
    height: 60px !important;
    width: auto !important;
    object-fit: contain;
    transition: height 0.3s ease;
}

@media (min-width: 1200px) {
    .main-menu-three__main-menu-box {
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }
}

/* Align Nav Link Items and Apply Active Link Underlines */
.main-menu-three .main-menu__list > li {
    position: relative;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    margin: 0 20px !important;
}

/* Override default high-specificity margins from base template */
.main-menu-three .main-menu__list > li + li,
.stricky-header.main-menu-three .main-menu__list > li + li {
    margin-left: 0 !important;
}

.main-menu-three .main-menu__list > li > a {
    color: #444444 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    padding-bottom: 6px;
    position: relative;
    transition: color 0.3s ease;
}

.main-menu-three .main-menu__list > li:hover > a,
.main-menu-three .main-menu__list > li.current > a {
    color: #038002 !important; /* Ministry theme green */
}

/* Custom indicator underline */
.main-menu-three .main-menu__list > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #038002;
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu-three .main-menu__list > li:hover > a::after,
.main-menu-three .main-menu__list > li.current > a::after {
    transform: scaleX(1);
}

/* Apply Now CTA Button Styles */
.apply-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px !important;
    background-color: #038002 !important; /* Theme green */
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    border: none;
    text-decoration: none;
}

.apply-now-btn:hover {
    background-color: #026001 !important;
    color: #ffffff !important;
}

/* Sticky Header Custom Adjustments */
.stricky-header.stricky-fixed {
    background-color: #ffffff !important;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.stricky-header.stricky-fixed .main-menu-three__logo-image {
    height: 55px !important;
}

.stricky-header.stricky-fixed .main-menu-three .main-menu__list > li {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* 2. Hero Carousel (Main Slider) Styles */
.main-slider-three {
    position: relative;
    height: 95vh !important; /* Bound the slider viewport */
    overflow: hidden;
}

.main-slider-three .owl-nav {
    display: none !important;
}

.main-slider-three .item {
    height: 95vh !important;
}

/* ken burns background scaling animation */
.owl-item.active .main-slider-three__bg {
    transform: scale(1.08) !important;
    transition: transform 7000ms ease-out !important;
}

/* left-aligned gradient overlay */
.main-slider-three__bg::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%) !important;
    z-index: 2 !important;
}

.main-slider-three__content {
    z-index: 15;
    text-align: left;
    margin-left: 0;
}

/* Accent yellow bar */
.slider-yellow-bar {
    width: 35px;
    height: 5px;
    background-color: #ffd600;
    margin-bottom: 24px;
    border-radius: 2px;
    display: block;
}

.main-slider-three__title {
    font-size: 56px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 16px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-slider-three__sub-title {
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    max-width: 650px;
    margin-bottom: 35px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Hero Slide Buttons */
.slider-btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffd600 !important; /* Bright Yellow */
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px 30px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(255, 214, 0, 0.25);
    border: none;
    text-decoration: none;
}

.slider-btn-yellow:hover {
    background-color: #e5c000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 214, 0, 0.4);
}

.slider-btn-yellow i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.slider-btn-yellow:hover i {
    transform: translateX(4px);
}

.slider-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 14px 30px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
}

.slider-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}

/* 3. Scrolling Marquee News Ticker */
.news-ticker-container {
    width: 100%;
    background-color: #038002; /* Bright green */
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 14px 0;
    position: relative;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-animation 35s linear infinite;
}

.news-ticker-track:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.news-ticker-item:hover {
    color: #ffd600 !important; /* Yellow text on hover to indicate clickability */
    opacity: 0.9;
}

.news-ticker-item i {
    margin-right: 10px;
    color: #ffd600; /* Yellow Alert bell */
    font-size: 15px;
}

@keyframes ticker-animation {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Mobile responsive media queries */
@media (max-width: 991px) {
    .main-menu-three__logo-image {
        height: 55px !important;
    }
    .main-slider-three__title {
        font-size: 42px !important;
    }
    .main-slider-three__sub-title {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .main-slider-three {
        height: 85vh !important;
    }
    .main-slider-three .item {
        height: 85vh !important;
    }
    .main-slider-three__title {
        font-size: 32px !important;
    }
    .main-slider-three__sub-title {
        margin-bottom: 25px !important;
    }
    .slider-btn-yellow, .slider-btn-outline {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    .news-ticker-item {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* 5. Modern Core Values Section */
.core-values-modern {
    background-color: #f2f6f0 !important; /* Pale light green/off-white background */
    padding: 100px 0 !important;
    position: relative;
    overflow: hidden;
}

.core-values-image-wrapper {
    position: relative;
    width: 85%;
    max-width: 440px;
    margin: 30px auto;
    z-index: 10;
}

.core-values-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Yellow outline offset top-left */
.image-offset-outline {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid #ffd600; /* Yellow */
    border-radius: 12px;
    z-index: 1;
}

/* Green solid block offset bottom-right */
.image-offset-solid {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 100%;
    height: 100%;
    background-color: #82c48d; /* Soft pastel green */
    border-radius: 12px;
    z-index: 2;
}

.core-values-content {
    padding-left: 20px;
}

.core-values-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #038002;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.core-values-title {
    font-size: 38px;
    font-weight: 800;
    color: #151515;
    margin-bottom: 20px;
    line-height: 1.2;
}

.core-values-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #555555;
    font-weight: 500;
    margin-bottom: 35px;
}

.core-values-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.core-values-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border-left: 4px solid #038002 !important; /* Bold green left border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
}

.core-values-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.core-values-card-icon {
    color: #038002;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.core-values-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #038002;
    margin: 0 0 4px 0;
}

.core-values-card-text {
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 991px) {
    .core-values-image-wrapper {
        margin-bottom: 60px;
        width: 80%;
    }
    .core-values-content {
        padding-left: 0;
    }
    .core-values-title {
        font-size: 32px;
    }
}

/* 6. Modern Principals Section */
.principals-section {
    background-color: #f6f6f6 !important; /* Soft neutral gray */
    padding: 90px 0 !important;
}

.principals-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #038002;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.principals-title {
    font-size: 38px;
    font-weight: 800;
    color: #151515;
    line-height: 1.2;
}

.principal-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
}

.principal-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 22px;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.02);
}

.principal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.principal-card:hover .principal-img {
    transform: scale(1.04);
}

.principal-info {
    padding: 5px 0;
}

.principal-name {
    font-size: 20px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 6px 0;
}

.principal-position {
    font-size: 14px;
    font-weight: 700;
    color: #038002; /* Theme green */
    margin: 0 0 18px 0;
}

.principal-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-circle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #444444 !important;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.social-circle-btn:hover {
    background-color: #038002;
    color: #ffffff !important;
    border-color: #038002;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 128, 2, 0.2);
}

/* 7. Modern Core Departments Section */
.departments-modern {
    background-color: #ffffff !important;
    padding: 100px 0 !important;
    position: relative;
}

.departments-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #038002;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.departments-title {
    font-size: 38px;
    font-weight: 800;
    color: #151515;
    line-height: 1.2;
    margin: 0;
}

.view-all-dept-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #038002 !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.view-all-dept-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.view-all-dept-btn:hover i {
    transform: translate(3px, -3px);
}

/* Core Dept Cards */
.dept-card {
    position: relative;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 310px;
    box-sizing: border-box;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.dept-card-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.dept-card-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Styles per card type */
/* 1. Wide Light Card (Youth Empowerment) */
.dept-card-wide-light {
    background-color: #f6f6f6;
    color: #151515;
    border: 1px solid rgba(0,0,0,0.02);
}

.dept-card-wide-light .dept-card-title {
    color: #038002;
    max-width: 80%;
}

.dept-card-wide-light .dept-card-desc {
    color: #555555;
    max-width: 70%;
}

.dept-card-watermark {
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 150px;
    color: rgba(3, 128, 2, 0.04); /* Faint green watermark */
    z-index: 1;
    pointer-events: none;
}

.dept-card-content {
    position: relative;
    z-index: 5;
}

.dept-btn-green {
    display: inline-block;
    padding: 10px 24px;
    background-color: #038002 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.dept-btn-green:hover {
    background-color: #026001 !important;
}

/* 2. Standard Green Card (Youth Service) */
.dept-card-green {
    background-color: #038002;
    color: #ffffff;
}

.dept-card-green .dept-card-title {
    color: #ffffff;
}

.dept-card-green .dept-card-desc {
    color: rgba(255, 255, 255, 0.9);
}

.dept-card-icon-container {
    font-size: 26px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.dept-card-green .dept-card-icon-container {
    color: #ffffff;
}

.dept-link-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.dept-link-explore:hover {
    gap: 12px;
}

/* 3. Wide Yellow Card (Vocational Training) */
.dept-card-yellow {
    background-color: #ffd600;
    color: #151515;
}

.dept-card-yellow .dept-card-title {
    color: #151515;
}

.dept-card-yellow .dept-card-desc {
    color: #333333;
}

.dept-card-yellow .dept-card-icon-container {
    color: #151515;
}

.dept-btn-outline-dark {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent !important;
    color: #151515 !important;
    border: 1.5px solid #151515 !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.dept-btn-outline-dark:hover {
    background-color: #151515 !important;
    color: #ffd600 !important;
}

/* 4. Standard Light Card (Business Development) */
.dept-card-light {
    background-color: #f6f6f6;
    color: #151515;
    border: 1px solid rgba(0,0,0,0.02);
}

.dept-card-light .dept-card-title {
    color: #151515;
}

.dept-card-light .dept-card-desc {
    color: #555555;
}

.dept-card-light .dept-card-icon-container {
    color: #038002;
}

.dept-link-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #038002 !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.dept-link-green:hover {
    gap: 12px;
}

/* 8. Modern News Section */
.event-three {
    background-color: #ffffff !important;
    padding: 100px 0 !important;
}

.news-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #038002;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 12px;
}

.news-main-title {
    font-size: 38px;
    font-weight: 800;
    color: #151515;
    text-align: center;
    margin-bottom: 45px;
}

.modern-news-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.modern-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.modern-news-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1.8 / 1;
    overflow: hidden;
    background-color: #f8fafc;
}

.modern-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-news-card:hover .modern-news-img {
    transform: scale(1.03);
}

/* Category Badge styles overlay */
.modern-news-badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 0 0 10px 0;
    letter-spacing: 0.5px;
    z-index: 10;
    text-transform: uppercase;
}

.badge-events {
    background-color: #038002 !important; /* Green */
    color: #ffffff !important;
}

.badge-press {
    background-color: #ffd600 !important; /* Yellow */
    color: #151515 !important;
}

.badge-update {
    background-color: #d92525 !important; /* Red */
    color: #ffffff !important;
}

/* Content wrapper */
.modern-news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modern-news-date {
    display: block;
    font-size: 13px;
    color: #777777;
    font-weight: 600;
    margin-bottom: 10px;
}

.modern-news-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.modern-news-title a {
    color: #151515 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-news-title a:hover {
    color: #038002 !important;
}

.modern-news-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #555555;
    font-weight: 500;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #038002 !important;
    text-decoration: none !important;
    margin-top: auto;
    transition: gap 0.2s ease;
    width: fit-content;
}

.modern-news-btn i {
    font-size: 12px;
}

.modern-news-btn:hover {
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #151515;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #038002;
    color: #ffffff;
    border-color: #038002;
}

.pagination .page-item.active .page-link {
    background-color: #038002;
    color: #ffffff;
    border-color: #038002;
}

.pagination .page-item.disabled .page-link {
    color: #cccccc;
    background-color: #f8f8f8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}




