:root {
    --primary-color: #1a1a1a;
    --accent-color: #d4af37;
    --text-main: #333;
    --text-light: #f9f9f9;
    --bg-light: #f4f4f4;
    --border-color: #ddd;
    --hero-bg: #111C39;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-color);
    color: #aaa;
    font-size: 0.75rem;
    padding: 5px 20px;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.nav-brand img {
    height: 60px;
    margin-right: 15px;
}

.nav-brand span {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 5px);
        right: auto;
        left: 50%;
        width: 350px;
        height: auto;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 12px 18px;
        transition: all 0.25s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        z-index: 1050;
        border: 1px solid #333;
        border-top: 2px solid var(--accent-color);
        border-radius: 4px;
        transform: translateX(-50%) translateY(-10px);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 0.85rem;
        color: #fff;
        margin: 6px 0;
        padding: 4px 0;
        border-bottom: 1px solid #333;
        width: 100%;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-align: center;
    }

    .nav-links a:hover {
        color: var(--accent-color);
    }

    .nav-brand span {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 0;
        width: 100%;
    }

    .hero img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .document {
        padding: 2rem 1rem;
        margin: 0 -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .document h1 {
        font-size: 1.8rem;
    }

    .document h2 {
        font-size: 1.2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    td, th {
        padding: 8px !important;
    }

    .notice-board {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .post-it {
        width: 100%;
    }

    form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .info-card {
        padding: 20px;
    }

    .main-container {
        margin: 30px auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-btn {
        width: 100%;
    }

    .signature {
        font-size: 1.2rem;
    }
}

/* Hamburger Animation */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background-color: var(--hero-bg);
    color: var(--text-light);
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero img {
    width: 45%;
    max-width: 800px;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.5));
}

/* Main Content */
.main-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-card h3 {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.2s;
    width: fit-content;
}

.btn-link:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.submit-btn {
    margin-top: 10px;
    padding: 14px;
    background: #1a1a1a;
    color: #d4af37;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
}

/* Document Layout */
.document {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-family: 'Georgia', serif;
}

.document h1 {
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.document h2 {
    color: #666;
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
}

.document h3 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.document p {
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.signature {
    text-align: right;
    margin-top: 4rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Brush Script MT', cursive;
}

/* Footer */
footer {
    background-color: var(--bg-light);
    border-top: 5px solid var(--primary-color);
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
}

/* Notice Board */
.notice-board {
    background-color: #f8f6f1;
    background-image: radial-gradient(#e8e4db 1px, transparent 1px);
    background-size: 20px 20px;
    border: 2px solid var(--primary-color);
    padding: 50px 40px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    position: relative;
}

.notice-board::before {
    content: 'OFFICIAL PROCLAMATIONS';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 5px 25px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid var(--accent-color);
}

.post-it {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-it::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-color);
}

.post-it:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: var(--accent-color);
}

.post-it-content p {
    margin: 0;
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--primary-color);
    word-wrap: break-word;
}

.post-it-date {
    margin-top: 25px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.post-it-date small {
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.footer-text {
    font-size: 0.9rem;
    color: #777;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}
