﻿/*=====================================
        NEWS
======================================*/

.news-section {
    padding: 90px 0;
    background: #f8fafc;
}

.news-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    transition: .35s;
    height: 100%;
}

    .news-card:hover {
        box-shadow: 0 20px 50px rgba(32,58,111,.15);
    }

.news-image {
    position: relative;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: .5s;
    }

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 28px;
}

.news-date {
    color: #64748b;
    font-size: .9rem;
    margin-bottom: 15px;
}

    .news-date i {
        color: var(--secondary);
        margin-right: 8px;
    }

.news-content h4 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-content p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 22px;
}

.news-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .news-link:hover {
        color: var(--primary);
    }

    .news-link i {
        transition: .3s;
    }

    .news-link:hover i {
        transform: translateX(5px);
    }
/*=====================================
        NEWS DETAIL PAGE
======================================*/

.news-detail {
    position: relative;
    padding: 150px 0 90px;
    background: #fff;
}

.news-breadcrumb {
    font-size: 15px;
    color: #64748b;
}

    .news-breadcrumb a {
        color: var(--primary);
        text-decoration: none;
    }

    .news-breadcrumb span {
        margin: 0 8px;
    }

.news-category {
    display: inline-block;
    background: rgba(237,28,36,.1);
    color: var(--secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
}

.news-meta {
    display: flex;
    gap: 30px;
    color: #64748b;
    font-size: 15px;
}

    .news-meta i {
        color: var(--secondary);
        margin-right: 8px;
    }

.news-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.news-banner {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
}

.news-detail-content {
    font-size: 18px;
    line-height: 2;
    color: #555;
}

    .news-detail-content p {
        margin-bottom: 25px;
    }
/*=========================================
        RESPONSIVE
=========================================*/

@media (max-width:991px) {

    .news-detail {
        padding: 70px 0;
    }

    .news-title {
        font-size: 32px;
        line-height: 1.35;
    }

    .news-banner {
        height: 360px;
        margin-bottom: 35px !important;
    }

    .news-content {
        font-size: 17px;
        line-height: 1.9;
    }
       

    .news-meta {
        flex-wrap: wrap;
        gap: 15px 25px;
    }
}

@media (max-width:767px) {

    .news-detail {
        padding: 50px 0;
    }

    .news-breadcrumb {
        font-size: 14px;
        margin-top:80px;
    }

    .news-category {
        font-size: .8rem;
        padding: 7px 15px;
    }

    .news-title {
        font-size: 28px;
        margin-top: 18px;
    }

    .news-meta {
        font-size: 14px;
    }

    .news-banner {
        height: 260px;
        border-radius: 18px !important;
    }

    .news-content {
        font-size: 16px;
        line-height: 1.8;
    }

        .news-content p {
            margin-bottom: 20px;
        }     
}

@media (max-width:575px) {

    .news-detail {
        padding: 40px 0;
    }

    .news-title {
        font-size: 24px;
    }

    .news-banner {
        height: 220px;
    }

    .news-content {
        font-size: 15px;
    }
      
    .news-meta {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

        .news-meta span {
            display: flex;
            align-items: center;
        }

    .news-breadcrumb span {
        margin: 0 4px;
    }
}
/*==============================================================
                         Media page  
    ============================================================*/
.media-hero {
    position: relative;
    padding: 150px 0 90px;
    background: #F8FAFC;
    overflow: hidden;
}

    .media-hero .inner-hero-layout {
        justify-content: center;
    }

    .media-hero .inner-hero-content {
        max-width: 820px;
        margin: auto;
    }

    
.media-gallery {
    padding: 90px 0;
    background: #f8fafc;
}

.media-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: .35s;
    height: 100%;
}

    .media-card:hover {
        transform: translateY(-8px);
    }

    .media-card img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: .4s;
    }

    .media-card:hover img {
        transform: scale(1.05);
    }

.media-content {
    padding: 22px;
}

.media-hero p {
    font-size: 17px;
    line-height: 1.9;
    color: #64748B;
    max-width: 100% !important;
    margin-bottom: 32px;
}
.media-content h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.media-content small {
    color: #64748b;
}

/*==============================================================
                         Contact page  
   ============================================================*/
