/* ============================================================
   1. ROOT VARIABLES & RESET
   ============================================================ */

:root {
    /* --- MAIN COLORS --- */
    --primary: #1e3a8a;
    --primary-dark: #0f2b6d;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    
    /* --- GRAY SCALE --- */
    --gray-light: #f8fafc;
    --gray: #e2e8f0;
    --gray-dark: #64748b;
    --text-dark: #0f172a;
    
    /* --- EFFECTS --- */
    --shadow: 0 10px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.02);
    --radius: 1.2rem;
    --container-padding: 5%;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   2. LAYOUT & CONTAINERS
   ============================================================ */

.main-content {
    flex: 1;
    width: 100%;
    max-width: 100% !important;
    padding: 0 var(--container-padding) 2rem var(--container-padding) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

/* ============================================================
   3. NAVIGATION
   ============================================================ */

.navbar {
    background: rgba(30, 58, 138, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0 !important;
}

.nav-container {
    width: 100%;
    max-width: 100% !important;
    padding: 0.8rem var(--container-padding);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* ============================================================
   4. HERO SECTIONS
   ============================================================ */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 100% !important;
    margin: 0 0 2.5rem 0 !important;
    padding: 5rem var(--container-padding);
    text-align: center;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    background-color: var(--primary-dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
    border-radius: 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.hero-content p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FULL SCREEN HERO --- */

.hero-full {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 100vh;
    min-height: 100vh;
    max-height: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 43, 109, 0.6) 0%, rgba(30, 58, 138, 0.5) 50%, rgba(59, 130, 246, 0.3) 100%);
    z-index: 0;
}

.hero-full .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 90%;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-full .hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-full .hero-content p {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- HERO BUTTONS --- */

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover { 
    background: #f0f4ff; 
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.hero-full .btn-primary {
    background: #ffffff;
    color: var(--primary);
    padding: 0.85rem 2.8rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-full .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: #f0f4ff;
}

.hero-full .btn-outline-light {
    background: transparent;
    color: #ffffff;
    padding: 0.85rem 2.8rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-block;
}

.hero-full .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* --- ANIMATIONS --- */

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

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================
   5. CARDS & GRIDS
   ============================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
}

/* --- BASE CARD - Shared styles for all cards --- */

.card,
.info-card,
.official-card,
.activity-card,
.about-card,
.announcement-card,
.event-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 3px solid #e2e8f0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

/* --- Card Top Gradient Line (Shared) --- */

.card::before,
.info-card::before,
.official-card::before,
.activity-card::before,
.about-card::before,
.announcement-card::before,
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* --- Card Hover (Shared) --- */

.card:hover,
.info-card:hover,
.official-card:hover,
.activity-card:hover,
.about-card:hover,
.announcement-card:hover,
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.12) !important;
    border-color: #3b82f6 !important;
}

.card:hover::before,
.info-card:hover::before,
.official-card:hover::before,
.activity-card:hover::before,
.about-card:hover::before,
.announcement-card:hover::before,
.event-card:hover::before {
    opacity: 1;
}

/* --- INFO CARD SPECIFIC --- */

.info-card {
    padding: 1.25rem 1.5rem;
    min-height: 160px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    background: rgba(59, 130, 246, 0.12);
    padding: 0.35rem 1rem;
    border-radius: 0.75rem;
    display: inline-block;
    border-left: 4px solid var(--primary-light);
}

/* --- OFFICIAL CARD SPECIFIC --- */

.official-card {
    text-align: center;
    align-items: center;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.official-card .avatar,
.official-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin: 0 auto 0.75rem auto;
    display: block;
}
.official-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.75rem auto;
}

.official-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.card-position {
    color: var(--gray-dark);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.official-card p {
    font-size: 0.85rem;
    margin: 0.25rem 0;
    color: var(--text-dark);
}

.official-card p i {
    width: 1.2rem;
    color: var(--primary-light);
}

.official-card .note {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.official-card .note i {
    color: #f59e0b;
    margin-right: 0.3rem;
}

/* --- ACTIVITY CARD SPECIFIC --- */

.activity-card {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px solid #e2e8f0;
}

.activity-icon {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.activity-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.activity-card p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.activity-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

/* --- ABOUT CARD SPECIFIC --- */

.about-card {
    padding: 1.8rem 1.5rem;
    border: 1px solid #e2e8f0;
}

.about-card h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: #334155;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- ANNOUNCEMENT & EVENT CARDS (Shared) --- */

.announcement-card,
.event-card {
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid #d1d5db;
}

.announcement-card .announcement-title,
.event-card .event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.3rem 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-light);
    display: inline-block;
}

.announcement-card .announcement-meta,
.event-card .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 0.75rem;
}

