:root {
    --primary-color:#1980d9; /* Deep institutional blue */
    --secondary-color: #e65100; /* Emergency warning orange */
    --dark-color: #212121;
    --light-color: #f8f9fa;
    --success-color: #2e7d32;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* --- Emergency Alert Banner --- */
.alert-banner {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* --- Navigation --- */
header {
    background: linear-gradient(to right, #000000, var(--primary-color));
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-subtitle-custom {
    font-family: 'TW Cen MT', sans-serif;
    font-size: 10px;
    color: #B4ED7B;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-img-frame {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    background-color: transparent;
}

.brand-name h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1;
	font-family: 'Syncopate', sans-serif;
   	font-weight: 700;
   	text-transform: uppercase;
   	letter-spacing: 4px; 
}

.brand-name p {
    margin: 5px 0 0 0;
    font-size: 18px;
	font-family: 'Syncopate', sans-serif;
   	font-weight: 300;
    opacity: 0.8;
    text-transform: uppercase;
}

/* --- Dropdown Menu System --- */
.menu-container {
    position: relative;
    order: -1;
}

.menu-toggle {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links a {
    color: #e0e0e0;
    padding: 12px 20px;
    margin-left: 0;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* --- Featured Media Layout Adjustments --- */
.bulletin-section {
    background-color: #ffffff;
    padding: 30px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.slideshow-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
}

.hazard-scroll-container {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 450px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    overflow: hidden;
}

.hazard-scroll-wrapper {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: auto;
    height: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.prepSlides {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 10px;
}

.prepSlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.bulletin-section .hazard-scroll-container,
.bulletin-section .dashboard-frame {
    height: 450px; 
}

.mySlides {
    display: none;
    height: 100%;
    position: relative;
	background: #f2f2f2;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 20px;
    font-size: 14px;
}
.slide-caption h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #fff;
}
.prev-slide, .next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
    border: none;
    z-index: 10;
}
.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0,0,0,0.8);
}

/* --- Three Column Layout Extension --- */
.monitoring-section {
    background-color: #ffffff;
    padding: 30px 5% 30px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.windy-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    background-color: #1c1a19;
    height: 380px; 
}

.windy-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.board-container {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 380px;
    box-sizing: border-box;
}
.board-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e0e0e0;
}
.tab-btn {
    flex: 1;
    padding: 12px 6px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tab-btn:hover {
    background: rgba(0,0,0,0.02);
    color: var(--primary-color);
}
.tab-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}
.board-content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    display: none;
}
.board-content.active {
    display: block;
}
.news-item {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.news-date {
    font-size: 11px;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}
.news-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--dark-color);
    font-weight: 600;
}
.news-desc {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(15, 76, 129, 0.75), rgba(0, 0, 0, 0.65)), 
                url('https://images.fineartamerica.com/images/artworkimages/mediumlarge/3/a-beautiful-sunset-at-the-mayon-volcano-william-e-rogers.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
    margin-top: 40px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 20px;
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Layout Structures --- */
section {
    padding: 60px 10%;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0 auto;
}

/* --- Cards Layout --- */
.grid-4, .org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.card {
    background: var(--light-color);
    padding: 25px;
    border-radius: 6px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 18px;
}

.card p {
    font-size: 14px;
    color: #444;
    margin: 0;
    text-align: left;
}

.pillar-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(25, 128, 217, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 24px;
    transition: all 0.3s ease;
}

.card:hover .pillar-icon-wrapper {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

/* --- Organizational Chart --- */
.org-container {
    text-align: center;
}
.org-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.org-card:hover {
    transform: translateY(-5px);
}
.org-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 auto 15px auto;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
.org-name {
    font-weight: bold;
    font-size: 18px;
    margin: 5px 0;
    color: var(--dark-color);
}
.org-role {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Gallery Section --- */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.action-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}
.action-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ccc;
    display: block;
}
.action-info {
    padding: 15px;
}
.action-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}
.action-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* --- Crew Portal Overlay System --- */
.crew-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.portal-box {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}
.form-group {
    margin-bottom: 15px;
    text-align: left;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    padding-right: 40px;
}
.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 15px;
    padding: 5px;
}
.password-toggle:hover { color: #555; }
.btn-portal {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    margin-top: 10px;
}
.btn-portal:hover { opacity: 0.9; }
.btn-logout { background-color: #c62828; margin-top: 15px; }

.hidden { display: none !important; }

.profile-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee;
    margin-bottom: 10px;
    border: 2px solid #ccc;
}

/* --- Hotlines --- */
.hotline-section {
    background-color: var(--light-color);
    text-align: center;
}

.hotline-box {
    background: white;
    border: 2px dashed var(--secondary-color);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
}

.hotline-number {
    font-size: 32px;
    color: var(--secondary-color);
    font-weight: bold;
    margin: 15px 0;
}

/* --- Chatbot Layout System --- */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
    font-family: inherit;
}
.chat-button {
    height: 50px;
	padding: 0 20px;
    background-color: var(--primary-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 22px;
    transition: transform 0.2s;
	gap: 8px;
}
.chat-text {
    font-size: 14px;
   	font-weight: 600;
   	white-space: nowrap;
    font-family: 'Segoe UI', sans-serif;
}
.chat-button:hover {
    transform: scale(1.05);
}
.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 340px;
    height: 460px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}
