@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@100..900&display=swap');
:root {
    --primary-blue: #004aad;
    --light-blue: #0066cc;
    --accent-gold: #ffd700;
    --gray-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #666;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Consolidated Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   /* font-family: 'Baloo Da 2', 'Roboto', sans-serif;*/
    font-family: "Noto Serif Bengali", serif;
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
}
a{
    text-decoration: none;
    color: inherit;
}

/* Image Sharpness Fix */
img {
    image-rendering: auto;
    filter: brightness(1.05) contrast(1.05);
    max-width: 100%;
    height: auto;
}
/* 4. Navbar Height and Scroll Effect */
.navbar {
    /* Changed background to light gray for a softer, elevated look */
    background: var(--gray-bg);
    box-shadow: var(--shadow-soft);
    /* TALL DEFAULT HEIGHT */
    padding: 1rem 0;
    transition: all 0.4s ease-in-out;
}

.navbar.compact {
    /* SMALLER HEIGHT WHEN SCROLLED */
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 1. Logo Fix - Integrated cleanly within padding */
.navbar-brand {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    transition: var(--transition);
}

.navbar-brand img {
    /* LOGO HEIGHT ADJUSTED TO SIT CLEANLY */
    height: 75px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* 2. Font Consistency */
.nav-link {
    color: var(--dark-text) !important;
    font-weight: 600; /* Increased font weight slightly for better visibility against gray background */
    font-size: 1.05rem;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    /* Maintained blue gradient underline for consistency */
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Search Bar with Icon */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 250px;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--light-text);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-box {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 0.6rem 1.5rem 0.6rem 3rem;
    width: 100%;
    transition: var(--transition);
    outline: none;
    background: var(--gray-bg);
}

.search-box:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.15);
    background: white;
}

.prothomalo-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.prothomalo-logo:hover {
    transform: scale(1.08);
}

/* 5. Hero Banner - Transparent Background */
.hero-banner {
    position: relative;
    overflow: hidden;
    /* Use white background to show the banner image's curve */
    background: #ffffff;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-banner-img img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    display: block;
}

/* Section Titles - Consistent & Professional */
.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 3.5rem 0 2rem;
    position: relative;
    animation: slideUp 0.8s ease-out;
    letter-spacing: 0.5px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue), var(--accent-gold));
    border-radius: 3px;
}

/* Partner & Exhibitor Cards */
.partner-card, .exhibitor-card {
    background: white;
    border: 2px solid #b5daf7;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    /* height: 150px; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.partner-card::before, .exhibitor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: var(--transition);
}

.partner-card:hover::before, .exhibitor-card:hover::before {
    left: 100%;
}

.partner-card:hover, .exhibitor-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
    border-color: var(--light-blue);
}

.partner-card img, .exhibitor-card img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.partner-card:hover img, .exhibitor-card:hover img {
    transform: scale(1.1);
}

/* Ribbon styles - Ensures the "Gold Member" ribbon is visible */
.exhibitor-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

/* Update the existing .ribbon style in style.css */
.ribbon {
    position: absolute;
    top: 30px;
    left: -53px;
    background: linear-gradient(135deg, #FFD700 0%, #b88a2d 50%, #FFD700 100%);
    background-size: 200% 100%; /* Important: makes the gradient wider than the element */
    animation: shimmerGold 4s linear infinite; /* Apply the animation */
    color: #fff;
    padding: 5px 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
    letter-spacing: 0.5px;
}

/* New Keyframes for Gold Shimmer Effect */
@keyframes shimmerGold {
    0% {
        background-position: 100% 0; /* Start with the highlight/darkest part far right */
    }
    100% {
        background-position: -100% 0; /* Move the gradient completely across the element */
    }
}

/* Offer Cards */
.offer-card {
    /*background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 0;
    transition: var(--transition);
    position: relative;*/
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 0;
    transition: var(--transition);
    position: relative;
    height: 260px;
    object-fit: cover;
}

.offer-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-12px);
}

.offer-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition);
}

.offer-card:hover img {
    transform: scale(1.12);
}

.scholarship-badge {
    background: linear-gradient(135deg, var(--accent-gold), #ffe066);
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

/* Button Styles */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 18px rgba(0, 74, 173, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4);
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
}

/* Merged Quiz/Winners Section */
.quiz-promo-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    padding: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.quiz-promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Winner Avatar adjustments for the new merged layout */
.winner-avatar {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.winner-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    background: #f0f0f0;
    padding: 4px;
    transition: var(--transition);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

.winner-avatar p {
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
}

/* Crown Icon Styles */
.winner-avatar .crown-icon {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-gold);
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* Quiz CTA Box */
.quiz-cta-box {
    background: white;
    color: var(--dark-text);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.quiz-cta-box h3 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}


/* Video & News Cards */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-12px);
}

