/* ========================================
   TCRSD Main Stylesheet - zzzmain.css
   ======================================== */

/* --- Logo Color Palette --- */
:root {
    --tcrsd-green:      #375a06;
    --tcrsd-blue:       #093270;
    --tcrsd-gray:       #666666;
    --tcrsd-gray-dark:  #2f2f2f;
    --tcrsd-black:      #000000;
    --tcrsd-white:      #FFFFFF;
    --tcrsd-yellow:     #d9a400;
    --tcrsd-red:        #9d2a2a;
    --tcrsd-blue-light: #2a3f9d;
}

/* --- Base Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', Arial, sans-serif;
    color: var(--tcrsd-black);
    line-height: 1.5;
    background-color: #f8f8f8;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--tcrsd-black);
    margin-bottom: 12px;
}

p { margin-bottom: 12px; }

/* --- Links --- */
a {
    color: var(--tcrsd-blue-light);
    text-decoration: underline;
}
a:hover { color: var(--tcrsd-green); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--tcrsd-blue-light);
    color: var(--tcrsd-white);
    border: 2px solid var(--tcrsd-blue-light);
}
.btn-primary:hover {
    background-color: var(--tcrsd-white);
    color: var(--tcrsd-blue-light);
    border-color: var(--tcrsd-blue-light);
}

.btn-secondary {
    background-color: var(--tcrsd-green);
    color: var(--tcrsd-white);
    border: 2px solid var(--tcrsd-green);
}
.btn-secondary:hover {
    background-color: var(--tcrsd-white);
    color: var(--tcrsd-green);
    border-color: var(--tcrsd-green);
}