.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header span { font-size: 15px; }
.chat-close { cursor: pointer; font-size: 18px; opacity: 0.8; }
.chat-close:hover { opacity: 1; }

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f7f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 13.5px;
    line-height: 1.4;
}
.msg.bot {
    background-color: #eaeaea;
    color: #333;
    align-self: flex-start;
    border-top-left-radius: 2px;
}
.msg.user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 15px;
    background: #f7f9fa;
    border-top: 1px solid #eee;
}
.chip {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}
.chip:hover {
    background: var(--primary-color);
    color: white;
}

.chat-footer {
    display: flex;
    border-top: 1px solid #eee;
    padding: 10px;
    background: white;
}
.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}
.chat-send {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .monitoring-section { grid-template-columns: 1fr; height: auto; }
    .windy-container, .slideshow-container, .board-container { height: 360px; }
}
@media (max-width: 900px) {
    .bulletin-section { grid-template-columns: 1fr; }
    .bulletin-section .hazard-scroll-container, .bulletin-section .dashboard-frame { height: auto; min-height: 380px; }
    .slideshow-container { height: 320px; }
}
@media (max-width: 768px) {
    header { padding: 15px 3%; gap: 10px; }
    .brand-name h1 { font-size: 26px; letter-spacing: 1px; }
    .brand-name p { font-size: 11px; }
    .logo-img-frame { width: 44px !important; }
    .logo-subtitle-custom { font-size: 8px; }
    .hero { padding: 60px 20px; }
    .hero h2 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .chat-window { width: 300px; right: -10px; }
    section { padding: 40px 5%; }
    .section-title { font-size: 24px; }
}
@media (max-width: 576px) {
    header { padding: 15px 10px; }
    .nav-links {
        left: -10px;
        width: calc(100vw - 20px);
    }
    #numbers > div > div > div {
        max-width: 130px;
        margin-left: auto;
        margin-right: auto;
    }
    .slideshow-container { height: 240px; }
    .hazard-scroll-container { height: 300px; }
    .windy-container { height: 260px; }
    .board-container { height: 300px; }
    .monitoring-section { padding: 20px 10px; }
    .windy-container iframe {
        display: block;
        margin: 0 auto;
    }
    .hero { padding: 40px 16px; }
    .hero h2 { font-size: 22px; }
    .hero p { font-size: 14px; }
    .hotline-number { font-size: 22px; }
    .chat-widget { right: 10px; }
    .chat-window {
        width: calc(100vw - 30px);
        right: -10px;
        height: 400px;
    }
    .chat-button {
        height: 44px;
        padding: 0 14px;
        font-size: 18px;
    }
    .prev-slide, .next-slide {
        padding: 12px 10px;
        font-size: 16px;
    }
}
.hotline-link, .hotline-fb-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.hotline-link:hover, .hotline-fb-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
/* Keeps the dropdown text gray until a real option is selected */
select:invalid, select:has(option[value="choose"]:checked) {
    color: gray;
    font-style: italic;
}
select option {
    color: black;
    font-style: normal;
}


