/* ======================================================
   GLOBAL RESET & UTILITIES
====================================================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Section wrapper for uniform spacing */
.section-wrapper {
    margin-left: 63px;
    margin-right: 63px;
    padding-left: 36px;
    padding-right: 36px;
}

/* ======================================================
   UTILITY BAR
====================================================== */
.bg-light.border-bottom.small {
    font-size: 0.875rem;
}

.header-divider {
    width: 1px;
    height: 18px;
    background-color: #ccc;
}

/* Flex for top bar items */
.d-flex.flex-column.flex-md-row {
    flex-wrap: wrap;
}

/* Font size & language select fix */
.input-group .form-select {
    cursor: pointer;
}

/* Accessibility button hover */
.btn-outline-secondary:hover {
    /* background-color: #b71c1c; */
    background-color: #33b71c;
    color: #fff;
    border-color: #b71c1c;
    transition: all 0.3s;
}

/* ======================================================
   MAIN HEADER
====================================================== */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding-top: 10px;
    padding-bottom: 10px;
}

.main-header img {
    max-height: 60px;
}

.main-header h4 {
    margin: 0;
    line-height: 1.2;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar-custom {
    /* background-color: #7b241c !important; */
    background-color: #1c787b !important;
    position: relative;
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Remove icons */
.navbar-nav .nav-link i {
    display: none;
}

/* Menu link styles */
.navbar-custom .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

/* Hover effect */
.navbar-custom .nav-link:hover {
    background-color: #b71c1c !important;
    color: #fff !important;
}

/* Active link */
.navbar-custom .nav-link.active {
    /* background-color: #b71c1c !important; */
    background-color: #33b71c !important;
    color: #fff !important;
}

/* Dropdown menu */
.navbar-custom .dropdown-menu {
    /* background-color: #7b241c; */
    background-color: #1c787b;
    border: none;
    display: none;
    /* hidden initially for jQuery fadeIn */
}

/* Dropdown items hover */
.navbar-custom .dropdown-menu .dropdown-item {
    color: #fff;
    transition: all 0.3s;
}

.navbar-custom .dropdown-menu .dropdown-item:hover {
    background-color: #b71c1c;
    color: #fff !important;
}

/* Navbar brand mobile */
.navbar-custom .navbar-brand {
    color: #fff !important;
    font-weight: bold;
}

/* Navbar toggler border color */
.navbar-custom .navbar-toggler {
    border-color: #fff;
}

/* ======================================================
   BANNER
====================================================== */
.banner {
    background: url('../images/banner.jpg') center center no-repeat;
    background-size: cover;
    height: 450px;
    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner .text-center {
    position: relative;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ======================================================
   FOOTER — TWO COLUMN, CENTERED ALIGNMENT
====================================================== */
.footer {
    background-color: #343a40;
    color: #ddd;
    padding: 0;
    font-size: 0.875rem;
    opacity: 0;
    animation: footerFadeIn 1.2s ease-out forwards;
}

.footer a {
    color: #f8f9fa;
    text-decoration: underline;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.footer a:hover {
    color: #1c787b;
    text-shadow: 0 0 8px rgba(28, 120, 123, 0.6);
    animation: glowFade 0.6s ease-in-out;
}

/* ======================================================
   FOOTER TOP LINKS BAR
====================================================== */
.footer-links {
    background-color: #2f3439;
    text-align: center;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: #f8f9fa;
    /* margin: 0 8px; */
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Hover effect — background red, text white */
.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
    background-color: #b71c1c !important;
    color: #fff !important;
    text-shadow: none !important;
}

/* Divider between top links */
.footer-link-divider {
    color: #aaa;
    margin: 0 6px;
    display: inline-block;
}

/* ======================================================
   FOOTER MAIN CONTENT
====================================================== */
.footer-main {
    padding: 25px 0;
}

/* Layout wrapper */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

/* Left and right text blocks */
.footer-left p,
.footer-right p {
    margin: 0;
    line-height: 1.6;
}

/* Divider line between sections */
.footer-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    /* margin: 0 5px; */
}

/* Text alignment */
.footer-left {
    text-align: right;
}

.footer-right {
    text-align: left;
}

/* ======================================================
   RESPONSIVE BEHAVIOR
====================================================== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-divider {
        display: none;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-links {
        line-height: 1.8;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .footer-link-divider {
        display: none;
    }
}

/* ======================================================
   ANIMATIONS
====================================================== */
@keyframes glowFade {
    0% {
        text-shadow: 0 0 0 rgba(28, 120, 123, 0);
    }
    50% {
        text-shadow: 0 0 10px rgba(28, 120, 123, 0.8);
    }
    100% {
        text-shadow: 0 0 6px rgba(28, 120, 123, 0.6);
    }
}

/* Fade-in effect for footer */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================================
   DARK / LIGHT MODE BUTTON (ADDED AT END)
====================================================== */

/* Dark mode body styles */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.dark-mode a {
    color: #90caf9 !important;
}

body.dark-mode .navbar-custom {
    background-color: #000 !important;
}

body.dark-mode .navbar-custom .nav-link {
    color: #f1f1f1 !important;
}

body.dark-mode .footer {
    background-color: #000 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .main-header {
    background-color: #1f1f1f !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .bg-light.border-bottom.small {
    background-color: #1f1f1f !important;
    color: #e0e0e0 !important;
}

/* Dark/Light mode toggle button styling */
#themeToggleBtn {
    font-size: 0.85rem;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#themeToggleBtn:hover {
    background-color: #b71c1c;
    color: #fff;
    border-color: #b71c1c;
}