/* =========================================================
   ANDAMAN GUIDERS
   BLOGS PAGE
========================================================= */


/* =========================================================
   BLOG PAGE
========================================================= */

.blogs-page {
    min-height: 100vh;

    background:
        radial-gradient(circle at 10% 10%,
            rgba(39, 199, 230, 0.10),
            transparent 28%),
        radial-gradient(circle at 90% 35%,
            rgba(115, 215, 245, 0.10),
            transparent 30%),
        linear-gradient(180deg,
            #f3fcff 0%,
            #ffffff 48%,
            #eefaff 100%);

    color: var(--text);
}


/* =========================================================
   BLOG HERO
========================================================= */

.blogs-hero {
    position: relative;

    min-height: 480px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        url("../images/blogs/blog-hero.jpg") center center / cover no-repeat;

    isolation: isolate;
}


.blogs-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        linear-gradient(90deg,
            rgba(3, 43, 70, 0.88) 0%,
            rgba(3, 70, 98, 0.68) 45%,
            rgba(3, 70, 98, 0.25) 100%);
}


.blogs-hero::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -170px;
    top: -190px;

    border-radius: 50%;

    background:
        rgba(39, 199, 230, 0.20);

    z-index: 1;
}


.blogs-hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(to top,
            rgba(3, 43, 70, 0.40),
            transparent 45%);
}


.blogs-hero-content {
    position: relative;

    z-index: 3;

    width: min(1200px, 92%);

    margin: 0 auto;

    padding: 100px 0;
}


.blogs-hero-label {
    display: inline-flex;
    align-items: center;

    padding: 9px 16px;

    margin-bottom: 20px;

    border:
        1px solid rgba(255, 255, 255, 0.30);

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.6px;
}


.blogs-hero-content h1 {
    max-width: 800px;

    margin: 0;

    color: #ffffff;

    font-family: var(--heading-font);

    font-size: clamp(48px, 6vw, 78px);

    line-height: 1.05;

    letter-spacing: -1px;

    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}


.blogs-hero-content h1 span {
    display: block;

    color: var(--turquoise);
}


.blogs-hero-content p {
    max-width: 650px;

    margin: 22px 0 0;

    color:
        rgba(255, 255, 255, 0.84);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   BLOG SECTION
========================================================= */

.blogs-section {
    padding: 90px 0 110px;
}


.blogs-section .container {
    width: min(1200px, 92%);

    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.blogs-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 35px;
}


.blogs-section-head>div:first-child {
    max-width: 680px;
}


.blogs-section-head .section-label {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--ocean);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.blogs-section-head .section-title {
    margin: 0;

    color: var(--ocean-deep);

    font-family: var(--heading-font);

    font-size: clamp(36px, 4vw, 52px);

    line-height: 1.1;
}


.blogs-section-head .section-subtitle {
    max-width: 650px;

    margin: 13px 0 0;

    color: var(--text-light);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   SEARCH
========================================================= */

.blog-search {
    width: 340px;

    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 6px;

    border:
        1px solid rgba(255, 255, 255, 0.80);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.58);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 12px 35px rgba(6, 59, 102, 0.06);
}


.blog-search>i {
    margin-left: 12px;

    color: var(--ocean);

    font-size: 14px;
}


.blog-search input {
    min-width: 0;

    flex: 1;

    padding: 11px 4px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-family: var(--body-font);

    font-size: 13px;
}


.blog-search input::placeholder {
    color: var(--text-light);
}


.blog-search button {
    flex-shrink: 0;

    padding: 11px 16px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(135deg,
            var(--ocean),
            var(--aqua));

    color: #ffffff;

    font-family: var(--body-font);

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition: 0.3s ease;
}


.blog-search button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(7, 132, 198, 0.22);
}


/* =========================================================
   CATEGORY FILTER
========================================================= */

.blog-categories {
    display: flex;
    align-items: center;

    gap: 9px;

    flex-wrap: wrap;

    margin-bottom: 35px;

    padding-bottom: 5px;
}


.blog-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    border:
        1px solid rgba(6, 59, 102, 0.10);

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.52);

    color: var(--text-light);

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.blog-categories a:hover {
    transform: translateY(-2px);

    border-color:
        rgba(39, 199, 230, 0.30);

    background:
        rgba(39, 199, 230, 0.09);

    color: var(--ocean);
}


.blog-categories a.active {
    border-color: transparent;

    background:
        linear-gradient(135deg,
            var(--ocean),
            var(--aqua));

    color: #ffffff;

    box-shadow:
        0 8px 22px rgba(7, 132, 198, 0.18);
}


/* =========================================================
   BLOG GRID
========================================================= */

.blogs-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    align-items: stretch;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.82);

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.64);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 15px 45px rgba(6, 59, 102, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.blog-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(39, 199, 230, 0.30);

    box-shadow:
        0 25px 60px rgba(6, 59, 102, 0.13);
}


/* =========================================================
   BLOG CARD IMAGE
========================================================= */

