/* ============================================
   CEP UOK CUSTOM STYLES
   ============================================ */

@import url("font-awesome-pro.css");

/* ============================================
   PHOTO GALLERY SECTION
   ============================================ */
.photo-gallery-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 15px;
}

.gallery-grid figure {
    container: figure / inline-size;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-grid figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-grid img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    grid-area: 1 / 1 / -1 / -1;
    transition: scale 0.6s ease-in-out;
}

.gallery-grid figure:hover img {
    scale: 1.1;
}

.gallery-grid figcaption {
    grid-area: 1 / 1 / -1 / -1;
    align-self: end;
    z-index: 1;
    padding: 2em 1em 1em 1em;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8));
    display: none;
}

@container figure (width > 250px) {
    .gallery-grid figcaption {
        display: block;
    }
}

.gallery-grid figcaption h3 {
    font-size: 1rem;
    font-weight: 600;
}

@media (width > 600px) {
    .gallery-grid figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }

    .gallery-grid figure:nth-child(4n + 1) {
        grid-row: span 2;
    }

    .gallery-grid figure:nth-child(4n + 2) {
        grid-column: span 2;
    }
}

.gallery-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.gallery-info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-info-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 20px;
}

.gallery-info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 30px;
}

.btn-view-gallery {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.3);
    text-align: center;
    justify-content: center;
}

.btn-view-gallery:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(231, 76, 60, 0.4);
    color: white;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.96);
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 100px;
}

.gallery-modal-image-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery-modal-image.is-switching {
    opacity: 0;
    transform: scale(0.98);
}

.gallery-modal-info {
    margin-top: 18px;
    text-align: center;
}

.gallery-modal-info p {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Controls are fixed to the viewport, not the content box, so their
   size never looks "off" relative to whatever the image's own
   aspect ratio happens to be. */
.gallery-modal-close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    z-index: 20;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

.gallery-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    transition: all 0.25s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-nav:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(-50%) scale(1.08);
}

.gallery-modal-nav.prev {
    left: 24px;
}

.gallery-modal-nav.next {
    right: 24px;
}

/* Responsive Gallery */
@media (max-width: 992px) {
    .gallery-wrapper {
        flex-direction: column;
    }

    .gallery-sidebar {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 150px;
    }
}

@media (max-width: 768px) {
    .gallery-modal-content {
        padding: 70px 20px;
    }

    .gallery-modal-nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .gallery-modal-nav.prev {
        left: 10px;
    }

    .gallery-modal-nav.next {
        right: 10px;
    }

    .gallery-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 14px;
        right: 14px;
    }
}

