:root {
    --blue: #0000FF;
    /* Pure blue */
    --navy-blue: #000080;
    /* Navy blue */
    --white: #FFFFFF;
    /* White */
    --black: #000000;
    /* Black */
    --deep-dark-blue: #001F3F;
    /* Very dark blue */
    --cyan: #00FFFF;
    /* Cyan */
    --cream-warm: #fff8e7;
    --cream-dark: #f0e6d2;
    --cream-warm-dark: #e8d9b5;
}

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;

    a {
        text-decoration: none;
    }

}

.border-divider {
    height: 1px;
    border: 0;
    margin: 0;
    padding: 0;
    background: var(--white);
    opacity: 1;
}

/* header starts here  */
.main-header {
    margin-bottom: 0;
    height: 60%;
    width: auto;
    background-color: var(--deep-dark-blue);

    .navigation-bar {
        margin-left: 20px;
        padding: 0.9rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--white);
        cursor: pointer;
    }

    @media(max-width:768px) {
        .menu-toggle {
            display: block;
        }

        .navigation-bar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }

        .navigation-bar ul {
            display: none;
            flex-direction: column;
            width: 100%;
            text-align: center;
            gap: 0;
            order: 3;
        }

        .navigation-bar ul.show {
            display: flex;
        }

        .navigation-bar ul li {
            margin: 0;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
    }

    ul {
        display: flex;
        list-style: none;
        color: var(--white);
        padding-right: 10rem;
        font-size: 1rem
    }

    ul li {
        margin: 0 1rem;
        padding-right: 1rem;
    }

    ul li a {
        text-decoration: none;
        color: var(--white);
    }

    ul li a:hover {
        color: var(--cyan);
    }

    .logo img {
        height: 3rem;
        width: auto;
        flex-shrink: none;
    }

    .navigation-bar .logo {
        flex: 0 0 auto;
        width: auto;
    }

    .navigation-bar .logo img {
        display: block;
        width: auto;
        height: 3rem;
        max-width: none;
        flex: 0 0 auto;
    }

}

/* header section ends  */
.open {
    background-image: url('../IMG/hero.jpg');
    background-color: var(--deep-dark-blue);
    background-blend-mode: color-burn;
    background-position: center;
    background-size: cover;
    color: var(--white);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
    gap: clamp(1.5rem, 6vw, 6rem);
    min-height: 32rem;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 6rem);

    h6 {
        color: var(--cyan);
        font-size: 0.75rem;
        padding: 0 30px 1.5rem;
    }

    h6::before {
        content: "";
        display: inline-block;
        width: 50px;
        height: 6px;
        background: linear-gradient(to right, var(--deep-dark-blue), var(--cream-warm));
        margin: auto 5px;
        vertical-align: middle;
    }

    h3 {
        font-size: 3rem;
        padding: 0 30px 1rem;
        line-height: 1.08;
    }

    p {
        max-width: 560px;
        padding: 0 30px;
        line-height: 1.7;
    }
}

.open-copy {
    min-width: 0;
}

.journal-feature {
    width: 100%;
    max-width: 430px;
    justify-self: end;
}

.journal-feature-frame {
    position: relative;
    width: 100%;
    height: 330px;
    isolation: isolate;
}

.journal-orbit {
    position: absolute;
    top: 48%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
}

.journal-orbit-wide {
    width: 300px;
    height: 166px;
    margin: -83px 0 0 -150px;
    transform: rotate(-24deg);
    animation: journal-orbit-spin 12s linear infinite;
}

.journal-orbit-tall {
    width: 212px;
    height: 310px;
    margin: -155px 0 0 -106px;
    border-color: rgba(0, 255, 255, 0.38);
    border-style: dashed;
    transform: rotate(31deg);
    animation: journal-orbit-spin 16s linear infinite reverse;
}

.journal-orbit span {
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(0, 255, 255, 0.8);
}

.journal-feature-orb {
    position: absolute;
    z-index: 2;
    top: 48%;
    left: 50%;
    width: 170px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.9);
    border-radius: 50%;
    background: var(--deep-dark-blue);
    box-shadow: 0 0 0 7px rgba(0, 255, 255, 0.08), 0 0 28px rgba(0, 255, 255, 0.62), 0 0 70px rgba(0, 255, 255, 0.24);
    transform: translate(-50%, -50%);
    animation: journal-spring-float 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.journal-feature-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.journal-feature-image.is-changing {
    opacity: 0;
    transform: scale(0.82);
}

