/* ==========================================================================
   SIKKHALAY ENTERPRISE DIGITAL SCHOOL OS — PUBLIC INSTITUTION SHOWCASE
   Futuristic Facebook-Page & Mobile-First Optimized Stylesheet
   ========================================================================== */

:root {
    --brand-primary: #059669;
    --brand-hover: #047857;
    --brand-light: rgba(5, 150, 105, 0.12);
    --brand-glow: rgba(5, 150, 105, 0.35);

    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border-color: #e2e8f0;
    --border-subtle: #cbd5e1;

    --status-success: #10b981;
    --status-info: #0284c7;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-purple: #8b5cf6;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --bottom-nav-height: 62px;
}

[data-theme="dark"] {
    --bg-base: #090d16;
    --bg-surface: #0f172a;
    --bg-elevated: #1e293b;
    --bg-card-hover: #27354a;

    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --border-color: #1e293b;
    --border-subtle: #334155;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button:active {
    transform: scale(0.97);
}

/* ==========================================================================
   TOP GLOBAL NAVIGATION BAR
   ========================================================================== */
.fb-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: background-color var(--transition-normal);
}

[data-theme="light"] .fb-navbar {
    background: rgba(255, 255, 255, 0.88);
}

.fb-nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fb-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.fb-mobile-menu-btn:hover {
    background: var(--bg-elevated);
}

.fb-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 0 12px var(--brand-glow);
    flex-shrink: 0;
}

.fb-brand-text h1 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-brand-badge {
    font-size: 9px;
    color: var(--brand-primary);
    font-weight: 700;
    background: var(--brand-light);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.fb-brand-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.fb-search-wrap {
    position: relative;
    width: 260px;
}

.fb-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: all var(--transition-fast);
}

.fb-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-light);
}

.fb-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.fb-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-mobile-icon-btn {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.fb-btn-portal {
    background: var(--brand-primary);
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px var(--brand-glow);
    white-space: nowrap;
}

.fb-btn-portal:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.fb-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.fb-theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--brand-primary);
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER MENU
   ========================================================================== */
.fb-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fb-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fb-drawer-card {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.fb-drawer-overlay.active .fb-drawer-card {
    transform: translateX(0);
}

.fb-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.fb-drawer-inst-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.fb-drawer-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.fb-drawer-section-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.fb-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.fb-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    transition: background-color var(--transition-fast);
}

.fb-drawer-link:hover,
.fb-drawer-link:active {
    background: var(--bg-elevated);
    color: var(--brand-primary);
}

.fb-drawer-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 14px;
}

/* ==========================================================================
   FACEBOOK-STYLE HERO SECTION (COVER BANNER & OVERLAPPING IDENTITY)
   ========================================================================== */
.fb-hero-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.fb-cover-container {
    position: relative;
    width: 100%;
    height: 340px;
    background: #0f172a;
    overflow: hidden;
}

.fb-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.4s ease;
}

.fb-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.8) 100%);
}

.fb-cover-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    z-index: 5;
}

/* Floating Profile Bar */
.fb-profile-bar {
    padding: 0 32px 20px 32px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.fb-profile-left {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: -60px;
}

.fb-avatar-holder {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    padding: 4px;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--bg-surface);
    flex-shrink: 0;
    z-index: 10;
}

.fb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 4px);
}

.fb-verified-tick {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0284c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-surface);
    font-size: 13px;
    box-shadow: var(--shadow-md);
}

.fb-identity-details {
    margin-bottom: 8px;
}

.fb-inst-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fb-inst-title-bn {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 3px;
}

