/* ===========================
   Shared Styles - สมาคมศิษย์เก่าเบญจมราชานุสรณ์
   =========================== */

:root {
    --primary-color: #720502;
    --primary-dark: #4a0301;
    --accent-color: #c9a227;
    --light-bg: #faf8f5;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: #333;
    background-color: var(--light-bg);
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.85;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
    text-align: center;
}

.site-footer h6 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Lightbox Modal */
.lightbox-modal .modal-body {
    padding: 0;
    text-align: center;
    background: #000;
}

.lightbox-modal .modal-body img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-modal .modal-header {
    border-bottom: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

.lightbox-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }
}
