/* =========================================
   Global Reset & Fonts
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Custom Fonts Placeholder */
@font-face {
    font-family: 'Gobold';
    src: url('fonts/gobold.woff2') format('woff2');
    font-display: swap;
}

/* =========================================
   1. Top Bar Design
   ========================================= */
.custom-top-bar {
    width: 100%;
    height: 40px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

.signature-logo {
    font-family: 'Gobold', sans-serif;
    font-size: 20px;
    color: #262626;
    letter-spacing: 0.5px;
}

.bar-center p {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.bar-right a {
    color: #262626;
    font-size: 14px;
    margin-left: 12px;
    transition: 0.3s;
}

.bar-right a:hover {
    color: #8F0000;
}

/* =========================================
   2. Neon Glass Navigation Design
   ========================================= */
.navbar-section {
    padding: 50px 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.navbar-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.glass-neon-btn {
    --clr-red: #8F0000;
    position: relative;
    width: 160px;
    height: 60px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-neon-btn span {
    color: rgba(0, 0, 0, 0.85);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 5;
    transition: 0.4s;
}

/* Neon Moving Lines */
.glass-neon-btn i {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 4;
}

.glass-neon-btn i::before {
    content: "";
    position: absolute;
    top: 0;
    left: 80%;
    width: 15px;
    height: 2px;
    background: var(--clr-red);
    box-shadow: 0 0 8px var(--clr-red);
    transition: 0.5s;
}

.glass-neon-btn:hover i::before {
    left: 10%;
    width: 35px;
}

.glass-neon-btn i::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 15px;
    height: 2px;
    background: var(--clr-red);
    box-shadow: 0 0 8px var(--clr-red);
    transition: 0.5s;
}

.glass-neon-btn:hover i::after {
    left: 70%;
    width: 35px;
}

/* Liquid Reflection */
.glass-neon-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.6s;
    z-index: 3;
}

.glass-neon-btn:hover::before {
    left: 100%;
}

/* Hover Final State */
.glass-neon-btn:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    box-shadow: 0 10px 20px rgba(143, 0, 0, 0.2);
    transform: translateY(-3px);
}

.glass-neon-btn:hover span {
    color: #ffffff;
    letter-spacing: 2px;
}

/* =========================================
   3. Quote Section Design
   ========================================= */
.quote-section {
    width: 100%;
    min-height: 380px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    display: flex;
}

.quote-container {
    display: flex;
    width: 100%;
}

.quote-image-area {
    flex: 1;
    overflow: hidden;
}

.quote-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quote-text-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
}

.quote-text-area h2 {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 26px;
    line-height: 1.5;
    color: #333;
    font-weight: 300;
    margin-bottom: 25px;
}

.quote-author {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8F0000;
    font-weight: 700;
}

/* =========================================
   4. Responsive (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 8px;
    }

    .navbar-wrap {
        gap: 10px;
        padding: 0 10px;
    }

    .glass-neon-btn {
        width: 145px;
        height: 55px;
    }

    .quote-container {
        flex-direction: column;
    }

    .quote-image-area {
        height: 300px;
    }
}

/* =========================================
   4. Post Overviews Section (Slider)
   ========================================= */
.post-overviews-section {
    width: 100%;
    min-height: 580px;
    background: #ffffff;
    padding: 80px 20px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #8F0000;
    /* আপনার রেড কালার */
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: #8F0000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.post-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

/* হাইড স্ক্রলবার (Chrome, Safari, Opera) */
.post-slider::-webkit-scrollbar {
    display: none;
}

/* হাইড স্ক্রলবার (IE, Edge, Firefox) */
.post-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.post-card {
    min-width: calc(33.333% - 17px);
    /* একসাথে ৩টি দেখাবে */
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: 0.4s;
    cursor: pointer;
}

.post-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: #8F0000;
}