.fb-inst-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.fb-meta-pill {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.fb-motto-strip {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.fb-btn-action-primary {
    background: var(--brand-primary);
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px var(--brand-glow);
    white-space: nowrap;
}

.fb-btn-action-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.fb-btn-action-secondary {
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.fb-btn-action-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

/* ==========================================================================
   STICKY TAB NAVIGATION BAR (SMOOTH HORIZONTAL SWIPE)
   ========================================================================== */
.fb-tab-bar {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 64px;
    z-index: 900;
}

.fb-tab-bar::-webkit-scrollbar {
    display: none;
}

.fb-tab-btn {
    background: none;
    border: none;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.fb-tab-btn:hover {
    color: var(--brand-primary);
    background: var(--bg-elevated);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.fb-tab-btn.active {
    color: var(--brand-primary);
}

.fb-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 3px 3px 0 0;
}

.fb-tab-count {
    background: var(--bg-elevated);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* ==========================================================================
   PAGE MAIN 2-COLUMN GRID CONTAINER
   ========================================================================== */
.fb-page-container {
    max-width: 1240px;
    margin: 24px auto 80px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

/* ==========================================================================
   LEFT SIDEBAR WIDGETS
   ========================================================================== */
.fb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fb-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.fb-card:hover {
    box-shadow: var(--shadow-md);
}

.fb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.fb-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Intro Items */
.fb-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fb-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.fb-info-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.fb-info-content strong {
    color: var(--text-main);
    display: block;
    font-size: 13px;
}

/* Principal Desk Widget */
.fb-principal-box {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.fb-principal-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--brand-primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.fb-principal-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.fb-principal-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.fb-quote-box {
    background: var(--bg-elevated);
    border-left: 3px solid var(--brand-primary);
    padding: 10px 14px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 12px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Performance Metrics Cards */
.fb-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fb-stat-cell {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.fb-stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-primary);
}

.fb-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 600;
}

/* Payment Gateway Quick Copy */
.fb-gateway-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-size: 13px;
    gap: 8px;
}

.fb-gateway-badge {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.fb-btn-copy {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.fb-btn-copy:hover,
.fb-btn-copy:active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* ==========================================================================
   RIGHT MAIN CONTENT / STREAM PANELS
   ========================================================================== */
.fb-main-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fb-tab-panel {
    display: none;
    animation: fbFadeIn 0.3s ease;
}

.fb-tab-panel.active {
    display: block;
}

@keyframes fbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pinned Announcement Box */
.fb-pinned-announcement {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(2, 132, 199, 0.08) 100%);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fb-pinned-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--brand-glow);
}

.fb-pinned-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.fb-pinned-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.6;
}

/* Facebook Feed Posts */
.fb-post {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.fb-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.fb-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-post-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.fb-post-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-post-time {
    font-size: 12px;
    color: var(--text-muted);
}

.fb-post-content {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 14px;
}

.fb-post-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    max-height: 400px;
    background: #0f172a;
}

.fb-post-img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fb-post-img:hover {
    transform: scale(1.02);
}

.fb-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 10px;
}

.fb-post-actions-group {
    display: flex;
    gap: 8px;
}

.fb-post-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.fb-post-action-btn:hover,
.fb-post-action-btn:active {
    background: var(--bg-elevated);
    color: var(--brand-primary);
}

/* Faculty Grid */
.fb-faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.fb-teacher-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.fb-teacher-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.fb-teacher-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fb-teacher-avatar {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.fb-teacher-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.fb-teacher-desig {
    font-size: 12px;
    color: var(--text-secondary);
}

.fb-teacher-dept {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: 4px;
}

.fb-degrees-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fb-deg-chip {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Gallery Grid */
.fb-gallery-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fb-gallery-filter::-webkit-scrollbar {
    display: none;
}

.fb-filter-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.fb-filter-pill:hover,
.fb-filter-pill.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.fb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.fb-gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #0f172a;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.fb-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fb-gallery-item:hover .fb-gallery-thumb {
    transform: scale(1.08);
}

.fb-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    color: white;
}

.fb-gallery-title {
    font-size: 13px;
    font-weight: 700;
}

.fb-gallery-cat {
    font-size: 10px;
    color: #34d399;
    font-weight: 600;
    text-transform: uppercase;
}

/* Shifts Schedule Cards */
.fb-shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.fb-shift-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.fb-shift-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fb-shift-time {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-primary);
}

/* ==========================================================================
   FLOATING ACTION SPEED DIAL BAR (MOBILE)
   ========================================================================== */
.fb-floating-bar {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    z-index: 1200;
    display: none;
    flex-direction: column;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-floating-bar.active {
    transform: translateY(0);
    opacity: 1;
}

.fb-fab-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--brand-glow);
    transition: transform var(--transition-fast);
}

.fb-fab-btn:active {
    transform: scale(0.95);
}

.fb-fab-call {
    background: var(--status-success);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.fb-fab-top {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION APP BAR
   ========================================================================== */
.fb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: none;
    align-items: center;
    justify-content: space-around;
    z-index: 1500;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="light"] .fb-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
}

.fb-bottom-nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    height: 100%;
    position: relative;
    transition: color var(--transition-fast);
}

.fb-bottom-nav-item i {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.fb-bottom-nav-item.active {
    color: var(--brand-primary);
}

.fb-bottom-nav-item.active i {
    transform: translateY(-2px);
}

.fb-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-primary);
}