.announcement-card .announcement-meta-item,
.event-card .event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

.announcement-card .announcement-meta-item i,
.event-card .event-meta-item i {
    color: var(--primary-light);
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

.announcement-card .announcement-content {
    color: #334155;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 3px solid #d1d5db;
}

.event-card .event-description {
    color: #1e293b;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
    border: 1.5px solid #cbd5e1;
    border-left: 4px solid var(--primary-light);
}

.announcement-card .announcement-footer,
.event-card .event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    gap: 0.5rem;
}

/* --- POSTED BY (Shared) --- */

.posted-by {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 0.75rem;
    border-top: 1px solid var(--gray);
    padding-top: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.posted-by i { 
    margin-right: 0.3rem; 
}

.posted-by .position-tag {
    color: var(--primary-light);
    font-weight: 500;
}

.announcement-card .announcement-footer .posted-by,
.event-card .event-footer .posted-by {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin: 0;
    border: none;
    padding: 0;
}

/* --- CARD DATE & LOCATION --- */

.card-date {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.card-location {
    color: var(--gray-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- BADGES (Announcement & Event) --- */

.announcement-card .announcement-badge,
.event-card .event-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    background: #dbeafe;
    color: #1e40af;
}

.announcement-card .announcement-badge.new {
    background: #fef3c7;
    color: #92400e;
    animation: pulse-badge 2s infinite;
}

.event-card .event-badge.soon {
    background: #fef3c7;
    color: #92400e;
}

.coming-soon {
    font-size: 0.75rem;
    color: #f59e0b;
    background: #fffbeb;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    display: inline-block;
    margin-top: 0.2rem;
    font-weight: 600;
}

/* --- SECTION HEADERS --- */

.section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--gray);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--primary);
}

.view-all {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.view-all:hover { 
    text-decoration: underline; 
    color: var(--primary); 
}

/* --- OFFICIALS GRID --- */

.officials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* --- MANAGE GRID (2 columns) --- */

.manage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- NOTES GRID --- */

.notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.note-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.note-item .note-text {
    margin-bottom: 0.2rem;
}

.note-item .note-meta {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* ============================================================
   6. BUTTONS & BADGES
   ============================================================ */

/* --- GENERAL BUTTON --- */

.btn {
    display: inline-block;
    background: linear-gradient(135deg, rgb(255, 255, 255), rgba(167, 191, 234, 0.7));
    color: rgb(0, 0, 0);
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover { 
    background: lightyellow; 
    transform: scale(1.02); 
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- BACK BUTTON --- */

.btn-back {
    background: var(--gray);
    color: var(--text-dark);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-back:hover { 
    background: var(--gray-dark); 
    color: white; 
}

.back-button-container {
    margin-bottom: 1.5rem;
}

/* --- DELETE BUTTON --- */

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.8rem;
}

.btn-delete:hover { 
    background: #c82333; 
}

/* --- EDIT BUTTON --- */

.btn-edit {
    background: #f59e0b;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-edit:hover {
    background: #d97706;
    transform: scale(1.05);
}

/* --- TOGGLE BUTTON --- */

.btn-toggle {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-toggle.active {
    background: #dcfce7;
    color: #166534;
}

.btn-toggle.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.btn-toggle:hover {
    transform: scale(1.05);
}

/* --- ACTION BUTTONS GROUP --- */

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

/* --- LOGIN BUTTON --- */

.btn-login {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none;
    width: 100% !important;
    display: block !important;
    text-align: center;
    padding: 0.75rem 1.5rem;  
    font-size: 1rem;
    border-radius: 0.75rem;  
}

.btn-login:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.02);
}

/* --- ACTIVITY CARD BUTTON --- */

.activity-card .btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.8rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.activity-card .btn:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
}

.activity-card .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.activity-card .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.04);
}