.blog-card-image {
    position: relative;

    height: 240px;

    overflow: hidden;

    background: #d9f8ff;
}


.blog-card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(to top,
            rgba(3, 47, 61, 0.48),
            transparent 58%);
}


.blog-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.65s ease;
}


.blog-card:hover .blog-card-image img {
    transform:
        scale(1.07);
}


/* =========================================================
   BLOG CATEGORY BADGE
========================================================= */

.blog-card-category {
    position: absolute;

    left: 16px;
    bottom: 16px;

    z-index: 3;

    max-width: calc(100% - 32px);

    padding: 7px 12px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.30);

    border-radius: 50px;

    background:
        rgba(4, 47, 61, 0.40);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   BLOG CARD BODY
========================================================= */

.blog-card-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 23px;
}


/* =========================================================
   BLOG META
========================================================= */

.blog-card-meta {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 11px;
}


.blog-card-meta span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--text-light);

    font-size: 11px;
}


.blog-card-meta i {
    color: var(--ocean);

    font-size: 11px;
}


/* =========================================================
   BLOG TITLE
========================================================= */

.blog-card-body h3 {
    margin: 0;

    color: var(--ocean-deep);

    font-size: 21px;

    line-height: 1.4;

    transition:
        color 0.3s ease;
}


.blog-card:hover .blog-card-body h3 {
    color: var(--ocean);
}


/* =========================================================
   BLOG EXCERPT
========================================================= */

.blog-card-body p {
    margin: 11px 0 0;

    color: var(--text-light);

    font-size: 13px;

    line-height: 1.75;

    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   READ MORE
========================================================= */

.blog-read-more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: auto;
    padding-top: 20px;

    color: var(--ocean);

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition:
        gap 0.3s ease,
        color 0.3s ease;
}


.blog-read-more i {
    font-size: 11px;
}


.blog-read-more:hover {
    gap: 13px;

    color: var(--coral);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.blogs-empty {
    max-width: 650px;

    margin: 30px auto 0;

    padding: 65px 30px;

    text-align: center;

    border:
        1px solid rgba(255, 255, 255, 0.80);

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.62);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 20px 55px rgba(6, 59, 102, 0.07);
}


.blogs-empty-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background:
        rgba(39, 199, 230, 0.10);

    color: var(--ocean);

    font-size: 28px;
}


.blogs-empty h3 {
    margin: 0 0 10px;

    color: var(--ocean-deep);

    font-family: var(--heading-font);

    font-size: 30px;
}


.blogs-empty p {
    max-width: 500px;

    margin: 0 auto 22px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.8;
}


.blogs-empty a {
    display: inline-flex;

    padding: 12px 21px;

    border-radius: 50px;

    background:
        linear-gradient(135deg,
            var(--ocean),
            var(--aqua));

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition: 0.3s ease;
}


.blogs-empty a:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(7, 132, 198, 0.22);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .blogs-section-head {
        align-items: flex-start;

        flex-direction: column;
    }


    .blog-search {
        width: 100%;

        max-width: 500px;
    }


    .blogs-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .blogs-hero {
        min-height: 430px;
    }


    .blogs-hero-content {
        width: 90%;

        padding: 80px 0 90px;
    }


    .blogs-hero-content h1 {
        font-size: 44px;
    }


    .blogs-hero-content p {
        font-size: 14px;

        line-height: 1.7;
    }


    .blogs-section {
        padding: 70px 0 85px;
    }


    .blogs-section .container {
        width: 90%;
    }


    .blogs-section-head {
        gap: 25px;

        margin-bottom: 28px;
    }


    .blogs-section-head .section-title {
        font-size: 38px;
    }


    .blogs-section-head .section-subtitle {
        font-size: 14px;
    }


    .blog-search {
        width: 100%;
    }


    .blog-categories {
        gap: 7px;

        margin-bottom: 28px;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 10px;

        scrollbar-width: none;
    }


    .blog-categories::-webkit-scrollbar {
        display: none;
    }


    .blog-categories a {
        flex-shrink: 0;

        padding: 8px 13px;

        font-size: 11px;
    }


    .blogs-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .blog-card-image {
        height: 240px;
    }


    .blog-card-body {
        padding: 21px;
    }


    .blog-card-body h3 {
        font-size: 20px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .blogs-hero {
        min-height: 410px;
    }


    .blogs-hero-content h1 {
        font-size: 37px;
    }


    .blogs-hero-label {
        font-size: 9px;

        padding: 8px 12px;
    }


    .blogs-section-head .section-title {
        font-size: 34px;
    }


    .blog-search {
        padding: 5px;
    }


    .blog-search input {
        font-size: 12px;
    }


    .blog-search button {
        padding: 10px 12px;

        font-size: 11px;
    }


    .blog-card-image {
        height: 220px;
    }


    .blog-card-body {
        padding: 19px;
    }


    .blog-card-meta {
        gap: 10px;
    }


    .blog-card-body h3 {
        font-size: 19px;
    }


    .blogs-empty {
        padding: 50px 20px;
    }

}