.journal-feature-caption {
    position: absolute;
    right: 0;
    bottom: 0.15rem;
    left: 0;
    color: var(--white);
    text-align: center;
}

.journal-feature-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 700;
}

.journal-feature-index {
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.journal-feature-topic {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.journal-feature-progress {
    width: 100%;
    height: 2px;
    margin-top: 0.85rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.28);
}

.journal-feature-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--cyan);
    animation: journal-progress 5s linear infinite;
}

.journal-feature-progress-fill.is-paused {
    animation-play-state: paused;
}

.journal-feature-count {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.journal-feature-current {
    color: var(--cyan);
    font-weight: 700;
}

@keyframes journal-progress {
    to { width: 100%; }
}

@keyframes journal-orbit-spin {
    to { rotate: 360deg; }
}

@keyframes journal-spring-float {
    0%, 100% { translate: 0 0; }
    45% { translate: 0 -8px; }
    65% { translate: 0 2px; }
    80% { translate: 0 -3px; }
}

.all-btn {
    background-color: var(--cream-warm);
    padding: 60px;
    align-items: center;
    text-align: center;

    .btn {
        color: var(--deep-dark-blue);
        padding: 10px;
        font-size: 1rem;
        border-color: var(--black);
        border-radius: 5px;
        background-color: var(--cream-warm);
        margin: 5px;
    }

    .btn:hover {
        background-color: var(--black);
        color: var(--cyan);
    }
}

.first-grid {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 20px;
    background-color: var(--cream-warm);
    max-width: 1100px;
    margin: 0 auto;
}

.first-card {
    position: relative;
    background-color: var(--white);
    box-shadow: 0.5px 10px var(--cream-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;


    p {
        font-size: 1rem;
        padding: 10px;
        color: var(--navy-blue);
    }

    h5 {
        font-size: 1.5rem;
        color: var(--deep-dark-blue);
        padding: 10px;
    }
}

.first-card img {
    display: block;
    height: 25rem;
    width: 100%;
    position: relative;
    object-fit: cover;
}

.more-text {
    display: none;
}

.more-text.is-visible {
    display: inline;
}

.read-toggle {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--deep-dark-blue);
    font-weight: 700;
    text-decoration: none;
}

.read-toggle:hover,
.read-toggle:focus-visible {
    color: var(--cyan);
}

.image-wrapper {
    position: relative;
}



.blog-btn-1,
.blog-btn-2,
.blog-btn-3,
.blog-btn-4,
.blog-btn-5,
.blog-btn-6 {
    left: 20px;
    top: auto;
    bottom: 10px;
    position: absolute;
    border-radius: 20px;
    border-color: none;
    font-size: 1rem;
    color: var(--deep-dark-blue);
    padding: 10px 20px;
    margin: 10px 0 10px auto;
    background-color: var(--cyan);
    z-index: 2;

}

.stay {
    background-color: var(--deep-dark-blue);
    color: var(--white);
    text-align: center;

    h6 {
        padding: 20px;
        text-align: center;
        color: var(--cyan);
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    h6::before {
        content: "";
        display: inline-block;
        width: 50px;
        height: 6px;
        background: linear-gradient(to right, var(--deep-dark-blue), var(--cream-warm));
        margin: auto 5px;
        vertical-align: middle;
    }

    p {
        font-size: 2rem;
        padding: 10px;
        text-align: center;

        .category-filter.is-active {
            color: var(--white);
            background-color: var(--deep-dark-blue);
        }
    }

    .first-card[hidden] {
        display: none;
    }

    .btn {
        background-color: var(--cyan);
        color: var(--black);
        padding: 10px;
        font-size: 0.95;
        align-items: center;
        margin-bottom: 50px;
    }

    .btn:hover {
        background-color: var(--black);
        color: var(--cyan);
    }
}

/* back to top  */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1000;
    display: none;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background-color: var(--deep-dark-blue);
    color: var(--cyan);
    font-size: 1.4rem;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: var(--white);
}

.back-to-top.show {
    display: block;
}

@media (max-width: 480px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* back to top ends here  */


/* footer here  */

.main-footer {
    padding: 90px 0 30px;
    color: var(--white);
    background-image: url(../IMG/tree\ bg.jpg);
    background-color: var(--deep-dark-blue);
    background-blend-mode: multiply;
    background-size: cover;
    position: relative;
    width: 100%;
    line-height: 20px;

    .logo {
        height: 50px;
        width: auto;
    }

    .row {
        padding: 10px 15px 5px;
        justify-content: flex-start;
        margin: auto;
        gap: 10px;

        display: flex;
    }

    .col {
        padding: 5px;

        p {
            color: var(--cream-warm);
        }

        h5 {
            color: var(--cream-warm);
            font-size: 1.5rem;
        }

        ul {
            list-style: none;
            text-decoration: none;
            color: var(--cream-warm);
            padding: 0;
        }

        ul li {
            margin-bottom: 10px;
            padding: 0;
        }

        ul li:hover {
            color: var(--cyan);
            cursor: pointer;
        }

        a {
            list-style: none;
            text-decoration: none;
            color: var(--cream-warm);
        }

        a:hover {
            color: var(--cyan);
            cursor: pointer;
        }

        .bi {
            color: var(--cyan);
            font-size: 1.5rem;
            margin-right: 10px;
        }

        .social-icons i {
            color: var(--cream-warm);
            text-decoration: none;
            font-size: 2.5rem;
            gap: 10px;
        }

        .social-icons i:hover {
            color: var(--cyan);
            cursor: pointer;
        }

        &:nth-child(2),
        &:nth-child(3) {
            flex-basis: -15%;
        }
    }

    hr {
        width: 100%;
        border: 2px solid var(--cyan);
        margin: 20px auto;
    }

    .copyright {
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
    }

    .copyright-links {
        display: flex;
        gap: 20px;
    }

    .copyright-links p:hover {
        color: var(--cyan);
        cursor: pointer;
    }

}

/* media query start here  */
/* Responsive layout */

@media (max-width: 768px) {
    .main-header {
        height: auto;
        background-size: cover;
    }

    .navigation-bar {
        margin-left: 0;
        padding: 0.75rem 1rem;
    }

    .main-header ul {
        padding-right: 0;
    }

    .open {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        min-height: 0;
        padding: 30px 20px 2rem;
        background-position: center;
    }

    .journal-feature {
        max-width: 860px;
        justify-self: center;
    }

    .journal-feature-frame {
        height: 330px;
    }

    .journal-feature-orb {
        width: 150px;
    }

    .journal-orbit-wide {
        width: 250px;
        height: 140px;
        margin: -70px 0 0 -125px;
    }

    .journal-orbit-tall {
        width: 180px;
        height: 255px;
        margin: -127px 0 0 -90px;
    }

    .open h6,
    .open h3 {
        padding: 0 0 1rem;
    }

    .open h3 {
        font-size: 2.2rem;
    }

    .all-btn {
        padding: 35px 20px;
    }

    .first-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 15px;
    }

    .first-card img {
        height: 20rem;
    }

    .first-card h5 {
        font-size: 1.3rem;
    }

    .blog-btn-1,
    .blog-btn-2,
    .blog-btn-3,
    .blog-btn-4,
    .blog-btn-5,
    .blog-btn-6 {
        left: 15px;
        bottom: 8px;
    }

    .stay {
        padding: 30px 15px;
    }

    .stay p {
        font-size: 1.5rem;
    }

    .main-footer {
        padding: 50px 1rem 20px;
    }

    .main-footer .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-footer .col {
        width: 100%;
    }

    .main-footer .copyright {
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
        text-align: center;
    }

    .main-footer .copyright-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .open h3 {
        font-size: 1.8rem;
    }

    .open h6 {
        font-size: 0.7rem;
    }

    .journal-feature-frame {
        height: 260px;
    }

    .journal-feature-caption {
        bottom: 0;
    }

    .journal-feature-topic {
        font-size: 1.35rem;
    }

    .first-card img {
        height: 16rem;
    }

    .stay p {
        font-size: 1.25rem;
    }

    .all-btn .btn,
    .stay .btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journal-feature-image,
    .journal-feature-orb {
        transition: none;
        animation: none;
    }

    .journal-orbit {
        animation: none;
    }

    .journal-feature-progress-fill {
        animation: none;
        width: 100%;
    }
}