/* Add this at the top of your CSS file */
* {
    -webkit-tap-highlight-color: transparent; /* Removes blue box on mobile tap */
}

/* =========================================
   1. VARIABLES & BASE
   ========================================= */
:root {
    --text-navy: #1F1F3D;
    --brand-red: #d32f2f;
    --brand-red-dark: #b71c1c;
    --bg-gray: #f4f6f8;
    
    /* Glass Effect Vars */
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding-top: 120px; 
}

/* --- ADD THIS BLOCK --- */
#header {
    font-family: 'Roboto', sans-serif;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.notice-hero-section {
    position: relative;
    width: 100%;
    min-height: 650px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; 
    overflow: hidden;
    background-color: #000;
    box-sizing: border-box;
}

.notice-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.notice-hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(31, 31, 61, 0.85) 100%);
    z-index: 1;
}

.notice-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 50px;
}

/* --- Left Content --- */
.notice-left { 
    flex: 1; 
    max-width: 600px; 
    color: #fff; 
}

.glass-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    color: #fff; margin-bottom: 20px;
}

.pulse-dot {
    width: 8px; height: 8px; background: #00e676;
    border-radius: 50%; box-shadow: 0 0 10px #00e676;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.notice-hero-title {
    font-size: 3rem; 
    font-weight: 700; line-height: 1.1; margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.text-gradient {
    background: linear-gradient(to right, #64b5f6, #fff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.notice-hero-desc {
    font-size: 1rem; color: #d1d5db; line-height: 1.6; margin-bottom: 25px; max-width: 90%;
}

/* --- Trust Indicators --- */
.hero-features-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px; 
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}
.feature-item i { color: #00e676; font-size: 1.2rem; }

/* --- Action Group (Stats + Button) --- */
.hero-actions-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

/* Stats Row */
.glass-stats-row {
    display: flex; 
    align-items: center; 
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px; 
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}
.g-stat { display: flex; flex-direction: column; align-items: center; }
.g-stat strong { font-size: 1.2rem; color: #fff; }
.g-stat .text-green { color: #00e676; }
.g-stat span { font-size: 0.7rem; color: #ccc; text-transform: uppercase; }
.g-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }

/* Notice Button */
.btn-glass-hero {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px; 
    border-radius: 16px;
    font-size: 0.95rem; 
    font-weight: 500; 
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    text-decoration: none; 
    transition: all 0.3s ease;
}

.btn-glass-hero:hover {
    background: #fff; 
    color: #1F1F3D;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* --- Right Content (Form Only) --- */
.notice-right { 
    flex: 1; 
    display: flex; 
    justify-content: flex-end; 
}

.hero-form-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    width: 100%; 
    max-width: 400px; 
    padding: 30px; 
    border-radius: 20px;
}

.glass-header h3 { font-size: 1.3rem; color: #fff; margin: 0 0 5px 0; text-align: center; font-weight: 600; }
.glass-header i { color: #ff4b2b; margin-right: 8px; }
.glass-header p { text-align: center; color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 20px; }
.glass-header p strong { color: #fff; }

.hero-material-form { display: flex; flex-direction: column; gap: 15px; }
.hero-form-row { display: flex; gap: 15px; }
.glass-input-group { position: relative; width: 100%; }

/* Inputs */
.g-input, .g-select {
    width: 100%; 
    padding: 12px 15px 12px 40px;
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; 
    outline: none; transition: 0.3s;
    font-size: 0.9rem; color: #fff;
    -webkit-appearance: none; appearance: none;
    box-sizing: border-box;
}
.g-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.g-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.6); font-size: 1.1rem; pointer-events: none; }
.arrow-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.6); pointer-events: none; }

.g-input:focus, .g-select:focus { background: rgba(0, 0, 0, 0.5); border-color: #ff4b2b; }
.g-input:focus ~ .g-icon { color: #ff4b2b; }

.btn-glass-submit {
    margin-top: 5px; background: #fff; color: #1F1F3D; 
    padding: 12px; border: none; border-radius: 10px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    text-transform: uppercase; font-size: 0.85rem;
}
.btn-glass-submit:hover { background: #f0f0f0; transform: translateY(-2px); }

/* Responsive Hero */
@media (max-width: 900px) {
    .notice-hero-section { min-height: auto; padding: 60px 20px; }
    .notice-container { flex-direction: column; align-items: center; gap: 40px; }
    .notice-left { text-align: center; max-width: 100%; padding-top: 0; }
    .hero-features-row { justify-content: center; flex-wrap: wrap; }
    .hero-actions-group { margin: 0 auto; }
    
    .notice-hero-title { font-size: 2.2rem; }
    .glass-badge { margin: 0 auto 20px; }
    
    .notice-right { align-items: center; width: 100%; justify-content: center; }
    .hero-form-glass { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero-form-row { flex-direction: column; }
    .notice-hero-desc { margin-left: auto; margin-right: auto; }
}

/* =========================================
   3. DASHBOARD SECTION (FULL WIDTH DESKTOP)
   ========================================= */
.dashboard-section {
    position: relative;
    padding: 40px 0; 
    background-color: var(--bg-gray);
    width: 100%;
}

.dashboard-container-fluid {
    width: 100%;
    /* Removed max-width to make it full width */
    margin: 0 auto;
    padding: 0 30px; 
    display: flex;
    gap: 30px; 
    align-items: flex-start;
    box-sizing: border-box;
}

/* --- LEFT SIDEBAR (FILTERS) --- */
.dash-left {
    flex: 0 0 240px; 
    position: -webkit-sticky; position: sticky;
    top: 175px;
    max-height: calc(100vh - 185px);
    overflow-y: auto;
    z-index: 9;
}
.dash-left::-webkit-scrollbar { width: 4px; }
.dash-left::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.filter-box {
    background: #fff; padding: 20px;
    border-radius: 10px; border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.filter-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px; font-weight: 700; color: #1F1F3D;
    font-size: 1.1rem; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.filter-label {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    color: #888; font-weight: 600; margin-bottom: 6px; margin-top: 18px; 
}
.filter-label:first-of-type { margin-top: 5px; }

.dropdown-wrapper { position: relative; width: 100%; }
.custom-dropdown {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 6px;
    background: #fff; font-size: 0.9rem; color: #333;
    appearance: none; cursor: pointer; transition: 0.3s;
}
.custom-dropdown:focus { border-color: var(--brand-red); outline: none; }
.dropdown-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }

.btn-reset-filters {
    margin-top: 25px; width: 100%; padding: 10px;
    background: #f1f1f1; border: 1px solid #ddd;
    color: #555; border-radius: 6px; font-size: 0.85rem;
    cursor: pointer; transition: 0.2s;
}
.btn-reset-filters:hover { background: #e0e0e0; color: #333; }


/* --- MIDDLE: SEARCH + LIST --- */
.dash-middle { flex: 1; min-width: 0; }

.search-bar-wrapper {
    position: -webkit-sticky; position: sticky;
    top: 175px;
    z-index: 20; 
    
    display: flex; align-items: center;
    background: #fff; border-radius: 10px;
    padding: 8px; border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    box-shadow: 0 -30px 0 var(--bg-gray), 0 4px 15px rgba(0,0,0,0.05);
    transform: translateZ(0); 
    will-change: transform;
}
.search-icon { padding: 0 15px; color: #888; font-size: 1.2rem; }
.main-search-input { flex: 1; border: none; padding: 10px 0; font-size: 1rem; outline: none; color: #333; }
.btn-search-action { background: var(--text-navy); color: #fff; border: none; padding: 10px 30px; border-radius: 6px; cursor: pointer; }

.notice-header-row {
    position: -webkit-sticky; position: sticky;
    top: 235px; /* Adjust based on search bar height */
    z-index: 15;
    
    display: flex; align-items: center;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.85rem; font-weight: 600; color: #555; text-transform: uppercase;
    box-shadow: 0 -25px 0 var(--bg-gray), 0 2px 5px rgba(0,0,0,0.05);
    transform: translateZ(0);
}

.notice-list-container {
    background: #fff;
    border-radius: 0 0 10px 10px;
    border: 1px solid #e0e0e0;
    border-top: none;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.notice-row {
    display: flex; align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.notice-row:hover { background-color: #fafafa; }
.notice-row:last-child { border-bottom: none; }

.col-15 { width: 15%; }
.col-20 { width: 20%; }
.col-50 { width: 50%; }
.text-center { text-align: center; justify-content: center; display: flex; }

.date-badge {
    background: #eef2ff; color: var(--text-navy);
    width: 45px; height: 45px; border-radius: 6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid #e0e7ff;
}
.date-badge .dd { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.date-badge .mm { font-size: 0.6rem; font-weight: 600; margin-top: 1px; }

.notice-link { text-decoration: none; color: #333; font-weight: 600; font-size: 0.95rem; display: block; line-height: 1.4; }
.notice-link:hover { color: var(--brand-red); }

/* Mobile Meta Data (Hidden on Desktop) */
.mobile-meta { 
    display: none; 
    font-size: 0.75rem; 
    color: #888; 
    margin-top: 5px; 
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mobile-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mobile-meta i { font-size: 0.8rem; color: #999; }

.cat-pill {
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    background: #f3f3f3; color: #555; border: 1px solid #e0e0e0;
}

.view-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    color: var(--text-navy); font-size: 1.1rem; text-decoration: none;
}
.view-icon-btn:hover { background: #e0f2f1; color: #00695c; }

.no-results { justify-content: center; color: #888; padding: 30px; }
.dash-pagination { margin-top: 20px; display: flex; justify-content: center; gap: 8px; }
.dash-pagination button, .dash-pagination span { width: 35px; height: 35px; border: 1px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; color: #555; }
.dash-pagination .current { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }

/* --- RIGHT SIDEBAR (WHATSAPP) --- */
.dash-right { 
    flex: 0 0 350px; 
    position: -webkit-sticky; position: sticky; 
    top: 175px;
    max-height: calc(100vh - 185px);
    overflow-y: auto;
    z-index: 9;
}
.dash-right::-webkit-scrollbar { width: 0; }

.wa-panel { 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    overflow: hidden; 
    border: none;
}

.wa-head { 
    background: #128C7E; 
    padding: 16px 20px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: #fff; 
}
.wa-head i { font-size: 1.6rem; }
.wa-head h4 { margin: 0; font-size: 1.05rem; font-weight: 500; letter-spacing: 0.3px; }

.wa-list { padding: 0; display: flex; flex-direction: column; }

.wa-card { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
    padding: 15px 20px; 
    border-bottom: 1px solid #f0f2f5; 
    transition: background 0.2s ease;
    cursor: pointer;
}
.wa-card:last-child { border-bottom: none; }
.wa-card:hover { background: #f5f6f6; }

.wa-avatar-box {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2px;
}
.wa-avatar-img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.wa-info { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-width: 0; }
.wa-group-name { 
    display: block; 
    color: #111b21; 
    font-size: 1rem; 
    font-weight: 500; 
    margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wa-msg-preview { 
    display: flex; align-items: center; gap: 4px;
    color: #667781; 
    font-size: 0.8rem; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.wa-msg-preview i { font-size: 0.9rem; color: #888; }

.wa-action-btn {
    background: #25D366;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
    border: none; cursor: pointer; transition: transform 0.2s;
    white-space: nowrap;
}
.wa-card:hover .wa-action-btn { transform: scale(1.05); }


/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */

@media (max-width: 1200px) {
    /* Tablet & Small Desktop: Stack Layout */
    .dashboard-container-fluid {
        flex-direction: column;
        padding: 0 20px;
    }
    
    /* Make Filters Horizontal Grid */
    .dash-left {
        width: 100%; flex: none;
        position: static; max-height: none; overflow: visible;
        margin-bottom: 20px;
        z-index: 10;
    }
    .filter-box {
        display: grid; 
        grid-template-columns: repeat(4, 1fr); /* 4 Columns */
        gap: 15px; 
        align-items: end;
    }
    .filter-header { grid-column: 1 / -1; margin-bottom: 0; border: none; padding-bottom: 0; }
    .filter-label { margin-top: 5px; }
    .btn-reset-filters { margin-top: 0; height: 43px; }

    /* Middle Content Full Width */
    .dash-middle { width: 100%; flex: none; }
    .search-bar-wrapper { position: static; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .notice-header-row { position: static; box-shadow: none; margin-top: 20px; }

    /* Right Sidebar to Bottom */
    .dash-right {
        width: 100%; flex: none;
        position: static; max-height: none; overflow: visible;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile Layout */
    
    /* Filter Stack */
    .filter-box {
        grid-template-columns: 1fr 1fr; /* 2 Columns */
    }
    .filter-header { display: none; } /* Save space */
    .btn-reset-filters { grid-column: 1 / -1; }

    /* Search Bar */
    .search-bar-wrapper { padding: 5px; }
    .btn-search-action { padding: 10px 15px; }

    /* Notice List - CARD VIEW */
    .notice-header-row { display: none; } /* Hide Header */
    
    .notice-row {
        flex-wrap: wrap; /* Allow wrapping */
        align-items: flex-start;
        padding: 15px;
        position: relative;
    }
    
    /* Hide specific desktop columns */
    .col-15, .col-20 { display: none; }
    
    /* Make Title Area take full width */
    .col-50 { width: 100%; padding-right: 40px; } /* Leave space for view icon */
    
    .notice-link { font-size: 1rem; margin-bottom: 6px; }

    /* Show Mobile Meta */
    .mobile-meta { display: flex; }
    
    /* View Icon Absolute Position */
    .col-15.text-center { 
        display: flex; position: absolute; 
        right: 15px; top: 15px; width: auto; 
    }
    
    /* Hero Adjustments */
    .notice-hero-section { padding-top: 60px; }
    .hero-form-glass { padding: 20px; }
}

@media (max-width: 480px) {
    .filter-box { grid-template-columns: 1fr; } /* 1 Column Filters */
    .notice-hero-title { font-size: 2rem; }
    
    /* Force Row on Mobile for Stats */
    .glass-stats-row { 
        flex-direction: row !important; 
        gap: 0; 
        justify-content: space-evenly;
    }
    .g-divider { 
        display: block !important; 
        height: 20px; 
        margin: 0 10px;
    }
    .g-stat strong { font-size: 1rem; }
    .g-stat span { font-size: 0.65rem; }
}


/* =========================================
   4. MODALS
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
    padding: 20px; /* Padding for mobile */
    box-sizing: border-box;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-box {
    background: #ffffff;
    width: 100%; /* Full width on mobile constraint */
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.95); transition: transform 0.3s ease;
    max-height: 85vh; /* Allow scrolling within modal */
    display: flex; flex-direction: column;
}

.modal-overlay.active .modal-box { transform: scale(1); }

.modal-header { padding: 20px; border-bottom: 1px solid #f0f0f0; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-footer { padding: 15px 20px; background: #f9fafb; border-top: 1px solid #eee; display: flex; gap: 10px; }

/* Modal Content Styles */
.modal-close-btn {
    position: absolute; top: 15px; right: 15px;
    background: #f3f4f6; border: none; width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; color: #555;
}
.modal-title { font-size: 1.3rem; margin: 0 0 5px 0; line-height: 1.3; }
.modal-meta-row { font-size: 0.85rem; color: #666; display: flex; align-items: center; gap: 5px; }

.btn-modal-action {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 15px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; margin-top: 10px; margin-right: 10px;
}
.btn-visit { background: var(--text-navy); color: #fff; }
.btn-pdf { background: #fff; color: var(--brand-red); border: 1px solid var(--brand-red); }

.share-action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border: 1px solid #ddd; background: #fff; border-radius: 8px;
    font-weight: 600; color: #555; cursor: pointer;
}

/* WhatsApp Modal */
.wa-modal-box { text-align: center; max-width: 400px; align-items: center; }
.wa-modal-header { background: linear-gradient(135deg, #128C7E, #075E54); padding: 30px 20px 60px; width: 100%; box-sizing: border-box; position: relative; color: #fff; }
.wa-modal-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.2); border: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 1.2rem; cursor: pointer; }
.wa-modal-avatar-container { margin-top: -50px; margin-bottom: 15px; position: relative; z-index: 5; }
.wa-modal-avatar { width: 85px; height: 85px; border-radius: 50%; border: 5px solid #fff; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); object-fit: contain; }
.wa-modal-title { padding: 0 20px; font-size: 1.2rem; margin-bottom: 10px; }
.wa-modal-desc { padding: 0 25px; font-size: 0.9rem; color: #666; margin-bottom: 25px; line-height: 1.5; }
.btn-wa-join-large {
    background: #25D366; color: #fff; text-decoration: none;
    padding: 10px 35px; border-radius: 50px; font-weight: 600;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); display: inline-block; margin-bottom: 30px;
}


/* =========================================
   FIX: SCROLL OFFSET & FLICKERING
   ========================================= */

html {
    scroll-behavior: smooth; /* Ensures the jump is smooth, reducing visual flickering */
}

/* DESKTOP OFFSET */
/* Header (approx 120px) + Ticker (35px) + 20px Extra Space */
#notice-board {
    scroll-margin-top: 175px; 
}

/* MOBILE OFFSET */
@media (max-width: 900px) {
    /* Mobile Header (approx 70px) + Ticker (35px) + 15px Extra Space */
    #notice-board {
        scroll-margin-top: 95px;
    }
}

/* Prevent Ticker/Header Rendering Glitches (Flickering) */
#header {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Responsive */
@media (max-width: 768px) {
    body.has-ticker { padding-top: 110px; } 
}

/* =========================================
   FIX: Remove Space Between Search, Ticker & Hero
   ========================================= */

@media (max-width: 900px) {
    /* 1. PUSH CONTENT DOWN EXACTLY (NO GAP) */
    body.has-ticker {
        /* Header (110px) + Ticker (35px) = 145px */
        /* If you see a WHITE GAP between Ticker and Hero image, DECREASE this (e.g., 140px) */
        padding-top: 145px !important;
    }

    /* 2. HERO SECTION ADJUSTMENT */
    .notice-hero-section {
        /* Reduce internal padding so text doesn't look like it has a gap */
        padding-top: 20px !important; 
        /* Ensure background starts at the very top of the section */
        background-position: center top; 
    }

    /* Fix scroll position for links */
    #notice-board {
        scroll-margin-top: 145px;
    }
}

@media (max-width: 768px) {
    body.has-ticker {
        padding-top: 140px !important; /* 105px + 35px = 140px */
    }
    
    #notice-board {
        scroll-margin-top: 140px;
    }
}

/* =========================================
   6. ADVANCED FAQ SECTION (Themed)
   ========================================= */

.faq-section {
    position: relative;
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
    padding: 80px 0;
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
}

/* Subtle decorative blur blob (Matches hero vibe) */
.faq-bg-blur {
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.faq-container { 
    position: relative; 
    z-index: 1;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.faq-header-box { 
    text-align: center; 
    margin-bottom: 50px; 
    max-width: 700px;
    margin-left: auto; margin-right: auto;
}
.faq-header-box h2 { 
    font-size: 2.2rem; 
    color: var(--text-navy); 
    margin: 0 0 15px; 
    font-weight: 700;
}
.faq-header-box p { 
    font-size: 1rem;
    color: #666; 
    line-height: 1.6;
}

/* --- GRID LAYOUT --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns Desktop */
    gap: 30px;
}

/* --- CARD DESIGN --- */
.faq-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex; flex-direction: column;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: rgba(211, 47, 47, 0.2); /* Brand Red border on hover */
}

/* Trigger Button */
.faq-trigger {
    width: 100%; 
    text-align: left;
    background: #fff; 
    border: none;
    padding: 25px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    cursor: pointer;
    gap: 15px;
}

.q-text {
    font-size: 1.05rem; 
    font-weight: 600; 
    color: var(--text-navy);
    line-height: 1.4;
    transition: color 0.3s;
}

.icon-box {
    width: 32px; height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #555;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Content Area */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.faq-inner {
    padding: 0 25px 25px;
    font-size: 0.95rem; 
    color: #555; 
    line-height: 1.6;
    border-top: 1px solid transparent;
    transition: border-color 0.3s;
}

/* --- ACTIVE STATE --- */
.faq-card.active {
    border-color: var(--brand-red); /* Active Card Border */
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.08); /* Red tint shadow */
}

.faq-card.active .q-text {
    color: var(--brand-red);
}

.faq-card.active .icon-box {
    background: var(--brand-red);
    color: #fff;
    transform: rotate(45deg); /* Rotates plus to X */
}

.faq-card.active .faq-inner {
    border-top: 1px dashed #eee; /* Separator line appears */
}

/* =========================================
   MOBILE RESPONSIVE (Optimized)
   ========================================= */

@media (max-width: 1024px) {
    /* Tablet: 2 Columns */
    .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 650px) {
    /* Mobile: 1 Column List */
    .faq-grid { grid-template-columns: 1fr; gap: 15px; }

    .faq-section { padding: 50px 0; }
    
    .faq-header-box h2 { font-size: 1.6rem; }
    .faq-header-box p { font-size: 0.9rem; padding: 0 10px; }

    /* Compact Mobile Card */
    .faq-card { border-radius: 12px; }
    
    .faq-trigger { padding: 18px 20px; }
    
    .q-text { font-size: 0.95rem; } /* Smaller text for mobile */
    
    .icon-box { width: 28px; height: 28px; font-size: 0.9rem; }

    .faq-inner { 
        padding: 0 20px 20px; 
        font-size: 0.9rem; /* Smaller body text */
    }
}

/* =========================================
   MOBILE SEARCH BAR FIX
   ========================================= */

@media (max-width: 768px) {
    .search-bar-wrapper {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping */
        align-items: center;
        width: 100%;
        box-sizing: border-box; /* Ensure padding doesn't add to width */
        padding: 5px 10px; /* Adjust padding for mobile */
        gap: 8px; /* Space between elements */
    }

    /* 1. The Magic Fix: Allow input to shrink below placeholder width */
    .main-search-input {
        min-width: 0; 
        flex: 1; /* Take remaining space */
        width: 100%; /* Ensure it fills the flex space */
        font-size: 0.9rem; /* Prevent iOS zoom */
    }
    
    /* Optional: Ellipsis for placeholder text if it's too long */
    .main-search-input::placeholder {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    /* 2. Fix the Search Button sizing */
    .btn-search-action {
        flex-shrink: 0; /* Prevent button from being squashed */
        padding: 8px 16px; /* Compact padding */
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* 3. Adjust Icon Spacing */
    .search-icon {
        padding: 0;
        margin-left: 5px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
}

/* Specific fix for very narrow "Curve Display" phones (approx 360px-400px width) */
@media (max-width: 400px) {
    .btn-search-action {
        padding: 8px 12px; /* Even smaller padding */
    }
    
    .notice-hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* =========================================
   WHATSAPP WIDGET STYLES (FINAL)
   ========================================= */

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Segoe UI', sans-serif;
}

/* --- Launcher Button --- */
.wa-launcher {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-launcher:hover {
    transform: scale(1.1);
}

/* Launcher State Changes */
.wa-launcher.active i { display: none; }
.wa-launcher.active::after {
    content: '\eb98'; /* RemixIcon 'close-line' code */
    font-family: 'remixicon';
    font-size: 24px;
}

/* Pulse Animation */
.wa-pulse {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulseRing 2s infinite;
    opacity: 0;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --- Chat Box Container --- */
.wa-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.wa-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.wa-header {
    background: #075e54;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.wa-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === LOGO & DOT FIX === */
.wa-avatar-group {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0; 
}

.wa-img-wrap {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    overflow: hidden; /* Keeps the logo clipped inside */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-avatar-img {
    width: 80% !important;
    height: 80% !important;
    object-fit: contain;
}

.online-dot {
    position: absolute;
    bottom: 0px; 
    right: 0px;
    width: 12px; 
    height: 12px;
    background: #25d366;
    border-radius: 50%;
    border: 2px solid #075e54; /* Dark border blends with header */
    z-index: 5;
}
/* ===================== */

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-name { font-weight: 700; font-size: 1rem; }
.wa-status { font-size: 0.75rem; opacity: 0.8; }

.wa-close {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
}
.wa-close:hover { opacity: 1; }

/* Body */
.wa-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.wa-msg-received {
    background: #fff;
    padding: 10px 15px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    max-width: 85%;
    position: relative;
    font-size: 0.9rem;
    color: #111;
    line-height: 1.4;
}

.wa-msg-received::before {
    content: '';
    position: absolute;
    top: 0; left: -10px;
    width: 0; height: 0;
    border-top: 10px solid #fff;
    border-left: 10px solid transparent;
}

.wa-msg-name {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 4px;
    display: block;
}

.wa-time {
    font-size: 0.65rem;
    color: #999;
    float: right;
    margin-top: 5px;
    margin-left: 10px;
}

/* Footer */
.wa-footer {
    padding: 15px;
    background: #f0f0f0;
    text-align: center;
}

.wa-btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.2s;
}

.wa-btn-send:hover {
    background: #1ebc57;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    .wa-chat-box {
        width: 300px;
        right: -20px;
        bottom: 70px;
    }
}