/**
 * E-School Panel — Frontend Shortcode Styles
 * Modern, clean, responsive design with gradient shading
 * No borders — soft shadows & gradient accents instead
 */

/* ── CSS Variables ──────────────────────────────────────────────── */
.esp-section {
    --esp-color: #1a73e8;
    --esp-color-light: rgba(26,115,232,0.08);
    --esp-color-mid: rgba(26,115,232,0.15);
    --esp-gradient: linear-gradient(135deg, var(--esp-color) 0%, #4285f4 100%);
    --esp-radius: 10px;
    --esp-radius-sm: 8px;
    --esp-font: inherit;
    --esp-shadow: 0 2px 16px rgba(0,0,0,0.05);
    --esp-shadow-hover: 0 8px 28px rgba(0,0,0,0.09);
    font-family: var(--esp-font);
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 20px;
}
/* Modern browsers: dynamic color mixing */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .esp-section {
        --esp-color-light: color-mix(in srgb, var(--esp-color) 8%, transparent);
        --esp-color-mid: color-mix(in srgb, var(--esp-color) 15%, transparent);
    }
}

/* ── Section Title — Center, Uppercase, Gradient Shading ─────── */
.esp-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--esp-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px auto 30px;
    padding-bottom: 16px;
    position: relative;
    display: table;
    width: auto;
}
/* Underline: auto-width matches title text + 2px (1px each side) */
.esp-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -1px;
    right: -1px;
    height: 3px;
    border-radius: 2px;
    background: var(--esp-gradient);
    opacity: 0.8;
}
/* Subtle glow/shading behind title text */
.esp-section-title::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 28px;
    background: radial-gradient(ellipse at center, var(--esp-color-light) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Search Form ───────────────────────────────────────────────── */
.esp-search-form {
    background: #fff;
    padding: 28px;
    border-radius: var(--esp-radius);
    box-shadow: var(--esp-shadow);
    margin-bottom: 28px;
}
.esp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.esp-form-group { margin-bottom: 12px; }
.esp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}
.esp-required { color: #dc2626; }
.esp-input, .esp-select, .esp-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--esp-radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #fafbfc;
}
.esp-input:focus, .esp-select:focus, .esp-textarea:focus {
    outline: none;
    border-color: var(--esp-color);
    box-shadow: 0 0 0 3px var(--esp-color-light);
    background: #fff;
}
.esp-textarea { resize: vertical; }

/* ── Phone number input with live digit counter ─────────────────── */
.esp-phone-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.esp-phone-wrap .esp-phone-input {
    padding-right: 46px;
    letter-spacing: 0.5px;
}
.esp-phone-count {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #dc2626; /* red — incomplete */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.15s ease;
    pointer-events: none;
    font-family: inherit;
}
.esp-phone-count.esp-phone-count-ok {
    background: #4ade80; /* light bright green — 11/11 complete */
    color: #064e3b;
}
.esp-phone-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
}
.esp-phone-input.esp-phone-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}
.esp-file-input { font-size: 13px; }

