/* ================ */
/* CSS Variables */
/* ================ */
:root {
    /* Primary Color Palette */
    --citrine-white: #fbf3e2;
    --rangoon-green: #15140f;
    --rust: #b23d13;
    --di-serrria: #dca356;
    
    /* Derived Colors */
    --rust-light: rgba(178, 61, 19, 0.1);
    --di-serrria-light: rgba(220, 163, 86, 0.1);
    --rangoon-green-light: rgba(21, 20, 15, 0.8); /* For text on light backgrounds often */
    --rangoon-green-translucent: rgba(21, 20, 15, 0.95); /* For footer copyright bg */
    
    /* Functional Variables */
    --body-bg: var(--citrine-white);
    --text-color: var(--rangoon-green);
    --text-secondary: rgba(21, 20, 15, 0.7);
    --border-color: rgba(21, 20, 15, 0.1);
    --shadow-sm: 0 1px 3px rgba(21, 20, 15, 0.1);
    --shadow-md: 0 4px 6px rgba(21, 20, 15, 0.1);
    --shadow-lg: 0 10px 15px rgba(21, 20, 15, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;

    /* Bootstrap Color Overrides */
    --bs-primary: var(--rust);
    --bs-primary-rgb: 178, 61, 19;
    --bs-primary-bg-subtle: var(--rust-light);
    --bs-primary-border-subtle: rgba(178, 61, 19, 0.5);
    --bs-primary-text-emphasis: #8a300e;
    
    --bs-secondary: var(--rangoon-green);
    --bs-secondary-rgb: 21, 20, 15;
    --bs-secondary-bg-subtle: rgba(21, 20, 15, 0.1);
    --bs-secondary-border-subtle: rgba(21, 20, 15, 0.3);
    --bs-secondary-text-emphasis: #0a0907;
    
    --bs-accent: var(--di-serrria); /* Using this for custom btn-accent */
    --bs-accent-rgb: 220, 163, 86;
    --bs-accent-bg-subtle: var(--di-serrria-light);
    --bs-accent-border-subtle: rgba(220, 163, 86, 0.5);
    
    /* Standard Status Colors */
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    
    /* Body Colors */
    --bs-body-color: var(--text-color);
    --bs-body-color-rgb: 21, 20, 15;
    --bs-body-bg: var(--body-bg);
    --bs-body-bg-rgb: 251, 243, 226;
    
    /* Link Colors */
    --bs-link-color: var(--rust);
    --bs-link-color-rgb: 178, 61, 19;
    --bs-link-hover-color: var(--di-serrria);
    --bs-link-hover-color-rgb: 220, 163, 86;
    
    /* Border Colors */
    --bs-border-color: var(--border-color);
    --bs-border-color-translucent: rgba(21, 20, 15, 0.15);
    
    /* Focus Ring */
    --bs-focus-ring-color: rgba(178, 61, 19, 0.25);
}

/* ================ */
/* Base & Universal Styles */
/* ================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust for fixed navbar height */
    /* No fixed height on html */
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    
    /* CSS GRID STICKY FOOTER (More robust than Flexbox) */
    display: grid;
    grid-template-rows: auto 1fr auto; /* Header, Content (expands), Footer */
    min-height: 100vh;
    min-height: 100dvh; /* Mobile-friendly dynamic height */
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================ */
/* General Typography */
/* ================ */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--rangoon-green);
}

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

a {
    color: var(--rust);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 500;
}

a:hover {
    color: var(--di-serrria);
    text-decoration: underline;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ================ */
/* Layout Components */
/* ================ */
.content-wrapper {
    width: 100%;
    padding-top: 80px; /* Navbar height */
    padding-bottom: 4rem; /* Minimum spacing before footer */
}

.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 4rem 0; /* Default section padding */
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--rust);
    border-radius: 2px;
}

/* ===================== */
/* STABLE HEADER STYLES  */
/* ===================== */
.navbar {
    background-color: var(--citrine-white) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 0.5rem 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    transition: var(--transition-base) !important;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md) !important;
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: var(--rust) !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 1rem !important;
    padding: 0.25rem 0 !important;
    transition: var(--transition-base) !important;
}

.navbar-brand:hover {
    color: var(--di-serrria) !important;
}

