
/* ══════════════════════════════════════════
   Branch, News, videos section
══════════════════════════════════════════ */
/* =========================================
   SEARCH BAR STYLES
========================================= */

.search-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.search-form {
    width: 100%;
    max-width: 600px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid #e8edf5;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #c9962a;
    box-shadow: 0 5px 30px rgba(201, 150, 42, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 25px;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: #0d1b3e;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: linear-gradient(135deg, #c9962a, #f0c14b);
    color: #0d1b3e;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.search-btn:hover {
    background: linear-gradient(135deg, #b8861f, #e0b13a);
}

/* =========================================
   PAGINATION STYLES
========================================= */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(13, 27, 62, 0.08);
}

.pagination-wrapper .pagination {
    gap: 5px;
    margin: 0;
}

.pagination-wrapper .page-link {
    border: none;
    padding: 12px 20px;
    color: #0d1b3e;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

.pagination-wrapper .page-link:hover {
    background: #c9962a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 150, 42, 0.3);
}

.pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, #c9962a, #f0c14b);
    color: #0d1b3e;
    border: none;
    box-shadow: 0 8px 25px rgba(201, 150, 42, 0.35);
}

.pagination-wrapper .page-item.disabled .page-link {
    background: #f8f9fc;
    color: #aaa;
    cursor: not-allowed;
}

/* =========================================
   RESPONSIVE - SEARCH
========================================= */

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        border-radius: 20px;
        background: #fff;
    }
    
    .search-input {
        width: 100%;
        padding: 14px 20px;
        border-bottom: 1px solid #e8edf5;
    }
    
    .search-btn {
        width: 100%;
        padding: 14px;
        border-radius: 0 0 20px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .search-btn {
        font-size: 14px;
        padding: 12px;
    }
}
/* --- 1. BRANCH STYLE --- */
/* =========================================
   BRANCH SECTION
========================================= */

.branch-section-area {
    padding: 110px 0;
    background: #f8f9fc;
    position: relative;
    overflow: hidden;
}

.branch-section-area .premium-title {
    color: #0d1b3e;
}

/* =========================================
   HEADER STYLE
========================================= */

.impact-header .tag {
    color: #c9962a;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    display: block;
}

.impact-header h2 {
    color: white;
    font-size: 42px;
    font-weight: 800;
    margin-top: 10px;
}

.impact-header .h-line {
    width: 60px;
    height: 4px;
    background: #c9962a;
    margin: 20px auto 55px;
    border-radius: 2px;
}

/* =========================================
   GRID LAYOUT
========================================= */

.branch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* =========================================
   CARD STYLE
========================================= */

.branch-card-item {
    position: relative;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 2px 10px rgba(0, 0, 0, 0.04);

    transition: 0.45s ease;
}

.branch-card-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 5px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================
   IMAGE
========================================= */

.branch-image-box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.branch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-card-item:hover .branch-img {
    transform: scale(1.12);
}

/* =========================================
   DEFAULT TITLE TAG
========================================= */

.branch-name-tag {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 3;

    background: rgba(13, 27, 62, 0.82);
    backdrop-filter: blur(10px);

    padding: 12px 18px;
    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition: 0.4s ease;
}

.branch-name-tag h5 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* Hover title effect */
.branch-card-item:hover .branch-name-tag {
    background: rgba(201, 150, 42, 0.96);
    transform: translateY(-5px);
}

.branch-card-item:hover {
    color: #0d1b3e;
}

/* =========================================
   REVEAL INFO
========================================= */

.branch-reveal-info {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(13, 27, 62, 0.1) 0%,
        rgba(13, 27, 62, 0.96) 55%
    );

    color: white;

    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transform: translateY(101%);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: 5;
}

.branch-card-item:hover .branch-reveal-info {
    transform: translateY(0);
}

/* =========================================
   REVEAL CONTENT
========================================= */

.branch-reveal-info h4 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #fff;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
}

.stats-list li span {
    color: #f0c14b;
    font-weight: 700;
}

/* =========================================
   BUTTON
========================================= */

.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 0px;
    padding: 8px 10px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);

    color: #fff;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;

    transition: 0.35s ease;
}

/* Button highlight on card hover */
.branch-card-item:hover .btn-view {
    background: linear-gradient(135deg, #c9962a, #f0c14b);

    color: #0d1b3e;

    border-color: transparent;

    box-shadow: 0 12px 30px rgba(201, 150, 42, 0.35);
}

/* =========================================
   RESPONSIVE
========================================= */

/* Large Tablet */
@media (max-width: 1200px) {
    .branch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-header h2 {
        font-size: 34px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .branch-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .branch-card-item {
        height: 340px;
    }

    .impact-header h2 {
        font-size: 28px;
    }

    .branch-reveal-info {
        padding: 24px;
    }

    .branch-reveal-info h4 {
        font-size: 22px;
    }
}