/* ── Buttons — সব পেজে একই সুন্দর নীল কালার ──────────────────── */
.esp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--esp-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.esp-btn-primary { background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%); color: #fff; box-shadow: 0 3px 12px rgba(26,115,232,0.22); }
.esp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,115,232,0.32); }
.esp-btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(26,115,232,0.2); }
/* আবেদন জমা দিন — সবুজ + নীল গ্র্যাডিয়েন্ট মিক্স */
.esp-admission-section .esp-btn-primary { background: linear-gradient(135deg, #27ae60 0%, #1a73e8 100%); box-shadow: 0 3px 10px rgba(39,174,96,0.25); }
.esp-admission-section .esp-btn-primary:hover { box-shadow: 0 5px 16px rgba(39,174,96,0.35); }
.esp-btn-sm { padding: 7px 16px; font-size: 12px; }

/* ── PDF List ──────────────────────────────────────────────────── */
.esp-result-list, .esp-pdf-list {
    display: grid;
    gap: 16px;
}
.esp-pdf-item {
    background: #fff;
    padding: 20px 24px;
    border-radius: var(--esp-radius);
    box-shadow: var(--esp-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
}
.esp-pdf-item:hover { transform: translateY(-3px); box-shadow: var(--esp-shadow-hover); }
.esp-pdf-info { flex: 1; }
.esp-pdf-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}
.esp-pdf-info p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.esp-pdf-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.esp-pdf-view-btn {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: #fff;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(26,115,232,0.2);
}
.esp-pdf-view-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,115,232,0.28); }
.esp-pdf-dl-btn {
    background: rgba(26,115,232,0.07);
    color: #1a73e8;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.esp-pdf-dl-btn:hover { background: rgba(26,115,232,0.13); transform: translateY(-1px); }

.esp-no-result {
    text-align: center;
    padding: 52px 24px;
    color: #9ca3af;
    font-size: 15px;
    background: #fafbfc;
    border-radius: var(--esp-radius);
    border: 1px dashed #e5e7eb;
}

/* ── PDF Viewer — Google Docs style ─────────────────────────────── */
.esp-pdf-viewer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #525659;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}
.esp-pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #202124;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
.esp-pdf-tbtn {
    background: #3c4043;
    color: #e8eaed;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: background 0.15s;
}
.esp-pdf-tbtn:hover { background: #5f6368; }
.esp-pdf-close-btn { margin-left: auto; font-size: 18px; }
.esp-pdf-zoom-label {
    color: #e8eaed;
    font-size: 13px;
    min-width: 44px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.esp-pdf-sep {
    width: 1px;
    height: 20px;
    background: #5f6368;
    margin: 0 4px;
}
.esp-pdf-container {
    flex: 1;
    overflow: auto;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.esp-pdf-page-wrap {
    background: #fff;
    margin: 0 auto 16px auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    max-width: none;
}
.esp-pdf-page-label {
    font-size: 11px;
    color: #999;
    padding: 6px 0 4px;
    text-align: center;
}
.esp-pdf-loading {
    text-align: center;
    padding: 80px 0;
    color: #bbb;
    font-size: 18px;
}

/* ── Notice Board ──────────────────────────────────────────────── */
.esp-notice-board {
    border-radius: var(--esp-radius);
    overflow: hidden;
    margin: 16px 0;
    max-width: 900px;
}
.esp-notice-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    text-align: center;
}

/* Marquee Up */
.esp-marquee-up {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.esp-marquee-content-up {
    animation: espScrollUp var(--esp-speed, 2s) linear infinite;
    padding: 0 16px;
}
@keyframes espScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.esp-notice-item {
    padding: 10px 4px;
    margin-bottom: 4px;
    border-radius: 4px;
    /* NO border — use subtle shading */
    background: rgba(255,255,255,0.04);
    font-size: 14px;
    transition: background 0.15s;
}
.esp-notice-item:hover {
    background: rgba(255,255,255,0.08);
}
.esp-notice-item.esp-urgent { font-weight: 700; text-decoration: underline; }
.esp-notice-date {
    font-size: 12px;
    opacity: 0.7;
    margin-right: 10px;
}
.esp-notice-title { font-weight: 500; }

/* Marquee Left */
.esp-marquee-left {
    overflow: hidden;
    padding: 10px 0;
}
.esp-marquee-content-left {
    display: inline-block;
    white-space: nowrap;
    animation: espScrollLeft calc(var(--esp-speed, 2s) * 5) linear infinite;
}
@keyframes espScrollLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.esp-notice-item-h { font-size: 14px; }
.esp-notice-item-h.esp-urgent { font-weight: 700; }
.esp-notice-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 15px;
    background: #fafbfc;
    border-radius: var(--esp-radius);
}

/* ── Notice Board (shortcode) — Modern Card Style ─────────────── */
.esp-nb-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.esp-nb-wrap .esp-section-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 14px;
    display: table;
    width: auto;
    position: relative;
}

/* Academic — scrolling up */
.esp-nb-academic {
    border-radius: var(--esp-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--esp-shadow);
}
.esp-nb-academic-header {
    padding: 12px 16px;
    font-weight: 700;
    text-align: center;
    background: rgba(0,0,0,0.12);
    letter-spacing: 0.3px;
}
.esp-nb-marquee-up {
    height: 180px;
    overflow: hidden;
    position: relative;
    padding: 0 16px;
}
.esp-nb-marquee-content-up {
    animation: espScrollUp var(--esp-ac-speed, 3s) linear infinite;
}
.esp-nb-item {
    padding: 10px 4px;
    margin-bottom: 4px;
    border-radius: 4px;
    /* NO border — use subtle shading */
    background: rgba(255,255,255,0.04);
    transition: background 0.15s;
    color: var(--esp-nb-text-color, inherit);
}
.esp-nb-item:hover {
    background: rgba(255,255,255,0.08);
}
.esp-nb-item.esp-urgent { font-weight: 700; text-decoration: underline; }
.esp-nb-date { font-size: 0.85em; opacity: 0.7; margin-right: 10px; color: var(--esp-nb-text-color, inherit); }
.esp-nb-title { font-weight: 600; color: var(--esp-nb-text-color, inherit); }
.esp-nb-detail { display: block; font-size: 0.9em; opacity: 0.8; margin-top: 4px; line-height: 1.5; color: var(--esp-nb-text-color, inherit); }

/* General — list with soft shading, NO borders */
.esp-nb-general {
    border-radius: var(--esp-radius);
    overflow: hidden;
    box-shadow: var(--esp-shadow);
}
.esp-nb-general-header {
    padding: 12px 16px;
    font-weight: 700;
    text-align: center;
    background: rgba(0,0,0,0.04);
    letter-spacing: 0.3px;
}
.esp-nb-list { padding: 4px 0; }
.esp-nb-list-item {
    padding: 14px 18px;
    /* NO border — use gradient shading */
    background: linear-gradient(to right, rgba(0,0,0,0.02) 0%, transparent 60%);
    transition: background 0.15s;
    color: var(--esp-nb-text-color, inherit);
}
.esp-nb-list-item:hover {
    background: linear-gradient(to right, rgba(0,0,0,0.04) 0%, transparent 60%);
}
.esp-nb-list-item.esp-urgent {
    background: linear-gradient(to right, rgba(220,38,38,0.06) 0%, transparent 60%);
    font-weight: 700;
}
.esp-nb-list-top { display: flex; gap: 10px; align-items: baseline; color: var(--esp-nb-text-color, inherit); }
.esp-nb-list-content { font-size: 0.9em; opacity: 0.75; margin-top: 6px; line-height: 1.6; color: var(--esp-nb-text-color, inherit); }

/* ── Notice Marquee Bar (header) ─────────────────────────────── */
.esp-marquee-bar {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    white-space: nowrap;
}
.esp-marquee-bar-content {
    display: inline-block;
    white-space: nowrap;
    animation: espMarqueeLeft var(--esp-mq-speed, 10s) linear infinite;
}
@keyframes espMarqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.esp-marquee-bar-item { padding: 0 4px; }
.esp-marquee-bar-item.esp-urgent { font-weight: 700; }

/* ── Contact Form ─────────────────────────────────────────────── */
.esp-contact-section { max-width: 700px; }
.esp-contact-result {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 24px;
    border-radius: var(--esp-radius);
    margin-top: 20px;
    box-shadow: var(--esp-shadow);
}

/* ── Modal (contacts view, etc.) ──────────────────────────────── */
.esp-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.esp-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.esp-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}
.esp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(to right, var(--esp-color-light), transparent);
    border-bottom: none;
}
.esp-modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; }
.esp-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0 4px;
    transition: color 0.15s;
}
.esp-modal-close:hover { color: #1f2937; }
.esp-modal-body { padding: 22px; }
.esp-modal-body p { margin-bottom: 10px; }

/* ── Admission Form ────────────────────────────────────────────── */
.esp-admission-section { max-width: 700px; }
.esp-form {
    background: #fff;
    padding: 28px;
    border-radius: var(--esp-radius);
    box-shadow: var(--esp-shadow);
}
.esp-form-section { margin-bottom: 24px; }
.esp-form-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--esp-color);
    margin-bottom: 14px;
    padding-bottom: 10px;
    text-align: center;
    position: relative;
    letter-spacing: 0.3px;
}
/* Gradient shading under section titles — wider than title text */
.esp-form-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 3px;
    border-radius: 2px;
    background: var(--esp-gradient);
    opacity: 0.35;
}
.esp-form-submit { margin-top: 20px; }