.navbar-brand img {
    height: 70px !important;
    width: auto !important;
    max-height: 100% !important;
    transition: var(--transition-base) !important;
}

.navbar-toggler {
    padding: 0.5rem !important;
    margin-left: auto !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
    background-color: transparent !important;
    color: var(--rangoon-green) !important;
    cursor: pointer !important;
    transition: var(--transition-base) !important;
    width: 44px !important;
    height: 44px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.navbar-toggler:hover {
    background-color: var(--rust-light) !important;
    border-color: var(--rust) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
    outline: none !important;
}

.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(21, 20, 15, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 20px !important;
    height: 20px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.nav-link {
    font-weight: 500 !important;
    color: var(--rangoon-green) !important;
    padding: 0.75rem 1rem !important;
    margin: 0 0.2rem !important;
    border-radius: var(--border-radius-sm) !important;
    transition: var(--transition-base) !important;
    position: relative !important;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--rust) !important;
    background-color: var(--rust-light) !important;
}

/* Active Nav Link Style (Modern) */
.nav-link.active {
    color: var(--rust) !important;
    font-weight: 600 !important;
}

.nav-link.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 6px !important;
    height: 6px !important;
    background: var(--rust) !important;
    border-radius: 50% !important;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--citrine-white) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.dropdown-item {
    color: var(--rangoon-green) !important;
    padding: 0.5rem 1.5rem !important;
    transition: var(--transition-base) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--rust-light) !important;
    color: var(--rust) !important;
}

.dropdown-divider {
    border-color: var(--border-color) !important;
}

/* User Menu Specific Styles */
.avatar-sm {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--rust-light) !important;
    color: var(--rust) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    flex-shrink: 0;
}

.avatar-sm img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Community Button in Navbar */
.navbar .btn-accent {
    white-space: nowrap !important;
    margin-left: 0.5rem !important;
}

/* ===================== */
/* Navbar Responsive Adjustments */
/* ===================== */
@media (max-width: 992px) {
    .navbar {
        padding: 0.75rem 0 !important;
    }
    
    .content-wrapper {
        padding-top: 0 !important;
    }
    
    .navbar-collapse {
        padding: 1rem 0 !important;
        background-color: var(--citrine-white) !important;
        margin-top: 0.5rem !important;
        border-radius: var(--border-radius-sm) !important;
        box-shadow: var(--shadow-md) !important;
        border: 1px solid var(--border-color) !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    .nav-item {
        margin-bottom: 0.5rem !important;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem !important;
        margin: 0 !important;
    }
    
    .nav-link.active::after {
        display: none !important; /* Remove dot on mobile active link */
    }
    
    .navbar-nav.ms-auto .nav-item:last-child {
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    .navbar-nav.ms-auto .btn-accent {
        display: block !important;
        width: calc(100% - 3rem) !important;
        margin: 0.5rem 1.5rem !important;
        text-align: center !important;
    }
    
    .dropdown-menu {
        margin-left: 1.5rem !important;
        width: calc(100% - 3rem) !important;
        border: none !important;
        box-shadow: none !important;
        background-color: var(--rust-light) !important;
    }
    
    .dropdown-item {
        padding-left: 1rem !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.35rem !important;
    }
    
    .navbar-brand img {
        height: 45px !important;
    }
    
    .navbar-nav.ms-auto .btn-accent {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-toggler {
        width: 50px !important;
        height: 50px !important;
        padding: 0.5rem !important;
    }
    
    .navbar-toggler-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .nav-link,
    .dropdown-item {
        color: var(--rangoon-green) !important;
    }
    
    .navbar-nav.ms-auto .btn-accent {
        width: calc(100% - 2rem) !important;
        margin: 0.5rem 1rem !important;
    }
}

@media (max-width: 400px) {
    .navbar-brand img {
        height: 36px !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-toggler {
        width: 48px !important;
        height: 48px !important;
        padding: 0.4rem !important;
    }
    
    .navbar-toggler-icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}


/* ================ */
/* Buttons */
/* ================ */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    --bs-btn-color: var(--citrine-white);
    --bs-btn-bg: var(--rust);
    --bs-btn-border-color: var(--rust);
    --bs-btn-hover-color: var(--citrine-white);
    --bs-btn-hover-bg: var(--di-serrria);
    --bs-btn-hover-border-color: var(--di-serrria);
    --bs-btn-active-bg: var(--di-serrria);
    --bs-btn-active-border-color: var(--di-serrria);
}

.btn-outline-primary {
    --bs-btn-color: var(--rust);
    --bs-btn-border-color: var(--rust);
    --bs-btn-hover-color: var(--citrine-white);
    --bs-btn-hover-bg: var(--rust);
    --bs-btn-hover-border-color: var(--rust);
}

.btn-accent {
    --bs-btn-color: var(--rangoon-green);
    --bs-btn-bg: var(--di-serrria);
    --bs-btn-border-color: var(--di-serrria);
    --bs-btn-hover-color: var(--rangoon-green);
    --bs-btn-hover-bg: rgba(var(--bs-accent-rgb), 0.9);
    --bs-btn-hover-border-color: rgba(var(--bs-accent-rgb), 0.9);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ================ */
/* Cards */
/* ================ */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    background: #fff;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-header {
    background-color: var(--rust);
    color: var(--citrine-white);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--rangoon-green);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
}

/* ================ */
/* Forms */
/* ================ */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--rust);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--rangoon-green);
}

