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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #e8e8e8;
    color: #333;
    min-width: 1024px;
}

/* ===== HEADER ===== */
#header {
    background: #1a3a5c;
    color: white;
}

#header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

#site-branding h1 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffffff;
}

#site-branding p {
    font-size: 12px;
    color: #a8c4dc;
    margin-top: 2px;
}

#clock-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

#clock-canvas {
    border: 2px solid #4a7ba7;
    border-radius: 50%;
    background: white;
}

#digital-clock {
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
}

#clock-date {
    font-size: 11px;
    color: #a8c4dc;
    margin-top: 3px;
    text-align: right;
}

/* ===== NAVIGATION ===== */
nav#main-nav {
    background: #c0392b;
}

nav#main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav#main-nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    font-size: 13px;
    transition: background 0.2s;
}

nav#main-nav ul li a:hover {
    background: #a93226;
}

/* ===== WEATHER ===== */
#weather-bar {
    background: #f0f6fc;
    border-bottom: 1px solid #c5daea;
    padding: 5px 20px;
    font-size: 12px;
    color: #2c5282;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    max-height: 30px;
}

#weather-info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 700px;
}

#weather-bar span.label {
    font-weight: bold;
    color: #1a3a5c;
}

/* ===== MAIN WRAPPER ===== */
#main-wrapper {
    display: flex;
    min-height: 580px;
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: 195px;
    background: #2c5282;
    flex-shrink: 0;
    padding-bottom: 20px;
}

#sidebar .side-section {
    margin-bottom: 5px;
}

#sidebar .side-title {
    color: #bee3f8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 14px 6px;
    border-bottom: 1px solid #4a7ba7;
    font-weight: bold;
}

#sidebar ul {
    list-style: none;
}

#sidebar ul li a {
    display: block;
    color: #bee3f8;
    text-decoration: none;
    padding: 6px 14px;
    font-size: 12px;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
    background: #1a3a5c;
    border-left-color: #f39c12;
    color: #ffffff;
}

/* ===== CONTENT ===== */
#content {
    flex: 1;
    padding: 22px 25px;
    background: #ffffff;
}

#content h1.page-title {
    font-size: 21px;
    color: #1a3a5c;
    border-bottom: 2px solid #c0392b;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

#content h2 {
    font-size: 16px;
    color: #2c5282;
    margin: 18px 0 8px;
    border-left: 3px solid #f39c12;
    padding-left: 8px;
}

#content h3 {
    font-size: 14px;
    color: #1a3a5c;
    margin: 12px 0 6px;
}

#content p {
    line-height: 1.75;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

#content ul, #content ol {
    margin: 8px 0 12px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

/* ===== SIGN BOX ===== */
.sign-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #f8f9fa;
    border: 1px solid #dde2e8;
    border-radius: 3px;
    padding: 14px;
    margin-bottom: 14px;
}

.sign-img {
    flex-shrink: 0;
    width: 120px;
    min-width: 120px;
    text-align: center;
}

.sign-img svg {
    display: block;
    max-width: 120px;
    height: auto;
    margin: 0 auto;
}

.sign-info h3 {
    color: #1a3a5c;
    margin-bottom: 5px;
    font-size: 14px;
}

.sign-info p {
    margin: 0;
    font-size: 13px;
}

/* ===== SLIDESHOW ===== */
#slideshow {
    background: #1a3a5c;
    padding: 14px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 3px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#slideshow-caption {
    color: #a8c4dc;
    font-size: 13px;
    margin-top: 10px;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 5px 0;
}

.gallery-item {
    border: 1px solid #dde2e8;
    border-radius: 3px;
    padding: 10px 8px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.gallery-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

.gallery-item p {
    font-size: 11px;
    margin-top: 6px;
    color: #555;
    line-height: 1.3;
}

/* ===== NAV BUTTONS ===== */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid #dde2e8;
}

.nav-btn {
    background: #1a3a5c;
    color: white;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #2c5282;
}

.nav-btn.home-btn {
    background: #c0392b;
}

.nav-btn.home-btn:hover {
    background: #a93226;
}

.nav-btn.disabled {
    background: #aaa;
    cursor: default;
    pointer-events: none;
}

/* ===== FOOTER ===== */
#footer {
    background: #1a3a5c;
    color: #a8c4dc;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

#footer a {
    color: #bee3f8;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

#page-counter {
    background: #c0392b;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
}