/* ── Address Block (ভর্তি ফরম) ──────────────────────────────── */
.esp-address-block {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: var(--esp-radius, 8px);
    border: 1px solid #e5e7eb;
}
.esp-address-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--esp-color, #1a73e8);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}
.esp-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.esp-permanent-fields {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}
@media (max-width: 600px) {
    .esp-form-row-2col {
        grid-template-columns: 1fr;
    }
}
.esp-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    font-size: 14px;
}
.esp-admission-result {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 24px;
    border-radius: var(--esp-radius);
    text-align: center;
    margin-top: 20px;
    box-shadow: var(--esp-shadow);
}
.esp-admission-result h3 { color: #16a34a; margin-bottom: 10px; }
.esp-admission-result .tracking-code {
    font-size: 20px;
    font-weight: 800;
    color: #1e40af;
    padding: 10px 20px;
    background: #eff6ff;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 1px;
}
.esp-admission-closed {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
    font-size: 16px;
    font-weight: 700;
    background: #fef2f2;
    border-radius: var(--esp-radius);
}

/* ── Track Application ─────────────────────────────────────────── */
.esp-track-section { max-width: 600px; }
.esp-track-result { margin-top: 20px; }
.esp-track-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--esp-radius);
    box-shadow: var(--esp-shadow);
}
.esp-track-card h3 { margin-bottom: 14px; }
.esp-track-status {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* ── Teachers Grid — Modern Card Design ──────────────────────────── */
.esp-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}
.esp-teacher-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    padding: 0;
    text-align: center;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