/* ================ */
/* Footer - Premium Redesign */
/* ================ */
.site-footer {
    /* Footer sits in the last grid row automatically */
    background-color: var(--rangoon-green);
    color: var(--citrine-white);
    padding: 6rem 0 4rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-image: radial-gradient(circle at 20% 30%, rgba(var(--bs-accent-rgb), 0.1) 0%, transparent 25%);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--bs-accent-rgb), 0.12) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--citrine-white);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-base);
}

.footer-logo:hover {
    color: var(--di-serrria);
}

.footer-logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-base);
}

.footer-logo:hover img {
    transform: rotate(-5deg);
}

.footer-about {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem;
}

.footer-description {
    color: rgba(var(--bs-body-bg-rgb), 0.95);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 0;
    position: relative;
}

.footer-description::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5em;
    height: calc(100% - 1em);
    width: 4px;
    background: linear-gradient(to bottom, var(--di-serrria), var(--rust));
    border-radius: 4px;
}

.footer-links h5 {
    color: var(--citrine-white);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--di-serrria);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.footer-links h5:hover::after {
    width: 80px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(var(--bs-body-bg-rgb), 0.95);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-weight: 400;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--di-serrria);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--di-serrria);
    text-decoration: none;
    transform: translateX(10px);
}

.footer-links a:hover::before {
    width: 20px;
}

.footer-links a i {
    font-size: 0.8em;
    color: var(--di-serrria);
    transition: var(--transition-base);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-body-bg-rgb), 0.1);
    color: var(--citrine-white);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--bs-accent-rgb), 0.3);
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--di-serrria) 0%, var(--rust) 100%);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.social-link:hover {
    color: var(--rangoon-green);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(var(--bs-accent-rgb), 0.4);
    border-color: transparent;
}

.social-link:hover::after {
    opacity: 1;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--di-serrria);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.contact-text {
    color: rgba(var(--bs-body-bg-rgb), 0.95);
    line-height: 1.7;
    transition: var(--transition-base);
}

.contact-item:hover .contact-text {
    color: var(--di-serrria);
    transform: translateX(5px);
}

.subscribe-form {
    margin-top: 2.5rem;
}

.subscribe-form .form-control {
    background: rgba(var(--bs-body-bg-rgb), 0.08);
    border: 1px solid rgba(var(--bs-body-bg-rgb), 0.25);
    color: var(--citrine-white);
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-base);
}

.subscribe-form .form-control:focus {
    background: rgba(var(--bs-body-bg-rgb), 0.15);
    border-color: var(--di-serrria);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-accent-rgb), 0.15);
}

.subscribe-form .form-control::placeholder {
    color: rgba(var(--bs-body-bg-rgb), 0.6);
    font-weight: 300;
}

.subscribe-form .btn {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.subscribe-form .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--di-serrria), var(--rust));
    z-index: -1;
    transition: var(--transition-base);
}

.footer-bottom {
    border-top: 1px solid rgba(var(--bs-body-bg-rgb), 0.25);
    padding-top: 3rem;
    margin-top: 4rem;
    color: rgba(var(--bs-body-bg-rgb), 0.9);
    font-size: 1rem;
}

