/* ================================================================
   AP Coastal Security – AP Police Portal Style
   Colours: Teal (#1f9aa7) + White + Dark Sidebar
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@400;600;700&display=swap');

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

:root {
    --teal:        #1ca4b3;
    --teal-dark:   #18838f;
    --teal-darker: #0f6470;
    --navy:        #1a2a45;
    --gold:        #d4a53a;
    --gold-dark:   #b8891c;
    --gray:        #7a8a99;
    --danger:      #dc3545;
    --sidebar:     #1e2d3d;
    --white:       #ffffff;
    --light:       #f5f7fa;
    --border:      #e0e0e0;
    --text:        #333333;
    --text-light:  #666666;
    --red:         #c0392b;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--light);
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ================================================================
   HEADER BAR
   ================================================================ */
.header-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Left icon buttons */
.header-icons { display: flex; gap: 6px; }
.header-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    text-decoration: none;
}
.header-icon-btn:hover { background: var(--teal-dark); }

/* Centre logo + title */
.header-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}
.header-logo-img {
    height: 110px;
    width:  110px;
    object-fit: contain;
}
.ap-police-logo {
    height: 85px;
    width:  85px;
}
.logo-placeholder-circle {
    height: 110px;
    width:  110px;
    border: 3px solid var(--teal);
    border-radius: 50%;
    background: #e8f6f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--teal-darker);
    text-align: center;
    padding: 5px;
    line-height: 1.3;
}
.header-title-area { text-align: center; }
.header-title-area .sub-title {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
    display: block;
}
.header-title-area h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
}
.header-title-area .tagline {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Right emblem */
.header-emblem {
    width: 80px;
    height: 80px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e8f6f5;
    flex-shrink: 0;
}
.header-emblem img { width: 100%; height: 100%; object-fit: contain; }
.header-emblem-placeholder {
    font-size: 9px;
    color: var(--teal-darker);
    text-align: center;
    font-weight: 700;
    line-height: 1.4;
    padding: 5px;
}

/* Right accessibility */
.access-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-dark);
    flex-shrink: 0;
}
.access-controls .sep { color: #ccc; }
.access-btn {
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 3px;
    border: 1px solid var(--teal);
    color: var(--teal-dark);
    transition: all 0.2s;
    background: transparent;
    font-size: 13px;
}
.access-btn:hover { background: var(--teal); color: white; }

/* Clock strip */
.clock-bar {
    background: var(--teal-darker);
    color: rgba(255,255,255,0.9);
    text-align: right;
    font-size: 11px;
    padding: 4px 20px;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
nav.main-nav {
    background: var(--teal);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
nav.main-nav .nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 10px;
}
nav.main-nav ul { display: flex; flex-wrap: wrap; flex: 1; justify-content: center; }
nav.main-nav ul li { position: relative; }
nav.main-nav ul li > a {
    display: block;
    color: var(--white);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-right: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
}
nav.main-nav ul li > a:hover,
nav.main-nav ul li > a.active {
    background: rgba(0,0,0,0.18);
    border-bottom: 3px solid var(--white);
}

/* Dropdown */
nav.main-nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--teal-darker);
    min-width: 220px;
    border-top: 2px solid var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
}
nav.main-nav ul li:hover ul.dropdown { display: block; }
nav.main-nav ul li ul.dropdown li > a {
    padding: 10px 18px;
    font-size: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    padding: 10px 15px;
}

/* ================================================================
   PAGE WRAPPER  (left sidebar | main | right social)
   ================================================================ */
.page-wrapper {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 160px);
    margin-top: 4px;
}

/* ---- Left icon sidebar ---- */
.left-sidebar {
    width: 55px;
    background: var(--sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    flex-shrink: 0;
}
.sidebar-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 17px;
    margin-bottom: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}
.sidebar-icon:hover {
    background: var(--teal);
    color: var(--white);
}
/* Tooltip on hover */
.sidebar-icon::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--teal-darker);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 200;
    font-family: 'Open Sans', sans-serif;
}
.sidebar-icon:hover::after { opacity: 1; }