/* Top gradient accent bar */
.esp-teacher-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--esp-gradient);
    z-index: 1;
}
/* Subtle radial glow behind card on hover */
.esp-teacher-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--esp-color-light) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.esp-teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26,115,232,0.12);
}
.esp-teacher-card:hover::after { opacity: 1; }

/* Teacher Photo — with decorative ring */
.esp-teacher-photo {
    padding-top: 28px;
    padding-bottom: 4px;
    position: relative;
    z-index: 2;
}
.esp-teacher-photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 3px rgba(26,115,232,0.15),
        0 6px 20px rgba(26,115,232,0.12);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.esp-teacher-card:hover .esp-teacher-photo img {
    transform: scale(1.05);
    box-shadow:
        0 0 0 3px rgba(26,115,232,0.25),
        0 8px 24px rgba(26,115,232,0.18);
}

/* No-photo placeholder — HIDDEN by default */
.esp-teacher-photo-placeholder { display: none; }

/* Card without photo — extra top padding for gradient bar */
.esp-teacher-no-photo .esp-teacher-info {
    padding-top: 22px;
}

/* Profile without photo — adjust layout */
.esp-profile-no-photo { text-align: center; }
.esp-profile-no-photo .esp-profile-info { text-align: center; }

/* Teacher Info Area */
.esp-teacher-info {
    padding: 12px 20px 22px;
    position: relative;
    z-index: 2;
}
.esp-teacher-name {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}
.esp-teacher-designation {
    font-size: 13px;
    color: var(--esp-color);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}
.esp-teacher-qualification {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}
.esp-teacher-subject {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 4px;
}
.esp-teacher-subject-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}
.esp-teacher-subject-tag {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    color: #1e40af;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.2px;
}
.esp-teacher-phone, .esp-teacher-email {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}

