
:root {
    --color-primary: #2D1B69;
    --color-primary-dark: #1A0B4B;
    --color-primary-deep: #110733;
    --color-accent: #7C69E3;
    --color-danger: #D12026;
    --color-bg-light: #F8FAFC;
    --font-main: 'Baloo Da 2', cursive;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    overflow-x: hidden;
}

/* Standard Height for Filter Inputs */
.standard-height { height: 58px; }

/* Nav Link Underline Effect */
.nav-link {
    transition: var(--transition-standard);
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
    padding: 4px 0;
}
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
    border-radius: 10px;
}
.nav-link:hover:after { width: 100%; }
.nav-link:hover { color: var(--color-accent); }

.sticky-nav {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(45, 27, 105, 0.05);
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Hero Section */
.hero-merged-section {
    background-image: url(/images/banner1.png);
    background-size: cover;
    background-position: center 50px;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-bottom: 4rem;
}

/* Entrance Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Filter Styles */
.filter-container {
    border-radius: 18px;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    transition: var(--transition-standard);
}
.filter-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.filter-dropdown-select {
    appearance: none;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0 45px 0 20px;
    cursor: pointer;
    outline: none;
    color: inherit;
    font-weight: 800;
    font-size: 1.1rem;
}
.filter-dropdown-icon {
    position: absolute;
    right: 15px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.find-schools-btn {
    background-color: var(--color-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.find-schools-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(124, 105, 227, 0.4);
}
.find-schools-btn .icon-box {
    background-color: var(--color-accent);
    height: 100%;
    padding: 0 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.find-schools-btn .text-box {
    background-color: #F0E9FF;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.3rem;
}
/* Squircle Items */
.custom-squircle-box {
    background: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* আপনার চাহিদা অনুযায়ী ২ পিক্সেল প্যাডিং */
    margin: 0 auto;
    border-radius: 17px;
    transition: var(--transition-standard);
    cursor: pointer;

    /* এটি নিশ্চিত করবে যে বক্সটি সবসময় স্কয়ার থাকবে */
    aspect-ratio: 1 / 1;
    width: 100%; /* কন্টেইনারের উইডথ অনুযায়ী সেট হবে */
    overflow: hidden; /* বাইরের অংশ কেটে যাবে */
}

.custom-squircle-box:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* আলাদা বর্ডার স্টাইল (উইডথ এবং রেশিও বক্স থেকে কন্ট্রোল হচ্ছে এখন) */
.purple-border { border: 2px dashed #7C69E3; }
.orange-border { border: 1.5px dashed #FF8C61; }

.inner-img-container {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative; /* পজিশনিং ঠিক রাখার জন্য */
}

.inner-img-container img {
    width: 100%;
    height: 100%;
    /* object-fit: cover ব্যবহার করলে ইমেজ স্কয়ার বক্সের ভেতরে পুরোপুরি ফিট হবে
       এবং কোনো হাইট বাড়বে না। */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
/* Compare Section */
.compare-bg {
    background-image: linear-gradient(rgba(45, 27, 105, 0.9), rgba(45, 27, 105, 0.9)), url('/images/compare-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}
.compare-card {
    background: rgba(241, 234, 255, 0.95);
    padding: 40px 30px;
    border-radius: 28px;
    transition: var(--transition-standard);
    border: 1px solid rgba(255,255,255,0.4);
}
.compare-card:focus-within, .compare-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Event Cards */
.event-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    background: white;
    transition: var(--transition-standard);
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.reg-btn-gradient {
    background: linear-gradient(to bottom, #FF6B2C, #A63E14);
    box-shadow: 0 4px 0 #7A2E0F;
    transition: var(--transition-standard);
}
.reg-btn-gradient:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.reg-btn-gradient:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #7A2E0F;
}

/* Form Controls */
.apply-input {
    border: 2px solid transparent;
    font-weight: 700;
    transition: var(--transition-standard);
}
.apply-input:focus {
    outline: none;
    transform: scale(1.01);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
/* 1. Dropdown List Visibility & Styling Fix */
.filter-dropdown-select option {
    background-color: white;
    color: var(--color-primary);
    padding: 15px;
    font-weight: 500;
}

/* Chrome, Safari ebong standard browser er dropdown fix */
select.filter-dropdown-select {
    position: relative;
    z-index: 10;
}

/* 2. Sponsor Label Text Size Fix */
.sponsor-label {
    font-size: 1.25rem; /* Age khub choto chilo, ekhon 20px kora hoyeche */
    font-weight: 800;
    color: #2D1B69;
    margin-top: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* 3. Responsive adjustments for Sponsor text */
@media (max-width: 768px) {
    .sponsor-label {
        font-size: 1rem; /* Mobile-e halka choto kintu readable */
    }
}
/* --- High-Energy Video Card & Play Button --- */

/* 1. Card Container: Hover korle "Laf" deya effect */
.video-card {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.video-card:hover {
    transform: translateY(-3px) scale(1.01); /* Upore bouncy jump */
}

/* 2. Red Play Button: Choto ebong Premium Style */
.play-btn-wrapper {
    position: relative;
    width: 55px; /* Size optimized for standard grid */
    height: 55px;
    background: #FF0000; /* Vibrant YouTube Red */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

/* 3. Ripple Animation: Button-er charpashe wave effect */
.play-btn-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid rgba(255, 0, 0, 0.6);
    border-radius: 50%;
    animation: bounceRipple 2s infinite;
}

@keyframes bounceRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* 4. Hover Interactions */
.video-card:hover .play-btn-wrapper {
    background: #cc0000; /* Hover-e darker red */
    transform: scale(1.2) rotate(8deg); /* Olpo rotate hobe */
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.6);
}

.video-card:hover .play-btn-wrapper svg {
    transform: scale(1.1); /* Icon-ti halka boro hobe */
    fill: #ffffff;
}

/* 5. Image & Title Styling */
.video-card img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.video-card:hover img {
    transform: scale(1.15); /* Thumbnail smoothly zoom hobe */
    filter: brightness(1.1);
}

.video-card h3 {
    transition: color 0.3s ease;
}

.video-card:hover h3 {
    color: #FFD700; /* Title color change (Gold/Accent) */
}

/* 6. Modal Blur Effect */
#video-modal {
    transition: opacity 0.4s ease;
    backdrop-filter: blur(15px); /* Background blurry kore dibe */
}
/* 4. Filter Container hover effect fix for better UX */
.filter-container:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(124, 105, 227, 0.2);
}
/* Footer */
.footer-bg { background-color: var(--color-primary-dark); }
.footer-bottom { background-color: var(--color-primary-deep); }

/* Modal & Mobile Menu */
.hidden-modal { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(0.95); }
.visible-modal { opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1); }
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}
#mobile-menu.open { transform: translateX(0); }
/* --- High Priority Fix for Dropdown Layering --- */

/* ১. সেকশন এবং কন্টেইনারের ওভারফ্লো ভিজিবল রাখা */
.compare-bg,
.compare-bg .container {
    overflow: visible !important;
}

/* ২. কার্ডের পজিশন এবং স্ট্যাকিং ফিক্স */
.compare-card {
    position: relative !important;
    z-index: 10 !important; /* সাধারণ অবস্থায় লো ইনডেক্স */
    overflow: visible !important;
}

/* ৩. ড্রপডাউনে ফোকাস করলে কার্ডটিকে বাটন এবং গ্রিডের সবার উপরে আনা */
.compare-card:focus-within {
    z-index: 9999 !important; /* এটি বাটন এবং অন্য কার্ডের উপরে নিয়ে আসবে */
}

/* ৪. ড্রপডাউন লিস্টের জন্য ফিক্সড ইনডেক্স */
.dropdown-list {
    position: absolute !important;
    top: 100% !important;
    z-index: 10000 !important; /* ড্রপডাউন কন্টেন্ট সবার উপরে থাকবে */
    background: white !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    border: 1px solid #eee !important;
}

/* ৫. কম্পেয়ার বাটনকে ড্রপডাউনের নিচে পাঠানো */
button[onclick="goToCompare()"] {
    position: relative !important;
    z-index: 1 !important; /* ড্রপডাউন ওপেন হলে এটি নিচে থাকবে */
}
/* 1. Main Section Overflow */
.compare-bg, .compare-bg .container {
    overflow: visible !important;
    position: relative;
}

/* 2. Grid Item - Prothom card-er dropdown jate baki card ba button-er upor thake */
.compare-card {
    position: relative;
    /* Default index, jeno dropdown niche na jay */
    z-index: 20;
}

/* 3. Dropdown-e click korle shei card-ti shobar upore chole asbe */
.compare-card:focus-within {
    z-index: 100;
}

/* 4. Dropdown List - Forcefully shobar upore rakha */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999 !important; /* Shobar upore logic */
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* 5. Compare Button - Eitike niche thakte hobe */
.compare-btn {
    position: relative;
    z-index: 1 !important; /* Force to bottom layer */
}

/* Scrollbar Style */
.dropdown-list::-webkit-scrollbar { width: 6px; }
.dropdown-list::-webkit-scrollbar-thumb {
    background-color: #7C69E3;
    border-radius: 10px;
}


#ADDITIONAL CSS

.hero-merged-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Mobile-e niche push korbe */

    /* Mobile Background */
    background-image: url('/images/phone-banner-2.png') !important;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* 2. Desktop Switch (768px and up) */
@media (min-width: 768px) {
    .hero-merged-section {
        /* Desktop Background */
        background-image: url('/images/banner1.png') !important;
        background-position: center top; /* Desktop image er text upore thake tai top alignment */
        justify-content: flex-end;
    }
}

/* 3. Smooth Layout Container */
.hero-merged-section .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally Center Always */
    justify-content: flex-end; /* Vertically Bottom Always */
    height: 100%;
    /* Mobile-e pb-10 use hoyeche HTML-e, Desktop-e md:pb-32
       jate cloud theke ektu upore vese thake */
}

/* Hero section er vitore jodi kono extra overlay thake seta clean rakhar jonne */
.hero-merged-section::before {
    display: none;
}
.newsSwiper {
    width: 100%;
}

.news-card h3 {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem; /* একলাইন হলেও যাতে গ্যাপ ঠিক থাকে */
}
/* --- Hero Section - Mobile First Approach --- */
.hero-merged-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* মোবাইল ভিউতে পুরো স্ক্রিন জুড়ে থাকবে */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    /* Mobile Background (Default) */
    background-image: url('/images/phone-banner-2.png') !important;
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

/* --- 2. Desktop Switch (768px and up) --- */
@media (min-width: 768px) {
    .hero-merged-section {
        /* Desktop Background */
        background-image: url('/images/banner1.png') !important;
        background-position: center top !important;
        background-size: cover !important;
    }
}

/* --- 3. Layout Fixes --- */
.hero-merged-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* overlay clear logic */
.hero-merged-section::before {
    display: none !important;
}

/* News Slider text fix */
.news-card h3 {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.apply-section {
    background-size: 100% 100%; /* এটি ইমেজকে স্ট্রেচ করে ফিট করবে, তবে ইমেজ রেশিও নষ্ট হতে পারে */
    /* অথবা */
    background-size: contain; /* ইমেজ পুরোটা দেখাবে কিন্তু দুই পাশে খালি জায়গা থাকতে পারে */
}

/* --- Hero Section Background Fix --- */
.hero-merged-section {
    position: relative;
    width: 100%;
    /* min-height remove kore auto kora hoyeche jate blank space na thake */
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background-repeat: no-repeat !important;
    background-color: #ffffff;
    overflow: hidden;
    margin-top: 60px; /* Navbar height-er jonno */
}

/* Desktop View (Banner1) */
@media (min-width: 768px) {
    .hero-merged-section {
        background-image: url('/images/banner1.png') !important;
        /* aspect-ratio set korle image-er niche kono gap thakbe na */
        aspect-ratio: 1920 / 980;
        background-size: 100% 100% !important;
        background-position: center top !important;
    }

    /* Search form-er margin adjust koro jate white cloud-er upor thake */
    .search-form {
        margin-bottom: 50px !important;
        margin-top: 410px !important;
        padding-top: 420px;
    }
}

/* Mobile View (Phone Banner) */
@media (max-width: 767px) {
    .hero-merged-section {
        background-image: url('/images/phone-banner-2.png') !important;
        background-size: cover !important;
        min-height: 80vh; /* Mobile-e height thakle image kete jay na */
        background-position: center bottom !important;
        background-size: 100% 100% !important;
    }
}

/* Mobile View (Phone Banner) - Updated for better placement */
@media (max-width: 767px) {
    .hero-merged-section {
        background-image: url('/images/phone-banner-2.png') !important;
        aspect-ratio: auto !important;
        background-size: 100% auto !important;
        background-position: center top !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .hero-merged-section .container {
        justify-content: flex-end !important;
        /* Padding-top কমিয়ে এবং padding-bottom বাড়িয়ে ফরমটিকে উপরে তোলা হয়েছে */
        padding-top: 200px !important; /* আগে ৩৫০ ছিল, এটি কমালে ফরম উপরে উঠবে */
        padding-bottom: 120px !important; /* আগে ২০ ছিল, এটি বাড়ালে ফরম নিচ থেকে উপরে পুশ হবে */
        height: auto !important;
    }

    .search-form {
        width: 100% !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
    }
    .hero-merged-section {
        padding-bottom: 1px !important;
        min-height: 88vh !important;
    }
    .hero-merged-section .container {

        padding-bottom: 80px !important;
    }
    .standard-height{
        height: 50px !important;
    }
}