/* ==========================================================================
   MODALS & BOTTOM SHEETS (LIGHTBOX, BLOG, SHARE, INQUIRY)
   ========================================================================== */
.fb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.fb-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fb-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.fb-modal-overlay.active .fb-modal-card {
    transform: scale(1);
}

.fb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.fb-btn-close {
    background: var(--bg-elevated);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.fb-btn-close:hover {
    color: var(--status-danger);
}

/* Form Controls inside Modals */
.fb-form-group {
    margin-bottom: 14px;
}

.fb-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.fb-form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 15px; /* Prevents iOS Safari auto-zoom on focus */
    outline: none;
    transition: border-color var(--transition-fast);
}

.fb-form-control:focus {
    border-color: var(--brand-primary);
}

/* Lightbox Modal */
.fb-lightbox-card {
    max-width: 800px;
    padding: 14px;
    background: #0f172a !important;
}

.fb-lightbox-img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* Toast Notifications */
.fb-toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    animation: fbToastSlide 0.3s ease;
}

@keyframes fbToastSlide {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   TABLET RESPONSIVE BREAKPOINTS (768px to 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .fb-page-container {
        grid-template-columns: 300px 1fr;
        gap: 16px;
        padding: 0 16px;
    }

    .fb-cover-container {
        height: 260px;
    }

    .fb-avatar-holder {
        width: 110px;
        height: 110px;
    }

    .fb-inst-title {
        font-size: 22px;
    }

    .fb-profile-bar {
        padding: 0 20px 18px 20px;
    }

    .fb-faculty-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fb-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINTS (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .fb-mobile-menu-btn,
    .fb-mobile-icon-btn,
    .fb-bottom-nav,
    .fb-floating-bar {
        display: flex;
    }

    .fb-desktop-only,
    .fb-search-wrap {
        display: none !important;
    }

    .fb-navbar {
        padding: 0 12px;
        height: 56px;
    }

    .fb-brand-sub {
        display: none;
    }

    .fb-cover-container {
        height: 190px;
    }

    .fb-cover-badge {
        top: 12px;
        right: 12px;
        font-size: 10px;
        padding: 4px 10px;
    }

    .fb-cover-badge-text {
        display: none;
    }

    .fb-profile-bar {
        padding: 0 16px 16px 16px;
    }

    .fb-profile-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: -45px;
    }

    .fb-avatar-holder {
        width: 90px;
        height: 90px;
        border-radius: var(--radius-lg);
    }

    .fb-avatar-img {
        border-radius: calc(var(--radius-lg) - 4px);
    }

    .fb-inst-title {
        font-size: 19px;
    }

    .fb-inst-title-bn {
        font-size: 15px;
    }

    .fb-profile-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 6px;
    }

    .fb-btn-action-primary,
    .fb-btn-action-secondary {
        justify-content: center;
        font-size: 12px;
        padding: 10px 8px;
    }

    .fb-tab-bar {
        top: 56px;
        padding: 0 8px;
    }

    .fb-tab-btn {
        padding: 12px 10px;
        font-size: 12px;
        gap: 6px;
    }

    .fb-page-container {
        grid-template-columns: 1fr;
        margin: 16px auto calc(var(--bottom-nav-height) + 20px) auto;
        padding: 0 12px;
        gap: 16px;
    }

    .fb-faculty-grid,
    .fb-gallery-grid,
    .fb-shifts-grid {
        grid-template-columns: 1fr;
    }

    .fb-post {
        padding: 14px;
    }

    .fb-pinned-announcement {
        padding: 14px;
        flex-direction: column;
        gap: 12px;
    }

    .fb-pinned-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Bottom Sheet Modals on Mobile */
    .fb-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .fb-modal-card.fb-sheet-card {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        transform: translateY(100%);
    }

    .fb-modal-overlay.active .fb-modal-card.fb-sheet-card {
        transform: translateY(0);
    }

    .fb-toast-container {
        right: 12px;
        left: 12px;
        bottom: calc(var(--bottom-nav-height) + 16px);
    }
}

/* ULTRA-COMPACT MOBILE (< 420px) */
@media (max-width: 420px) {
    .fb-avatar-holder {
        width: 76px;
        height: 76px;
        margin-top: -38px;
    }

    .fb-inst-title {
        font-size: 16px;
    }

    .fb-inst-title-bn {
        font-size: 13px;
    }

    .fb-gallery-grid {
        grid-template-columns: 1fr;
    }

    .fb-stats-grid {
        grid-template-columns: 1fr;
    }
}