/* ── Teacher Social Icons ──────────────────────────────────────── */
.esp-teacher-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.esp-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    line-height: 1;
}
.esp-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.esp-social-email {
    background: #eef2ff;
    color: #4285f4;
}
.esp-social-email:hover {
    background: #4285f4;
    color: #fff;
}
.esp-social-facebook {
    background: #e7f0ff;
    color: #1877f2;
    font-family: sans-serif;
}
.esp-social-facebook:hover {
    background: #1877f2;
    color: #fff;
}
.esp-social-whatsapp {
    background: transparent;
    color: #25d366;
    font-family: sans-serif;
}
.esp-social-whatsapp:hover {
    background: transparent;
    color: #128C7E;
}
.esp-social-whatsapp svg {
    display: block;
}

/* Profile page social row */
.esp-profile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.esp-profile-social .esp-social-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
}
.esp-teacher-bio {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
    line-height: 1.5;
}

/* ── Teacher Subject Filter — Pill Buttons ─────────────────────── */
.esp-teacher-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}
.esp-filter-btn {
    display: inline-block;
    padding: 9px 24px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    background: #f8f9fb;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    letter-spacing: 0.2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.esp-filter-btn:hover {
    background: #eef2ff;
    color: var(--esp-color);
    box-shadow: 0 2px 10px rgba(26,115,232,0.1);
    transform: translateY(-2px);
}
.esp-filter-btn.active {
    background: var(--esp-gradient);
    color: #fff;
    box-shadow: 0 3px 14px rgba(26,115,232,0.22);
}

/* ── Teacher "View Profile" Link — Animated Arrow ──────────────── */
.esp-teacher-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--esp-color);
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: gap 0.2s;
}
.esp-teacher-card:hover .esp-teacher-view-profile { gap: 8px; }