/* --- BADGES --- */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-on-duty { 
    background: #dcfce7; 
    color: #166534; 
}

.badge-off-duty { 
    background: #fee2e2; 
    color: #991b1b; 
}

.status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.status-active { 
    background: #dcfce7; 
    color: #166534; 
}

.status-inactive { 
    background: #fee2e2; 
    color: #991b1b; 
}

/* ============================================================
   7. FORMS - GENERAL (Excluding Login)
   ============================================================ */

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

/* --- SEARCH BAR --- */

.search-simple {
    margin-bottom: 1.5rem;
    max-width: 85%;
    width: 100%;
}

.search-simple input {
    width: 100%;
    padding: 0.7rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-simple input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-simple input::placeholder {
    color: #a0aec0;
}

.search-stats {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

/* --- SUGGESTIONS BOX --- */

.suggestions-box {
    position: absolute;
    background: white;
    border: 1px solid var(--gray);
    border-radius: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    width: 100%;
    box-shadow: var(--shadow);
    display: none;
    margin-top: 0.25rem;
}

.suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: var(--gray-light);
}

/* --- USERNAME LABEL --- */

.username-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin: 0.2rem 0;
}

/* --- PROFILE FORM --- */

.profile-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 3.5rem 4rem;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
    border: 2px solid #d1d5db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.12);
}

.profile-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.profile-photo-wrapper {
    text-align: center;
    margin-bottom: 1.8rem;
}

.profile-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d1d5db;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    display: inline-block;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.profile-form {
    text-align: left;
}

.profile-form .form-group {
    margin-bottom: 1.25rem;
}

.profile-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.profile-form .form-group input,
.profile-form .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    box-sizing: border-box;
    color: #0f172a;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.profile-form .form-group input:disabled {
    background-color: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
    opacity: 0.8;
}

.profile-form .form-group input:not(:disabled):focus,
.profile-form .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.profile-form .form-group input[type="file"] {
    padding: 0.6rem 0.8rem;
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
}

.profile-form .form-group input[type="file"]:hover {
    border-color: #3b82f6;
    background: #f0f4ff;
}

.profile-form .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.btn-update-profile {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 0.5rem;
    text-align: center;
}

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

.btn-update-profile:active {
    transform: translateY(0);
}

.profile-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.profile-alert.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.profile-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* --- INPUT GROUP WITH ICON (General Forms Only - NOT Login) --- */

:not(.login-container) .input-group {
    position: relative;
    width: 100%;
}

:not(.login-container) .input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.3s;
    pointer-events: none;
    z-index: 2;
}

:not(.login-container) .input-group input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    box-sizing: border-box;
    color: var(--text-dark);
}

:not(.login-container) .input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
    background: #ffffff;
}

:not(.login-container) .input-group input:focus ~ .input-icon {
    color: var(--primary-light);
}

:not(.login-container) .input-group input::placeholder {
    color: #a0aec0;
}

:not(.login-container) .input-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

:not(.login-container) .input-group .toggle-password:hover {
    color: var(--primary);
    background: rgba(30, 58, 138, 0.06);
}

:not(.login-container) .input-group .toggle-password:focus {
    outline: none;
}

:not(.login-container) .input-group .toggle-password .fa-eye-slash {
    display: none;
}

:not(.login-container) .input-group .toggle-password.show .fa-eye {
    display: none;
}

:not(.login-container) .input-group .toggle-password.show .fa-eye-slash {
    display: inline;
}

/* ============================================================
   8. ALERTS & MESSAGES
   ============================================================ */

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-success { 
    background: #dcfce7; 
    color: #166534; 
    border-left: 4px solid #22c55e; 
}

.alert-error { 
    background: #fee2e2; 
    color: #991b1b; 
    border-left: 4px solid #ef4444; 
}

/* ============================================================
   9. STATS
   ============================================================ */

.stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stats .card {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.stats .card h3 { 
    font-size: 2rem; 
    color: var(--primary); 
}

/* ============================================================
   10. CALENDAR
   ============================================================ */

.events-controls { 
    margin-bottom: 1.5rem; 
}

.view-toggle { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap; 
}

.view-toggle .btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 0.6rem 1.8rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-toggle .btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.04);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.view-toggle .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.view-toggle .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.view-toggle .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.04);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-header h2 { 
    font-size: 1.5rem; 
    color: var(--primary); 
}

