/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    padding: 20px 40px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
}

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

.dob-logo-top {
    height: 80px;
    width: auto;
    display: block;
    transform: translateY(-3px);
}

.logo-label {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.header-right {
    display: flex;
    align-items: center;
    margin-top: 0px;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 6px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    transition: color 0.2s;
    padding: 0 15px;
    min-width: 100px;
    text-align: center;
}

.nav-link:hover {
    color: #1a3a5f;
}

.nav-link-multiline {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: normal;
}

.header-divider {
    height: 1px;
    background-color: #ddd;
    margin-top: 20px;
}

/* Main Content */
.main-content {
    min-height: 400px;
    padding: 40px;
}

/* Footer Styles */
.site-footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 20px 0;
}

.footer-section {
    border-bottom: 1px solid #555;
    padding: 60px 60px;
}

.footer-section:last-child {
    border-bottom: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* DOB Footer Section */
.dob-section .footer-content {
    align-items: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 200px;
}

.dob-logo-footer {
    width: 100px;
    height: auto;
    display: block;
}

.gov-logo {
    width: 150px;
    height: auto;
    display: block;
}

.logo-label-footer {
    font-size: 11px;
    color: #ffffff;
    line-height: 1.4;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    color: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.7;
}

.footer-info {
    display: flex;
    gap: 40px;
    flex: 1;
    flex-wrap: wrap;
}

.info-block {
    flex: 1;
    min-width: 200px;
}

.info-heading {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.info-text {
    font-size: 13px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Government Footer Section */
.gov-section .footer-content {
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 0.7;
}

.link-divider {
    color: #ffffff;
    font-size: 12px;
}

.footer-copyright {
    font-size: 12px;
    color: #e0e0e0;
    white-space: nowrap;
}

/* NOTE: The viewer title bar (.viewer-titlebar, .titlebar-logo,
   .viewer-titlebar-title, .help-btn) is styled inline in each JSP
   (index.jsp, ViewOne.jsp, ErrorPage.jsp). Do not add titlebar
   rules here — they will conflict with the flex layout. */

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .gov-section .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    
    .footer-section {
        padding: 20px;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
}