/* =========================
   HEADER
========================= */
.site-header {
    background-color: #ffffff;
    height: 200px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-container .logo .logo-bg {
    background-color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
}
.header-container .logo .logo-bg img {
    max-height: 180px;
    width: auto;
    display: block;
}

.header-tagline {
    font-family: 'Kalam', cursive;
    font-size: 32px;
    color: #1f2933;
    margin: 0 32px;
    text-align: center;
    flex: 1;
    line-height: 1.25;
}

/* Contact number blocks in header */
.contact-numbers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-block {
    display: block;
    padding: 10px 16px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    color: var(--tcrsd-black);
    border-left: 5px solid;
    text-decoration: none;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-block.office-number    { border-left-color: var(--tcrsd-green);  background-color: #edf5e8; }
.contact-block.fax-number       { border-left-color: var(--tcrsd-yellow); background-color: #fff8e1; }
.contact-block.emergency-number { border-left-color: var(--tcrsd-red);    background-color: #fdeaea; }

.contact-block:hover {
    background-color: #ffffff;
    transform: translateX(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 12px 16px;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-container .logo { margin-bottom: 8px; }
    .header-container .logo .logo-bg img { max-height: 110px; }
    .header-tagline {
        margin: 8px 0 12px;
        font-size: 20px;
        text-align: center;
    }
    .contact-numbers {
        align-items: stretch;
        width: 100%;
    }
    .contact-block {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

/* =========================
   NAVBAR  (fixed centering)
========================= */
.main-nav {
    background: linear-gradient(135deg, #093270 0%, #1a5c08 100%);
    width: 100%;
    font-family: 'News Cycle', sans-serif;
    font-weight: bold;
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px 16px;
}
.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.25s ease;
}
/* Animated X when open */
.hamburger.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.nav-menu {
    display: flex;
    justify-content: center;   /* ← proper centering, no padding hack */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-item > a {
    display: block;
    padding: 12px 28px;
    color: var(--tcrsd-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: background-color 0.25s ease;
}
.nav-item > a:hover { background-color: rgba(255,255,255,0.15); }

/* Dropdown */
.dropdown {
    position: absolute;
    left: 0;
    min-width: 260px;
    background-color: var(--tcrsd-gray);
    list-style: none;
    padding: 12px 0;
    margin: 0;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-radius: 0 0 10px 10px;
    z-index: 999;
}
.nav-item:hover .dropdown { display: block; }

.dropdown li a,
.dropdown li form button.dropdown-link {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: var(--tcrsd-white);
    background: none;
    border: none;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: background-color 0.25s ease;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-weight: inherit;
}
.dropdown li a:hover,
.dropdown li form button.dropdown-link:hover {
    background-color: var(--tcrsd-gray-dark);
}

/* Mobile nav */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0a3d10;
        padding: 0;
        margin: 0;
        list-style: none;
        align-items: flex-start;
    }
    .nav-menu.active { display: flex; }

    .nav-item {
        width: 100%;
        text-align: left;
    }
    .nav-item > a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .dropdown {
        position: static;
        display: none;
        background: #0e4d14;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    .nav-item.active .dropdown { display: block; }

    .dropdown li a,
    .dropdown-link {
        padding: 12px 36px;
        display: block;
        width: 100%;
        text-align: left;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}

/* =========================
   MAIN CONTENT
========================= */
main.site-content {
    position: relative;
    width: 100%;
    margin: 20px auto;
    padding: 40px 15px 20px 15px;
    background-color: #f4f6f8;
    overflow: hidden;
}

main.site-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 1.0;
    z-index: 0;
}

main.site-content > * {
    position: relative;
    z-index: 1;
}

/* =========================
   INNER PAGE MINI-HERO
   Shared by all inner pages
========================= */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #093270 0%, #1a5c08 100%);
    padding: 54px 20px 90px;
    text-align: center;
    overflow: hidden;
}

.page-hero canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    animation: hero-fade-in 0.8s ease both;
}

.page-hero-eyebrow {
    font-family: 'News Cycle', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 10px;
}

.page-hero h1 {
    font-family: 'News Cycle', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    margin-bottom: 10px;
}

.page-hero p {
    font-family: 'Kalam', cursive;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.78);
    margin: 0;
}

.page-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
    line-height: 0;
}

/* Inner page background wrapper */
.inner-page-bg { background: #f4f6f8; min-height: 60vh; }

/* =========================
   HOMEPAGE - HERO
========================= */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #093270 0%, #375a06 100%);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'News Cycle', 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: 'Kalam', cursive;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: none;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-decoration: none;
}
.hero-btn.primary {
    background: #ffffff;
    color: var(--tcrsd-blue);
}
.hero-btn.secondary {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}
.hero-btn.secondary:hover { background: rgba(255,255,255,0.25); }

/* Scroll wave decoration at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* =========================
   HOMEPAGE - STATS TICKER
========================= */
.stats-ticker {
    background: var(--tcrsd-blue);
    color: #ffffff;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.stats-ticker-inner {
    display: inline-flex;
    gap: 0;
    animation: ticker-scroll 40s linear infinite;
}

.stats-ticker-inner:hover { animation-play-state: paused; }

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    font-size: 14px;
    font-family: 'News Cycle', sans-serif;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.ticker-item .t-icon { font-size: 18px; }
.ticker-item strong { color: #a8d8ea; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================
   HOMEPAGE - QUICK ACCESS
========================= */
.quick-access {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading h2 {
    font-family: 'News Cycle', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tcrsd-blue);
    margin-bottom: 6px;
}

.section-heading p {
    color: var(--tcrsd-gray);
    font-size: 1rem;
    margin: 0;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.qa-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--tcrsd-black);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    text-decoration: none;
    color: var(--tcrsd-black);
}

.qa-card.green  { border-top-color: var(--tcrsd-green); }
.qa-card.blue   { border-top-color: var(--tcrsd-blue); }
.qa-card.yellow { border-top-color: var(--tcrsd-yellow); }
.qa-card.red    { border-top-color: var(--tcrsd-red); }

.qa-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.qa-card h3 {
    font-family: 'News Cycle', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tcrsd-blue);
    margin: 0;
}

.qa-card p {
    font-size: 0.85rem;
    color: var(--tcrsd-gray);
    margin: 0;
    line-height: 1.4;
}

/* =========================
   NEWS & ALERTS SECTION
========================= */

/* Outer section wrapper */
.news-section {
    background: #ffffff;
    border-top: 1px solid #e8ebf0;
    border-bottom: 1px solid #e8ebf0;
    padding: 50px 20px;
}

/* Section header row */
.news-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.news-section-title {
    font-family: 'News Cycle', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--tcrsd-blue);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--tcrsd-green);
}

.news-title-icon { font-size: 1.6rem; }

/* Cards grid */
.news-cards-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual alert card */
.news-alert-card {
    border-radius: 12px;
    border-left: 6px solid;
    padding: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Badge strip at top of each card */
.nac-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nac-icon  { font-size: 1rem; }

.nac-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
}

/* Message body */
.nac-message {
    padding: 14px 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.nac-message a {
    font-weight: 700;
    text-decoration: underline;
}

/* Color themes — border, badge bg, text */
.news-holiday {
    border-left-color: #375a06;
    background: #f0f9f0;
    color: #1e3d04;
}
.news-holiday .nac-badge { background: #d4edda; }

.news-inclement {
    border-left-color: #d9a400;
    background: #fffdf0;
    color: #5a4400;
}
.news-inclement .nac-badge { background: #fff3cd; }

.news-urgent {
    border-left-color: #9d2a2a;
    background: #fdf5f5;
    color: #5c1a1a;
}
.news-urgent .nac-badge { background: #f8d7da; }

.news-general {
    border-left-color: #093270;
    background: #f3f6fb;
    color: #092050;
}
.news-general .nac-badge { background: #dce8f8; }

/* Pulse animation for portal link */
@keyframes pulse {
    0%   { transform: scale(1);    color: var(--tcrsd-blue-light); }
    33%  { transform: scale(1.06); color: var(--tcrsd-green); }
    66%  { transform: scale(1.04); color: var(--tcrsd-gray-dark); }
    100% { transform: scale(1);    color: var(--tcrsd-blue-light); }
}
.pulse-link {
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@media (max-width: 600px) {
    .news-cards-wrap { grid-template-columns: 1fr; }
    .news-section-title { font-size: 1.4rem; }
}

/* =========================
   HOMEPAGE - FACTOID BANNER
========================= */
.factoid-section {
    background: var(--tcrsd-green);
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.factoid-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
                      radial-gradient(circle at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.factoid-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.factoid-label {
    font-family: 'News Cycle', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.factoid-text {
    font-family: 'Kalam', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #ffffff;
    line-height: 1.5;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.factoid-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.factoid-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}
.factoid-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* =========================
   HOMEPAGE - BUTTON BAR (legacy, keep for other pages)
========================= */
.button-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
}

.button-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 160px;
    text-align: center;
    color: var(--tcrsd-black);
}

.button-bar-item img { max-width: 80px; height: auto; margin-bottom: 8px; }
.button-bar-item span { font-weight: bold; font-size: 14px; }
.button-bar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    cursor: pointer;
}

@media (max-width: 768px) {
    .button-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
    }
    .button-bar-item { width: 90%; max-width: 320px; text-align: center; }
    .button-bar-item img { margin: 0 auto 6px; display: block; }
}

/* =========================
   BOARD PAGE
========================= */
.board-container {
    max-width: 900px;
    margin: 40px auto 60px auto;
    padding: 30px 40px;
    background-color: var(--tcrsd-gray);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    text-align: center;
}

.board-title {
    font-size: 32px;
    font-family: 'News Cycle', sans-serif;
    color: var(--tcrsd-white);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.board-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.board-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.board-subtitle {
    font-size: 22px;
    color: var(--tcrsd-green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.board-members { display: inline-block; padding-left: 0; }
.board-members li {
    padding: 8px 12px;
    border-left: 4px solid var(--tcrsd-blue-light);
    margin-bottom: 8px;
    background-color: #f2f6fb;
    border-radius: 6px;
}
.board-members li:nth-child(even) { background-color: #eaf0f8; }
.board-members li strong { color: var(--tcrsd-black); }

@media (max-width: 768px) {
    .board-container { padding: 20px; margin: 20px auto 40px auto; }
    .board-title { font-size: 24px; }
    .board-subtitle { font-size: 18px; }
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: var(--tcrsd-gray-dark);
    color: var(--tcrsd-white);
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.footer-logos a img {
    max-height: 60px;
    height: auto;
    width: auto;
    border-radius: 4px;
    transition: transform 0.2s ease;
}
.footer-logos a img:hover { transform: scale(1.05); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    line-height: 1.8;
}
.footer-links a { color: var(--tcrsd-white); text-decoration: none; font-weight: bold; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--tcrsd-green); }

@media (max-width: 768px) {
    .footer-logos { gap: 12px; }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
        text-align: center;
    }
    .footer-links a { display: inline-block; padding: 6px 10px; font-size: 14px; white-space: nowrap; }
    .footer-links br { display: none; }
}

/* =========================
   ABOUT US CARD
========================= */
.about-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 20px;
}

.about-main { display: flex; flex-direction: column; }
.about-main a { color: var(--tcrsd-blue); text-decoration: none; font-weight: 600; }
.about-main a:hover { text-decoration: underline; }

.about-section { margin-bottom: 28px; }
.about-section h2 { font-size: 1.25rem; color: var(--tcrsd-blue); margin-bottom: 10px; }
.about-section h2 i { margin-right: 8px; color: var(--tcrsd-green); }
.about-section p { margin: 0; line-height: 1.6; color: #333; }

.about-contact {
    background: #f1f3f5;
    padding: 30px 20px;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.about-contact h2 { text-align: center; font-size: 1.3rem; color: var(--tcrsd-blue); margin-bottom: 25px; }
.about-contact h2 i { margin-right: 8px; }

/* .contact-block already defined in header section above — reuse same class */

@media (max-width: 900px) {
    .about-card { grid-template-columns: 1fr; }
    .about-contact { border-left: none; border-top: 1px solid #ddd; margin-top: 20px; padding-top: 20px; }
}

/* =========================
   AGENDAS & MINUTES TABLE
========================= */
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.table-wrapper table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; }

.agenda-table {
    width: 100%;
    border-spacing: 0;
    margin-top: 1.75rem;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.agenda-table th, .agenda-table td { padding: 16px 18px; text-align: center; }

.agenda-table th {
    background-color: #f2f4f8;
    font-weight: 700;
    color: #1f2a44;
    border-bottom: 2px solid #d6dbe6;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.agenda-table tr { transition: background-color 0.2s ease; }
.agenda-table tr:nth-child(even) { background-color: #f9fafc; }
.agenda-table tr:hover { background-color: #eef2f8; }
.agenda-table td { border-bottom: 1px solid #e2e6ef; vertical-align: middle; word-break: break-word; }
.agenda-table tr:last-child td { border-bottom: none; }

.meeting-type { display: inline-block; margin-top: 4px; font-size: 0.9rem; font-style: italic; color: #6b7280; }
.cancelled { color: #9d2a2a; font-weight: 700; letter-spacing: 0.4px; }

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: #f2f6fb;
    border-radius: 8px;
    color: #093270;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: normal;
}
.doc-link:hover { background-color: #e4ebf7; transform: translateY(-1px); text-decoration: none; }
.pdf-icon { font-size: 1.05rem; }

.year-filter { text-align: center; margin-bottom: 2rem; }
.year-filter label { margin-right: 8px; font-weight: 600; }
.year-filter select { padding: 8px 14px; font-size: 1rem; border-radius: 8px; border: 1px solid #cbd5e1; background-color: #ffffff; }

@media (max-width: 768px) {
    .agenda-table th, .agenda-table td { padding: 10px 12px; font-size: 0.75rem; white-space: normal; }
    .doc-link { padding: 6px 8px; font-size: 0.70rem; }
}

/* =========================
   HISTORY / ACCORDION
========================= */
.history-header-image { text-align: center; margin-bottom: 8px; }
.history-header-image img {
    max-width: 100%;
    border-radius: 10px;
    border: 3px solid #e3e3e3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.accordion-header {
    background: var(--tcrsd-green);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    padding: 16px 22px;
    margin-bottom: 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    user-select: none;
}
.accordion-header:hover { background: #0b4a7c; transform: translateY(-1px); }
.accordion-header.active { background: #06538a; }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #ffffff;
    padding: 0 24px;
    border-radius: 0 0 10px 10px;
    margin-bottom: 18px;
}
.accordion-content p {
    padding: 16px 0;
    margin: 0;
    line-height: 1.75;
    text-align: justify;
    color: #1f2937;
}

/* =========================
   STAFF LAYOUT
========================= */
.staff-container {
    max-width: 1500px;
    margin: 40px auto 60px auto;
    padding: 30px 40px;
    background-color: var(--tcrsd-gray);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    text-align: center;
}

.staff-leader { display: flex; justify-content: center; margin-bottom: 40px; }

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-items: center;
}

@media (max-width: 1400px) { .staff-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .staff-grid { grid-template-columns: 1fr; } }

.staff-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
    padding: 20px 15px 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 320px;
    margin: 0 auto;
}
.staff-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }

.staff-card img, .leader-card img {
    width: 286px;
    height: 426px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 3px solid #e3e3e3;
    background-color: #f5f5f5;
}
.staff-card h3 { margin: 8px 0 4px; font-size: 1.05rem; color: #1b1b1b; }
.staff-title { font-weight: bold; color: #2e7d32; font-size: 0.9rem; }

.leader-card { width: 320px; }

/* =========================
   FEES TABLES
========================= */
.fees-section {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 30px;
}

.fees-section h2 { font-size: 1.4rem; color: var(--tcrsd-blue); margin-bottom: 10px; display: flex; align-items: center; }
.fees-section h2 i { margin-right: 10px; color: var(--tcrsd-green); }

.fees-description {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #1b1b1b;
    line-height: 1.5;
    background-color: #eef4fb;
    padding: 12px 16px;
    border-left: 4px solid var(--tcrsd-blue);
    border-radius: 6px;
}
.fees-description span { font-weight: 700; color: var(--tcrsd-green); }

.fees-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.fees-table th, .fees-table td { padding: 14px 16px; text-align: left; }
.fees-table th {
    background-color: #f2f4f8;
    font-weight: 700;
    color: #1f2a44;
    border-bottom: 2px solid #d6dbe6;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.fees-table tr:nth-child(even) { background-color: #f9fafc; }
.fees-table tr:hover { background-color: #eef2f8; }
.fees-table td { border-bottom: 1px solid #e2e6ef; vertical-align: middle; }
.fees-table tr:last-child td { border-bottom: none; }
.fees-note { margin-top: 12px; font-style: italic; color: #555; }

@media (max-width: 768px) {
    .fees-table th, .fees-table td { padding: 10px 12px; font-size: 0.75rem; white-space: normal; }
}

/* =========================
   FORMS PAGE
========================= */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.form-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.form-card h2 { color: var(--tcrsd-blue); margin-bottom: 8px; font-size: 1.2rem; }
.form-card p { font-size: 0.95rem; color: #333; line-height: 1.5; margin-bottom: 18px; }

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.form-actions .form-btn { margin: 0; }

@media (max-width: 768px) {
    .form-actions { flex-direction: column; gap: 8px; width: 100%; }
    .form-btn { width: 100%; text-align: center; }
}

/* =========================
   REGULATIONS PAGE
========================= */
.regulations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 30px; }

.reg-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.reg-card h2 { margin-top: 0; color: #09316f; font-size: 1.4rem; }
.reg-intro { margin-bottom: 20px; color: #444; line-height: 1.5; }

.reg-links { display: flex; flex-direction: column; gap: 14px; }
.reg-links a {
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 6px;
    background: #f4f6fa;
    color: #09316f;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}
.reg-links a span { display: block; font-weight: normal; font-size: 0.9em; color: #555; }
.reg-links a:hover { background: #e7ecf5; transform: translateY(-1px); }

/* =========================
   CONTACT US PAGE
========================= */
.contact-logo-wrapper { display: flex; justify-content: center; margin-bottom: 20px; }
.contact-logo-wrapper .logo .logo-bg {
    background-color: var(--tcrsd-white);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}
.contact-logo-wrapper .logo .logo-bg img { max-height: 120px; width: auto; display: block; }

.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; margin-top: 20px; }

.contact-info-item {
    background: #f8f8f8;
    border-left: 4px solid #09316f;
    padding: 12px 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
}
.contact-info-item > div { display: flex; flex-direction: column; align-items: center; }
.contact-info-item strong { display: block; font-size: 0.95em; margin-bottom: 3px; }
.contact-info-item span { font-size: 0.95em; line-height: 1.4; }
.contact-info-item.emergency { border-left-color: #b30000; background: #fff2f2; }

.contact-card { text-align: center; }
.contact-details { display: flex; flex-direction: column; gap: 6px; }
.contact-details .emergency { color: #b30000; font-weight: 700; }

.contact-form { margin-top: 25px; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
    align-self: flex-start;
    background: #eef2f8;
    color: #09316f;
    font-weight: 600;
    font-size: 0.9em;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}
.form-row label .required { color: #b30000; margin-left: 4px; }
.form-row input, .form-row textarea {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #cfd6e0;
    font-size: 0.95em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: #09316f;
    box-shadow: 0 0 0 2px rgba(9,49,111,0.15);
}
.required { color: #b30000; }

.btn-contact {
    background: linear-gradient(135deg, #09316f, #0a3f8f);
    color: #ffffff;
    font-size: 1.05em;
    font-weight: 700;
    padding: 12px 32px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 16px rgba(9,49,111,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-contact:hover, .btn-contact:focus { background: linear-gradient(135deg, #0a3f8f, #0c4fa8); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(9,49,111,0.35); }
.btn-contact:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(9,49,111,0.25); }

.form-success { text-align: center; font-size: 1.1em; color: #0a6a2f; padding: 20px; }
.form-error { text-align: center; color: #b30000; font-weight: 600; margin: 20px 0; }
.map-card iframe { width: 100%; height: 450px; border: 0; border-radius: 8px; }
.contact-info-item.email { background: #f3f6fb; }
.contact-info-item.email a { color: #09316f; font-weight: 600; text-decoration: none; }
.contact-info-item.email a:hover { text-decoration: underline; }

/* =========================
   RFP / BID PAGE
========================= */
.rfp-card { max-width: 900px; margin: 0 auto; }
.rfp-intro { text-align: center; color: #09316f; font-weight: 600; background: #f3f6fb; padding: 12px 18px; border-radius: 8px; margin-bottom: 25px; }
.rfp-list { display: flex; flex-direction: column; gap: 15px; }

.rfp-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 16px 18px;
    background: #f8f8f8;
    border-left: 5px solid #09316f;
    border-radius: 8px;
    align-items: center;
}

.rfp-date { text-align: center; background: #eef2f8; border-radius: 8px; padding: 10px; }
.rfp-date .label { display: block; font-size: 0.75em; font-weight: 700; letter-spacing: 0.4px; color: #09316f; text-transform: uppercase; }
.rfp-date .date { font-size: 0.95em; font-weight: 600; margin-top: 4px; display: block; }
.rfp-details a { font-size: 1.05em; font-weight: 600; color: #09316f; text-decoration: none; }
.rfp-details a:hover { text-decoration: underline; }
.rfp-empty { text-align: center; padding: 30px 20px; background: #f3f6fb; border-radius: 8px; font-weight: 600; color: #555; }

@media (max-width: 640px) {
    .rfp-item { grid-template-columns: 1fr; text-align: center; }
    .rfp-date { max-width: 220px; margin: 0 auto; }
}

/* =========================
   EMPLOYMENT PAGE
========================= */
.employment-intro { text-align: center; color: #09316f; font-weight: 600; background: #f3f6fb; padding: 12px 18px; border-radius: 8px; margin-bottom: 25px; }
.employment-list { display: flex; flex-direction: column; gap: 14px; }

.employment-item {
    background: #f8f8f8;
    border-left: 4px solid #09316f;
    padding: 14px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.employment-title { font-weight: 600; color: #09316f; font-size: 1em; }

.btn-apply {
    background: linear-gradient(135deg, #09316f, #0a3f8f);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(9,49,111,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(9,49,111,0.35); }

.employment-empty { text-align: center; font-weight: 600; color: #555; background: #f8f8f8; padding: 18px; border-radius: 8px; }

/* =========================
   NEW SERVICE PAGE
========================= */
.service-card {
    background: #f8f8f8;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.service-card h3 { font-size: 1.25em; margin-bottom: 12px; color: #09316f; }
.service-card p { font-size: 1em; line-height: 1.6; margin-bottom: 18px; color: #333; }

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 40px;
    padding: 0 16px;
    margin: 4px 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #1f4d7a;
    color: #ffffff;
}
.form-btn:hover { background-color: #163b5d; color: #ffffff; text-decoration: none; }
.form-btn.secondary { background-color: #e9eef3; color: #1f4d7a; }
.form-btn.secondary:hover { background-color: #dbe4ec; color: #1f4d7a; }

/* =========================
   MISSION / STRATEGY
========================= */
.section-callout {
    position: relative;
    padding: 30px 28px 26px;
    margin-top: 35px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.section-callout.alt { background: #f4f7fb; }

.section-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #09316f;
    color: #ffffff;
    padding: 5px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.section-callout p { font-size: 1.05em; line-height: 1.6; margin: 0; }

.values-grid { margin-top: 10px; display: grid; gap: 14px; }

.value-row {
    padding: 14px 18px;
    background: #eeeeee;
    border-left: 5px solid #09316f;
    border-radius: 6px;
}
.section-callout.alt .value-row { background: #ffffff; }
.value-row strong { display: block; font-size: 1rem; margin-bottom: 3px; color: #09316f; }
.value-row span { font-size: 0.95rem; color: #444; }

/* =========================
   MAINTENANCE CARD
========================= */
.maintenance-card { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 30px; }
.maintenance-icon { font-size: 3rem; margin-bottom: 12px; }
.maintenance-card .muted { color: #999; font-size: 0.95em; margin-top: 18px; }

/* =========================
   VSO PAGE
========================= */
.info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 24px;
    margin-top: 20px;
}
.info-card h2 { margin-top: 24px; color: var(--tcrsd-blue); }
.info-card ul { margin-left: 20px; }

.warning-text {
    background: #fff3cd;
    border-left: 6px solid #ffc107;
    padding: 12px 16px;
    margin: 16px 0;
    font-weight: 600;
}

.callout-box {
    background: #f2f6fb;
    border-left: 6px solid var(--tcrsd-blue);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
}
.callout-box h3 { margin-top: 0; margin-bottom: 10px; color: var(--tcrsd-blue); }
.callout-box ul { margin: 0; padding-left: 20px; }

.vso-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.vso-reason {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.action-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: #e9eff8;
    color: var(--tcrsd-blue);
}
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); text-decoration: none; }

.info-rows { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 28px; }
.info-row {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}