.calendar-nav {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.calendar-nav:hover { 
    background: var(--primary-dark); 
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.calendar-day-name {
    background: var(--primary-light);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid var(--gray);
    padding: 0.5rem;
    background: white;
}

.calendar-day.empty { 
    background: var(--gray-light); 
}

.calendar-day.today { 
    background: #eff6ff; 
    border: 2px solid var(--primary-light); 
}

.day-number {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.day-events { 
    display: flex; 
    flex-direction: column; 
    gap: 0.25rem; 
}

.event-marker {
    font-size: 0.7rem;
    background: var(--primary-light);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

/* ============================================================
   11. TABLES
   ============================================================ */

.log-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.log-table th {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.log-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.log-table tr:hover td {
    background: #f8fafc;
}

.log-action {
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    display: inline-block;
}

.log-action.login { background: #dbeafe; color: #1e40af; }
.log-action.logout { background: #e2e8f0; color: #475569; }
.log-action.add_member { background: #dcfce7; color: #166534; }
.log-action.delete_member { background: #fee2e2; color: #991b1b; }
.log-action.toggle_status { background: #fef3c7; color: #92400e; }
.log-action.change_password { background: #ede9fe; color: #5b21b6; }
.log-action.add_event { background: #dbeafe; color: #1e40af; }
.log-action.update_event { background: #fef3c7; color: #92400e; }
.log-action.delete_event { background: #fee2e2; color: #991b1b; }
.log-action.add_announcement { background: #dbeafe; color: #1e40af; }
.log-action.update_announcement { background: #fef3c7; color: #92400e; }
.log-action.delete_announcement { background: #fee2e2; color: #991b1b; }

.log-role {
    font-size: 0.7rem;
    padding: 0.1rem 0.6rem;
    border-radius: 2rem;
    background: #e2e8f0;
    color: #475569;
    font-weight: 600;
}

.log-role.admin { background: #dbeafe; color: #1e40af; }
.log-role.official { background: #dcfce7; color: #166534; }

/* ============================================================
   12. FOOTER
   ============================================================ */

.footer {
    background: var(--primary-dark);
    color: white;
    margin-top: auto;
    width: 100%;
    padding: 2rem 0 0;
}

.footer-container {
    width: 100%;
    max-width: 100% !important;
    padding: 0 var(--container-padding);
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.footer-links ul { 
    list-style: none; 
    padding: 0; 
}

.footer-links a { 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
}

.footer-links a:hover { 
    color: white; 
}

/* ============================================================
   13. LOGIN PAGE - FULLY RESPONSIVE
   ============================================================ */

.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: #f1f5f9;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.10);
    border: 1px solid #e2e8f0;
    margin: 0 auto;
}

/* --- LOGIN HEADER --- */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .login-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

.login-header .login-icon-wrapper i {
    font-size: 2rem;
    color: #ffffff;
}

.login-header h2 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* --- LOGIN FORM GROUPS --- */
.login-container .form-group {
    margin-bottom: 1.25rem;
}

.login-container .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

/* --- LOGIN INPUT GROUP --- */
.login-container .input-group {
    position: relative;
    width: 100%;
}

.login-container .input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.login-container .input-group input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    box-sizing: border-box;
    color: #0f172a;
}

.login-container .input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
    background: #ffffff;
}

.login-container .input-group input:focus ~ .input-icon {
    color: #3b82f6;
}

.login-container .input-group input::placeholder {
    color: #a0aec0;
}

/* --- LOGIN TOGGLE PASSWORD --- */
.login-container .input-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    z-index: 2;
}

.login-container .input-group .toggle-password:hover {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.06);
}

.login-container .input-group .toggle-password .fa-eye-slash {
    display: none;
}

.login-container .input-group .toggle-password.show .fa-eye {
    display: none;
}

.login-container .input-group .toggle-password.show .fa-eye-slash {
    display: inline;
}

/* --- LOGIN BUTTON --- */
.login-container .btn-login {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.login-container .btn-login:hover {
    background: #0f2b6d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.25);
}

.login-container .btn-login:active {
    transform: translateY(0);
}

.login-container .btn-login i {
    font-size: 1rem;
}

/* --- LOGIN FOOTER --- */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.login-footer a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   LOGIN - RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- TABLET & SMALL LAPTOP --- */
@media (max-width: 992px) {
    .login-page {
        padding: 1.5rem;
    }
    
    .login-container {
        max-width: 400px;
        padding: 2rem 1.8rem 1.8rem;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-header .login-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .login-header .login-icon-wrapper i {
        font-size: 1.6rem;
    }
}

/* --- MOBILE LANDSCAPE & TABLET PORTRAIT --- */
@media (max-width: 768px) {
    .login-page {
        padding: 1rem;
        min-height: 100vh;
        align-items: center;
    }
    
    .login-container {
        max-width: 100%;
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 1.2rem;
        margin: 0 0.75rem;
    }
    
    .login-header {
        margin-bottom: 1.5rem;
    }
    
    .login-header .login-icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 0.75rem;
    }
    
    .login-header .login-icon-wrapper i {
        font-size: 1.4rem;
    }
    
    .login-header h2 {
        font-size: 1.4rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .login-container .form-group {
        margin-bottom: 1rem;
    }
    
    .login-container .form-group label {
        font-size: 0.85rem;
    }
    
    .login-container .input-group input {
        padding: 0.75rem 1rem 0.75rem 2.6rem;
        font-size: 0.95rem;
        border-radius: 0.6rem;
    }
    
    .login-container .input-group .input-icon {
        left: 12px;
        font-size: 0.9rem;
    }
    
    .login-container .input-group .toggle-password {
        right: 10px;
        font-size: 0.9rem;
        padding: 4px;
    }
    
    .login-container .btn-login {
        padding: 0.75rem;
        font-size: 0.95rem;
        border-radius: 0.6rem;
    }
    
    .login-footer {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
    
    .login-footer p {
        font-size: 0.85rem;
    }
}

/* --- SMALL MOBILE PHONES --- */
@media (max-width: 480px) {
    .login-page {
        padding: 0.75rem;
        min-height: 100vh;
    }
    
    .login-container {
        padding: 1.5rem 1.2rem 1.2rem;
        border-radius: 1rem;
        margin: 0;
        border-width: 1px;
        max-width: 100%;
    }
    
    .login-header {
        margin-bottom: 1.2rem;
    }
    
    .login-header .login-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .login-header .login-icon-wrapper i {
        font-size: 1.2rem;
    }
    
    .login-header h2 {
        font-size: 1.2rem;
    }
    
    .login-header p {
        font-size: 0.8rem;
    }
    
    .login-container .form-group {
        margin-bottom: 0.85rem;
    }
    
    .login-container .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .login-container .input-group input {
        padding: 0.65rem 0.8rem 0.65rem 2.4rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        border-width: 1.5px;
    }
    
    .login-container .input-group .input-icon {
        left: 10px;
        font-size: 0.85rem;
    }
    
    .login-container .input-group .toggle-password {
        right: 8px;
        font-size: 0.85rem;
        padding: 3px;
    }
    
    .login-container .btn-login {
        padding: 0.65rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        margin-top: 0.25rem;
    }
    
    .login-container .btn-login i {
        font-size: 0.85rem;
    }
    
    .login-footer {
        margin-top: 0.8rem;
        padding-top: 0.6rem;
    }
    
    .login-footer p {
        font-size: 0.75rem;
    }
}

/* --- EXTRA SMALL PHONES (below 380px) --- */
@media (max-width: 380px) {
    .login-page {
        padding: 0.5rem;
    }
    
    .login-container {
        padding: 1.2rem 0.8rem 1rem;
        border-radius: 0.8rem;
    }
    
    .login-header .login-icon-wrapper {
        width: 42px;
        height: 42px;
    }
    
    .login-header .login-icon-wrapper i {
        font-size: 1rem;
    }
    
    .login-header h2 {
        font-size: 1.1rem;
    }
    
    .login-header p {
        font-size: 0.7rem;
    }
    
    .login-container .input-group input {
        padding: 0.55rem 0.7rem 0.55rem 2.2rem;
        font-size: 0.85rem;
        border-radius: 0.4rem;
    }
    
    .login-container .input-group .input-icon {
        left: 8px;
        font-size: 0.75rem;
    }
    
    .login-container .input-group .toggle-password {
        right: 6px;
        font-size: 0.75rem;
        padding: 2px;
    }
    
    .login-container .btn-login {
        padding: 0.55rem;
        font-size: 0.85rem;
        border-radius: 0.4rem;
    }
    
    .login-footer p {
        font-size: 0.7rem;
    }
}

/* ============================================================
   14. ABOUT PAGE
   ============================================================ */

.about-hero {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-contact {
    background: white;
    border-radius: 1.2rem;
    padding: 2rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(30, 58, 138, 0.08);
    border-color: #3b82f6;
}

.about-contact h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.about-contact-item:last-child {
    border-bottom: none;
}

.about-contact-item i {
    width: 1.8rem;
    color: #1e3a8a;
    font-size: 1.2rem;
    text-align: center;
}

.about-contact-item strong {
    color: #0f172a;
    margin-right: 0.3rem;
}

.about-contact-item span {
    color: #475569;
}

/* ============================================================
   15. PAGE HEADERS (Shared)
   ============================================================ */

.announcements-header,
.events-header,
.officials-header,
.activities-header {
    margin-bottom: 2rem;
}

.announcements-header h2,
.events-header h2,
.officials-header h2,
.activities-header h2 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.announcements-header p,
.events-header p,
.officials-header p,
.activities-header p {
    color: var(--gray-dark);
    font-size: 1.05rem;
}

.activities-header {
    text-align: center;
}

.activities-header h2 {
    font-size: 2.2rem;
}

/* --- NO RESULTS --- */

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--gray-dark);
    display: none;
}

.no-results i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* ============================================================
   16. RESPONSIVE MEDIA QUERIES (GLOBAL)
   ============================================================ */

/* --- TABLET (max-width: 992px) --- */
@media (max-width: 992px) {
    .main-content {
        padding: 1.5rem 4% !important;
    }
    .nav-container {
        padding: 0.8rem 4%;
    }
    .hero {
        padding: 3.5rem 4%;
        min-height: 320px;
        border-radius: 1.5rem;
    }
    .hero::before {
        border-radius: 1.5rem;
    }
    .footer-container {
        padding: 0 4%;
    }
    .hero-full {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }
    .hero-full .hero-content h1 {
        font-size: 2.6rem;
    }
    .hero-full .hero-content p {
        font-size: 1.1rem;
    }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {
    /* NAVIGATION */
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 0.8rem;
        background: rgba(30, 58, 138, 0.95);
        border-radius: 1rem;
        padding: 0.5rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu li a {
        padding: 0.75rem 1.5rem;
        width: 100%;
        justify-content: center;
        border-radius: 0;
        font-size: 0.95rem;
    }
    .nav-menu li a:hover {
        background: rgba(255,255,255,0.15);
    }

    /* LAYOUT */
    .main-content {
        padding: 1rem 3% !important;
    }
    .hero {
        padding: 2.5rem 3%;
        min-height: 280px;
        border-radius: 1.2rem;
    }
    .hero::before {
        border-radius: 1.2rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .info-card {
        padding: 1.25rem;
        min-height: 150px;
    }
    .info-card h3 {
        font-size: 1.1rem;
    }
    .official-photo {
        width: 80px;
        height: 80px;
    }
    .stats {
        flex-direction: column;
    }

    /* CALENDAR */
    .calendar-grid {
        font-size: 0.7rem;
        grid-template-columns: repeat(7, 1fr);
        border-radius: 0.75rem;
        overflow-x: auto;
    }
    .calendar-day-name {
        padding: 0.4rem 0.2rem;
        font-size: 0.65rem;
    }
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem 0.1rem;
        font-size: 0.7rem;
    }
    .day-number {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    .event-marker {
        font-size: 0.5rem;
        padding: 0.1rem 0.2rem;
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
        border-radius: 0.3rem;
        margin-bottom: 0.1rem;
    }
    .calendar-header h2 {
        font-size: 1rem;
    }
    .calendar-nav {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    /* FOOTER */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 3%;
    }

    /* HERO FULL */
    .hero-full {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
        margin-bottom: 1.5rem;
    }
    .hero-full .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-full .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 90%;
    }
    .hero-full .btn-primary,
    .hero-full .btn-outline-light {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    .hero-full .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* ANNOUNCEMENTS & EVENTS */
    .announcement-card,
    .event-card {
        padding: 1.2rem 1.2rem;
    }
    .announcement-card .announcement-title,
    .event-card .event-title {
        font-size: 1.1rem;
        padding: 0.2rem 0.8rem;
    }
    .announcement-card .announcement-meta,
    .event-card .event-meta {
        gap: 0.7rem;
    }
    .announcement-card .announcement-meta-item,
    .event-card .event-meta-item {
        font-size: 0.85rem;
    }
    .announcement-card .announcement-content {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    .event-card .event-description {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    .announcement-card .announcement-footer,
    .event-card .event-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .view-toggle .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
    .view-toggle {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-simple {
        max-width: 100%;
    }
    .search-simple input {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* ABOUT */
    .about-hero h1 {
        font-size: 1.8rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-contact {
        padding: 1.5rem 1.2rem;
    }

    /* PROFILE */
    .profile-card {
        padding: 2rem 1.5rem;
    }
    .profile-title {
        font-size: 1.7rem;
    }
    .profile-photo {
        width: 110px;
        height: 110px;
    }

    /* MANAGE GRID */
    .manage-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn, .btn-primary, .btn-outline-light {
        width: 100%;
        text-align: center;
    }

    .calendar-day {
        min-height: 50px;
        padding: 0.15rem 0.1rem;
    }
    .day-number {
        font-size: 0.6rem;
    }
    .event-marker {
        font-size: 0.45rem;
        padding: 0.05rem 0.15rem;
        line-height: 1.1;
    }
    .calendar-day-name {
        font-size: 0.55rem;
        padding: 0.2rem 0;
    }

    .main-content {
        padding: 0.75rem 2% !important;
    }
    .nav-container {
        padding: 0.6rem 2%;
    }
    .hero {
        padding: 2rem 2%;
        min-height: 240px;
        border-radius: 1rem;
    }
    .hero::before {
        border-radius: 1rem;
    }
    .info-card {
        padding: 1rem;
        min-height: 130px;
    }
    .info-card h3 {
        font-size: 1rem;
    }
    .footer-container {
        padding: 0 2%;
    }
    .official-photo {
        width: 70px;
        height: 70px;
    }

    .hero-full {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }
    .hero-full .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-full .hero-content p {
        font-size: 0.9rem;
    }
    .hero-full .btn-primary,
    .hero-full .btn-outline-light {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
    }

    .activity-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }
    .activity-icon {
        font-size: 2.2rem;
    }
    .activity-card h3 {
        font-size: 1rem;
    }

    /* PROFILE */
    .profile-card {
        padding: 1.5rem 1.2rem;
        border-radius: 1rem;
    }
    .profile-title {
        font-size: 1.5rem;
    }
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    .profile-form .form-group input,
    .profile-form .form-group select {
        padding: 0.65rem 0.9rem;
        font-size: 0.95rem;
    }
    .btn-update-profile {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* --- EXTRA SMALL (max-width: 400px) --- */
@media (max-width: 400px) {
    .profile-card {
        padding: 1.2rem 0.8rem;
    }
    .profile-title {
        font-size: 1.3rem;
    }
    .profile-photo {
        width: 80px;
        height: 80px;
    }
    .profile-form .form-group {
        margin-bottom: 0.9rem;
    }
    .profile-form .form-group label {
        font-size: 0.8rem;
    }
    .profile-form .form-group input,
    .profile-form .form-group select {
        padding: 0.55rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 0.6rem;
    }
    .btn-update-profile {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 0.6rem;
    }
}

/* ============================================================
   17. PRINT STYLES (Optional)
   ============================================================ */

@media print {
    .navbar,
    .footer,
    .mobile-menu-btn,
    .no-print {
        display: none !important;
    }
    body {
        background: white;
    }
    .main-content {
        padding: 1rem !important;
    }
}