/* ===== POPUP MODAL ===== */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-box {
    width: 350px;
    height: 300px;
    background: white;
    border: 3px solid #c0392b;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}

#popup-header {
    background: #c0392b;
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

#popup-close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: none;
    border: none;
    line-height: 1;
    padding: 0 3px;
}

#popup-close:hover {
    color: #ffd700;
}

#popup-content {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#popup-content h3 {
    color: #1a3a5c;
    font-size: 16px;
    margin-bottom: 10px;
}

#popup-content p {
    color: #555;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 8px;
}

#popup-content .popup-link {
    display: inline-block;
    margin-top: 8px;
    background: #c0392b;
    color: white;
    padding: 7px 18px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}

#popup-content .popup-link:hover {
    background: #a93226;
}

/* ===== INFO/WARNING BOXES ===== */
.info-box {
    background: #eaf4fd;
    border-left: 4px solid #1a3a5c;
    padding: 11px 14px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.6;
}

.warning-box {
    background: #fff8e1;
    border-left: 4px solid #f39c12;
    padding: 11px 14px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.6;
}

.danger-box {
    background: #fdecea;
    border-left: 4px solid #c0392b;
    padding: 11px 14px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.6;
}

/* ===== TABLE ===== */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}

table.data-table th {
    background: #1a3a5c;
    color: white;
    padding: 9px 11px;
    text-align: left;
    font-weight: bold;
}

table.data-table td {
    padding: 8px 11px;
    border-bottom: 1px solid #dde2e8;
    vertical-align: top;
}

table.data-table tr:nth-child(even) td {
    background: #f8f9fa;
}

/* ===== CONTACT FORM ===== */
.contact-form .form-row {
    margin-bottom: 13px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2c5282;
}

.contact-form textarea {
    height: 110px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    background: #c0392b;
    color: white;
    border: none;
    padding: 9px 24px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.contact-form button[type="submit"]:hover {
    background: #a93226;
}

#form-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 13px;
    display: none;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

/* ===== SITE MAP ===== */
.sitemap-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.sitemap-col h3 {
    color: #1a3a5c;
    font-size: 14px;
    border-bottom: 1px solid #dde2e8;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.sitemap-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-col ul li {
    padding: 4px 0;
    font-size: 13px;
}

.sitemap-col ul li::before {
    content: "- ";
    color: #c0392b;
}

.sitemap-col ul li a {
    color: #2c5282;
    text-decoration: none;
}

.sitemap-col ul li a:hover {
    text-decoration: underline;
}

/* ===== VIDEO PAGE ===== */
.video-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 20px;
}

.video-container video {
    width: 100%;
    border: 2px solid #dde2e8;
    border-radius: 3px;
    display: block;
}

.video-placeholder {
    background: #1a3a5c;
    color: #a8c4dc;
    padding: 60px 20px;
    text-align: center;
    border-radius: 3px;
    margin-bottom: 15px;
}

.video-placeholder p {
    color: #a8c4dc;
    margin-top: 10px;
    font-size: 14px;
}

/* ===== HOMEPAGE SPECIFIC ===== */
.home-intro {
    background: #f0f6fc;
    border: 1px solid #c5daea;
    border-radius: 3px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.home-intro h2 {
    border: none;
    padding: 0;
    margin: 0 0 8px;
    color: #1a3a5c;
    font-size: 17px;
}

.home-intro p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.quick-link-item {
    background: #f8f9fa;
    border: 1px solid #dde2e8;
    border-top: 3px solid #1a3a5c;
    border-radius: 3px;
    padding: 14px 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: border-top-color 0.2s, box-shadow 0.2s;
    display: block;
}

.quick-link-item:hover {
    border-top-color: #c0392b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.quick-link-item .ql-title {
    font-weight: bold;
    color: #1a3a5c;
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

/* ===== ABOUT PAGE ===== */
.team-box {
    background: #f8f9fa;
    border: 1px solid #dde2e8;
    border-radius: 3px;
    padding: 14px;
    margin-bottom: 12px;
}

/* ===== ROAD MARKING DEMO ===== */
.road-demo {
    background: #555;
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    position: relative;
}

.road-line {
    height: 6px;
    background: #fff;
    border-radius: 2px;
    margin: 6px auto;
    width: 80%;
}

.road-line.dashed {
    background: repeating-linear-gradient(
        to right,
        #fff 0px,
        #fff 30px,
        transparent 30px,
        transparent 50px
    );
}

.road-line.yellow {
    background: #ffd700;
}

/* General utility */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

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

.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
