/* RESPONSIVE IMPROVEMENTS FOR ALL PAGES */

/* ============================================
   GLOBAL STANDARDIZATION (applies on every page,
   loaded last so it overrides inline page styles)
   ============================================ */

/* Profile / room / branch photos: use aspect-ratio so heads & rooms
   are never cropped awkwardly across different devices */
.mgr-box-node img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: top center; }
.room-item-card img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }
.leader-large-profile img { object-fit: cover; object-position: top center; }

/* Keep the Call-Now / qna button icon at a normal size
   (page rule ".qna-left-widget i { font-size:40px }" was blowing it up) */
.qna-call-btn i { font-size: 1em !important; margin: 0 !important; }

/* Clickable "Get In Touch" contact sidebar — all pages */
.c-sidebar-ul li { display: block; margin-bottom: 6px; }
.c-sidebar-ul li a { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; transition: background 0.25s ease, transform 0.25s ease; }
.c-sidebar-ul li a:hover, .c-sidebar-ul li a:focus-visible { background: rgba(255,255,255,0.12); transform: translateX(4px); outline: none; }
.c-sidebar-ul li .c-text { line-height: 1.3; word-break: break-word; min-width: 0; }
.c-sidebar-ul li .c-text span { font-size: 11px; font-weight: 400; opacity: 0.8; display: block; letter-spacing: 0.3px; }
.c-sidebar-ul .circle-bg-icon.wa { background: #25D366; }
.c-sidebar-ul .circle-bg-icon.fb { background: #1877F2; }
.c-sidebar-ul .circle-bg-icon.em { background: #fff; color: var(--primary); }
.c-sidebar-ul .circle-bg-icon.yt { background: #FF0000; }

/* ============================================
   "Get In Touch" — landscape card, contacts in 3 columns
   (home + contact pages; loaded last so it wins over inline)
   ============================================ */
/* Stack the row so the green card spans the full width (landscape) */
.contact-main-flex-row { flex-direction: column; gap: 30px; }
.contact-green-sidebar { width: 100%; box-sizing: border-box; }
.contact-right-content-col, .contact-right-col { width: 100%; }

/* Centered heading inside the wide card */
.contact-green-sidebar h3 { text-align: center; }

/* Numbers & links laid out in three even columns */
.c-sidebar-ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.c-sidebar-ul li { margin-bottom: 0; }
.c-sidebar-ul li a {
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}
.c-sidebar-ul li a:hover,
.c-sidebar-ul li a:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}
/* Make the number / value line clean and prominent */
.c-sidebar-ul li .c-text { font-size: 14.5px; font-weight: 700; }
.c-sidebar-ul li .c-text span { margin-bottom: 2px; }

/* Tablet → 2 columns, phone → single column */
@media (max-width: 880px) {
    .c-sidebar-ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .c-sidebar-ul { grid-template-columns: 1fr; }
}

/* Brand text in the navbar (between logo and menu) — shown on phones, all pages */
.nav-brand-text { display: none; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.nav-brand-text .nbt-name { font-size: 16px; color: var(--primary); font-weight: 800; letter-spacing: 0.5px; }
.nav-brand-text .nbt-tag { font-size: 8px; color: var(--text-gray); letter-spacing: 2.5px; font-weight: 600; margin-top: 2px; }

/* Guardian video testimonial (used on reviews + home) */
.guardian-video-block { text-align: center; margin: 10px 0 40px; }
.guardian-video-title { font-size: 24px; color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.2; }
.guardian-video-title i { color: var(--secondary); }
.guardian-video-sub { font-size: 14px; color: var(--text-gray); margin: 8px auto 20px; max-width: 560px; }
.guardian-video-frame { position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,0.15); border: 4px solid #fff; background: #000; }
.guardian-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) {
    .nav-brand-text { display: flex; flex: 1; }
    /* Brand text already appears in the navbar on phones — hide the duplicate hero eyebrow */
    .home-brand-eyebrow { display: none; }
    /* Director/leader portraits: one consistent, standard banner crop on phones */
    .leader-large-profile img { width: 100% !important; height: 200px !important; aspect-ratio: auto !important; object-fit: cover !important; object-position: top center !important; }
    .guardian-video-title { font-size: 19px; }
    .guardian-video-sub { font-size: 12.5px; }
    .guardian-video-frame { border-radius: 12px; border-width: 3px; }
}

/* ============================================
   EXTRA SMALL DEVICES: max-width 480px
   ============================================ */
@media (max-width: 480px) {
    body { font-size: 13px; }
    
    /* Typography */
    h1, .block-title { font-size: 22px !important; line-height: 1.2; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }
    h5 { font-size: 12px; }
    p, span { font-size: 12px; }
    
    /* Navigation */
    .navbar { 
        padding: 10px 12px; 
        position: sticky;
        z-index: 10000;
    }
    .nav-logo h1 { font-size: 14px; }
    .nav-logo i { font-size: 18px; }
    .nav-links { 
        top: 50px;
        padding: 12px;
    }
    .nav-links a { 
        font-size: 12px;
        padding: 8px 10px;
    }
    .menu-toggle { font-size: 18px; }
    
    /* Sections */
    .section-wrapper { 
        margin: 15px auto;
        padding: 0;
        border-radius: 12px;
    }
    
    /* Padding/Margin Adjustments */
    .home-body,
    .feat-header-block,
    .feat-grid-outer,
    .team-body-area,
    .package-body-area,
    .contact-body-area,
    .reviews-section-container { 
        padding: 15px 12px !important; 
    }
    
    /* Grid Layouts */
    .reviews-3col-cards-grid,
    .trio-info-row,
    .leaders-2col-layout,
    .mv-flex-row,
    .contact-main-flex-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Management team — compact 3-column grid on phones */
    .managers-horizontal-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 7px !important;
        margin-bottom: 20px !important;
    }
    .managers-horizontal-grid .mgr-box-node { padding: 7px 5px !important; }
    .managers-horizontal-grid .mgr-box-node img {
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
        object-fit: cover !important;
        object-position: top center !important;
        margin: 16px auto 6px !important;
        border-radius: 6px;
    }
    .managers-horizontal-grid .m-badge-top {
        font-size: 6.5px !important;
        padding: 2px 5px !important;
        top: 5px;
        left: 5px;
        line-height: 1.1;
    }
    .managers-horizontal-grid .mgr-box-node h4 { font-size: 10px !important; margin-bottom: 2px; }
    .managers-horizontal-grid .mgr-box-node p { font-size: 8px !important; line-height: 1.25; }

    /* These stay 2-up on phones */
    .room-pkgs-4col-grid,
    .branches-4col-grid,
    .why-cards-3grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .home-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .feat-grid-5col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .colleges-6col-grid,
    .pkg-includes-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Cards */
    .feat-card-node,
    .metric-box,
    .fcard,
    .room-item-card,
    .mgr-box-node,
    .review-msg-card,
    .branch-item-box,
    .why-card-item,
    .mv-flex-card { 
        padding: 12px !important;
    }
    
    .feat-circle-icon { 
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    /* Images */
    .room-item-card img,
    .branch-item-box img,
    .mgr-box-node img,
    .study-img,
    .content-img,
    .hero-img { 
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* Banner/Hero */
    .package-banner,
    .team-banner,
    .contact-top-banner,
    .page-hero { 
        padding: 25px 12px !important;
    }
    
    .package-banner h2,
    .team-banner h2,
    .contact-top-banner h1,
    .page-hero h2 { 
        font-size: 22px !important;
    }
    
    /* Forms */
    .fld input,
    .fld select,
    .fld textarea {
        padding: 10px 10px !important;
        font-size: 13px !important;
        width: 100% !important;
    }
    
    .fld label { font-size: 11px !important; }
    
    .form-grid { 
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Buttons */
    .btn,
    .btn-primary,
    .btn-ghost,
    .room-book-now-btn,
    .branch-map-action-btn,
    .strip-admission-btn { 
        padding: 10px 16px !important;
        font-size: 12px !important;
        width: 100% !important;
    }
    
    /* WhatsApp Button */
    .whatsapp-floating-action-btn { 
        width: 48px !important;
        height: 48px !important;
        font-size: 24px !important;
        bottom: 15px !important;
        right: 12px !important;
    }
    
    /* Footer */
    .master-footer-bar { 
        padding: 15px 12px !important;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .ff-left-meta { 
        flex-direction: column;
        gap: 8px;
    }
    
    .ff-right-social { 
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .soc-circle-node { 
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
    
    .copyright { font-size: 10px; padding: 10px; }
    
    /* Stats — 2 columns on phones */
    .stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 15px !important;
        margin: 15px 0 !important;
    }

    .stat { padding: 14px 8px !important; }
    .stat .num { font-size: 1.4rem !important; }
    .stat .lbl { font-size: 10.5px !important; }
    
    /* Others */
    .home-dark-bottom-bar { 
        padding: 15px 10px !important;
        flex-wrap: wrap;
    }
    
    .db-item { 
        gap: 8px !important;
        flex: 0 0 48% !important;
    }
    
    .db-vertical-line { display: none; }
    
    .package-banner { padding: 20px 12px !important; }
    .qna-widget-area { flex-direction: column !important; }
    .contact-green-sidebar { width: 100% !important; }
    .contact-right-content-col { width: 100% !important; }
    
    /* Header Spacing */
    .cursive-title { font-size: 28px !important; }
    .block-title { margin-bottom: 12px !important; }
    .badge-pill { padding: 6px 12px !important; font-size: 11px !important; }
    
    /* Horizontal Lines */
    .divider { width: 60px !important; margin: 8px 0 20px !important; }
    
    /* List Items */
    .adm-list li { gap: 8px !important; font-size: 12px !important; }
}

/* ============================================
   SMALL DEVICES: 481px - 640px
   ============================================ */
@media (max-width: 640px) and (min-width: 481px) {
    /* Typography */
    h1, .block-title { font-size: 26px !important; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    p { font-size: 13px; }
    
    /* Navigation */
    .navbar { padding: 12px 15px; }
    .nav-logo h1 { font-size: 15px; }
    
    /* Sections */
    .home-body,
    .feat-header-block,
    .feat-grid-outer,
    .team-body-area,
    .package-body-area { 
        padding: 18px 15px !important; 
    }
    
    /* Grids */
    .home-metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .feat-grid-5col { grid-template-columns: repeat(2, 1fr) !important; }
    .colleges-6col-grid,
    .pkg-includes-row { grid-template-columns: repeat(3, 1fr) !important; }
    .room-pkgs-4col-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .reviews-3col-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Buttons */
    .btn, .btn-primary { width: 100%; margin-bottom: 8px; }
    
    .whatsapp-floating-action-btn { 
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 18px;
        right: 15px;
    }
}

/* ============================================
   TABLET: 641px - 1024px
   ============================================ */
@media (max-width: 1024px) and (min-width: 641px) {
    /* Typography */
    h1, .block-title { font-size: 40px; }
    h2 { font-size: 32px; }
    p { font-size: 14px; }
    
    /* Navigation */
    .navbar { padding: 14px 20px; }
    .nav-links a { font-size: 12px; }
    
    /* Sections */
    .home-body,
    .feat-header-block,
    .feat-grid-outer { 
        padding: 30px 25px !important; 
    }
    
    /* Grids */
    .home-metrics-grid { grid-template-columns: repeat(3, 1fr); }
    .feat-grid-5col { grid-template-columns: repeat(3, 1fr); }
    .room-pkgs-4col-grid { grid-template-columns: repeat(2, 1fr); }
    .managers-horizontal-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-3col-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .branches-4col-grid { grid-template-columns: repeat(2, 1fr); }
    .colleges-6col-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   ORIENTATION: Landscape Mobile
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar { padding: 8px 12px; }
    h1, .block-title { font-size: 20px; }
    .nav-links { max-height: calc(100vh - 50px); }
}

/* ============================================
   বাংলা FAQ Accordion (shared across all pages)
   ============================================ */
.bn-faq-section { background: #ffffff; padding: 55px 20px; font-family: 'Noto Sans Bengali','Poppins',sans-serif; }
.bn-faq-inner { max-width: 880px; margin: 0 auto; color: #1a1a1a; line-height: 1.85; }
.bn-faq-title { color: #0a4f25; font-size: clamp(22px,4vw,30px); font-weight: 700; text-align: center; margin-bottom: 8px; }
.bn-faq-sub { text-align: center; color: #21703e; font-weight: 600; margin-bottom: 30px; }
.gh-faq-item {
    background: #f4f9f6;
    border: 1px solid #d9ece1;
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 4px 20px;
    transition: box-shadow .25s ease;
}
.gh-faq-item[open] { box-shadow: 0 6px 18px rgba(10,79,37,.10); }
.gh-faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: #0a4f25;
    font-size: clamp(15px,2.4vw,18px);
    padding: 14px 30px 14px 0;
    position: relative;
    outline: none;
}
.gh-faq-item summary::-webkit-details-marker { display: none; }
.gh-faq-item summary::after {
    content: "\002B";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #5da04b;
    transition: transform .25s ease;
}
.gh-faq-item[open] summary::after { content: "\2212"; }
.gh-faq-item p { margin: 0 0 16px; color: #333; line-height: 1.85; }