/* ============================================
   TESTIMONIAL CAROUSEL STYLES
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 14px);
    padding: 60px 25px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-top: 50px;
    border-radius: 12px;
    background: white;
}

.testimonial-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 40px;
    color: #999;
    font-weight: 600;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e74c3c;
    margin-bottom: 15px;
    margin-top: 10px;
}

.testimonial-role {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #e74c3c;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: #e74c3c;
    width: 30px;
    border-radius: 6px;
}

/* Color variations for testimonial cards */
.testimonial-slide:nth-child(6n+1) {
    background: linear-gradient(135deg, #4a7ba7 0%, #5a8fb8 100%);
}

.testimonial-slide:nth-child(6n+2) {
    background: linear-gradient(135deg, #45b5aa 0%, #55c5ba 100%);
}

.testimonial-slide:nth-child(6n+3) {
    background: linear-gradient(135deg, #d64d7c 0%, #e65d8c 100%);
}

.testimonial-slide:nth-child(6n+4) {
    background: linear-gradient(135deg, #8b5fb8 0%, #9b6fc8 100%);
}

.testimonial-slide:nth-child(6n+5) {
    background: linear-gradient(135deg, #e67e4d 0%, #f68e5d 100%);
}

.testimonial-slide:nth-child(6n+6) {
    background: linear-gradient(135deg, #5cb85c 0%, #6cc86c 100%);
}

/* Update text colors for colored backgrounds */
.testimonial-slide:nth-child(6n+1) .testimonial-name,
.testimonial-slide:nth-child(6n+2) .testimonial-name,
.testimonial-slide:nth-child(6n+3) .testimonial-name,
.testimonial-slide:nth-child(6n+4) .testimonial-name,
.testimonial-slide:nth-child(6n+5) .testimonial-name,
.testimonial-slide:nth-child(6n+6) .testimonial-name {
    color: white;
}

.testimonial-slide:nth-child(6n+1) .testimonial-role,
.testimonial-slide:nth-child(6n+2) .testimonial-role,
.testimonial-slide:nth-child(6n+3) .testimonial-role,
.testimonial-slide:nth-child(6n+4) .testimonial-role,
.testimonial-slide:nth-child(6n+5) .testimonial-role,
.testimonial-slide:nth-child(6n+6) .testimonial-role {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-slide:nth-child(6n+1) .testimonial-text,
.testimonial-slide:nth-child(6n+2) .testimonial-text,
.testimonial-slide:nth-child(6n+3) .testimonial-text,
.testimonial-slide:nth-child(6n+4) .testimonial-text,
.testimonial-slide:nth-child(6n+5) .testimonial-text,
.testimonial-slide:nth-child(6n+6) .testimonial-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive Design */
@media (max-width: 992px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 10px);
    }

    .carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 calc(100% - 20px);
    }

    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testimonial-avatar {
        width: 100px;
        height: 100px;
        top: -50px;
    }

    .avatar-placeholder {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 20px;
    }

    .testimonial-slide {
        padding: 50px 20px 25px;
    }

    .testimonial-name {
        font-size: 14px;
    }

    .testimonial-text {
        font-size: 14px;
    }
}

/* ============================================
   QUICK STATS WITH BACKGROUND
   ============================================ */
.stats-section-bg {
    background-image: url('../img/bg/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
}

.stats-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.85));
    z-index: 1;
}

.stats-section-bg .container {
    position: relative;
    z-index: 2;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.stat-box i {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    text-transform: uppercase;
}




/* ============================================
   HOMEPAGE: DEPARTMENTS CARDS - equal height,
   simple box-shadow, no border / no border-radius
   ============================================ */
#ministries-section .ministries-box-style-2,
#ministries-section .ministries-inner {
    height: 100%;
}
#ministries-section .item {
    height: 100%;
    display: flex;
}
#ministries-section .ministries-box-style-2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    overflow: hidden;
}
#ministries-section .ministries-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}
#ministries-section .ministries-thumb {
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}
#ministries-section .ministries-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
}
#ministries-section .ministries-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#ministries-section .ministries-desc {
    flex: 1;
}
#ministries-section .owl-stage-outer,
#ministries-section .owl-stage,
#ministries-section .owl-item {
    display: flex;
}
#ministries-section .owl-item {
    height: auto;
}

/* ============================================
   HOMEPAGE: NEWS & EVENTS CARDS - equal height
   ============================================ */
.blog-section .item {
    height: 100%;
    display: flex;
}
.blog-section .blog-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.blog-section .blog-thumb {
    flex-shrink: 0;
    height: 220px;
    overflow: hidden;
}
.blog-section .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.blog-section .blog-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.blog-section .blog-title h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.blog-section .owl-stage-outer,
.blog-section .owl-stage,
.blog-section .owl-item {
    display: flex;
}
.blog-section .owl-item {
    height: auto;
}

/* ============================================
   OWL CAROUSEL NAV - RemixIcon, simple box-shadow,
   no border-radius (site-wide)
   ============================================ */
.owl-carousel .owl-nav {
    margin-top: 20px;
    text-align: center;
}
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #111827;
    font-size: 20px;
    margin: 0 6px;
    transition: all 0.25s ease;
}
.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: #f0a500;
    color: #fff;
}
.owl-carousel .owl-nav button i {
    line-height: 1;
}

/* ============================================================
   NAV DROPDOWN RELIABILITY FIX
   ============================================================
   Defensive overrides ensuring the top-nav dropdowns (About,
   Departments, etc) and their nested sub-menus always position
   and stack correctly, regardless of what page content (marquees,
   video sections, etc) follows the navbar in the DOM. Loaded after
   style.css so these rules win.
   ============================================================ */
.navbar-main > li.dropdown {
    position: relative;
}
.navbar-main .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
}
/* Nested (2nd-level) submenus - open to the right of their parent item */
.navbar-main .dropdown-menu .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1000;
}
/* Make sure the whole sticky nav bar always stacks above any page
   content that follows it (marquees, video sections, etc) */
.sticky-outer {
    position: relative;
    z-index: 998;
}
