:root { 
    --primary-blue: #0A3D6B; 
    --accent-yellow: #FFC107; 
}
body { 
    font-family: 'Kalpurush', Arial, sans-serif; 
    background-color: #f8f9fa; 
}
.top-bar { 
    background-color: var(--primary-blue); 
    color: white; 
    font-size: 14px; 
    padding: 8px 0; 
}
.header-logo-section { 
    background-color: white; 
    padding: 20px 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
.navbar-custom { 
    background-color: #0A3D6B; 
    padding: 0;
}
.navbar-custom .nav-link { 
    color: white !important; 
    font-weight: 600; 
    padding: 18px 25px !important; 
    font-size: 15px;
    text-transform: uppercase; 
    transition: 0.3s;
}
.navbar-custom .nav-link:hover:not(.active) { 
    background-color: rgba(255, 255, 255, 0.15); 
    color: #FFC107 !important; 
}

/* অ্যাক্টিভ মেইন মেনুর ডিজাইন (ছবির মতো সাদা ট্যাব) */
.navbar-custom .nav-link.active {
    background-color: white !important;
    color: var(--primary-blue) !important; /* লেখার রঙ গাঢ় নীল */
    border-radius: 6px 6px 0 0; /* ওপরের দুই কোণা গোল হবে */
    font-weight: bold;
}

/* সাব-মেনুর (Dropdown) ডিজাইন */
.dropdown-menu { 
    background-color: #f8f9fa; 
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.dropdown-item { 
    color: var(--primary-blue) !important; 
    font-weight: 500; 
}
.dropdown-item:hover:not(.active) { 
    background-color: #0A3D6B; 
    color: white !important; 
}
.dropdown-menu .dropdown-item.active {
    background-color: var(--primary-blue);
    color: white !important;
    font-weight: bold;
}

/* Hero Slider Custom Design */
.hero-slider-section .carousel-item {
    height: 500px; /* স্লাইডারের উচ্চতা */
}
.hero-slider-section .carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* চারদিক থেকে গ্যাপ রেখে নির্দিষ্ট জায়গায় গ্রেডিয়েন্ট (আপনার দাগ দেওয়া ছবির মতো) */
.hero-slider-section .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial Gradient: যা উপরে, নিচে এবং বামে ২০% ফাঁকা রেখে কাজ করবে */
    background: radial-gradient(
        ellipse 40% 60% at 27% 40%, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.85) 40%, 
        rgba(255, 255, 255, 0) 90%
    );
}

/* ক্যাপশন পজিশন */
.hero-slider-section .carousel-caption {
    top: 55%; 
    transform: translateY(-50%);
    bottom: auto;
    left: 12%; 
    right: auto;
    text-align: left;
    width: 50%;
    padding: 0;
}

/* টাইটেল এবং সাবটাইটেল ডিজাইন */
.hero-title {
    color: #0A3D6B; 
    font-weight: 800;
    font-size: 3rem; 
    line-height: 1.3; /* লাইনগুলোর মাঝে একটু ফাঁকা রাখার জন্য 1.2 থেকে 1.3 করা হলো */
    margin-bottom: 15px;
    text-shadow: none; 
    max-width: 350px; /* এই লাইনটি যোগ করুন (প্রয়োজনে 350px এর জায়গায় 400px করে দেখতে পারেন) */
}
.hero-subtitle {
    color: #212529; /* গাঢ় ধূসর/কালো */
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: none;
}

/* কাস্টম বাটন ডিজাইন */
.btn-hero-primary {
    background-color: #0A3D6B;
    color: white;
    border: 2px solid #0A3D6B;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-hero-primary:hover {
    background-color: #062b4e;
    color: white;
}
.btn-hero-outline {
    background-color: transparent;
    color: #0A3D6B;
    border: 2px solid #0A3D6B;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-hero-outline:hover {
    background-color: #0A3D6B;
    color: white;
}