.post-thumb {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f9f9f9;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-content .category {
    font-size: 10px;
    text-transform: uppercase;
    color: #8F0000;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.post-content h4 {
    font-size: 18px;
    color: #262626;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* মোবাইল রেসপন্সিভ */
@media (max-width: 992px) {
    .post-card {
        min-width: calc(50% - 15px);
        /* ট্যাবে ২টি */
    }
}

@media (max-width: 600px) {
    .post-card {
        min-width: 100%;
        /* মোবাইলে ১টি */
    }
}


/* =========================================
   5. Education Section (Custom Hover Cards)
   ========================================= */

:root {
    /* Colors */
    --brand-color: #8F0000;
    /* আপনার থিম লাল কালার */
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
    /* Fonts */
    --font-title: "Montserrat", sans-serif;
    --font-text: "Lato", sans-serif;
}

.education-section {
    width: 100%;
    padding: 80px 20px;
    background: #ffffff;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* ৩ কলাম */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    place-items: center;
}

/* FLOW UTILITY */
.flow>*+* {
    margin-top: var(--flow-space, 1em);
}

/* CARD COMPONENT */
.card {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 21.875rem;
    height: 28.125rem;
    overflow: hidden;
    border-radius: 0.625rem;
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    position: relative;
}

.card>* {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.card__background {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card__content {
    --flow-space: 0.9375rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: flex-end;
    height: 60%;
    /* কন্টেন্ট এরিয়ার উচ্চতা */
    padding: 10% 1.25rem 1.875rem;
    background: linear-gradient(180deg,
            hsla(0, 0%, 0%, 0) 0%,
            hsla(0, 0%, 0%, 0.4) 15%,
            hsl(0, 0%, 0%) 100%);
    z-index: 2;
}

.card__title {
    position: relative;
    width: fit-content;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 1.75rem;
    line-height: 1.1;
}

.card__title::after {
    content: "";
    position: absolute;
    height: 0.25rem;
    width: calc(100% + 1.25rem);
    bottom: -0.5rem;
    left: -1.25rem;
    background-color: var(--brand-color);
}

.card__description {
    font-family: var(--font-text);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--white);
}

.card__button {
    padding: 0.6em 1.2em;
    width: fit-content;
    font-variant: small-caps;
    font-weight: bold;
    border-radius: 0.35em;
    border: none;
    background-color: var(--brand-color);
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--white);
    cursor: pointer;
}

/* ANIMATIONS (Mouse Hover) */
@media (any-hover: hover) {
    .card__content {
        transform: translateY(65%);
        transition: transform 500ms ease-out;
    }

    .card__title::after {
        opacity: 0;
        transform: scaleX(0);
        transition: opacity 1000ms ease-in, transform 500ms ease-out;
        transform-origin: right;
    }

    .card__background {
        transition: transform 500ms ease-in;
    }

    .card__content--container> :not(.card__title),
    .card__button {
        opacity: 0;
        transition: transform 500ms ease-out, opacity 500ms ease-out;
    }

    .card:hover .card__content,
    .card:focus-within .card__content {
        transform: translateY(0);
        transition: transform 500ms ease-in;
    }

    .card:hover .card__background,
    .card:focus-within .card__background {
        transform: scale(1.2);
    }

    .card:hover .card__content--container> :not(.card__title),
    .card:hover .card__button {
        opacity: 1;
        transition: opacity 500ms ease-in;
        transition-delay: 400ms;
    }

    .card:hover .card__title::after {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
        transition: opacity 500ms ease-in, transform 500ms ease-in;
        transition-delay: 300ms;
    }
}

/* রেসপন্সিভ */
@media (max-width: 1024px) {
    .education-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .education-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   6. Footer Section (Transparent & Art Overlay)
   ========================================= */
.main-footer {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ফুটার ব্যাকগ্রাউন্ড ছবি */
.footer-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ছবি যেন পুরো ফুটার জুড়ে থাকে */
    opacity: 0.3;
    /* ছবিকে হালকা স্বচ্ছ করা হয়েছে যাতে লিখা বুঝা যায় */
}

/* ফুটার কন্টেন্ট এরিয়া */
.footer-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    /* হালকা ট্রান্সপ্যারেন্ট সাদা */
    backdrop-filter: blur(5%);
    /* ছবির ওপর হালকা ব্লার ইফেক্ট */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* ৩টি কলাম */
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8F0000;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #262626;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.8;
}

.footer-col ul li a:hover {
    color: #8F0000;
    opacity: 1;
    padding-left: 5px;
}

/* ফুটার বটম (Copyright & RND) */
.footer-bottom {
    position: relative;
    z-index: 3;
    height: 60px;
    /* ৩০ পিক্সেল এরিয়া + প্যাডিং */
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bottom-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 11px;
    color: #777;
    letter-spacing: 0.5px;
}

.rnd-text {
    font-weight: 600;
    text-transform: uppercase;
    color: #8F0000 !important;
}

/* রেসপন্সিভ */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        /* মোবাইলে কলামগুলো একটির নিচে একটি আসবে */
        text-align: center;
    }

    .bottom-container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}


/* =========================================
   7. Mini Game Style (Transparent Neon)
   ========================================= */
.game-wrapper {
    width: 100%;
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.game-header h3 {
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #8F0000;
    margin-bottom: 10px;
}

#gameContainer {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 200px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #8F0000;
    /* মাটির রেখা */
    overflow: hidden;
    cursor: pointer;
}

#dinoGame {
    display: block;
}

#scoreBoard {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: 'monospace';
    font-weight: bold;
    color: #8F0000;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    /* শুরুতে লুকানো থাকবে */
    text-align: center;
}

#gameOver h2 {
    color: #8F0000;
    font-size: 24px;
    margin-bottom: 15px;
}

#gameOver button {
    padding: 8px 20px;
    background: #8F0000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

/* =========================================
   7. Mini Game Style (Neon & Transparent)
   ========================================= */
.game-wrapper {
    width: 100%;
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #f4f4f4;
}

.game-header h3 {
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #8F0000;
    margin-bottom: 5px;
}

.game-header p {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

#gameContainer {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    /* ট্রান্সপ্যারেন্ট সাদা */
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #8F0000;
    /* মাটির বর্ডার */
    border-radius: 8px;
    overflow: hidden;
}

#dinoGame {
    display: block;
    width: 100%;
    height: 100%;
}

#scoreBoard {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 18px;
    color: #8F0000;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    /* শুরুতে বন্ধ থাকবে */
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#gameOver h2 {
    color: #8F0000;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

#gameOver button {
    padding: 10px 25px;
    background: #8F0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

#gameOver button:hover {
    background: #262626;
    transform: scale(1.05);
}

/* মোবাইল রেসপন্সিভ */
@media (max-width: 600px) {
    #gameContainer {
        height: 150px;
    }
}