/* ── Teacher Profile Page — Premium Design ─────────────────────── */
.esp-teacher-profile { max-width: 720px; margin: 0 auto; padding: 28px; }
.esp-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--esp-color);
    text-decoration: none;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
    padding: 10px 22px;
    border-radius: 24px;
    background: rgba(26,115,232,0.06);
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.esp-profile-back:hover {
    background: rgba(26,115,232,0.12);
    transform: translateX(-3px);
}
.esp-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: #fff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.esp-profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--esp-gradient);
    border-radius: 0 0 2px 2px;
}
/* Subtle gradient backdrop on header */
.esp-profile-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(180deg, var(--esp-color-light) 0%, transparent 100%);
    pointer-events: none;
}
@media (max-width: 600px) { .esp-profile-header { flex-direction: column; align-items: center; text-align: center; padding: 24px; } }
.esp-profile-photo { position: relative; z-index: 2; flex-shrink: 0; }
.esp-profile-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 3px rgba(26,115,232,0.12),
        0 6px 20px rgba(26,115,232,0.12);
}
.esp-profile-info { position: relative; z-index: 2; }
.esp-profile-name {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.esp-profile-name-en { font-size: 14px; color: #9ca3af; margin: 0 0 10px 0; }
.esp-profile-designation {
    font-size: 15px;
    color: var(--esp-color);
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 0.2px;
}
.esp-profile-subject { font-size: 14px; color: #4b5563; margin: 0; }
.esp-profile-details {
    background: #fff;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.05);
}
.esp-profile-field {
    display: flex;
    padding: 16px 16px;
    background: linear-gradient(to right, rgba(26,115,232,0.02) 0%, transparent 40%);
    margin-bottom: 2px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}
.esp-profile-field:hover {
    background: linear-gradient(to right, rgba(26,115,232,0.05) 0%, transparent 40%);
    transform: translateX(2px);
}
.esp-profile-field:last-child { margin-bottom: 0; }
.esp-field-label {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    min-width: 140px;
    flex-shrink: 0;
}
.esp-field-value { font-size: 14px; color: #1f2937; }
.esp-field-value a { color: var(--esp-color); text-decoration: none; font-weight: 500; }
.esp-field-value a:hover { text-decoration: underline; }
.esp-profile-bio .esp-field-value { line-height: 1.7; }

/* ── Gallery (Album-based) ─────────────────────────────────────── */
.esp-gallery-albums { display: flex; flex-direction: column; gap: 36px; }
.esp-gallery-album {
    background: #fff;
    border-radius: var(--esp-radius);
    box-shadow: var(--esp-shadow);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.esp-gallery-album:hover { box-shadow: var(--esp-shadow-hover); }
.esp-album-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--esp-color);
    padding: 18px 22px 14px;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
}
/* Gradient shading under album title */
.esp-album-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--esp-gradient);
    opacity: 0.5;
}

/* Single gallery item — beautiful rounded frame */
.esp-gallery-item {
    border-radius: var(--esp-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    box-shadow: var(--esp-shadow);
}
.esp-gallery-item:hover { transform: scale(1.02); box-shadow: var(--esp-shadow-hover); }
.esp-gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Gallery images with dynamic aspect-ratio */
.esp-gallery-item img[style*="aspect-ratio"],
.esp-slide img[style*="aspect-ratio"] {
    height: auto;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.esp-gallery-caption {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #fafbfc;
}
/* Single image — elegant rounded frame with padding */
.esp-gallery-single {
    padding: 8px;
    border-radius: var(--esp-radius);
}
.esp-gallery-single img {
    border-radius: calc(var(--esp-radius) - 4px);
}

/* Slideshow — one image at a time, centered, no overlap */
.esp-slideshow {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}
.esp-slideshow-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.esp-slide {
    min-width: 100%;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
}
.esp-slide img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.esp-slide-caption {
    padding: 12px 18px;
    font-size: 14px;
    color: #4b5563;
    background: #fafbfc;
    text-align: center;
    font-weight: 500;
}
.esp-slide-prev,
.esp-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #1f2937;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.esp-slide-prev:hover, .esp-slide-next:hover { background: #fff; transform: translateY(-60%) scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.esp-slide-prev { left: 12px; }
.esp-slide-next { right: 12px; }
.esp-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.esp-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.esp-slide-dot.active { background: #fff; transform: scale(1.25); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.esp-slide-dot:hover { background: rgba(255,255,255,0.8); transform: scale(1.15); }

/* Old gallery grid class */
.esp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Lightbox */
.esp-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.88);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.esp-lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    font-size: 32px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}
.esp-lightbox-close:hover { transform: scale(1.15); color: #fff; }
.esp-lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.esp-lightbox-caption {
    position: absolute;
    bottom: 28px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ── Events — Modern Cards ────────────────────────────────────── */
.esp-events-list { display: flex; flex-direction: column; gap: 18px; }
.esp-event-item {
    display: flex; gap: 20px; align-items: flex-start;
    background: #fff; padding: 24px; border-radius: var(--esp-radius);
    box-shadow: var(--esp-shadow); transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
    position: relative; overflow: hidden;
}
/* Gradient accent on left */
.esp-event-item::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 4px;
    background: var(--esp-gradient);
    opacity: 0.6;
    border-radius: 0 2px 2px 0;
}
.esp-event-item:hover { transform: translateY(-3px); box-shadow: var(--esp-shadow-hover); }
.esp-event-date {
    min-width: 68px; text-align: center; padding: 14px 10px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%); color: #fff; border-radius: var(--esp-radius-sm); flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(26,115,232,0.18);
}
.esp-event-day { font-size: 28px; font-weight: 800; display: block; line-height: 1.1; }
.esp-event-month { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-top: 2px; display: block; }
.esp-event-info { flex: 1; padding-left: 6px; }
.esp-event-title { font-size: 17px; font-weight: 800; color: #1f2937; margin: 0 0 8px; }
.esp-event-time, .esp-event-venue { display: inline-block; font-size: 13px; color: #6b7280; margin-right: 14px; font-weight: 500; }
.esp-event-desc { font-size: 14px; color: #6b7280; margin-top: 10px; line-height: 1.6; }
.esp-event-type { font-size: 12px; color: #9ca3af; display: inline-block; margin-top: 8px; font-weight: 500; }

/* ── Pop-up Window ─────────────────────────────────────────────── */
.esp-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.esp-popup-overlay.esp-popup-visible {
    display: flex;
    opacity: 1;
}
.esp-popup-container {
    position: fixed;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    font-family: inherit;
}
.esp-popup-container.esp-popup-visible {
    display: block;
    opacity: 1;
}
.esp-popup-center {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.esp-popup-center.esp-popup-visible {
    transform: translate(-50%, -50%) scale(1);
}
.esp-popup-bottom-right {
    bottom: 20px; right: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transform: translateY(20px);
}
.esp-popup-bottom-right.esp-popup-visible { transform: translateY(0); }
.esp-popup-bottom-left {
    bottom: 20px; left: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transform: translateY(20px);
}
.esp-popup-bottom-left.esp-popup-visible { transform: translateY(0); }
.esp-popup-top-bar {
    top: 0; left: 0; right: 0;
    width: 100%;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transform: translateY(-100%);
}
.esp-popup-top-bar.esp-popup-visible { transform: translateY(0); }
.esp-popup-fullscreen {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    border-radius: 0;
}
.esp-popup-fullscreen.esp-popup-visible { transform: none; }
.esp-popup-small  { max-width: 360px; }
.esp-popup-medium { max-width: 520px; }
.esp-popup-large  { max-width: 720px; }
.esp-popup-top-bar.esp-popup-small,
.esp-popup-top-bar.esp-popup-medium,
.esp-popup-top-bar.esp-popup-large,
.esp-popup-fullscreen.esp-popup-small,
.esp-popup-fullscreen.esp-popup-medium,
.esp-popup-fullscreen.esp-popup-large { max-width: 100%; }
.esp-popup-inner { padding: 28px; position: relative; }
.esp-popup-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    display: block;
}
.esp-popup-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.3;
    color: #1f2937;
}
.esp-popup-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px 0;
    color: #4b5563;
}
.esp-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #fff;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    box-shadow: 0 3px 10px rgba(26,115,232,0.25);
}
.esp-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(26,115,232,0.35);
}
.esp-popup-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}
.esp-popup-close:hover { background: rgba(0,0,0,0.15); color: #1f2937; }
.esp-popup-fullscreen .esp-popup-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px;
}
.esp-popup-fullscreen .esp-popup-image { max-width: 600px; max-height: 300px; }

/* ── Fee Structure ─────────────────────────────────────────────── */
.esp-fee-section { max-width: 700px; }
.esp-fee-list { margin-top: 24px; }
.esp-fee-list .esp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: var(--esp-radius);
    overflow: hidden;
    box-shadow: var(--esp-shadow);
}
.esp-fee-list .esp-table th {
    background: #f8fafc;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.3px;
    font-size: 13px;
    text-transform: uppercase;
}
.esp-fee-list .esp-table td {
    padding: 13px 18px;
    background: linear-gradient(to right, rgba(0,0,0,0.01) 0%, transparent 40%);
    transition: background 0.15s;
}
.esp-fee-list .esp-table tr:hover td {
    background: linear-gradient(to right, rgba(26,115,232,0.04) 0%, transparent 40%);
}
.esp-fee-list .esp-table tfoot td {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(to right, rgba(26,115,232,0.06) 0%, transparent 40%);
}