.footer-bottom a {
    color: var(--citrine-white);
    font-weight: 500;
    transition: var(--transition-base);
    margin: 0 1rem;
    position: relative;
}

.footer-bottom a:hover {
    color: var(--di-serrria);
    text-decoration: none;
}

.footer-bottom a::after {
    content: '•';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--bs-body-bg-rgb), 0.6);
}

.footer-bottom a:last-child::after {
    display: none;
}

.footer-copyright {
    background-color: var(--rangoon-green-translucent);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(var(--bs-accent-rgb), 0.15);
}

.copyright-text {
    color: rgba(var(--bs-body-bg-rgb), 0.85);
    font-size: 0.95rem;
    margin: 0;
    letter-spacing: 0.3px;
}

.current-year {
    color: var(--di-serrria);
    font-weight: 600;
}

.legal-links {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.legal-link {
    color: rgba(var(--bs-body-bg-rgb), 0.85);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.legal-link:hover {
    color: var(--di-serrria);
    text-decoration: none;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--di-serrria);
    transition: width 0.3s ease;
}

.legal-link:hover::after {
    width: 100%;
}

.link-divider {
    color: rgba(var(--bs-body-bg-rgb), 0.4);
    font-size: 0.8rem;
}

/* ===================== */
/* Footer Responsive Adjustments */
/* ===================== */
@media (max-width: 1200px) {
    .site-footer {
        padding: 5rem 0 3.5rem;
    }
    
    .footer-logo {
        font-size: 1.75rem;
    }
    
    .footer-logo img {
        height: 44px;
    }
}

@media (max-width: 992px) {
    .site-footer {
        padding: 4.5rem 0 3rem;
        background-image: none; /* Remove radial gradient on smaller screens */
    }
    
    .site-footer::before {
        width: 300px;
        height: 300px;
    }
    
    .footer-about {
        padding-left: 1.5rem;
    }
    
    .footer-description::before {
        left: -1.5rem;
        width: 3px;
    }
    
    .footer-links h5 {
        font-size: 1.2rem;
    }
    .site-footer .col-lg-2.col-md-3 {
        margin-bottom: 2rem !important; 
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 0 2.5rem;
    }
    
    .footer-logo {
        font-size: 1.65rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-description {
        font-size: 1.05rem;
    }
    
    .footer-links h5 {
        margin-bottom: 1.5rem;
        font-size: 1.15rem;
    }
    
    .footer-bottom {
        padding-top: 2.5rem;
        margin-top: 3rem;
        text-align: center;
    }
    
    .footer-bottom a {
        display: block;
        margin: 0.5rem 0;
    }
    
    .footer-bottom a::after {
        display: none;
    }
    .footer-copyright {
        padding: 1.25rem 0;
    }
    
    .copyright-text,
    .legal-link {
        font-size: 0.9rem;
    }
    
    .legal-links {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 3.5rem 0 2rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
        gap: 0.75rem;
    }
    
    .footer-logo img {
        height: 36px;
    }
    
    .social-links {
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .contact-item {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    .footer-copyright {
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ================ */
/* Cookie Banner Styles */
/* ================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rangoon-green);
    color: var(--citrine-white);
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: all 0.5s ease-in-out;
    transform: translateY(100%); /* Start hidden */
}

.cookie-banner.show {
    transform: translateY(0); /* Slide in */
}

.cookie-banner p {
    margin-bottom: 0;
    color: rgba(var(--bs-body-bg-rgb), 0.9);
}

.cookie-banner a {
    color: var(--di-serrria);
    text-decoration: underline;
}

.cookie-banner .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Modal Styles */
#cookieSettingsModal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

#cookieSettingsModal .modal-footer {
    border-top: 1px solid var(--border-color);
}

.form-check.custom-control { /* Specificity for Bootstrap switch style */
    padding-left: 2.25rem; /* Adjusted for standard Bootstrap switch sizing */
}

/* ================ */
/* Custom Toast Notification Styling (REVISED) */
/* ================ */
#toast-container {
    position: fixed;
    top: 1.5rem; /* Position from top */
    right: 1.5rem; /* Position from right */
    z-index: 2000; /* Very high z-index to ensure it's on top of everything */
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Space between multiple toasts */
    max-width: 350px; /* Max width for a single toast */
    pointer-events: none; /* Allows clicks to pass through the container when no toasts are present */
}

.toast-notification {
    pointer-events: all; /* Make individual toasts clickable (e.g., to close) */
    background-color: var(--citrine-white); /* Default light background */
    color: var(--text-color); /* Default dark text */
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(100%); /* Start off-screen to slide in */
    transition: opacity var(--transition-base), transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification .toast-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.toast-notification .toast-message {
    flex-grow: 1;
    font-size: 0.95rem;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary); /* Default dark close button */
    cursor: pointer;
    margin-left: 0.75rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}
.toast-notification .toast-close:hover {
    color: var(--text-color); /* Darker on hover */
}

/* Toast Type Specific Colors (Adapted for custom toasts) */
.toast-success {
    background-color: var(--bs-success);
    color: var(--citrine-white); /* White text for success */
}
.toast-success .toast-icon {
    color: var(--citrine-white);
}
.toast-success .toast-close {
    color: var(--citrine-white); /* White close button for success */
}

.toast-error { 
    background-color: var(--bs-danger);
    color: var(--citrine-white); /* White text for error */
}
.toast-error .toast-icon {
    color: var(--citrine-white);
}
.toast-error .toast-close {
    color: var(--citrine-white); /* White close button for error */
}

.toast-info {
    background-color: var(--bs-info);
    color: var(--citrine-white); /* White text for info */
}
.toast-info .toast-icon {
    color: var(--citrine-white);
}
.toast-info .toast-close {
    color: var(--citrine-white); /* White close button for info */
}

.toast-warning {
    background-color: var(--bs-warning);
    color: var(--rangoon-green); /* Dark text for warning */
}
.toast-warning .toast-icon {
    color: var(--rangoon-green);
}
.toast-warning .toast-close {
    color: var(--rangoon-green); /* Dark close button for warning */
}

/* ================ */
/* Auth Forms - Basic Styles */
/* ================ */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 15px;
}

.auth-card {
    background: var(--citrine-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    color: var(--rangoon-green);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--rust);
}

.icon-success {
    font-size: 3rem;
    color: var(--bs-success);
    margin: 1rem 0;
}

.verification-message {
    margin: 1.5rem 0;
    text-align: center;
}

.resend-link {
    margin-top: 1.5rem;
}

/* ================ */
/* Utility Classes */
/* ================ */
.bg-accent {
    background-color: var(--di-serrria) !important;
}

.bg-accent-light {
    background-color: var(--di-serrria-light) !important;
}

.text-accent {
    color: var(--di-serrria) !important;
}

.border-accent {
    border-color: var(--di-serrria) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* ================ */
/* Animations */
/* ================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===================== */
/* Global Responsive Adjustments */
/* ===================== */
@media (max-width: 1200px) {
    .navbar-brand img {
        height: 60px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 3rem 0;
    }
    
    .navbar-brand img {
        height: 55px;
    }
    
    .content-wrapper {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .content-wrapper {
        padding-top: 90px;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
        background-color: var(--citrine-white);
        margin-top: 0.5rem;
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-md);
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .nav-item {
        margin-bottom: 0.25rem;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    /* Footer links column adjustment for smaller screens */
    .site-footer .col-md-3 {
        margin-bottom: 2rem !important; 
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px; /* Reduce base font size for very small screens */
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .navbar-brand img {
        height: 42px;
    }
    
    .navbar-toggler {
        width: 40px !important;
        height: 40px !important;
        padding: 0.25rem !important;
    }
    
    .navbar-toggler-icon {
        width: 20px !important;
        height: 20px !important;
    }

    #toast-container {
        top: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        max-width: 90%;
    }
    
    .cookie-banner .col-md-4 {
        justify-content: center !important;
    }
    
    /* Ensure all text is readable on small screens */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    
    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar-brand img {
        height: 38px;
    }
    
    .section {
        padding: 1rem 0;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 12px;
    }
    
    .navbar-brand img {
        height: 36px;
    }
    
    .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .navbar-toggler {
        width: 36px !important;
        height: 36px !important;
    }
    
    .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 11px;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .container {
        padding-left: 0.125rem;
        padding-right: 0.125rem;
    }
    
    .section {
        padding: 0.75rem 0;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}