/* =========================================================
   HERO SECTION
========================================================= */

.media-hero-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0 120px;
    background:
        linear-gradient(135deg,
        rgba(0,25,55,.95),
        rgba(0,68,139,.92)),
        url('../../../assets/images/media-img.avif');
    background-size: cover;
    background-position: center;
    margin-top: 145px;
}

.media-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .5;
}

.media-hero-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: -220px;
    right: -120px;
}

.media-hero-section::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -140px;
    left: -80px;
}

.media-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.media-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.media-hero-content h1 {
    color: #fff;
    font-size: 58px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Saira', sans-serif;
}

.media-hero-content p {
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    line-height: 1.9;
    max-width: 620px;
    margin-bottom: 0;
}

/* =========================================================
   WRAPPER
========================================================= */

.media-wrapper {
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding: 0 0 80px;
}

/* =========================================================
   TABS BELOW HERO
========================================================= */

.media-tabs {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;

    margin-top: -38px;
    margin-bottom: 45px;

    position: relative;
    z-index: 20;
}

.media-tab-btn {
    border: none;
    padding: 16px 34px;
    border-radius: 18px;
    background: #fff;
    color: #002b5c;
    font-size: 15px;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 10px;

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

    transition: all .35s ease;
}

.media-tab-btn i {
    font-size: 16px;
}

.media-tab-btn.active {
    background: linear-gradient(135deg,#00448b,#0066d6);
    color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(0,68,139,0.25);
}

.media-tab-btn:hover {
    transform: translateY(-3px);
}

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

@media(max-width:767px){

    .media-wrapper {
        padding-bottom: 50px;
    }

    .media-tabs {
        margin-top: -28px;
        margin-bottom: 30px;
        gap: 12px;
    }

    .media-tab-btn {
        width: calc(50% - 6px);
        justify-content: center;
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 14px;
    }

}

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

.media-header {
    background: #fff;
    padding: 35px;
    border-radius: 28px;
    margin-bottom: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.media-title {
    font-size: 34px;
    color: #002b5c;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Saira', sans-serif;
}

.media-subtitle {
    color: #6d7b88;
    font-size: 15px;
    margin-bottom: 0;
}

/* =========================================================
   FILTER
========================================================= */

.filter-wrapper {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-box {
    min-width: 160px;
}

.filter-box label {
    font-size: 13px;
    color: #002b5c;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.filter-box .form-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #dde6ef;
    box-shadow: none;
    padding: 10px 16px;
    font-size: 14px;
}

.filter-box .form-control:focus {
    border-color: #00448b;
    box-shadow: 0 0 0 4px rgba(0,68,139,0.08);
}

.filter-btn {
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg,#00448b,#0066d6);
    color: #fff;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 700;
    transition: .3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

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

.media-wrapper .row {
    display: flex;
    flex-wrap: wrap;
}

.media-wrapper .col-lg-4 {
    display: flex;
}

/* =========================================================
   CARD DESIGN
========================================================= */

.media-card {
    width: 100%;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transition: all .4s ease;
    box-shadow: 0 12px 35px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
}

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

.media-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.media-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0));
    z-index: 1;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.media-card:hover .media-image img {
    transform: scale(1.08);
}

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

.media-content {
    padding: 28px;
}

.media-date {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #f4f8fc;
    padding: 10px 16px;
    border-radius: 50px;
    color: #00448b;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.media-date i {
    font-size: 13px;
}

.media-date span {
    color: #bcc8d4;
}

.media-card-title {
    color: #002b5c;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Saira', sans-serif;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 98px;
}

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

.media-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg,#00448b,#0066d6);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all .3s ease;
}

.media-btn i {
    transition: transform .3s ease;
}

.media-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,68,139,.25);
}

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

/* =========================================================
   EMPTY BOX
========================================================= */

.empty-box {
    background: #fff;
    padding: 60px 20px;
    border-radius: 24px;
    text-align: center;
    color: #6d7b88;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

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

@media(max-width:1199px){

    .media-hero-content h1 {
        font-size: 48px;
    }

    .media-card-title {
        font-size: 20px;
    }

}

@media(max-width:991px){

    .media-hero-section {
        padding: 110px 0 100px;
        margin-top: 100px;
    }

    .media-hero-content h1 {
        font-size: 40px;
    }

    .media-header {
        padding: 28px;
    }

    .media-title {
        font-size: 28px;
    }

    .media-card-title {
        min-height: auto;
    }

}

@media(max-width:767px){

    .media-hero-section {
        padding: 90px 0 85px;
    }

    .media-wrapper {
        margin-top: -45px;
        padding-bottom: 50px;
    }

    .media-tag {
        font-size: 10px;
        padding: 8px 16px;
    }

    .media-hero-content h1 {
        font-size: 30px;
    }

    .media-hero-content p {
        font-size: 15px;
    }

    .media-header {
        padding: 22px;
        border-radius: 22px;
    }

    .media-title {
        font-size: 24px;
    }

    .media-subtitle {
        font-size: 14px;
    }

    .filter-wrapper {
        width: 100%;
    }

    .filter-box {
        width: 100%;
    }

    .filter-box .form-control {
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }

    .media-image {
        height: 220px;
    }

    .media-content {
        padding: 22px;
    }

    .media-card-title {
        font-size: 18px;
        min-height: auto;
    }

    .media-btn {
        width: 100%;
        justify-content: center;
    }

}