﻿/* =========================================================
   HONOUR GALLERY - MAIN
   ========================================================= */

.honor-gallery-section {
    width: 100%;
    padding: 50px 0;
    background: #fff;
    overflow: hidden;
}

    .honor-gallery-section .container {
        width: 100%;
    }


/* =========================================================
   HEADER
   ========================================================= */

.honor-gallery-header {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.honor-gallery-title {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    color: #064a3a;
    white-space: nowrap;
    color: black;
}

.honor-gallery-title-line {
    width: 55px;
    height: 3px;
    background: #e99a32;
    border-radius: 10px;
    flex-shrink: 0;
}


/* =========================================================
   ARROWS
   ========================================================= */

.honor-gallery-arrows {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.honor-gallery-arrow {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #e99a32;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .honor-gallery-arrow:hover {
        background: #064a3a;
    }

    .honor-gallery-arrow:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }


/* =========================================================
   VIEWPORT
   ========================================================= */

.honor-gallery-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}


/* =========================================================
   TRACK
   ========================================================= */

.honor-gallery-track {
    display: flex;
    gap: 20px;
    width: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}


/* =========================================================
   CARD
   ========================================================= */

.honor-gallery-card {
    flex: 0 0 calc((100% - 60px) / 4);
    width: calc((100% - 60px) / 4);
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .honor-gallery-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }


/* =========================================================
   IMAGE
   ========================================================= */

.honor-gallery-image-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f2f2f2;
}

.honor-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    max-width: none;
    transition: transform 0.4s ease;
}

.honor-gallery-card:hover .honor-gallery-image {
    transform: scale(1.04);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.honor-gallery-card-body {
    padding: 18px 15px 20px;
    text-align: center;
}

    .honor-gallery-card-body h3 {
        margin: 0 0 7px;
        font-size: 18px;
        font-weight: 700;
        color: #064a3a;
    }

    .honor-gallery-card-body p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        color: #666;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .honor-gallery-section {
        padding: 40px 0;
    }

    .honor-gallery-title {
        font-size: 24px;
    }

    .honor-gallery-title-line {
        width: 40px;
    }

    .honor-gallery-card {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }

    .honor-gallery-image-wrapper {
        height: 230px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .honor-gallery-section {
        padding: 35px 0;
    }


    /* Header */

    .honor-gallery-header {
        width: 100%;
        gap: 8px;
        padding: 0 10px;
        margin-bottom: 25px;
        box-sizing: border-box;
    }

    .honor-gallery-title {
        font-size: 19px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .honor-gallery-title-line {
        width: 22px;
        height: 2px;
    }


    /* Arrows */

    .honor-gallery-arrows {
        position: static;
        transform: none;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .honor-gallery-arrow {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }


    /* Track */

    .honor-gallery-track {
        gap: 0;
    }


    /* One card per screen */

    .honor-gallery-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 10px;
    }


    /* Images */

    .honor-gallery-image-wrapper {
        width: 100%;
        height: 240px;
    }

    .honor-gallery-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* Body */

    .honor-gallery-card-body {
        padding: 16px 14px 18px;
    }

        .honor-gallery-card-body h3 {
            font-size: 17px;
        }

        .honor-gallery-card-body p {
            font-size: 13px;
        }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .honor-gallery-title {
        font-size: 17px;
    }

    .honor-gallery-title-line {
        width: 18px;
    }

    .honor-gallery-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .honor-gallery-image-wrapper {
        height: 220px;
    }
}