.content-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover img {
    transform: scale(1.12);
}

.content-card-body {
    padding: 1rem;
}

.content-card-body h5 {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
}

.content-card-body p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Old Video Badge (kept for non-embedded cards) */
.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    cursor: pointer;
}

.content-card:hover .video-badge {
    background: rgba(0, 102, 204, 0.95);
    transform: translate(-50%, -50%) scale(1.15);
}

/* View More Button */
.view-more-btn {
    text-align: center;
    margin: 1rem 0;
}

.view-more-btn .btn {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--light-blue);
    padding: 1rem 3rem;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition);
}

.view-more-btn .btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.3);
}

/* Custom button style for the winner section */
.btn-winners-custom {
    background: white !important;
    color: #5a5a7d !important;
    border: none !important;
}

.btn-winners-custom:hover {
    background: #e0e0e0 !important;
    color: #4a4a6d !important;
}

/* Scroll Animation - Consolidated State */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* New styles for the embedded video card */
.video-embed-card {
    transition: none;
    transform: none !important;
    margin-bottom: 0;
}

.video-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    cursor: pointer;
}

.video-iframe-wrapper img.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.video-iframe-wrapper .youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: black;
}

/* 3. Play button overlay redesign */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Lighter overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-overlay i {
    color: white;
    font-size: 1.7rem;
    background: var(--primary-blue);
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.2s
    ease-in-out;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.4);
    margin-left: 3px;
    padding: 10px;
}

.video-overlay:hover i {
    background: var(--light-blue);
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.6);
}

/* Footer - UPDATED TO MATCH IMAGE */
.footer {
    background: var(--gray-bg);
    color: var(--dark-text);
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
    border-top: 1px solid #ddd;
    font-family: 'Baloo Da 2', sans-serif;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 1140px;
    margin: 0 auto;
}

.footer .footer-left {
    flex-shrink: 0;
}

.footer .footer-right {
    text-align: right;
    line-height: 1.6;
    color: var(--light-text);
}

.footer img {
    height: 35px;
    margin-bottom: 0;
    filter: none;
    transition: none;
    max-width: 100%;
    width: auto;
}

.footer p {
    color: inherit;
    margin: 0;
    font-size: 1rem;
}

/* --- SCROLL TO TOP BUTTON STYLES (New) --- */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    /* Reusing btn-primary-custom styles for professional look */
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollToTopBtn:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.6);
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .quiz-cta-box {
        margin-top: 1.5rem;
        padding: 2rem;
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer .footer-left, .footer .footer-right {
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar-brand img {
        height: 55px;
    }
    .section-title {
        font-size: 1.8rem;
        margin: 2.5rem 0 1.5rem;
    }
    .search-wrapper {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    .hero-banner-img img {
        max-height: 450px;
    }
    .partner-card, .exhibitor-card {
        height: 130px;
        padding: 1.5rem;
    }
    .offer-card img {
        height: auto;
    }
    .content-card img {
        height: 200px;
    }
    .footer {
        padding: 2rem 0 1rem;
    }
    .footer img {
        margin-bottom: 0.8rem;
    }
    #scrollToTopBtn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        padding: 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 60px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .partner-card, .exhibitor-card {
        height: 110px;
    }
    .winner-avatar img {
        width: 60px;
        height: 60px;
    }

    .ribbon {
        position: absolute;
        top: 23px;
        left: -50px;
        background: linear-gradient(135deg, #FFD700 0%, #b88a2d 50%, #FFD700 100%);
        background-size: 200% 100%;
        animation: shimmerGold 4s
        linear infinite;
        color: #fff;
        padding: 1px 50px;
        font-size: 8px;
        font-weight: 400;
        text-transform: uppercase;
        transform: rotate(-45deg);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        z-index: 10;
        letter-spacing: 0.5px;
    }
    .offer-card {
        height: 170px !important;
    }
    .content-card-body h5 {
        color: var(--dark-text);
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5;
    }
}
.quiz-promo-section .section-title::after {
    background: none !important;
}
/* Offer Cards */
.offer-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 0;
    transition: var(--transition);
    position: relative;
    height: 300px;
}

.offer-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-12px);
}

.offer-card img {
    width: 100%;
    /* **FIX 3: Image height now constrained to the container height** */
    height: 100%;
    /* **FIX 4: Use object-fit: contain to ensure the full image is visible without cropping** */
    object-fit: contain;
    transition: var(--transition);
}

.offer-card:hover img {
    /* Adjusted scale to prevent image clipping the container edge */
    transform: scale(1.05);
}
.view-more-btn {
    position: relative; /* Create a stacking context */
    z-index: 20; /* Ensure it is above the general section elements */
}

.btn-winners-custom {
    position: relative; /* Ensure z-index works */
    z-index: 25; /* Higher than the parent to be absolutely sure */
}