/* ---- Main content ---- */
.main-content-area { flex: 1; overflow: hidden; background: #f0f2f5; }

/* ---- Right social sidebar ---- */
.social-sidebar {
    width: 46px;
    background: #f9f9f9;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    gap: 4px;
    flex-shrink: 0;
}
.social-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
    border-radius: 4px;
    transition: opacity 0.2s, transform 0.2s;
}
.social-btn:hover { opacity: 0.85; transform: scale(1.08); }
.social-btn.fb  { background: #1877F2; }
.social-btn.tw  { background: #111111; }
.social-btn.yt  { background: #FF0000; }
.social-btn.ig  { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.wa  { background: #25D366; }

/* ================================================================
   CONTAINER
   ================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================================================
   BREAKING NEWS TICKER
   ================================================================ */
.news-ticker {
    background: #fffce0;
    border-bottom: 2px solid var(--teal);
    color: var(--text);
    padding: 7px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ticker-label {
    background: var(--teal);
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    padding: 5px 14px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-right: 12px;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    font-weight: 600;
    font-size: 13px;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-content a { color: var(--text); margin-right: 60px; }
.ticker-content a::before { content: "● "; color: var(--teal); }
@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================================================================
   HOME PAGE – top two-column (slider + news panel)
   ================================================================ */
.home-top {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    gap: 12px;
    padding: 12px;
    margin-top: 12px;
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-sizing: border-box;
}
.home-slider-area { flex: 1 1 auto; min-width: 0; border-radius: 6px; overflow: hidden; }
.home-news-panel {
    width: clamp(300px, 28vw, 420px);
    height: clamp(300px, 32vw, 520px);
    flex-shrink: 0;
    border-left: 1px solid var(--border);
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ================================================================
   IMAGE SLIDER
   ================================================================ */
.slider-section { position: relative; overflow: hidden; height: 100%; }
.slider-wrapper  { position: relative; height: clamp(300px, 32vw, 520px); }

.slide {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
}
.slide.active { opacity: 1; }
.slide-bg-1 { background: url('/static/images/slide1.jpg') center/contain no-repeat #ffffff; }
.slide-bg-2 { background: url('/static/images/slide2.jpg') center/contain no-repeat #ffffff; }
.slide-bg-3 { background: url('/static/images/slide3.jpg') center/contain no-repeat #ffffff; }
.slide-bg-4 { background: url('/static/images/slide4.jpg') center/contain no-repeat #ffffff; }

/* Dark overlay so text stays readable over photos */
.slide-bg-1::before, .slide-bg-2::before,
.slide-bg-3::before, .slide-bg-4::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.10) 100%);
    z-index: 0;
}
.slide-watermark, .slide-content { position: relative; z-index: 1; }

.slide-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 220px;
    color: rgba(255,255,255,0.05);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}
.slide-watermark-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    opacity: 0.12;
    filter: brightness(0) invert(1);
}

.slide-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--white);
    padding: 28px 35px 22px;
}
.slide-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.slide-content p { font-size: 13px; color: #ddd; }

.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.55);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
    z-index: 10;
}
.slider-arrow:hover { background: var(--teal); border-color: var(--teal); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

.slider-controls {
    position: absolute;
    bottom: 14px; right: 14px;
    display: flex; gap: 7px; z-index: 10;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.8);
    transition: background 0.3s;
}
.slider-dot.active { background: var(--white); }

/* ================================================================
   NEWS PANEL (right of slider on home page)
   ================================================================ */
.panel-header {
    background: var(--teal);
    color: var(--white);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.panel-header a {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    text-transform: none;
}
.panel-header a:hover { color: white; }

.news-panel-list {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.news-scroll-inner {
    display: flex;
    flex-direction: column;
    animation: newsScrollUp 30s linear infinite;
}
.news-scroll-inner:hover {
    animation-play-state: paused;
}
@keyframes newsScrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.news-panel-item {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: background 0.2s;
}
.news-panel-item:hover { background: #f0faf9; }
.news-panel-item .date-badge {
    background: var(--teal);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    min-width: 34px;
}
.news-panel-item h5 {
    font-size: 12px;
    color: var(--teal-darker);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 3px;
}
.news-panel-item h5 a { color: inherit; }
.news-panel-item h5 a:hover { color: var(--teal); text-decoration: underline; }
.news-panel-item .cat-tag { font-size: 10px; color: var(--text-light); }

.new-badge {
    background: #e74c3c;
    color: white;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    animation: blink 1s step-end infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ================================================================
   HOME – BOTTOM SECTION
   ================================================================ */
.home-bottom { padding: 18px; background: var(--light); }

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.quick-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--teal);
    border-radius: 5px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-card:hover {
    border-top-color: var(--teal-dark);
    box-shadow: 0 3px 12px rgba(60,171,164,0.2);
    transform: translateY(-2px);
}
.quick-card .icon { font-size: 28px; display: block; margin-bottom: 7px; }
.quick-card h4 { font-size: 11px; color: var(--teal-darker); font-weight: 700; text-transform: uppercase; }

.home-two-col {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 16px;
}

/* ================================================================
   SECTION TITLES
   ================================================================ */
.section-title {
    background: var(--teal);
    color: var(--white);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================================================================
   NOTICE BOARD
   ================================================================ */
.notice-board {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
}
.notice-list { height: 260px; overflow: hidden; position: relative; }
.notice-scroll-inner { animation: scroll-up 30s linear infinite; }
.notice-scroll-inner:hover { animation-play-state: paused; }
.notice-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.notice-item .date {
    background: var(--teal);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.notice-item a {
    color: var(--teal-darker);
    font-size: 12px;
    line-height: 1.5;
    transition: color 0.2s;
}
.notice-item a:hover { color: var(--teal); text-decoration: underline; }
@keyframes scroll-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ================================================================
   SIDEBAR WIDGETS
   ================================================================ */
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}
.widget-body { padding: 12px 14px; }

.latest-news-list .news-item {
    padding: 10px 0;
    border-bottom: 1px dotted var(--border);
    display: flex; gap: 10px;
}
.latest-news-list .news-item:last-child { border-bottom: none; }
.latest-news-list .news-thumb {
    width: 52px; height: 44px;
    background: var(--teal);
    border-radius: 3px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 17px;
}
.latest-news-list .news-info h5 {
    font-size: 12px; color: var(--teal-darker);
    font-weight: 600; line-height: 1.4; margin-bottom: 3px;
}
.latest-news-list .news-info span { font-size: 10px; color: var(--text-light); }

.imp-links-list a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border);
    color: var(--teal-darker);
    font-size: 12px; font-weight: 600;
    transition: color 0.2s;
}
.imp-links-list a:last-child { border-bottom: none; }
.imp-links-list a:hover { color: var(--teal); }
.imp-links-list a::before { content: "▶"; font-size: 9px; color: var(--teal); }

.emergency-list li {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}
.emergency-list li:last-child { border-bottom: none; }
.emergency-num { font-weight: 700; color: #e74c3c; font-size: 15px; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(60,171,164,0.15); transform: translateY(-2px); }
.card-img {
    height: 170px; background: var(--teal);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 44px; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px; }
.card-body h4 { color: var(--teal-darker); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.card-body p  { font-size: 12px; color: var(--text-light); line-height: 1.6; }
.card-footer {
    padding: 9px 14px;
    background: var(--light);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin: 10px 15px;
    font-size: 13px;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-danger,
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

/* ================================================================
   INNER PAGE CHROME
   ================================================================ */
.page-content { padding: 22px 20px; background: var(--light); }
.page-header  {
    background: var(--teal);
    color: var(--white);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.page-header h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.page-header p  { font-size: 12px; opacity: 0.85; margin-top: 4px; }

.breadcrumb {
    display: flex; gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb span::before { content: " / "; }

/* Inner pages: main layout */
.inner-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 18px;
}

/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 5px;
}
.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
}
.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(60,171,164,0.15);
}
textarea.form-control,
.form-group textarea { min-height: 100px; resize: vertical; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Open Sans', sans-serif;
}
.btn-primary  { background: var(--teal);    color: white; }
.btn-primary:hover  { background: var(--teal-dark); }
.btn-danger   { background: #e74c3c;        color: white; }
.btn-danger:hover   { background: #c0392b; }
.btn-outline  { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover  { background: var(--teal); color: white; }
.btn-sm { padding: 5px 12px; font-size: 11px; }

/* ================================================================
   TABLES
   ================================================================ */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table thead th {
    background: var(--teal);
    color: var(--white);
    padding: 10px 14px;
    text-align: left; font-weight: 600;
}
table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
table tbody tr:hover { background: #f0faf9; }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar { background: var(--teal-darker); padding: 20px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 15px; text-align: center;
}
.stat-item { color: var(--white); border-right: 1px solid rgba(255,255,255,0.2); padding: 10px; }
.stat-item:last-child { border-right: none; }
.stat-item .stat-num   { font-size: 32px; font-weight: 700; }
.stat-item .stat-label { font-size: 11px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 10px; overflow: hidden;
}
.faq-question {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600; font-size: 13px;
    color: var(--teal-darker);
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: #f0faf9; }
.faq-question.open  { background: var(--teal); color: white; }
.faq-answer {
    display: none;
    padding: 14px 18px;
    font-size: 13px; line-height: 1.7;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }

/* ================================================================
   LOGIN
   ================================================================ */
.login-page-bg {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        -45deg,
        #e8eef4 0px, #e8eef4 10px,
        #f0f4f8 10px, #f0f4f8 20px
    );
    padding: 40px 16px;
}
.login-card {
    display: flex;
    width: 100%;
    max-width: 720px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
}
.login-left {
    background: var(--teal);
    color: var(--white);
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.login-logo {
    width: 90px; height: 90px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}
.login-left h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.login-left p  { font-size: 12px; opacity: 0.85; line-height: 1.6; }
.login-right {
    background: var(--white);
    flex: 1;
    padding: 36px 32px;
}
.login-right h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
    text-align: center;
    background: var(--teal);
    color: var(--white);
    margin: -36px -32px 28px -32px;
    padding: 16px;
    letter-spacing: 1px;
}
.login-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    margin-top: 16px;
}
.login-input-wrap {
    position: relative;
}
.login-input-wrap input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.login-input-wrap input:focus { border-color: var(--teal); }
.login-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 13px;
}
.login-actions { margin-top: 24px; text-align: center; }
.login-btn {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 11px 48px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.login-btn:hover { background: var(--teal-darker); }
.login-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--teal);
    text-align: center;
    padding: 10px;
    border: 1px solid var(--teal);
    border-radius: 4px;
    background: rgba(60,171,164,0.06);
}
.login-back {
    font-size: 13px;
    color: var(--teal);
    text-decoration: none;
}
.login-back:hover { text-decoration: underline; }
.login-alert {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .login-card { flex-direction: column; }
    .login-left { width: 100%; padding: 24px; }
    .login-right { padding: 24px 18px; }
    .login-right h3 { margin: -24px -18px 24px -18px; }
}

/* ================================================================
   ADMIN DASHBOARD
   ================================================================ */
.admin-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 20px;
}
.admin-stat-card {
    background: var(--white);
    border-left: 4px solid var(--teal);
    border-radius: 5px; padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-stat-card .stat-num   { font-size: 28px; font-weight: 700; color: var(--teal-darker); }
.admin-stat-card .stat-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; margin-top: 4px; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: var(--white);
    border-top: 3px solid var(--teal);
}
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    position: relative;
}
.footer-copyright {
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}
.footer-visitor {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--teal);
    border: 2px solid var(--teal);
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
}
.footer-visitor #visitor-display {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--teal);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .home-news-panel { width: 260px; }
    .header-title-area .sub-title { font-size: 26px; }
    .header-title-area h1 { font-size: 26px; }
}

@media (min-width: 1440px) {
    .home-top        { max-width: 96vw; padding: 16px; }
    .slider-wrapper  { height: clamp(420px, 36vw, 580px); }
    .home-news-panel { height: clamp(420px, 36vw, 580px); width: clamp(340px, 30vw, 460px); }
}
@media (min-width: 1920px) {
    .home-top        { max-width: 1700px; }
    .slider-wrapper  { height: 560px; }
    .home-news-panel { height: 560px; width: 440px; }
}

@media (max-width: 860px) {
    .left-sidebar   { display: none; }
    .social-sidebar { display: none; }
    .home-top       { flex-direction: column; gap: 0; padding: 0; max-width:100%; border-radius:0; }
    .home-slider-area { flex: none; width: 100%; border-radius: 0; }
    .slider-wrapper { height: 220px; }
    .home-news-panel{
        display: flex;
        width: 100%;
        height: auto;
        max-height: 320px;
        border-left: none;
        border-top: 2px solid var(--teal);
    }
    .quick-links    { grid-template-columns: repeat(2, 1fr); }
    .home-two-col   { grid-template-columns: 1fr; }
    .inner-layout   { grid-template-columns: 1fr; }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .admin-stats    { grid-template-columns: repeat(2, 1fr); }
    .header-emblem  { display: none; }
    /* Footer fix on mobile */
    .footer-main {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 14px 16px;
    }
    .footer-copyright {
        position: static;
        transform: none;
        white-space: normal;
        order: 2;
    }
    .footer-visitor { order: 1; justify-content: center; }
}

@media (max-width: 860px) {
    .hamburger { display: block; }
    nav.main-nav ul { display: none; flex-direction: column; }
    nav.main-nav ul.open { display: flex; }
    nav.main-nav ul li { position: static; }
    nav.main-nav ul li ul.dropdown {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-left: 4px solid rgba(255,255,255,0.3);
        background: rgba(0,0,0,0.2);
    }
    nav.main-nav ul li ul.dropdown.open { display: block; }
    nav.main-nav ul li:hover ul.dropdown { display: none; }
    nav.main-nav ul li ul.dropdown.open { display: block; }
    .header-icons    { display: none; }
    .access-controls { display: none; }
    .quick-links  { grid-template-columns: repeat(2, 1fr); }
    .admin-stats  { grid-template-columns: 1fr 1fr; }
    .header-title-area h1 { font-size: 20px; letter-spacing: 2px; }
}
