@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Merriweather:wght@700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #FFD600;
    --green: #4CAF50;
    --red: #F44336;
    --blue: #2196F3;
    --white: #FFFFFF;
    --dark: #1a1a2e;
    --gradient-main: linear-gradient(135deg, #FFD600 0%, #4CAF50 30%, #2196F3 70%, #F44336 100%);
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 15px 45px rgba(0,0,0,0.2);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

/* ===== HEADER ===== */
.header {
    background: var(--gradient-main);
    padding: 30px 0 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.header-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 8px 28px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

.header h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 3px 15px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    line-height: 1.2;
}

.header .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Address Bar */
.address-bar {
    background: var(--white);
    padding: 18px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 3;
    margin-top: -1px;
}

.address-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.address-item i { font-size: 1.1rem; }

.address-item.address-color { color: #e65100; }
.address-item.email-color { color: #1565c0; }
.address-item.phone-color { color: var(--green); }

.address-item i.fa-location-dot { color: var(--red); }
.address-item i.fa-envelope { color: var(--blue); }
.address-item i.fa-phone { color: var(--green); }

/* ===== MESSAGES SECTION ===== */
.messages {
    background: linear-gradient(180deg, #FFFDE7 0%, #E8F5E9 50%, #E3F2FD 100%);
    padding: 60px 0;
    position: relative;
}

.messages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.messages-title {
    text-align: center;
    margin-bottom: 40px;
}

.messages-title h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
}

.messages-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    margin: 12px auto 0;
    border-radius: 2px;
}

.messages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.message-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.message-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.message-card .message-photo-area {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.message-card.president .message-photo-area {
    background: linear-gradient(135deg, #FFD600, #FFC107);
}

.message-card.principal .message-photo-area {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.message-photo-area .photo-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(5px);
    border: 3px solid rgba(255,255,255,0.5);
}

.message-photo-area .upload-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--blue);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.message-photo-area .upload-btn:hover {
    background: var(--blue);
    color: white;
    transform: scale(1.1);
}

.message-card .message-body {
    padding: 25px;
}

.message-card .message-body h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.message-card .message-body .designation {
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.message-card .message-body .message-text {
    color: #555;
    line-height: 1.8;
    font-size: 0.9rem;
    font-style: italic;
    border-left: 3px solid var(--yellow);
    padding-left: 15px;
    margin-bottom: 15px;
}

.message-card .message-body .message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.message-card .message-body .date {
    font-size: 0.8rem;
    color: #999;
}

.message-card .message-body .view-btn {
    padding: 8px 20px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.message-card .message-body .view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== DONOR & FOUNDER SECTIONS ===== */
.donor-section {
    background: linear-gradient(180deg, #F5EFFF 0%, #FFFFFF 100%);
    padding: 80px 0;
}

.founder-section {
    background: linear-gradient(180deg, #FDEFF4 0%, #FFFFFF 100%);
    padding: 80px 0;
}

.person-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
}

.person-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid #8E2DE2;
}

.founder-section .person-card { border-top-color: #AD1457; }

.person-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.person-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(142,45,226,0.35);
}

.founder-section .person-photo {
    background: linear-gradient(135deg, #AD1457, #6A1B9A);
    box-shadow: 0 8px 20px rgba(173,20,87,0.35);
}

.person-card h3 {
    font-family: 'Merriweather', serif;
    color: var(--dark);
    margin: 0 0 4px;
    font-size: 1.3rem;
}

.person-role {
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.person-desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== DONOR TABLE ===== */
.donor-table-wrap {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 30px;
}

.donor-table-title {
    text-align: center;
    font-family: 'Merriweather', serif;
    color: var(--dark);
    margin: 0 0 18px;
}

.donor-table-title i { color: #8E2DE2; margin-right: 8px; }

.donor-table-scroll {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.donor-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.85rem;
}

.donor-table th {
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    color: #fff;
    padding: 13px 14px;
    text-align: left;
    font-size: 0.82rem;
    white-space: nowrap;
}

.donor-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f2f6;
    color: #444;
}

.donor-table tbody tr:nth-child(even) { background: #faf8ff; }

.donor-table tbody tr:hover { background: #f3ecff; }

.donor-table td.t-name { font-weight: 700; color: var(--dark); }

/* ===== DONOR EDIT MODAL ===== */
.admin-fp-donor {
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-donor:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(142,45,226,0.4); }

.admin-fp-founder {
    background: linear-gradient(135deg, #AD1457, #6A1B9A);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-founder:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(173,20,87,0.4); }

.donor-edit-box { max-width: 960px; width: 96%; }

.donor-toolbar { margin-bottom: 12px; }

.donor-add-btn {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.donor-add-btn:hover { background: #2E7D32; }

.donor-edit-scroll {
    overflow-x: auto;
    max-height: 55vh;
    overflow-y: auto;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
}

.donor-edit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.donor-edit-table th {
    background: #eef0f6;
    color: #333;
    padding: 10px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    border-bottom: 2px solid #d9dee8;
}

.donor-edit-table td {
    padding: 7px 6px;
    border-bottom: 1px solid #f0f2f6;
    vertical-align: top;
}

.donor-edit-table .donor-serial {
    font-weight: 700;
    color: #666;
    white-space: nowrap;
    text-align: center;
}

.donor-inp {
    width: 130px;
    padding: 8px 9px;
    border: 1px solid #c9d2df;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.donor-inp:focus {
    border-color: #8E2DE2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(142,45,226,0.12);
}

.donor-del-row {
    background: var(--red);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
}

.donor-del-row:hover { background: #C62828; }

/* ===== SCHOOL STORY MANAGER ===== */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.story-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.story-row .story-para {
    flex: 1;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #b0bcc9;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #222;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

.story-row .story-para:focus { border-color: #00A86B; box-shadow: 0 0 0 4px rgba(0,168,107,0.12); }

.story-row.hl-row {
    align-items: center;
}

.story-hl-num {
    width: 110px;
    padding: 10px 12px;
    border: 2px solid #b0bcc9;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #222;
    outline: none;
    box-sizing: border-box;
}

.story-hl-lbl {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #b0bcc9;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #222;
    outline: none;
    box-sizing: border-box;
}

.story-hl-num:focus, .story-hl-lbl:focus { border-color: #00A86B; box-shadow: 0 0 0 4px rgba(0,168,107,0.12); }

/* ===== COMMITTEE SECTION ===== */
.committee-section {
    background: linear-gradient(180deg, #E0F7FA 0%, #FFFFFF 100%);
    padding: 80px 0;
}

.admin-fp-committee {
    background: linear-gradient(135deg, #00695C, #00897B);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-committee:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,150,136,0.4); }

/* ===== NOTICE SECTION ===== */
.notice-section {
    background: linear-gradient(180deg, #FFF8E1 0%, #FFFFFF 100%);
    padding: 80px 0;
}

#noticeList {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 20px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-left: 5px solid #F44336;
    transition: all 0.3s ease;
}

.notice-item:nth-child(even) { border-left-color: #2196F3; }
.notice-item:nth-child(3n) { border-left-color: #4CAF50; }

.notice-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.1); }

.notice-item-icon {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.notice-item-body h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.notice-item-body p { color: #555; font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; }

.notice-item-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
}

.notice-item-date i { color: #F44336; }

.notice-toolbar { margin-bottom: 14px; }

.notice-edit-scroll { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px; }

.notice-row {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #eee;
}

.notice-row-top {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.notice-row-top .notice-date { width: 130px; }
.notice-row-top .notice-title { flex: 1; min-width: 160px; }
.notice-row textarea.notice-text { width: 100%; resize: vertical; }

.notice-pdf-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.notice-pdf-btn { padding: 8px 14px; font-size: 0.75rem; }

.notice-pdf-holder { display: inline-flex; align-items: center; gap: 8px; }

.notice-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFEBEE;
    color: #C62828;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.notice-pdf-link:hover { background: #F44336; color: #fff; }

.notice-pdf-clear { padding: 4px 8px; }

.notice-pdf-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.notice-pdf-open:hover { transform: scale(1.04); box-shadow: 0 6px 14px rgba(211,47,47,0.4); }

.admin-fp-notice {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-notice:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,124,0,0.4); }

/* ===== NAVIGATION ===== */
.nav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 18px 22px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 80%; }

.nav-links a:hover { background: rgba(255, 214, 0, 0.08); }

.nav-links a.active {
    color: var(--blue);
    background: rgba(33, 150, 243, 0.06);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== SECTION PANEL ===== */
.section-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.section-panel.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOME SECTION ===== */
.home {
    background: linear-gradient(180deg, #FFFDE7 0%, #E8F5E9 50%, #E3F2FD 100%);
    padding: 0;
}

.home-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.home-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.home-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.home-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.home-card:nth-child(1) .card-icon { background: rgba(255,214,0,0.15); color: #f57f17; }
.home-card:nth-child(2) .card-icon { background: rgba(76,175,80,0.15); color: var(--green); }
.home-card:nth-child(3) .card-icon { background: rgba(33,150,243,0.15); color: var(--blue); }
.home-card:nth-child(4) .card-icon { background: rgba(244,67,54,0.15); color: var(--red); }

.home-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.home-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Search Box */
.search-box {
    max-width: 800px;
    margin: 0 auto 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.search-box h3 {
    text-align: center;
    color: var(--blue);
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
}

.search-box h3 i {
    color: var(--red);
    margin-right: 8px;
}

.search-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
}

.search-fields .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.search-fields .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
}

.search-fields select,
.search-fields input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #b0bcc9;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #222;
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.search-fields select:hover,
.search-fields input[type="text"]:hover {
    border-color: var(--blue);
}

.search-fields select:focus,
.search-fields input[type="text"]:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(33,150,243,0.15);
}

.btn-search {
    padding: 12px 30px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn-reset {
    background: linear-gradient(135deg, #90A4AE, #607D8B);
}

.btn-reset:hover { background: linear-gradient(135deg, #607D8B, #455A64); }

#searchResult {
    margin-top: 25px;
    padding: 20px;
    background: rgba(76,175,80,0.1);
    border: 2px solid var(--green);
    border-radius: 15px;
    text-align: center;
}

#searchResult h4 {
    color: var(--green);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#searchResult p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.student-card .student-data {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

.student-card .student-data p {
    margin: 0;
    color: #555;
}

.student-card.hidden-card {
    display: none;
}

/* ===== STUDENT DETAIL TABLE ===== */
.st-name-en {
    color: #888;
    font-size: 0.85rem;
    margin: 2px 0 6px;
}

.student-table {
    border-top: 2px dashed #dce3ee;
    margin-top: 12px;
    padding-top: 8px;
}

.st-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 0.8rem;
    border-bottom: 1px dotted #e8ecf1;
}

.st-row:last-child { border-bottom: none; }

.st-lbl {
    color: #777;
    font-weight: 700;
    flex-shrink: 0;
}

.st-val {
    color: #333;
    text-align: right;
    word-break: break-word;
}

/* ===== Student Section ===== */
.student-section {
    background: var(--white);
    padding: 80px 0 100px;
}

.student-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== STUDENT INFORMATION FORM ===== */
.student-form-wrap {
    max-width: 860px;
    margin: 0 auto 50px;
}

.student-form-border {
    position: relative;
    background: #fff;
    border: 3px solid var(--green);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.student-form-border::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px dashed rgba(33,150,243,0.55);
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.student-form-border::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    width: 22px;
    height: 22px;
    border-top: 4px solid var(--red);
    border-left: 4px solid var(--red);
    border-top-left-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.stf-body, .stf-header { position: relative; z-index: 2; }

.stf-header {
    text-align: center;
    padding: 16px 20px 14px;
    border-bottom: 3px solid var(--green);
    margin: 0 0 20px;
    background: linear-gradient(180deg, #FFFDE7 0%, #FFF8E1 100%);
    border-radius: 6px 6px 0 0;
}

.stf-school {
    color: var(--red);
    font-family: 'Merriweather', serif;
    margin: 0;
    font-size: 1.5rem;
}

.stf-address {
    color: #555;
    font-size: 0.85rem;
    margin: 6px 0 0;
}

.stf-title {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 6px 22px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 10px;
}

.stf-body { padding: 0 28px 10px; }

.stf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.stf-field { display: flex; flex-direction: column; gap: 5px; }

.stf-field.full { grid-column: 1 / -1; }

.stf-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
}

.stf-field .req { color: var(--red); }

.stf-field input,
.stf-field select,
.stf-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 2px solid #b0bcc9;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #222;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.stf-field input:focus,
.stf-field select:focus,
.stf-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(33,150,243,0.12);
}

.stf-note {
    font-size: 0.78rem;
    color: #777;
    font-style: italic;
    margin: 6px 0 16px;
}

.stf-success {
    display: none;
    background: rgba(76,175,80,0.12);
    border: 2px solid var(--green);
    color: #2E7D32;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.stf-submit {
    display: block;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    padding: 13px 44px;
}

@media (max-width: 600px) {
    .stf-row { grid-template-columns: 1fr; }
    .stf-body { padding: 0 14px 10px; }
}

/* ===== FILLED FORM VIEW ===== */
.filled-form-wrap {
    max-width: 860px;
    margin: 0 auto 50px;
}

.filled-view {
    border: 3px solid var(--blue);
}

.filled-view::before { border-color: rgba(76,175,80,0.55); }

.ff-value {
    background: #f7f8fb;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 0.88rem;
    color: #222;
    font-weight: 500;
}

.ff-actions {
    text-align: center;
    margin: 8px 0 4px;
}

.ff-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
}

/* ===== PRINT SLIP ===== */
.print-slip { display: none; }

@media print {
    body * { visibility: hidden; }
    .print-slip, .print-slip * { visibility: visible; }
    .print-slip {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .ps-slip {
        font-family: 'Merriweather', 'Poppins', serif;
        padding: 20px;
        border: 2px solid #000;
        margin-bottom: 24px;
        page-break-inside: avoid;
    }
    .ps-school {
        text-align: center;
        font-size: 20px;
        margin: 0 0 4px;
        color: #000;
    }
    .ps-address {
        text-align: center;
        font-size: 12px;
        margin: 0 0 6px;
        color: #000;
    }
    .ps-title {
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        border-bottom: 2px solid #000;
        padding-bottom: 8px;
        margin: 0 0 12px;
    }
    .ps-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }
    .ps-table td {
        border: 1px solid #999;
        padding: 5px 8px;
        color: #000;
    }
    .ps-lbl {
        width: 30%;
        background: #f1f1f1;
        font-weight: 700;
    }
    .ps-val { font-weight: 400; }
    .ps-stamp {
        text-align: right;
        margin-top: 30px;
        font-size: 12px;
    }
}

.student-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.student-added-del {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

body.admin-mode .student-added-del { display: flex; }

.student-added-del:hover { transform: scale(1.12); }

.student-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--blue);
}

.student-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    position: relative;
}

.student-card:nth-child(1) .student-banner { background: linear-gradient(135deg, #FFD600, #FFC107); }
.student-card:nth-child(2) .student-banner { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.student-card:nth-child(3) .student-banner { background: linear-gradient(135deg, #2196F3, #42A5F5); }
.student-card:nth-child(4) .student-banner { background: linear-gradient(135deg, #F44336, #EF5350); }
.student-card:nth-child(5) .student-banner { background: linear-gradient(135deg, #FFD600, #4CAF50); }
.student-card:nth-child(6) .student-banner { background: linear-gradient(135deg, #2196F3, #F44336); }

.student-info {
    padding: 22px;
    text-align: center;
}

.student-info h4 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.student-info .class {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.student-info p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
}

.student-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.student-badge.excellent { background: rgba(76,175,80,0.15); color: var(--green); }
.student-badge.good { background: rgba(33,150,243,0.15); color: var(--blue); }
.student-badge.active { background: rgba(255,214,0,0.15); color: #f57f17; }

/* ===== TEACHER SLIDER ===== */
.home-teacher {
    margin-top: 30px;
}

.teacher {
    background: linear-gradient(180deg, #E8F5E9 0%, #FFFDE7 100%);
    padding: 80px 0;
    position: relative;
}

.teacher-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.green-section .section-header h2 { color: var(--green); }
.green-section .section-header h2::after { background: var(--green); }

.section-header p {
    color: #777;
    font-size: 1.05rem;
    margin-top: 15px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Container */
.slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 25px;
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.slide-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-align: center;
}

.slide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.slide-photo {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
}

.teacher-photo-frame {
    width: 190px;
    height: 190px;
    border-radius: 22px;
    border: 4px solid #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
    background: #fff center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.2rem;
    color: white;
    overflow: hidden;
}

.slide-card:nth-child(1) .slide-photo { background: linear-gradient(135deg, #FFD600, #F57F17); }
.slide-card:nth-child(2) .slide-photo { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.slide-card:nth-child(3) .slide-photo { background: linear-gradient(135deg, #2196F3, #1565C0); }
.slide-card:nth-child(4) .slide-photo { background: linear-gradient(135deg, #F44336, #C62828); }

.slide-info {
    padding: 30px 25px;
}

.slide-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-family: 'Merriweather', serif;
}

.slide-info .designation {
    color: var(--red);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.slide-info p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.7;
}

.slide-info .subject-tag {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #FFD600, #4CAF50);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.slide-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.slide-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.slide-social a:hover { transform: scale(1.15); }
.slide-social a:nth-child(1) { background: var(--blue); }
.slide-social a:nth-child(2) { background: var(--red); }
.slide-social a:nth-child(3) { background: var(--green); }

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 3px solid var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.slider-arrow:hover {
    background: var(--gradient-main);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: -25px; }
.slider-arrow.next { right: -25px; }

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--gradient-main);
    width: 35px;
    border-radius: 7px;
}

.slider-dot:hover {
    background: var(--green);
}

/* Slider Counter */
.slider-counter {
    text-align: center;
    margin-top: 15px;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== NOTICE BANNER ===== */
.notice-banner {
    max-width: 1200px;
    margin: 40px auto 0;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    border-radius: 20px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: rgba(255,255,255,0.5);
}

.notice-banner:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.notice-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-text {
    flex: 1;
}

.notice-text h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 5px;
    font-family: 'Merriweather', serif;
}

.notice-text p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.notice-close {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notice-close:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--white);
    padding: 80px 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual .big-box {
    width: 100%;
    height: 400px;
    background: var(--gradient-main);
    background-color: var(--gradient-main);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.about-visual .big-box .photo-upload-wrap {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    align-items: center;
}

.about-visual .big-box .photo-remove-btn {
    position: static;
}

.about-visual .floating-shape {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.12);
}

.about-visual .fs1 { top: 20%; left: 15%; }
.about-visual .fs2 { bottom: 25%; right: 15%; }
.about-visual .fs3 { top: 50%; left: 50%; }

.about-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 20px;
}

.about-text p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 1rem;
}

.about-highlights {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
    padding: 15px 25px;
    border-radius: 15px;
}

.highlight-item:nth-child(1) { background: rgba(255,214,0,0.12); }
.highlight-item:nth-child(2) { background: rgba(76,175,80,0.12); }
.highlight-item:nth-child(3) { background: rgba(33,150,243,0.12); }

.highlight-item .num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Merriweather', serif;
}

.highlight-item:nth-child(1) .num { color: #f57f17; }
.highlight-item:nth-child(2) .num { color: var(--green); }
.highlight-item:nth-child(3) .num { color: var(--blue); }

.highlight-item .lbl {
    font-size: 0.8rem;
    color: #888;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(180deg, #FFF3E0 0%, #E3F2FD 100%);
    padding: 80px 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-box {
    background: var(--white);
    padding: 25px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-box .cb-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.contact-box:nth-child(1) .cb-icon { background: var(--red); }
.contact-box:nth-child(2) .cb-icon { background: var(--blue); }
.contact-box:nth-child(3) .cb-icon { background: var(--green); }
.contact-box:nth-child(4) .cb-icon { background: #f57f17; }

.contact-box h4 { color: var(--dark); font-size: 1.05rem; margin-bottom: 4px; }
.contact-box p { color: #888; font-size: 0.9rem; margin: 0; line-height: 1.5; }

.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(33,150,243,0.1);
}

.form-group textarea {
    height: 110px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 25px;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer strong { color: var(--yellow); }

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .header h1 { font-size: 2.2rem; }
    .messages-grid { grid-template-columns: 1fr; }
    .about-container { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 15px 15px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 14px 25px; border-bottom: 1px solid #f0f0f0; }
    .hamburger { display: flex; }
    .header h1 { font-size: 1.7rem; }
    .address-bar { flex-direction: column; gap: 10px; padding: 15px; }
    .messages-grid { grid-template-columns: 1fr; }
    .home-grid { grid-template-columns: 1fr; }
    .student-grid { grid-template-columns: 1fr; }
    .about-visual .big-box { height: 280px; font-size: 5rem; }
    .about-highlights { flex-direction: column; gap: 15px; }
    .notice-banner { flex-direction: column; text-align: center; }
    .slider-arrow.prev { left: 5px; }
    .slider-arrow.next { right: 5px; }
    .slider-wrapper { max-width: 100%; }
}

@media (max-width: 480px) {
    .header h1 { font-size: 1.4rem; }
    section { padding: 60px 0; }
    .section-header h2 { font-size: 1.8rem; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--yellow), var(--green), var(--blue), var(--red)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark); }

::selection { background: var(--blue); color: white; }

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--green);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.4s ease;
    z-index: 2000;
    font-weight: 600;
}

.notification.show { transform: translateX(0); }

/* ===== MINI MESSAGES (Compact) ===== */
.mini-messages {
    background: linear-gradient(180deg, #FFFDE7 0%, #FFFFFF 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.mini-title {
    text-align: center;
    color: var(--dark);
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin: 0 0 20px;
}

.mini-title i {
    color: var(--red);
    margin-right: 8px;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mini-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.mini-card.president-card {
    border-top: 4px solid #FFD600;
}

.mini-card.principal-card {
    border-top: 4px solid #2196F3;
}

.mini-photo {
    font-size: 3rem;
    width: 96px;
    height: 96px;
    background: linear-gradient(180deg, #FFFDE7, #E8F5E9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    margin-bottom: 12px;
    position: relative;
    overflow: visible;
}

.mini-photo-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(0,0,0,0.12);
    border: 2px solid rgba(0,0,0,0.15);
    box-sizing: border-box;
}

.mini-photo-emoji { line-height: 1; }

.msg-photo-btn {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    border: 2px solid #fff;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    z-index: 3;
}

.msg-photo-btn:hover { transform: scale(1.12); }

.msg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.msg-tab {
    flex: 1;
    padding: 11px 10px;
    border: 2px solid #dde3ea;
    background: #f4f6f9;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #555;
    transition: all 0.3s ease;
}

.msg-tab.active {
    background: linear-gradient(135deg, #FFB300, #FF8F00);
    border-color: #FF8F00;
    color: #fff;
}

.mini-info h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.mini-designation {
    color: var(--red);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.mini-section-label {
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-style: normal !important;
}

.mini-info p {
    color: #555;
    font-size: 0.8rem;
    line-height: 1.6;
    font-style: italic;
    max-width: 340px;
}

@media (max-width: 768px) {
    .mini-grid { grid-template-columns: 1fr; }
}

/* ===== SCHOOL PHOTO SLIDER ===== */
.photo-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    overflow: hidden;
}

.photo-track {
    display: flex;
    transition: transform 0.5s ease;
}

.photo-slide {
    min-width: 100%;
    position: relative;
}

.photo-img {
    height: 420px;
    width: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-emoji {
    font-size: 6rem;
    opacity: 0.95;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.photo-1 { background: linear-gradient(135deg, #FFD600, #FF9800); }
.photo-2 { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.photo-3 { background: linear-gradient(135deg, #2196F3, #1565C0); }
.photo-4 { background: linear-gradient(135deg, #F44336, #FF5722); }
.photo-5 { background: linear-gradient(135deg, #9C27B0, #673AB7); }

.photo-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 8px 22px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.photo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    color: #333;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.photo-arrow.prev { left: 46px; }
.photo-arrow.next { right: 46px; }

.photo-arrow:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}

.photo-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.photo-dots .photo-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-dots .photo-dot.active {
    width: 28px;
    background: #fff;
}

/* ===== PHOTO UPLOAD CONTROLS (admin only) ===== */
.login-only { display: none !important; }
body.admin-mode .login-only { display: flex !important; }

.photo-upload-wrap {
    position: absolute;
    bottom: 12px;
    right: 12px;
    flex-direction: column;
    gap: 8px;
    z-index: 15;
    align-items: flex-end;
}

body.admin-mode .photo-upload-wrap { flex-direction: column; }

.photo-upload-btn {
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 22px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(6px);
}

.photo-upload-btn:hover { background: var(--green); transform: scale(1.04); }

.photo-remove-btn {
    background: var(--red);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
}

.photo-remove-btn.show { display: flex; align-items: center; justify-content: center; }
.photo-remove-btn:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .photo-img { height: 240px; }
    .photo-emoji { font-size: 3.5rem; }
    .photo-arrow.prev { left: 8px; }
    .photo-arrow.next { right: 8px; }
    .photo-caption { bottom: 45px; font-size: 0.85rem; }
}

/* ===== LOGIN BUTTON IN HEADER ===== */
.header-login {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 5;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.login-btn:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 30px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover { color: var(--red); }

.modal-title {
    font-family: 'Merriweather', serif;
    color: var(--dark);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.modal-title i { color: var(--green); margin-right: 6px; }

.modal-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin: 12px 0 6px;
}

.modal-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.modal-input:focus { border-color: var(--green); }

.login-hint {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
}

.login-hint strong { color: var(--dark); }

.modal-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.login-submit {
    background: linear-gradient(135deg, var(--green), #2E7D32);
    color: #fff;
}

.login-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(76,175,80,0.4); }

.login-cancel {
    background: #eee;
    color: #555;
    width: auto;
    margin-top: 0;
    padding: 12px 24px;
}

.login-cancel:hover { background: #ddd; }

/* ===== EDITOR MODAL ===== */
.editor-box { max-width: 620px; }

.editor-field { margin-bottom: 14px; }

.editor-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.editor-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    outline: none;
    min-height: 46px;
    box-sizing: border-box;
}

.editor-field textarea:focus { border-color: var(--green); }

.editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.editor-actions .login-submit { flex: 1; margin-top: 0; }

/* ===== ADMIN FULL-PAGE PANEL ===== */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #FFFDE7 0%, #E8F5E9 50%, #E3F2FD 100%);
    z-index: 2500;
    display: none;
    overflow-y: auto;
    padding: 20px;
}

.admin-overlay.show { display: block; }

.admin-fullpage {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.admin-fp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green);
    margin-bottom: 14px;
}

.admin-fp-header h3 {
    font-family: 'Merriweather', serif;
    color: var(--dark);
    font-size: 1.35rem;
}

.admin-fp-header h3 i { color: var(--green); margin-right: 8px; }

.admin-fp-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-fp-actions button {
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-fp-add { background: var(--green); color: #fff; }
.admin-fp-add:hover { background: #2E7D32; transform: translateY(-2px); }
.admin-fp-logout { background: var(--red); color: #fff; }
.admin-fp-logout:hover { background: #C62828; }
.admin-fp-close {
    background: #eee;
    color: #555;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    justify-content: center;
    border-radius: 50% !important;
    font-size: 1rem !important;
}
.admin-fp-close:hover { background: #ddd; }

.admin-fp-list {
    background: linear-gradient(135deg, #1E88E5, #0D47A1);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-list:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,136,229,0.4); }

.admin-fp-photo {
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-photo:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(142,45,226,0.4); }

.admin-fp-excel {
    background: linear-gradient(135deg, #11998E, #38EF7D);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-excel:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(17,153,142,0.4); }

.admin-fp-msg {
    background: linear-gradient(135deg, #5B2C6F, #8E44AD);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    position: relative;
}

.admin-fp-msg:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(142,68,173,0.4); }

.admin-fp-pass {
    background: linear-gradient(135deg, #546E7A, #37474F);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.admin-fp-pass:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(55,71,79,0.4); }

.msg-badge {
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    line-height: 19px;
    text-align: center;
    border-radius: 10px;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(244,67,54,0.5);
}

/* ===== MESSAGES LIST MODAL ===== */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 56vh;
    overflow-y: auto;
    margin: 4px 0 14px;
}

.msg-empty {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 30px 0;
}

.msg-item {
    background: #f7f8fb;
    border: 1px solid #e8ecf1;
    border-left: 4px solid var(--green);
    border-radius: 12px;
    padding: 13px 16px;
}

.msg-item.unread {
    border-left-color: var(--red);
    background: #FFF8F6;
}

.msg-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.msg-head strong { font-size: 0.92rem; color: var(--dark); }

.msg-email { color: var(--blue); font-size: 0.78rem; }

.msg-time { color: #999; font-size: 0.72rem; white-space: nowrap; }

.msg-subject {
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
}

.msg-subject i { color: var(--yellow); }

.msg-text {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.msg-actions { text-align: right; }

.msg-delete {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.msg-delete:hover { background: #C62828; }

/* ===== PHOTO MANAGER MODAL ===== */
.photo-manager-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 16px;
    max-height: 52vh;
    overflow-y: auto;
}

.photo-manager-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f8fb;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 10px 14px;
}

.pm-label {
    width: 74px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.pm-preview {
    width: 60px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e3e6ef, #f3f4f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #999;
    overflow: hidden;
    flex-shrink: 0;
}

.pm-empty { font-size: 1.2rem; color: #bbb; }

.pm-btn {
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.pm-btn.up { background: var(--green); color: #fff; }
.pm-btn.up:hover { transform: translateY(-2px); }

.pm-btn.rm { background: var(--red); color: #fff; padding: 9px 11px; }
.pm-btn.rm:hover { transform: translateY(-2px); }

.modal-subhint {
    font-size: 0.8rem;
    color: #777;
    background: #f0f7f5;
    border-left: 4px solid var(--green);
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

/* ===== EXCEL MODAL ===== */
.excel-guide {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.modal-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e3e6ef;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: border 0.3s ease;
    box-sizing: border-box;
}

.modal-input:focus { border-color: var(--blue); }

/* ===== TEACHER MANAGER ===== */
.teacher-box { max-width: 640px; }

.tm-photo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tm-preview {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e3e6ef, #f3f4f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.tm-photo-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teacher-meta {
    background: #f8fafc;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.meta-row {
    font-size: 0.82rem;
    color: #444;
}

.meta-row b {
    color: var(--green);
    font-weight: 700;
}

/* ===== STUDENT LIST MODAL ===== */
.student-list-box { max-width: 620px; }

.sl-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sl-filter-row label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
}

.student-list-body {
    max-height: 52vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.sl-class-head {
    background: var(--green);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
}

.sl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f7f8fb;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.sl-row:hover { border-color: var(--green); }

.sl-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.85rem;
}

.sl-info small {
    color: #888;
    font-size: 0.75rem;
}

.sl-badge {
    align-self: flex-start;
    background: #e3f2fd;
    color: #1565C0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 2px;
}

.sl-del {
    background: var(--red);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sl-del:hover { transform: scale(1.1); }

.sl-empty {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 24px 0;
    background: #f7f8fb;
    border-radius: 12px;
}

.sl-summary {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--green);
    margin-top: 6px;
}

/* ===== PASSPORT CROP MODAL ===== */
.crop-box { max-width: 420px; }

.crop-stage {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 0 auto 14px;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.crop-stage:active { cursor: grabbing; }

.crop-window {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
    background: #fff;
}

#cropImg {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
    pointer-events: none;
}

.crop-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.6);
    pointer-events: none;
    border-radius: 6px;
}

.crop-zoom-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 10px;
}

.crop-zoom-ico { font-size: 1rem; }

.crop-zoom-row input[type="range"] {
    flex: 1;
    accent-color: var(--green);
}

.crop-zoom-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    min-width: 44px;
    text-align: right;
}

.admin-fp-hint {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.admin-fp-hint b { color: var(--dark); }

.admin-fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-fp-card {
    background: #f7f9fc;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.admin-fp-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

.admin-fp-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-fp-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-fp-card-top h5 {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
}

.admin-fp-card-top h5 small {
    display: block;
    color: #999;
    font-weight: 500;
    font-size: 0.75rem;
    margin-top: 2px;
}

.admin-fp-card-btns { display: flex; gap: 8px; }

.admin-fp-card-btns button {
    flex: 1;
    border: none;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.admin-restore-all {
    width: 100%;
    padding: 14px;
    border: none;
    background: #FFF8E1;
    color: #795548;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.admin-restore-all:hover { background: #FFECB3; }

/* ===== FLOATING LOGIN FALLBACK ===== */
.floating-login {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    z-index: 2800;
    transition: transform 0.3s ease;
}

.floating-login:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .header-login { top: 10px; right: 10px; }
    .login-btn { padding: 6px 12px; font-size: 0.8rem; }
    .admin-panel { width: 92%; right: 4%; top: 70px; max-height: 80vh; overflow-y: auto; }
}

/* ==============================
   MOBILE FRIENDLY (অ্যাপেন্ডিক্স)
   ============================== */
@media (max-width: 768px) {
    .modal-box { padding: 22px 16px; max-width: 96%; width: 96%; }
    .editor-box, .donor-edit-box { max-width: 98%; width: 98%; }
    .admin-fullpage { padding: 14px 12px; width: 100%; }
    .admin-fp-grid { grid-template-columns: 1fr; }
    .admin-fp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-fp-actions button { width: 100%; justify-content: center; padding: 10px 8px; font-size: 0.72rem; }
    .admin-fp-close { grid-column: auto; }
    .admin-fp-hint { font-size: 0.78rem; }
    .admin-restore-all { font-size: 0.82rem; padding: 12px; }

    .notice-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 14px; }
    .notice-item-icon { flex: 0 0 40px; height: 40px; font-size: 1rem; }
    .notice-pdf-open { margin-left: 0; width: 100%; justify-content: center; margin-top: 8px; }
    .notice-row-top .notice-date { width: 100%; }
    .notice-row-top .notice-title { width: 100%; min-width: 0; }
    .notice-row-top { flex-direction: column; align-items: flex-start; }
    .notice-row-top .donor-del-row { align-self: flex-end; }

    .about-visual .big-box { height: 230px; font-size: 4.5rem; }
    .about-visual .big-box .photo-upload-btn { font-size: 0.72rem; padding: 7px 12px; }
    .tm-photo-row { flex-direction: column; align-items: stretch; }
    .tm-photo-btns { flex-direction: column; gap: 8px; }

    .section-header h2 { font-size: 1.55rem; }
    .section-header p { font-size: 0.85rem; padding: 0 10px; }

    .filled-view .stf-actions, .editor-actions { flex-wrap: wrap; }
    .editor-actions .modal-btn { min-width: 120px; }
    .donor-toolbar, .notice-toolbar { display: flex; }
    .donor-toolbar .donor-add-btn, .notice-toolbar .donor-add-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .header { padding: 28px 12px 22px; }
    .header h1 { font-size: 1.25rem; line-height: 1.5; }
    .address-bar { font-size: 0.78rem; }
    .section-panel { padding: 45px 0; }
    .photo-slider { padding: 0 10px; }
    .photo-img { height: 210px; border-radius: 14px; }
    .photo-caption { bottom: 14px; font-size: 0.75rem; padding: 5px 12px; }
    .photo-arrow.prev { left: 4px; }
    .photo-arrow.next { right: 4px; }
    .slider-counter { font-size: 0.7rem; }
    .message-card { padding: 14px; }
    .mini-photo { width: 62px; height: 62px; font-size: 2rem; }
    .student-container { padding: 0 10px; }
    .search-fields, .student-form-fields { grid-template-columns: 1fr; }
    .stf-row { grid-template-columns: 1fr; gap: 10px; }
    .ff-actions .modal-btn, .ff-actions .download-btn { width: 100%; }
    .big-box { height: 200px; }
    .slider-dots { bottom: 8px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 0.9rem; }
    .section-header h2 { font-size: 1.35rem; }
    .contact-form .form-group { margin-bottom: 12px; }
    .modal-title { font-size: 1.1rem; }
    .notice-item-body h3 { font-size: 1rem; }
    .donor-table-scroll, .donor-edit-scroll { -webkit-overflow-scrolling: touch; }
    .donor-table th, .donor-table td { padding: 9px 10px; font-size: 0.78rem; }
    .admin-fp-actions { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .header h1 { font-size: 1.1rem; }
    .photo-img { height: 190px; }
    .notice-banner .notice-text h3 { font-size: 0.95rem; }
}