/* স্লাইডার কন্ট্রোল (তীর চিহ্ন) ডিজাইন */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 8%; 
    z-index: 10;
}
.hero-slider-section .control-icon-bg {
    background-color: rgba(33, 33, 33, 0.8);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* মোবাইল স্ক্রিনের জন্য রেসপন্সিভ ডিজাইন */
@media (max-width: 768px) {
    .hero-slider-section .carousel-caption {
        width: 90%;
        left: 5%;
        background: rgba(255, 255, 255, 0.85); 
        padding: 20px;
        border-radius: 10px;
    }
    .hero-slider-section .carousel-overlay {
        background: rgba(255, 255, 255, 0.4); 
    }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
}

.section-title { color: var(--primary-blue); font-weight: bold; border-bottom: 3px solid var(--accent-yellow); display: inline-block; padding-bottom: 5px; margin-bottom: 25px; }
.card-custom { border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-radius: 10px; transition: 0.3s; }
.card-custom:hover { transform: translateY(-5px); }
.footer { background-color: var(--primary-blue); color: white; padding: 40px 0 20px; }
.footer a { color: var(--accent-yellow); text-decoration: none; }

/* --- Home Page Custom Sections Design --- */
.home-card {
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.home-card-title {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid #e0e4e8;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.view-all-link {
    font-size: 0.85rem;
    color: #0d6efd;
    text-decoration: none;
    font-weight: normal;
}
.view-all-link:hover { text-decoration: underline; }

/* 1. Headmaster Section */
.hm-image { width: 110px; height: 130px; object-fit: cover; border-radius: 6px; border: 1px solid #ccc; padding: 2px; }
.hm-text { font-size: 0.85rem; color: #444; line-height: 1.6; text-align: justify; }
.btn-blue { background-color: var(--primary-blue); color: white; padding: 6px 20px; border-radius: 4px; text-decoration: none; font-size: 0.9rem; font-weight: bold; display: inline-block; transition: 0.3s; }
.btn-blue:hover { background-color: #062b4e; color: white; }

/* 2. At a Glance Section */
.glance-list { list-style: none; padding: 0; margin: 0; }
.glance-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e0e4e8; font-size: 0.95rem; font-weight: 600; color: #333; }
.glance-list li:last-child { border-bottom: none; }
.glance-list li i { color: var(--primary-blue); width: 25px; }

/* 3. Notice Section */
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed #e0e4e8; }
.notice-list li:last-child { border-bottom: none; }
.notice-icon { background-color: #d32f2f; color: white; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 11px; margin-right: 12px; flex-shrink: 0; }
.notice-text { flex-grow: 1; font-size: 0.85rem; font-weight: 500; }
.notice-text a { color: #333; text-decoration: none; }
.notice-text a:hover { color: var(--primary-blue); }
.notice-date { font-size: 0.8rem; color: var(--primary-blue); font-weight: bold; white-space: nowrap; margin-left: 10px; }

/* 4. Achievements & Offerings */
.achievement-list { list-style: none; padding: 0; margin: 0; }
.achievement-list li { padding: 8px 0; font-size: 0.9rem; font-weight: 600; color: #444; display: flex; align-items: center; }
.achievement-list li i { color: #FFC107; font-size: 1.2rem; margin-right: 10px; }
.offer-box { border: 1px solid #e0e4e8; border-radius: 8px; padding: 15px 10px; text-align: center; height: 100%; transition: 0.3s; }
.offer-box:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.05); transform: translateY(-3px); }
.offer-box i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 10px; }
.offer-box h6 { color: var(--primary-blue); font-weight: bold; font-size: 0.95rem; margin-bottom: 5px; }
.offer-box p { font-size: 0.75rem; color: #666; margin: 0; line-height: 1.3; }

/* 5. Photo Gallery */
.gallery-item { position: relative; border-radius: 6px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); height: 160px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--primary-blue); color: white; text-align: center; padding: 6px 0; font-size: 0.85rem; font-weight: bold; }

/* 6. Bottom 4 Columns */
.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { padding: 6px 0; font-size: 0.9rem; border-bottom: 1px dashed #eee; color: #444; }
.simple-list li i { color: var(--primary-blue); width: 20px; }
.admission-box { background-color: var(--primary-blue); color: white; padding: 20px; border-radius: 8px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.admission-box h4 { font-weight: bold; margin-bottom: 15px; font-size: 1.3rem; }
.admission-box ul { list-style: none; padding: 0; text-align: left; width: fit-content; margin: 0 auto 20px; }
.admission-box ul li { margin-bottom: 8px; font-size: 0.9rem; }
.admission-box ul li i { color: #4CAF50; margin-right: 8px; }
.btn-yellow { background-color: #FFC107; color: #000; font-weight: bold; padding: 8px 25px; border-radius: 4px; text-decoration: none; font-size: 1rem; }
.btn-yellow:hover { background-color: #e0a800; color: #000; }
