/* Organization Public View Custom Styles - Half Overlay Logo & Full Navigation Bar */
html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    display: flex;
    flex-direction: column;
}

/* Main Navigation Bar Header */
.org-header-wrapper {
    position: relative;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-sizing: border-box;
}

/* Half Overlay Logo Container */
.org-logo-container {
    position: absolute;
    top: 15px;
    left: 30px;
    width: 110px;
    height: 95px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 200;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
}

.org-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Navigation Menu Links (Clean text links instead of heavy buttons) */
.header-nav-btns {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin-left: 145px; /* Space past overlaid logo */
}

.header-nav-btns .nav-item-btn {
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
    text-decoration: none;
    color: #1e293b;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease-in-out;
}

.header-nav-btns .nav-item-btn:hover {
    color: #2563eb;
    background: transparent;
    text-decoration: underline;
}

/* Sub-header Banner Bar */
.org-banner-bar {
    position: relative;
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 18px 160px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 50;
    box-sizing: border-box;
}

.org-banner-bar h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Main Container Area */
main {
    flex: 1;
}

.dept-section-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-top: 36px;
    margin-bottom: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.dept-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

/* Responsive Grid for Department Cards */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .dept-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1200px) {
    .dept-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .dept-grid { grid-template-columns: repeat(3, 1fr); }
    .org-banner-bar { padding-left: 200px; }
}
@media (max-width: 768px) {
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .org-header-wrapper {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    .org-logo-container {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto;
    }
    .header-nav-btns {
        margin-left: 0;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .header-nav-btns .nav-item-btn {
        width: 100%;
        justify-content: center;
    }
    .org-banner-bar {
        padding: 16px 20px;
        text-align: center;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .dept-grid { grid-template-columns: repeat(1, 1fr); }
}

.dept-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 185px;
}

.dept-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.dept-icon-wrapper {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dept-icon-wrapper img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.dept-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

/* Full Width Footer Styling */
footer.footer {
    width: 100% !important;
    max-width: 100% !important;
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-top: 1px solid #1e293b;
    padding: 24px 30px !important;
    margin: 40px 0 0 0 !important;
    box-sizing: border-box !important;
}

footer.footer a {
    color: #38bdf8;
    text-decoration: none;
}
footer.footer a:hover {
    text-decoration: underline;
}

/* Modal and Overlays */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease;
}

.close:hover {
    color: #0f172a;
}
