* { box-sizing: border-box; }
body { font-family: 'Hind Siliguri', sans-serif; margin: 0; color: #222; }

/* ===== টপবার ===== */
.top-bar { background: var(--topbar-bg, #1e3c72); color: var(--topbar-text, #fff); font-size: 14px; padding: 7px 0; }
.top-contact { color: var(--topbar-text, #fff); }
.lang-switch a, .lang-switch-mobile a { color: var(--topbar-text, #cfd8ea); opacity: 0.85; text-decoration: none; margin-left: 15px; font-weight: 600; font-size: 13px; padding: 3px 12px; border-radius: 20px; transition: 0.2s; }
.lang-switch a.active, .lang-switch-mobile a.active { background: rgba(255,255,255,0.9); color: var(--topbar-bg, #1e3c72) !important; opacity: 1; }
.lang-switch-mobile { display: flex; gap: 10px; padding: 10px 0; }
.lang-switch-mobile a { margin-left: 0; border: 1px solid #ddd; color: #333; opacity: 1; }

/* ===== নেভবার ===== */
.main-navbar { background: var(--navbar-bg, #fff); box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 12px 0; position: sticky; top: 0; z-index: 1000; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--navbar-text, #1e3c72) !important; }

/* ✅✅✅ লোগো ফিক্স করা হয়েছে (crop সমস্যা সমাধান) ✅✅✅ */
.navbar-brand img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.nav-link { font-weight: 600; color: var(--navbar-text, #333) !important; opacity: 0.85; margin: 0 8px; transition: 0.2s; }
.nav-link:hover { color: var(--primary-color, #1e3c72) !important; opacity: 1; }
.btn-login { background: var(--primary-color, #1e3c72); color: #fff !important; padding: 8px 20px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block; }
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.25); filter: brightness(1.1); }

/* ===== হিরো স্লাইডার ===== */
.hero-slider-section { position: relative; }
.heroSwiper { width: 100%; height: 62vh; min-height: 380px; max-height: 600px; }
.hero-slide { width: 100%; height: 100%; background-size: cover; background-position: center; background-color: #1e3c72; position: relative; display: flex; align-items: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,20,50,0.72), rgba(30,60,114,0.4)); }
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; color: #fff; padding: 0 20px; }
.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-shadow: 0 4px 25px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 26px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
    padding: 13px 34px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.4px;
    display: inline-block;
    transition: 0.3s;
}
.hero-btn-primary {
    background: var(--primary-color, #1e3c72);
    color: #fff;
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}
.hero-btn-primary:hover { transform: translateY(-4px) scale(1.04); filter: brightness(1.15); }
.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    display: inline-block;
    transition: 0.3s;
}
.hero-btn-outline:hover { background: #fff; color: var(--primary-color, #1e3c72); transform: translateY(-4px) scale(1.04); }

.swiper-button-next, .swiper-button-prev { color: #fff; }
.swiper-pagination-bullet-active { background: #fff; }

.hero-placeholder { background: #f0f3fa; padding: 80px 20px; text-align: center; color: #888; }
.hero-placeholder h2 { font-size: 20px; }

/* ===== সেকশন টাইটেল ===== */
.section-title { font-weight: 700; color: var(--primary-color, #1e3c72); margin-bottom: 30px; }

/* ===== ফুটার ===== */
.site-footer { background: #10204a; color: #cfd8ea; padding: 50px 0 0; }
.site-footer h5 { color: #fff; font-weight: 700; margin-bottom: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cfd8ea; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.btn-map { background: var(--primary-color, #2a5298); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; display: inline-block; }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }

/* ===== সার্ভিস কার্ড (3D হোভার) ===== */
.services-section { background: #f8f9fc; }
.service-card-3d {
    background: #fff;
    border-radius: 18px;
    padding: 40px 28px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}
.service-card-3d:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(30,60,114,0.2);
}
.service-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary-color, #1e3c72), #2a5298);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    transition: 0.4s;
}
.service-icon i { font-size: 30px; color: #fff; }
.service-card-3d:hover .service-icon { transform: rotateY(360deg); }
.service-card-3d h5 { font-weight: 700; color: #1e3c72; margin-bottom: 12px; }
.service-card-3d p { color: #666; font-size: 14px; margin: 0; }

/* ===== স্বাগতম সেকশন ===== */
.welcome-desc { color: #555; line-height: 1.9; font-size: 15px; }
.welcome-img-wrap { position: relative; }
.welcome-img {
    width: 100%; border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transition: 0.4s;
}
.welcome-img:hover { transform: scale(1.02) rotate(-1deg); }

/* ===== কেন যোগ দিবে (সংখ্যা) সেকশন ===== */
.why-join-section {
    background: linear-gradient(135deg, var(--primary-color, #1e3c72), #0a1a3d);
    position: relative;
}
.why-join-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 30px 15px;
    text-align: center;
    color: #fff;
    transition: 0.3s;
}
.why-join-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-8px); }
.why-join-card i { font-size: 32px; margin-bottom: 12px; display: block; }
.why-join-card h2 { font-size: 32px; font-weight: 800; margin: 6px 0; }
.why-join-card p { font-size: 14px; opacity: 0.9; margin: 0; }

/* ===== পেজ ব্যানার (ইনার পেজের জন্য) ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color, #1e3c72), #2a5298);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.page-banner h1 { font-weight: 700; font-size: 32px; margin: 0; }

/* ===== ক্যাটাগরি কার্ড ===== */
.category-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: 0.35s;
    height: 100%;
}
.category-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(30,60,114,0.18); }
.category-icon {
    width: 64px; height: 64px;
    background: #eef2fb;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.category-icon i { font-size: 26px; color: var(--primary-color, #1e3c72); }
.category-card h5 { font-weight: 700; color: #1e3c72; margin: 0; }

/* ===== কোর্স কার্ড ===== */
.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: 0.35s;
    height: 100%;
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(30,60,114,0.15); }
.course-img { height: 180px; background-size: cover; background-position: center; background-color: #ddd; }
.course-body { padding: 22px; }
.course-body h5 { font-weight: 700; color: #1e3c72; margin-bottom: 8px; }
.course-duration { color: #777; font-size: 13px; margin-bottom: 16px; }
.btn-course-details {
    display: inline-block;
    background: var(--primary-color, #1e3c72);
    color: #fff;
    padding: 9px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.btn-course-details:hover { filter: brightness(1.15); color: #fff; }

/* ===== কোর্স ডিটেইলস পেজ ===== */
.course-detail-img { width: 100%; box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.course-detail-desc { color: #555; line-height: 1.9; font-size: 15px; }
.course-info-box {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.course-info-box h5 { font-weight: 700; color: #1e3c72; margin-bottom: 18px; }
.course-info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.course-info-list li { padding: 10px 0; border-bottom: 1px solid #e5e8f0; font-size: 14px; color: #555; }
.course-info-list i { color: var(--primary-color, #1e3c72); margin-right: 6px; }
.btn-admission-now {
    display: block;
    text-align: center;
    background: var(--primary-color, #1e3c72);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-admission-now:hover { filter: brightness(1.15); color: #fff; transform: translateY(-3px); }

/* ===== ম্যানেজমেন্ট মেম্বার কার্ড ===== */
.member-card { background:#fff; border-radius:16px; padding:25px 15px; text-align:center; box-shadow:0 8px 25px rgba(0,0,0,0.07); transition:0.3s; }
.member-card:hover { transform:translateY(-8px); box-shadow:0 20px 40px rgba(30,60,114,0.15); }
.member-photo { width:100px; height:100px; border-radius:50%; background-size:cover; background-position:center; background-color:#eee; margin:0 auto 15px; border:3px solid #eef2fb; }
.member-card h5 { font-weight:700; color:#1e3c72; margin-bottom:4px; font-size:16px; }
.member-card p { font-size:13px; color:#777; margin:0; }

/* ===== টেস্টিমোনিয়াল স্লাইডার ===== */
.testimonial-section { background:#f8f9fc; }
.testimonial-card { background:#fff; border-radius:16px; padding:35px 30px; text-align:center; box-shadow:0 10px 30px rgba(0,0,0,0.07); margin:10px; }
.testimonial-photo { width:70px; height:70px; border-radius:50%; object-fit:cover; margin:0 auto 15px; border:3px solid #eef2fb; }
.testimonial-stars { color:#ffb400; margin-bottom:12px; }
.testimonial-msg { color:#555; font-size:14px; line-height:1.8; margin-bottom:16px; font-style:italic; }
.testimonial-name { font-weight:700; color:#1e3c72; margin:0; }
.testimonial-role { font-size:12px; color:#999; }

/* ===== গ্যালারি ===== */
.gallery-item { border-radius:12px; overflow:hidden; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,0.08); }
.gallery-item img { width:100%; height:160px; object-fit:cover; transition:0.4s; }
.gallery-item:hover img { transform:scale(1.1); }
.lightbox-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:9999; align-items:center; justify-content:center; padding:20px; }
.lightbox-overlay img { max-width:90%; max-height:90%; border-radius:10px; }

/* ===== নোটিশ ===== */
.notice-list { display:flex; flex-direction:column; gap:15px; }
.notice-item { display:flex; align-items:center; gap:20px; background:#fff; border-radius:14px; padding:20px; text-decoration:none; box-shadow:0 6px 20px rgba(0,0,0,0.06); transition:0.3s; }
.notice-item:hover { transform:translateX(8px); box-shadow:0 12px 30px rgba(30,60,114,0.12); }
.notice-date { background:var(--primary-color,#1e3c72); color:#fff; border-radius:10px; width:60px; height:60px; display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; }
.notice-day { font-size:20px; font-weight:800; line-height:1; }
.notice-month { font-size:11px; text-transform:uppercase; }
.notice-content { flex:1; }
.notice-content h5 { font-weight:700; color:#1e3c72; margin-bottom:4px; font-size:16px; }
.notice-content p { font-size:13px; color:#777; margin:0; }
.notice-item i { color:#aaa; font-size:20px; }
.notice-detail-box { background:#fff; border-radius:16px; padding:35px; box-shadow:0 8px 25px rgba(0,0,0,0.06); max-width:800px; margin:0 auto; }
.btn-download-file { display:inline-block; margin-top:20px; background:var(--primary-color,#1e3c72); color:#fff; padding:10px 22px; border-radius:8px; text-decoration:none; font-weight:600; }

/* ===== রেজাল্ট ===== */
.result-search-box { background:#fff; border-radius:16px; padding:30px; max-width:600px; box-shadow:0 8px 25px rgba(0,0,0,0.07); }
.result-table th { background:var(--primary-color,#1e3c72); color:#fff; }

/* ===== যোগাযোগ ===== */
.contact-info-item { display:flex; align-items:flex-start; gap:15px; margin-bottom:20px; font-size:14px; color:#555; }
.contact-info-item i { color:var(--primary-color,#1e3c72); font-size:20px; margin-top:2px; }
.contact-form { background:#fff; border-radius:16px; padding:30px; box-shadow:0 8px 25px rgba(0,0,0,0.07); }
.btn-submit-contact { background:var(--primary-color,#1e3c72); color:#fff; border:none; padding:13px 36px; border-radius:8px; font-weight:700; transition:0.3s; }
.btn-submit-contact:hover { filter:brightness(1.15); transform:translateY(-3px); }

/* ===== রেসপনসিভ ===== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 24px; }
    .hero-content p { font-size: 14px; margin-bottom: 18px; }
    .heroSwiper { height: 48vh; min-height: 320px; }
    .hero-btn { padding: 10px 24px; font-size: 13px; }
    .navbar-collapse { background: var(--navbar-bg, #fff); margin-top: 15px; padding: 15px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
    .nav-link { padding: 10px 0 !important; border-bottom: 1px solid rgba(0,0,0,0.08); }
    .page-banner h1 { font-size: 22px; }
    .service-card-3d { padding: 28px 20px; }
    .why-join-card h2 { font-size: 24px; }

    /* মোবাইলে লোগো একটু ছোট হবে */
    .navbar-brand img {
        height: 48px;
        max-width: 160px;
    }
}
/* ===== Hero Slide Mobile Fix ===== */
.hero-slide {
    background-size: cover;
    background-position: center;
    min-height: 420px;
    position: relative;
}
.hero-overlay {
    background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.75));
    width: 100%; height: 100%;
    display: flex; align-items: center;
    position: absolute; top:0; left:0;
}
.hero-content h1 {
    color: #fff; font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-content p { color: #f1f1f1; }

@media (max-width: 768px) {
    .hero-slide { min-height: 340px; }
    .hero-content { padding-bottom: 50px; }
}

/* ===== Teacher badge text fix ===== */
.teacher-badge {
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}
.teacher-badge h4 { font-size: .95rem; margin-bottom: 2px; color:#0f172a; }
.teacher-badge span { font-size: .8rem; color:#e11d48; }