.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 35px rgba(0,0,0,.05);
    transition: .3s;
}

    .contact-info-card:hover {
        transform: translateY(-5px);
        border-color: var(--secondary);
    }

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(237,28,36,.08);
    color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-info-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.contact-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
    border: 1px solid #eef2f7;
}

    .contact-form-box h3 {
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 10px;
    }

    .contact-form-box p {
        color: #64748b;
        margin-bottom: 30px;
    }

    .contact-form-box .form-control,
    .contact-form-box .form-select {
        border-radius: 14px;
        min-height: 56px;
        border: 1px solid #d9e2ec;
        padding: 14px 18px;
        box-shadow: none;
    }

    .contact-form-box textarea.form-control {
        min-height: 170px;
        resize: none;
    }

    .contact-form-box .form-control:focus,
    .contact-form-box .form-select:focus {
        border-color: var(--secondary);
        box-shadow: 0 0 0 .2rem rgba(237,28,36,.12);
    }

.contact-btn {
    background: var(--secondary);
    color: #fff;
    padding: 14px 34px;
    border-radius: 14px;
    font-weight: 600;
    transition: .3s;
}

    .contact-btn:hover {
        background: var(--primary);
        color: #fff;
    }

@media(max-width:991px) {

    .contact-section {
        padding: 70px 0;
    }

    .contact-form-box {
        padding: 30px;
    }
}
/*=====================================
        BRANCH SECTION
======================================*/

.branch-section {
    padding: 90px 0;
    background: #fff;
}

.branch-card {
    background: #fff;
    border: 1px solid #e8edf7;
    border-radius: 18px;
    padding: 28px;
    height: 100%;
    transition: .35s;
    box-shadow: 0 10px 30px rgba(32,58,111,.06);
    display: flex;
    flex-direction: column;
}

    .branch-card:hover {
        transform: translateY(-6px);
        border-color: var(--secondary);
        box-shadow: 0 18px 40px rgba(32,58,111,.12);
    }

    .branch-card h4 {
        font-size: 22px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 18px;
    }

.branch-address {
    color: #59657d;
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 22px;
    flex: 1;
}

.branch-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px dashed #dfe6f3;
    font-weight: 600;
    color: var(--primary);
}

    .branch-phone i {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(237,28,36,.08);
        color: var(--secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
    }

    .branch-phone a {
        color: var(--primary);
        text-decoration: none;
    }

        .branch-phone a:hover {
            color: var(--secondary);
        }

@media(max-width:991px) {

    .branch-section {
        padding: 70px 0;
    }

    .branch-card {
        padding: 24px;
    }
}

@media(max-width:767px) {

    .branch-card h4 {
        font-size: 20px;
    }

    .branch-address {
        font-size: 14px;
        line-height: 1.8;
    }
}

.media-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    cursor: pointer;
    transition: .35s;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

.gallery-modal {
    background: rgba(0,0,0,.92);
    border: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-full-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 18px;
}

.gallery-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #203a6f;
    font-size: 26px;
    transition: .3s;
    z-index: 1000;
}

    .gallery-close:hover {
        background: #ed1c24;
        color: #fff;
        transform: rotate(90deg);
    }
/* =========================================
   EVENT GALLERY LIGHTBOX
========================================= */
.gallery-modal {
    background: rgba(0, 0, 0, 0.95);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


/* Full Image */

.gallery-full-image {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}


/* Close */

.gallery-close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 10;
    cursor: pointer;
}


/* Previous / Next */

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s ease;
}


    .gallery-prev:hover,
    .gallery-next:hover,
    .gallery-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }


.gallery-prev {
    left: 30px;
}


.gallery-next {
    right: 30px;
}


/* Mobile */

@media (max-width: 768px) {

    .gallery-full-image {
        max-width: 95%;
        max-height: 80vh;
    }

    .gallery-prev,
    .gallery-next {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

.contact-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    animation: contactToastIn 0.4s ease;
}

.contact-toast-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}

.contact-toast-success .contact-toast-icon {
    background: #e8f8ef;
    color: #198754;
}

.contact-toast-error .contact-toast-icon {
    background: #fdecec;
    color: #dc3545;
}

.contact-toast-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

    .contact-toast-content strong {
        font-size: 15px;
        font-weight: 600;
        color: #222;
    }

    .contact-toast-content span {
        font-size: 13px;
        color: #6c757d;
    }

.contact-toast-close {
    border: none;
    background: transparent;
    color: #999;
    font-size: 15px;
    padding: 4px;
    cursor: pointer;
}

    .contact-toast-close:hover {
        color: #333;
    }

@keyframes contactToastIn {

    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}