/* ── Responsive ────────────────────────────────────────────────── */

/* ── পরিচালনা পর্ষদ (Managing Committee) Grid ─────────────────── */
.esp-committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}
.esp-committee-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    padding: 0;
    text-align: center;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
/* Top gradient accent bar — committee uses warm deep orange */
.esp-committee-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--esp-gradient);
    z-index: 1;
}
.esp-committee-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--esp-color-light) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.esp-committee-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(191,54,12,0.12);
}
.esp-committee-card:hover::after { opacity: 1; }

.esp-committee-photo {
    padding-top: 28px;
    padding-bottom: 4px;
    position: relative;
    z-index: 2;
}
.esp-committee-photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 3px rgba(191,54,12,0.15),
        0 6px 20px rgba(191,54,12,0.12);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.esp-committee-card:hover .esp-committee-photo img {
    transform: scale(1.05);
    box-shadow:
        0 0 0 3px rgba(191,54,12,0.25),
        0 8px 24px rgba(191,54,12,0.18);
}
.esp-committee-no-photo .esp-committee-info {
    padding-top: 22px;
}
.esp-committee-info {
    padding: 12px 20px 22px;
    position: relative;
    z-index: 2;
}
.esp-committee-name {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}
.esp-committee-designation {
    font-size: 13px;
    color: var(--esp-color);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}
.esp-committee-responsibility {
    font-size: 13px;
    color: #bf360c;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 12px;
    display: inline-block;
}
.esp-committee-qualification {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}
.esp-committee-phone {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}
.esp-committee-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

/* Committee responsive */
@media (max-width: 768px) {
    .esp-committee-grid { grid-template-columns: 1fr; }
    .esp-committee-photo img { width: 90px; height: 90px; }
    .esp-committee-info { padding: 12px 18px 20px; }
}
@media (max-width: 768px) {
    .esp-section { padding: 24px 16px; max-width: 100%; }
    .esp-section-title { font-size: 20px; margin-bottom: 20px; }
    .esp-section-title::before { width: 180px; }
    .esp-search-form { padding: 20px; }
    .esp-form-row { grid-template-columns: 1fr; }
    .esp-teachers-grid { grid-template-columns: 1fr; }
    .esp-gallery-albums { gap: 24px; }
    .esp-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .esp-gallery-item img { height: 180px; }
    .esp-pdf-item { flex-direction: column; align-items: flex-start; }
    .esp-btn { width: 100%; justify-content: center; }
    .esp-input, .esp-select, .esp-textarea { font-size: 16px; /* iOS zoom prevention */ }
    /* Slideshow mobile */
    .esp-slide img { height: 220px; }
    .esp-slide-prev, .esp-slide-next { width: 38px; height: 38px; font-size: 16px; }
    .esp-album-title { font-size: 17px; padding: 14px 18px 12px; }
    /* Events mobile */
    .esp-event-item { flex-direction: column; gap: 14px; padding: 20px; }
    .esp-event-item::before { width: 100%; height: 3px; top: 0; bottom: auto; left: 0; right: 0; border-radius: 0 0 2px 2px; }
    .esp-event-date { align-self: flex-start; }
    /* Fee table mobile */
    .esp-fee-list .esp-table { font-size: 13px; }
    .esp-fee-list .esp-table th, .esp-fee-list .esp-table td { padding: 12px 14px; }
    /* Notice board mobile */
    .esp-nb-wrap { padding: 0 12px; }
    .esp-nb-academic, .esp-nb-general { margin-bottom: 16px; }
    .esp-nb-marquee-up { height: 150px; }
    /* Marquee bar mobile */
    .esp-marquee-bar { padding: 6px 0; }
    /* Teacher profile mobile */
    .esp-teacher-profile { padding: 18px; }
    .esp-profile-field { flex-direction: column; gap: 4px; }
    .esp-field-label { min-width: unset; }
    .esp-profile-photo img { width: 110px; height: 110px; }
    .esp-teacher-photo img { width: 90px; height: 90px; }
    /* Contact form mobile */
    .esp-contact-section, .esp-admission-section, .esp-track-section { max-width: 100%; }
    /* Teacher filter wrap */
    .esp-teacher-filter { justify-content: flex-start; }
    .esp-teacher-info { padding: 12px 18px 20px; }
    /* PDF card mobile */
    .esp-pdf-actions { width: 100%; }
    .esp-pdf-view-btn, .esp-pdf-dl-btn { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
    .esp-section-title { font-size: 18px; letter-spacing: 0; }
    .esp-gallery-grid { grid-template-columns: 1fr; }
    .esp-gallery-item img { height: 160px; }
    .esp-slide img { height: 180px; }
    .esp-event-day { font-size: 22px; }
}

/* ── Popup Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .esp-popup-small, .esp-popup-medium, .esp-popup-large {
        max-width: calc(100% - 32px) !important;
    }
    .esp-popup-bottom-right, .esp-popup-bottom-left {
        bottom: 12px;
        left: 12px !important;
        right: 12px !important;
    }
    .esp-popup-center {
        max-width: calc(100% - 32px) !important;
    }
    .esp-popup-inner { padding: 20px; }
    .esp-popup-title { font-size: 17px; }
}
