/* Mghairiye Municipality - Professional Government Style */

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --info-color: var(--accent-color);
    --light-bg: #f7fafc;
    --white: #ffffff;
    --text-heading: var(--primary-color);
    --text-dark: #2d3748;
    --text-light: #718096;
    --link-color: var(--accent-color);
    --link-hover-color: var(--primary-color);
    --placeholder-color: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  /* Buttons (overridden per municipality via theme block) */
    --btn-label-color: #ffffff;
    --btn-primary-bg: var(--primary-color);
    --btn-primary-hover-bg: var(--secondary-color);
    --btn-secondary-bg: var(--secondary-color);
    --btn-secondary-hover-bg: var(--primary-color);
    --btn-accent-bg: var(--accent-color);
    --btn-accent-hover-bg: var(--primary-color);
    /* Semantic text (theme block overrides --text-dark/light/heading/links) */
    --text-body: var(--text-dark);
    --text-muted: var(--text-light);
    --text-on-primary: #ffffff;
    --footer-text: var(--text-on-primary);
    --footer-text-muted: color-mix(in srgb, var(--text-on-primary) 78%, transparent);
    --alert-danger-text: color-mix(in srgb, var(--danger-color) 88%, #1a202c 12%);
    --alert-success-text: color-mix(in srgb, var(--success-color) 82%, #1a202c 18%);
    --alert-warning-text: color-mix(in srgb, var(--warning-color) 88%, #1a202c 12%);
    --alert-info-text: var(--link-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lighter placeholder text for all inputs and textareas */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
    color: var(--placeholder-color);
}
input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
    color: var(--placeholder-color);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Prevent layout shifts */
    will-change: transform;
    /* Smooth scroll behavior */
    transition: box-shadow 0.15s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    transition: padding 0.3s ease;
    overflow: visible;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    overflow: visible;
    position: relative;
}

.contact-info span {
    margin-left: 20px;
    font-size: 0.9rem;
}

.contact-info i {
    margin-left: 5px;
}

.contact-info .whatsapp-link {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-info .whatsapp-link:hover {
    color: #25d366;
    transform: scale(1.05);
}

.contact-info .whatsapp-link i {
    font-size: 1.1rem;
}

.header-social {
    display: inline-flex;
    gap: 8px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.3);
}

.header-social a {
    color: var(--white);
    font-size: 0.95rem;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.header-social a:hover {
    opacity: 1;
    transform: scale(1.15);
}

.header-social a:hover .fa-facebook-f { color: #1877f2; }
.header-social a:hover .fa-instagram { color: #e4405f; }
.header-social a:hover .fa-whatsapp { color: #25d366; }

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    transition: none;
    overflow: visible;
    position: relative;
    z-index: 1001;
}

/* Home link wrapper removed - logo is now the home button */

.header-actions > a.btn-login,
.header-actions > a.btn-register,
.header-actions > a.btn-admin,
.header-actions > a.btn-profile,
.header-actions > a.btn-logout {
    color: var(--white);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-actions > a .btn-text {
    transition: none;
    white-space: nowrap;
    display: inline-block;
}

/* Profile image styling - larger size */
.btn-profile .profile-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
    flex-shrink: 0;
}

.btn-profile .profile-placeholder {
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

/* Hide icon - always show image/placeholder instead */
.btn-profile i.fas.fa-user-alt {
    display: none !important;
}

/* Ensure profile button only shows image, not icon */
.btn-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.btn-login,
.btn-register,
.btn-admin,
.btn-profile {
    background: color-mix(in srgb, var(--secondary-color) 85%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 35%, transparent);
    color: var(--btn-label-color);
}

.btn-login:hover,
.btn-register:hover,
.btn-admin:hover,
.btn-profile:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--btn-label-color);
}

.btn-logout {
    background: var(--danger-color);
    border: 1px solid color-mix(in srgb, var(--danger-color) 80%, #000 20%);
    color: var(--btn-label-color);
}

.btn-logout:hover {
    background: color-mix(in srgb, var(--danger-color) 88%, #1a202c 12%);
    color: var(--btn-label-color);
}
.welcome-text {
    font-size: 0.9rem;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    z-index: 1001;
}

.btn-user-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: visible;
}

.btn-user-dropdown:hover {
    background: color-mix(in srgb, var(--accent-color) 75%, transparent);
    color: var(--white);
}

.btn-user-dropdown:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.btn-user-dropdown .profile-icon-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.btn-user-dropdown .profile-placeholder {
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

.btn-user-dropdown .user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block;
}

/* Bootstrap dropdown-toggle adds its own caret, no need for manual chevron */

.user-dropdown .dropdown-menu {
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 220px;
    right: 0;
    left: auto;
    z-index: 1002;
    position: absolute;
    background-color: #ffffff;
    opacity: 1 !important;
    visibility: visible !important;
    direction: rtl;
}

.user-dropdown .dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    color: var(--text-dark) !important;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: center;
    direction: rtl;
    position: relative;
}

.user-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--text-dark) !important;
    opacity: 1 !important;
}

.user-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    position: absolute;
    right: 16px;
}

.user-dropdown .dropdown-item span {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    display: block;
}

.user-dropdown .dropdown-item.text-danger {
    color: var(--danger-color) !important;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background-color: color-mix(in srgb, var(--danger-color) 12%, #ffffff 88%);
    color: var(--alert-danger-text) !important;
}

.user-dropdown .dropdown-header,
.user-dropdown .dropdown-menu h6.dropdown-header {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 10px 16px;
    font-size: 0.95rem;
    text-align: center;
    direction: rtl;
}

/* Profile menu links use dropdown-header class in markup — treat like items */
.user-dropdown .dropdown-menu a.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    direction: rtl;
    position: relative;
}

.user-dropdown .dropdown-menu a.dropdown-header:hover {
    background-color: #f8f9fa;
    color: var(--text-dark) !important;
}

.user-dropdown .dropdown-menu a.dropdown-header i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    position: absolute;
    right: 16px;
    color: inherit;
}

.user-dropdown .dropdown-menu a.dropdown-header span {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    display: block;
}

.header-profile-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
    margin-left: 8px;
}

.btn-profile .profile-icon-img,
.main-nav a .profile-icon-img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    max-width: 24px;
    max-height: 24px;
    transition: all 0.3s ease;
}

.header-main {
    padding: 20px 0;
    /* Use transform for smoother transitions */
    transition: padding 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled .header-main {
    padding: 12px 0;
}

/* Profile image does not shrink on scroll */
.main-header.scrolled .btn-profile .profile-icon-img {
    width: 40px !important;
    height: 40px !important;
    border-width: 2px;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Ensure logo and nav stay on same row for large screens */
@media (min-width: 769px) {
    .header-main-content {
        flex-wrap: nowrap;
    }
}

.logo.home-button {
    display: flex;
    align-items: center;
    /* Fixed size to prevent shaking on scroll */
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    /* Prevent layout shifts */
    flex-shrink: 0;
}

.logo.home-button:active {
    opacity: 0.75;
}

.logo-image-wrapper {
    position: relative;
    display: inline-block;
    /* Fixed size to prevent shaking on scroll */
    height: 45px;
    width: auto;
}

.logo-img {
    /* Fixed size to prevent shaking on scroll */
    height: 45px;
    width: auto;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: block;
    position: relative;
    z-index: 1;
}

.home-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Fixed size to prevent shaking on scroll */
    height: 45px;
    width: 45px;
    display: none !important;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: opacity 0.2s ease;
    font-size: 2rem;
    z-index: 2;
}

/* On hover - swap logo with icon */
.logo.home-button:hover .logo-img {
    opacity: 0;
    visibility: hidden;
}

.logo.home-button:hover .home-icon {
    display: flex !important;
}

.logo-text h1 {
    /* Fixed size to prevent shaking on scroll */
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo-text {
    position: relative;
}

.logo-text h6 {
    color: var(--text-light);
    /* Fixed size to prevent shaking on scroll */
    font-size: 0.75rem;
    margin: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.logo-subtitle-default {
    display: block;
}

.logo-subtitle-hover {
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
}

/* On hover - swap subtitle */
.logo.home-button:hover .logo-subtitle-default {
    opacity: 0;
    visibility: hidden;
}

.logo.home-button:hover .logo-subtitle-hover {
    opacity: 1;
    visibility: visible;
}

.logo-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    /* Only transition transform and opacity, not all properties */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    transform-origin: center;
    /* Prevent layout shifts */
    display: block;
    will-change: transform, opacity;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    align-items: stretch;
    /* Prevent layout shifts */
    min-height: 50px;
}

/* Prevent navigation from wrapping on large screens */
@media (min-width: 769px) {
    .main-nav ul {
        flex-wrap: nowrap;
    }
}

/* Ensure navigation container is stable */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* Prevent layout shifts */
    min-width: 0;
}

@media (max-width: 768px) {
    .main-nav {
        width: 100%;
        order: 3;
    }
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    white-space: nowrap;
    /* Remove all transitions to prevent shaking */
    transition: background-color 0.2s ease, color 0.2s ease;
    /* Use will-change for better performance */
    will-change: background-color;
    /* Fixed size to prevent shaking on scroll */
    min-width: 65px;
    font-size: 0.85rem;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

.main-nav i {
    margin: 0;
    flex-shrink: 0;
    /* Only transition on hover, not on scroll */
    transition: transform 0.2s ease;
    /* Fixed size to prevent shaking on scroll */
    font-size: 1.1rem;
    width: auto;
    text-align: center;
    /* Prevent layout shifts */
    display: inline-block;
    line-height: 1;
}

.main-nav a:hover i {
    transform: scale(1.1);
}

.main-nav .nav-text {
    white-space: nowrap;
    font-size: 0.8rem;
    line-height: 1.2;
    /* Remove transitions that cause shaking */
    transition: none;
    display: inline-block;
    font-weight: 500;
}

/* Dropdown Navigation */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-toggle {
    cursor: pointer;
}

.main-nav .dropdown-toggle .dropdown-chevron {
    font-size: 0.7rem;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.main-nav .dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 5px 0;
    z-index: 1000;
    list-style: none;
    margin-right: 0;
    margin-left: 0;
    display: none;
}

.main-nav .dropdown-menu.show {
    display: block;
}

.main-nav .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
}

.main-nav .dropdown-menu .dropdown-item:hover,
.main-nav .dropdown-menu .dropdown-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.main-nav .dropdown-menu .dropdown-item i {
    font-size: 1.2rem;
    margin: 0;
}

.main-header.scrolled .main-nav .dropdown-menu {
    margin-top: 8px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
}

.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: color-mix(in srgb, var(--success-color) 14%, #ffffff 86%);
    color: var(--alert-success-text);
    border-right: 4px solid var(--success-color);
}

.flash-error {
    background: color-mix(in srgb, var(--danger-color) 12%, #ffffff 88%);
    color: var(--alert-danger-text);
    border-right: 4px solid var(--danger-color);
}

.flash-info {
    background: color-mix(in srgb, var(--info-color) 14%, #ffffff 86%);
    color: var(--alert-info-text);
    border-right: 4px solid var(--info-color);
}

.close-flash {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

/* Hero Section - background from site settings (صورة الغلاف) only */
.hero-section {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    margin-top: -30px;
    margin-bottom: 30px;
    position: relative;
    height: 500px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}


.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    width: 100%;
    max-width: 1200px;
    margin-top: -100px;
    padding: 0 1.25rem;
    box-sizing: border-box;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.hero-title {
    font-size: calc(1.375rem + 1.5vw);
    line-height: 1.3;
    margin: 0 0 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-slogan {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Home Grid */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News Image Placeholder */
.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder i {
    font-size: 3.5rem;
    color: var(--border-color);
    opacity: 0.8;
}

.news-image-placeholder.large {
    height: 300px;
    border-radius: 8px;
}

.news-image-placeholder.large i {
    font-size: 5rem;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.news-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: var(--accent-color);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-meta i {
    margin-left: 5px;
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--border-color);
    transition: all 0.3s;
}

.announcement-card:hover {
    box-shadow: var(--shadow-lg);
}

.announcement-card.priority-urgent {
    border-right-color: var(--danger-color);
    background: #fff5f5;
}

.announcement-card.priority-important {
    border-right-color: var(--warning-color);
    background: #fffaf0;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.announcement-header h3 {
    margin: 0;
}

.announcement-header h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.priority-badge.urgent {
    background: var(--danger-color);
    color: var(--white);
}

.priority-badge.important {
    background: var(--warning-color);
    color: var(--white);
}

/* Badge Colors */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: color-mix(in srgb, var(--success-color) 18%, #ffffff 82%);
    color: var(--alert-success-text);
}

.badge-warning {
    background: color-mix(in srgb, var(--warning-color) 20%, #ffffff 80%);
    color: var(--alert-warning-text);
}

.badge-danger {
    background: color-mix(in srgb, var(--danger-color) 15%, #ffffff 85%);
    color: var(--alert-danger-text);
}

.badge-info {
    background: color-mix(in srgb, var(--info-color) 18%, #ffffff 82%);
    color: var(--alert-info-text);
}

.badge-primary {
    background: color-mix(in srgb, var(--primary-color) 15%, #ffffff 85%);
    color: var(--text-heading);
}

.badge-secondary {
    background: #e2e3e5;
    color: var(--text-dark);
}

.badge-dark {
    background: #212529;
    color: #ffffff;
}

.announcement-excerpt {
    color: var(--text-light);
    margin-bottom: 10px;
}

.announcement-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Quick Links */
.quick-links {
    margin-top: 40px;
}

.quick-links h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-link {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-link i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-link h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.quick-link p {
    margin: 0;
    transition: all 0.3s ease;
}

/* Content wrapper for better layout control */
.quick-link-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

/* Document category card badge */
.document-category-card {
    position: relative;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: grey;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
}

.document-category-card:hover .category-badge {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

.page-header i {
    margin-left: 10px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-top: 1rem;
}

.breadcrumb {
    --bs-breadcrumb-divider: none; /* Disable Bootstrap divider */
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f104' !important; /* FontAwesome chevron-left for RTL */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free' !important;
    font-weight: 900;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    color: var(--text-light);
    font-size: 0.75rem;
    float: none !important;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* News Detail */
.news-detail {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.news-detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.news-detail-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.news-detail-excerpt {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid var(--accent-color);
    margin-bottom: 25px;
    margin-top: 25px;
}

.news-detail-excerpt p {
    color: var(--text-dark);
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 600;
}

.news-detail-image {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* CKEditor Content Styles */
.news-detail-content p {
    margin-bottom: 1em;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 1em 0;
    padding-right: 2em;
    padding-left: 0;
}

.news-detail-content ul {
    list-style-type: disc;
}

.news-detail-content ol {
    list-style-type: decimal;
}

.news-detail-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.news-detail-content ul ul,
.news-detail-content ol ol,
.news-detail-content ul ol,
.news-detail-content ol ul {
    margin: 0.5em 0;
    padding-right: 1.5em;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.news-detail-content h1 { font-size: 2em; }
.news-detail-content h2 { font-size: 1.75em; }
.news-detail-content h3 { font-size: 1.5em; }

.news-detail-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-right: 4px solid var(--primary-color);
    background: var(--light-bg);
    font-style: italic;
}

.news-detail-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.news-detail-content a:hover {
    color: var(--primary-color);
}

.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.news-detail-content table th,
.news-detail-content table td {
    border: 1px solid var(--border-color);
    padding: 0.75em;
    text-align: right;
}

.news-detail-content table th {
    background: var(--light-bg);
    font-weight: 600;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 8px;
}

/* Author Signature */
.news-author-signature {
    margin: 2em 0;
    padding: 1.5em;
    background: linear-gradient(135deg, var(--light-bg) 0%, #edf2f7 100%);
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    text-align: left;
    direction: ltr;
}

.news-author-signature .author-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5em;
    direction: rtl;
    text-align: right;
}

.news-author-signature .author-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    direction: rtl;
    text-align: right;
}

.news-detail-footer {
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* Comments (news-detail, project-detail, etc.) */
.comments-section {
    margin-top: 30px;
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.comments-section__title {
    margin: 0 0 25px 0;
    color: var(--text-heading);
    font-size: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.comments-section__title i {
    color: var(--accent-color);
    margin-left: 8px;
}

.comments-section .add-comment-form {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
}

.comments-section .add-comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.comments-section .add-comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    resize: vertical;
    color: var(--text-dark);
}

.comments-section .add-comment-form textarea::placeholder {
    color: var(--placeholder-color);
}

.comments-section .comment-submit-btn,
.comments-section .comment-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border: 2px solid var(--secondary-color);
    color: var(--btn-label-color) !important;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background 0.2s ease;
}

.comments-section .comment-submit-btn:hover,
.comments-section .comment-login-link:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-color: var(--primary-color);
    color: var(--btn-label-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.comments-section .login-prompt-text {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.comments-section .login-prompt-text i {
    color: var(--accent-color);
}

.comments-section .comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.comments-section .comment-item {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: var(--light-bg);
    border-right: 4px solid var(--accent-color);
}

.comments-section .comment-item.comment-item--admin {
    background: color-mix(in srgb, var(--success-color) 12%, var(--white) 88%);
    border-right-color: var(--success-color);
}

.comments-section .comment-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--accent-color);
}

.comments-section .comment-item--admin .comment-item__avatar {
    background: var(--success-color);
}

.comments-section .comment-item__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.comments-section .comment-item--admin .comment-item__avatar img {
    border-color: var(--success-color);
}

.comments-section .comment-item__name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.comments-section .comment-item__date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.comments-section .comment-item__body {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
    white-space: pre-wrap;
}

.comments-section .comment-badge-official {
    background: var(--success-color);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 8px;
}

/* Social share (news-detail and other detail pages) */
.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}

.social-share-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.social-share-label i {
    color: var(--accent-color);
}

.social-share-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: #ffffff !important;
    background: var(--text-light);
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
    text-decoration: none;
}

.social-share-btn.facebook { background: #1877f2; }
.social-share-btn.facebook:hover { background: #166fe5; color: #ffffff !important; }
.social-share-btn.twitter { background: #1da1f2; }
.social-share-btn.twitter:hover { background: #1a91da; color: #ffffff !important; }
.social-share-btn.whatsapp { background: #25d366; }
.social-share-btn.whatsapp:hover { background: #20ba5a; color: #ffffff !important; }
.social-share-btn.linkedin { background: #0077b5; }
.social-share-btn.linkedin:hover { background: #006399; color: #ffffff !important; }
.social-share-btn.email { background: var(--secondary-color); }
.social-share-btn.email:hover { background: var(--primary-color); color: #ffffff !important; }
.social-share-btn.copy-link { background: var(--secondary-color); }
.social-share-btn.copy-link:hover { background: var(--primary-color); color: #ffffff !important; }
.social-share-btn.copy-link.copied { background: var(--success-color); color: #ffffff !important; }

@media (max-width: 768px) {
    .social-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .social-share-icons {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: space-between;
    }
    .social-share-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 10px 4px;
    }
    .social-share-btn span {
        display: none;
    }
}

/* Announcement Detail */
.announcement-detail {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--border-color);
}

.announcement-detail.priority-urgent {
    border-right-color: var(--danger-color);
    background: #fff5f5;
}

.announcement-detail.priority-important {
    border-right-color: var(--warning-color);
    background: #fffaf0;
}

.announcement-detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.announcement-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* Documents */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.document-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: center;
}

.document-icon {
    font-size: 3rem;
    color: var(--danger-color);
}

.document-info {
    flex: 1;
}

.document-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

.document-description {
    color: var(--text-light);
    margin-bottom: 10px;
}

.document-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.access-badge {
    color: var(--warning-color);
    font-weight: bold;
}

.document-actions {
    display: flex;
    gap: 10px;
}

/* Contact Page */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-section h2,
.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 12px;
}

.contact-info-section h2::after,
.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.contact-info-card {
    background: linear-gradient(145deg, var(--white) 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
    padding: 18px;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    transform: translateX(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.1);
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Form Styling */
.contact-form {
    background: #e8e8e8;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    left: -2px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

.contact-form .form-group {
    margin-bottom: 24px;
    position: relative;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #e8e8e8;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #cbd5e0;
    background: #e8e8e8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #e8e8e8;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

.contact-form input:focus + label,
.contact-form textarea:focus + label {
    color: var(--accent-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

/* Contact Form Button */
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 2px solid var(--primary-color);
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    color: var(--btn-label-color) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-color: var(--secondary-color);
    color: var(--btn-label-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color) 45%, transparent);
}

.contact-form .btn-primary:hover::before {
    left: 100%;
}

.contact-form .btn-primary:active {
    transform: translateY(0);
}

/* Contact Form Alerts */
.contact-form-section .alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-section .alert i {
    font-size: 1.3rem;
}

.contact-form-section .alert-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #c53030;
    border: 1px solid #feb2b2;
    border-right: 4px solid var(--danger-color);
}

.contact-form-section .alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #276749;
    border: 1px solid #9ae6b4;
    border-right: 4px solid var(--success-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Input Animation */
.contact-form .form-group {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.contact-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-form .form-group:nth-child(2) { animation-delay: 0.15s; }
.contact-form .form-group:nth-child(3) { animation-delay: 0.2s; }
.contact-form .form-group:nth-child(4) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
}

.auth-card {
    background: #e8e8e8;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    color: var(--text-heading);
    margin-bottom: 25px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.3s;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.auth-form small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Buttons — theme palette (--btn-* set in :root / #municipality-theme) */
.btn,
a.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-primary,
a.btn-primary,
button.btn-primary,
input.btn-primary,
.comment-submit-btn,
.choice-btn,
.alert-with-button .btn-primary {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--btn-label-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
a.btn-primary:hover,
button.btn-primary:hover,
.comment-submit-btn:hover,
.choice-btn:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-bg);
    color: var(--btn-label-color) !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
    background: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-bg);
    color: var(--btn-label-color) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
a.btn-secondary:hover,
button.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-bg);
    color: var(--btn-label-color) !important;
}

.btn-success,
a.btn-success,
button.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--btn-label-color) !important;
}

.btn-success:hover,
.btn-success:focus {
    background: color-mix(in srgb, var(--success-color) 85%, #1a202c 15%);
    border-color: color-mix(in srgb, var(--success-color) 85%, #1a202c 15%);
    color: var(--btn-label-color) !important;
}

.btn-danger,
a.btn-danger,
button.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--btn-label-color) !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background: color-mix(in srgb, var(--danger-color) 88%, #1a202c 12%);
    border-color: color-mix(in srgb, var(--danger-color) 88%, #1a202c 12%);
    color: var(--btn-label-color) !important;
}

.btn-warning,
a.btn-warning,
button.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--btn-label-color) !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background: color-mix(in srgb, var(--warning-color) 88%, #1a202c 12%);
    border-color: color-mix(in srgb, var(--warning-color) 88%, #1a202c 12%);
    color: var(--btn-label-color) !important;
}

.btn-info,
a.btn-info,
button.btn-info {
    background: var(--btn-accent-bg);
    border-color: var(--btn-accent-bg);
    color: var(--btn-label-color) !important;
}

.btn-info:hover,
.btn-info:focus {
    background: var(--btn-accent-hover-bg);
    border-color: var(--btn-accent-hover-bg);
    color: var(--btn-label-color) !important;
}

.btn-outline-primary,
a.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--btn-label-color) !important;
}

.btn-outline-secondary,
a.btn-outline-secondary {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--btn-label-color) !important;
}

.btn-link,
a.btn-link {
    background: transparent;
    border-color: transparent;
    color: var(--link-color) !important;
    padding-left: 0;
    padding-right: 0;
}

.btn-link:hover,
.btn-link:focus {
    color: var(--link-hover-color) !important;
    text-decoration: underline;
}

.btn-sm,
a.btn-sm {
    padding: 6px 14px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: color-mix(in srgb, var(--danger-color) 12%, #ffffff 88%);
    color: var(--alert-danger-text);
    border-right: 4px solid var(--danger-color);
}

.alert-success {
    background: color-mix(in srgb, var(--success-color) 14%, #ffffff 86%);
    color: var(--alert-success-text);
    border-right: 4px solid var(--success-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 15px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* No Content */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--border-color);
}

.info-message {
    background: #bee3f8;
    color: var(--secondary-color);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border-right: 4px solid var(--info-color);
}

.info-message a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Utility Classes for Common Patterns */
.alert-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.alert-with-button .btn {
    margin-right: 15px;
}

.filters-bar {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters-bar form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.filters-bar .filter-group {
    flex: 1;
    min-width: 200px;
}

.filters-bar .filter-group-small {
    min-width: 200px;
}

.filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.results-count {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Photo/Video Preview Grids */
.photos-section,
.videos-section,
.issues-section {
    margin: 40px 0;
}

.photos-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Horizontal scroll for photos on small screens */
@media (max-width: 768px) {
    .photos-section {
        position: relative;
    }
    
    .photos-section::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        width: 40px;
        height: 100px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    .photos-preview-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .photos-preview-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .photos-preview-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .photos-preview-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .photos-preview-grid::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .photo-preview-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
}

.videos-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Horizontal scroll for videos on small screens */
@media (max-width: 768px) {
    .videos-section {
        position: relative;
    }
    
    .videos-section::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        width: 40px;
        height: 100px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    .videos-preview-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 15px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .videos-preview-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .videos-preview-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .videos-preview-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .videos-preview-grid::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .video-preview-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

.photo-preview-card,
.video-preview-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.photo-preview-card:hover,
.video-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.photo-preview-image,
.video-preview-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.video-preview-thumbnail {
    height: 180px;
    background: #000;
}

.photo-preview-image img,
.video-preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder,
.video-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder i {
    font-size: 36px;
    color: var(--text-light);
}

.video-placeholder {
    background: #000;
}

.video-placeholder i {
    font-size: 48px;
    color: var(--text-light);
}

.photo-preview-info,
.video-preview-info {
    padding: 10px;
}

.video-preview-info {
    padding: 15px;
}

.photo-preview-info h4,
.video-preview-info h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
    text-align: center;
}

.video-preview-info h4 {
    font-size: 16px;
    text-align: right;
    margin-bottom: 8px;
}

.video-preview-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-overlay i {
    font-size: 20px;
    color: var(--text-dark);
    margin-left: 3px;
}

/* Issue Cards Grid (for index page) */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Horizontal scroll for issues on small screens */
@media (max-width: 768px) {
    .issues-section {
        position: relative;
    }
    
    .issues-section::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        width: 40px;
        height: 100px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    .issues-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 15px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .issues-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .issues-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .issues-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .issues-grid::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .issue-card-grid {
        flex: 0 0 320px;
        scroll-snap-align: start;
    }
}

.issue-card-grid {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.issue-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.issue-card-header {
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.issue-card-body {
    padding: 15px 20px;
    flex: 1;
}

.issue-card-footer {
    padding: 12px 20px;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
}

/* Text Utilities */
.text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

.icon-spacing {
    margin-left: 8px;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link-primary:hover {
    color: var(--secondary-color);
}

/* Text Center with Margin */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

/* Auth Links Divider */
.auth-links-divider {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Database Error Message (Admin Only) */
.flash-error.db-error {
    background: var(--danger-color);
    color: var(--text-on-primary);
    padding: 15px;
    margin-bottom: 20px;
}

.flash-error.db-error .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-error.db-error .container > div {
    flex: 1;
}

.flash-error.db-error p {
    margin: 0 0 5px 0;
}

.flash-error.db-error p:last-child {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Button in Alert */
.alert .btn {
    flex-shrink: 0;
}

.alert-info {
    background: #e3f2fd;
    color: var(--link-color);
    border-right: 4px solid var(--info-color);
}

.alert-warning {
    background: color-mix(in srgb, var(--warning-color) 14%, #ffffff 86%);
    color: var(--alert-warning-text);
    border-right: 4px solid var(--warning-color);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section a:hover {
    color: var(--white);
}

.footer-section i {
    margin-left: 8px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

/* Footer Social Media */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    height: 38px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a i {
    margin: 0 !important;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social a.social-facebook:hover {
    background: #1877f2;
}

.footer-social a.social-twitter:hover {
    background: #1da1f2;
}

.footer-social a.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a.social-whatsapp:hover {
    background: #25d366;
}

.footer-social a.social-youtube:hover {
    background: #ff0000;
}

.footer-social a.social-tiktok:hover {
    background: #000000;
}

/* Medium screens - gradual text hiding */
@media (max-width: 992px) and (min-width: 769px) {
    .header-actions > a .btn-text {
        font-size: 0.8rem;
    }
    
    .header-actions > a.btn-login {
        padding: 5px 10px;
    }
    
    .btn-user-dropdown .user-name {
        font-size: 0.85rem;
    }
    
    .btn-user-dropdown {
        padding: 6px 12px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    /* Force header-top to single row */
    .header-top {
        padding: 8px 0 !important;
        overflow: visible !important;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .contact-item {
        padding: 14px;
    }
    
    .contact-item i {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .header-top-content {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .header-top .container {
        padding: 0 10px !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .contact-info {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .contact-info span {
        margin-left: 0;
        margin-right: 10px;
    }
    
    /* Hide text in contact info, show only icons on small screens */
    .contact-info span:not(.whatsapp-link) {
        font-size: 0;
    }
    
    .contact-info span:not(.whatsapp-link) i {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .contact-info .whatsapp-link {
        font-size: 0;
    }
    
    .contact-info .whatsapp-link i {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .header-actions {
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        margin-left: auto !important;
        flex-direction: row !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 1001 !important;
    }
    
    .header-actions > * {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    .header-actions > a.btn-login,
    .header-actions .btn-user-dropdown {
        flex: 0 0 auto !important;
        min-width: 80px !important;
        width: auto !important;
        max-width: 100px !important;
        padding: 14px 16px !important;
        font-size: 1.6rem !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .header-actions > a.btn-login i,
    .header-actions .btn-user-dropdown i {
        margin: 0 !important;
        font-size: 1.8rem !important;
        display: block !important;
    }
    
    
    .header-actions > a .profile-icon-img {
        margin: 0 !important;
        display: block !important;
    }
    
    /* Hide button text on smaller screens */
    .header-actions > a .btn-text {
        display: none !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Profile image on small screens - larger size */
    .btn-profile .profile-icon-img {
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        display: block !important;
        border-radius: 50%;
        object-fit: cover;
    }
    
    /* Hide any icon that might appear next to profile image */
    .btn-profile i.fas.fa-user-alt {
        display: none !important;
    }
    
    /* Ensure profile image is the only visible element in profile button */
    .btn-profile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .btn-profile > *:not(.profile-icon-img):not(.btn-text) {
        display: none !important;
    }
    
    .welcome-text {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        font-size: 0 !important;
    }
    
    /* User dropdown on mobile */
    .btn-user-dropdown {
        padding: 6px 10px !important;
        min-width: auto !important;
        max-width: none !important;
        gap: 8px !important;
        white-space: normal !important;
        flex-wrap: wrap !important;
        word-wrap: break-word !important;
    }
    
    .btn-user-dropdown .user-name {
        display: inline-block !important;
        font-size: 0.85rem !important;
        max-width: 100%;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
    }
    
    .btn-user-dropdown .profile-icon-img {
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        flex-shrink: 0;
    }
    
    .user-dropdown .dropdown-menu {
        min-width: 180px !important;
        max-width: calc(100vw - 20px) !important;
        right: 0 !important;
        left: auto !important;
        z-index: 1002 !important;
        position: absolute !important;
        font-size: 0.85rem !important;
    }
    
    .user-dropdown .dropdown-header {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .user-dropdown .dropdown-item {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .user-dropdown .dropdown-item i {
        width: 16px !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Minimize header on small screens when scrolled */
    .main-header.scrolled .header-main {
        padding: 5px 0;
        transition: padding 0.1s ease;
    }
    
    .main-header.scrolled .header-actions {
        gap: 2px !important;
    }
    
    .main-header.scrolled .header-actions > .btn-login,
    .main-header.scrolled .header-actions .btn-user-dropdown {
        padding: 10px 12px !important;
        font-size: 1.4rem !important;
        min-width: 70px !important;
        max-width: 90px !important;
    }
    
    .main-header.scrolled .header-actions > .btn-login i,
    .main-header.scrolled .header-actions .btn-user-dropdown i {
        font-size: 1.6rem !important;
    }
    
    
    /* Logo - fixed size on mobile to prevent shaking */
    .logo.home-button {
        gap: 6px;
    }
    
    .logo-image-wrapper {
        height: 28px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .home-icon {
        height: 28px;
        width: 28px;
        font-size: 1.8rem;
        display: none !important;
    }
    
    .logo.home-button:hover .home-icon {
        display: flex !important;
    }
    
    .logo-text h1 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    
    .logo-text h6 {
        font-size: 0.6rem;
    }
    
    .main-header.scrolled .mobile-menu-toggle {
        /* Keep position stable to prevent shaking */
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        transition: width 0.15s ease, height 0.15s ease;
    }
    
    .main-header.scrolled .mobile-menu-toggle span {
        height: 2px;
        transition: height 0.15s ease;
    }
    
    /* Profile image does not shrink on scroll */
    .main-header.scrolled .btn-profile .profile-icon-img {
        width: 44px !important;
        height: 44px !important;
    }
    
    .main-header.scrolled .header-main-content {
        gap: 10px;
    }
    
    .header-main-content {
        flex-direction: column;
        text-align: center;
        position: relative;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Responsive Navigation */
    /* Position menu relative to header-main so it stays within sticky header */
    .header-main {
        position: relative;
        overflow: visible;
    }
    
    /* Position menu relative to header-main (not header-main-content) to ensure it stays with sticky header */
    .main-nav {
        width: 100vw;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin-top: 0;
    }
    
    .main-nav.active {
        max-height: 500px;
        opacity: 1;
        margin-top: 0;
    }
    
    /* Ensure the entire header structure stays sticky together */
    /* The menu is absolutely positioned within header-main, which is inside sticky main-header */
    /* This ensures the menu moves with the header when scrolling */
    .main-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000;
    }
    
    /* Ensure header-main allows the menu to overflow and stay within sticky bounds */
    .main-header .header-main {
        position: relative;
        overflow: visible;
    }
    
    /* Position menu relative to header-main (not header-main-content) */
    /* This ensures it stays within the sticky header bounds */
    .header-main .container {
        position: static;
    }
    
    .header-main-content {
        position: static;
    }
    
    /* Override menu positioning to be relative to header-main */
    .main-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav a {
        width: 100%;
        padding: 18px 24px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        justify-content: flex-start;
        font-size: 1.1rem;
        flex-direction: row;
        gap: 12px;
        min-width: unset;
    }
    
    .main-nav a i {
        font-size: 1.3rem !important;
        margin-left: 10px !important;
        margin-bottom: 0 !important;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: var(--primary-color);
        color: var(--white);
        padding-right: 25px;
    }
    
    /* Show nav text on mobile, keep icons */
    .main-nav .nav-text {
        opacity: 1;
        width: auto;
        margin: 0;
        font-size: 1rem;
    }
    
    /* Mobile Dropdown Styles */
    .main-nav .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        background: rgba(0, 0, 0, 0.05);
        display: none;
    }
    
    .main-nav .dropdown-menu.show {
        display: block;
    }
    
    .main-nav .dropdown-menu .dropdown-item {
        padding: 15px 10px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        height: 350px;
        min-height: 350px;
        padding: 60px 20px;
        background-attachment: scroll;
        margin-top: -30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-slogan {
        font-size: 1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
    }
    
    .document-info h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 6px 0;
    }
    
    .header-top-content {
        gap: 2px !important;
        flex-wrap: nowrap !important;
    }
    
    .contact-info {
        display: none;
    }
    
    .contact-info span {
        margin-right: 0;
        font-size: 0;
    }
    
    /* Show only icons in contact info */
    .contact-info span i {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .contact-info .whatsapp-link {
        font-size: 0;
    }
    
    .contact-info .whatsapp-link i {
        font-size: 1.2rem;
    }
    
    .header-actions {
        flex-direction: row !important;
        width: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }
    
    .home-link-wrapper {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        order: -1 !important;
    }
    
    .header-actions > a.btn-login,
    .header-actions .btn-user-dropdown {
        flex: 0 0 auto !important;
        min-width: 70px !important;
        max-width: 90px !important;
        padding: 12px 14px !important;
        font-size: 1.5rem !important;
    }
    
    .header-actions > a.btn-login i,
    .header-actions .btn-user-dropdown i {
        font-size: 1.7rem !important;
    }
    
    /* Hide text on very small screens */
    .header-actions > a .btn-text {
        display: none !important;
    }
    
    /* Ensure profile image is visible and icon is hidden - larger size */
    .btn-profile .profile-icon-img {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        display: block !important;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .btn-profile i.fas.fa-user-alt {
        display: none !important;
    }
    
    .btn-profile > *:not(.profile-icon-img):not(.btn-text) {
        display: none !important;
    }
    
    .welcome-text {
        display: none !important;
    }
    
    .header-actions .btn-user-dropdown > i:not(.dropdown-menu i) {
        margin: 0;
    }
    
    /* Profile image size on very small screens */
    .btn-profile .profile-icon-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .main-nav a .profile-icon-img {
        width: 14px !important;
        height: 14px !important;
        max-width: 14px;
        max-height: 14px;
    }
    
    /* User dropdown on very small screens */
    .btn-user-dropdown {
        padding: 5px 8px !important;
        max-width: none !important;
        gap: 6px !important;
        white-space: normal !important;
        flex-wrap: wrap !important;
        word-wrap: break-word !important;
    }
    
    .btn-user-dropdown .user-name {
        display: inline-block !important;
        font-size: 0.75rem !important;
        max-width: 100%;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
    }
    
    .btn-user-dropdown .profile-icon-img {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0;
    }
    
    .user-dropdown .dropdown-menu {
        color: var(--text-dark) !important;
        min-width: 160px !important;
        max-width: calc(100vw - 15px) !important;
        font-size: 0.8rem !important;
    }
    
    .user-dropdown .dropdown-header,
    .user-dropdown .dropdown-menu a.dropdown-header {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        color: var(--text-dark) !important;
    }
    
    .user-dropdown .dropdown-item {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        color: var(--text-dark) !important;
    }
    
    .user-dropdown .dropdown-item i,
    .user-dropdown .dropdown-menu a.dropdown-header i {
        width: 14px !important;
        font-size: 0.85rem !important;
        color: inherit !important;
    }
    
    .mobile-menu-toggle {
        left: 10px;
    }
    
    /* Logo - fixed size for very small screens to prevent shaking */
    .logo.home-button {
        gap: 6px;
    }
    
    .logo-image-wrapper {
        height: 24px;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .home-icon {
        height: 24px;
        width: 24px;
        font-size: 1.5rem;
        display: none !important;
    }
    
    .logo.home-button:hover .home-icon {
        display: flex !important;
    }
    
    .logo-text h1 {
        font-size: 0.85rem;
    }
    
    .logo-text h6 {
        font-size: 0.6rem;
    }
    
    /* Scrolled state for very small screens */
    .main-header.scrolled .header-main {
        padding: 4px 0;
        transition: padding 0.1s ease;
    }
    
    .main-header.scrolled .header-actions {
        gap: 1px !important;
    }
    
    .main-header.scrolled .header-actions > a.btn-login,
    .main-header.scrolled .header-actions .btn-user-dropdown {
        padding: 10px 12px !important;
        min-width: 70px !important;
        max-width: 90px !important;
        font-size: 1.4rem !important;
    }
    
    .main-header.scrolled .header-actions > a.btn-login i,
    .main-header.scrolled .header-actions .btn-user-dropdown i {
        font-size: 1.6rem !important;
    }
    
    /* Profile image does not shrink on scroll */
    .main-header.scrolled .btn-profile .profile-icon-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Document titles for very small screens */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .document-info h3 {
        font-size: 1rem;
    }
    
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 15px;
        left: 15px;
    }
}

/* Document Search Styles */
.search-box {
    background: var(--white);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box form {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.search-results-info {
    margin-top: 20px;
    padding: 12px 15px;
    background: #e8f4f8;
    border-right: 4px solid #2196F3;
    border-radius: 6px;
    color: var(--text-dark);
}

.search-results-info i {
    color: var(--link-color);
}

.search-box input[type="text"]:focus,
.search-box select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-box input[type="text"]:hover,
.search-box select:hover {
    border-color: #90caf9;
}

.document-card {
    transition: all 0.3s ease;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.document-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive Search Form */
@media (max-width: 1024px) {
    .search-box form {
        grid-template-columns: 1fr !important;
    }
    
    .search-box form > div:last-child {
        justify-content: stretch;
    }
    
    .search-box form > div:last-child a,
    .search-box form > div:last-child button {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .document-card > div {
        flex-direction: column !important;
    }
    
    .document-card > div > div:last-child {
        width: 100%;
    }
    
    .document-card .btn {
        width: 100%;
        text-align: center;
    }
    
    .search-box {
        padding: 20px 15px !important;
    }
}

/* Enhanced button styles for search */
.search-box .btn {
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-box .btn:active {
    transform: translateY(0);
}

/* Document list animations */
.documents-list > div {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.documents-list > div:nth-child(1) { animation-delay: 0.1s; }
.documents-list > div:nth-child(2) { animation-delay: 0.2s; }
.documents-list > div:nth-child(3) { animation-delay: 0.3s; }
.documents-list > div:nth-child(4) { animation-delay: 0.4s; }
.documents-list > div:nth-child(5) { animation-delay: 0.5s; }
.documents-list > div:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Light Form Styles (reusable)
   ======================================== */
.form-light .form-control {
    background-color: #e8e8e8;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-light .form-control::placeholder {
    color: var(--placeholder-color);
}

.form-light .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-light .form-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.10rem;
    font-weight: 600;
}

.form-light .row.mb-2 {
    margin-bottom: 0.5rem !important;
}

.form-light .form-select {
    background-color: #e8e8e8;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    border-radius: 6px;
}

.form-light .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* ========================================
   Standard Form Styles (for all forms)
   ======================================== */
.standard-form,
.library-post-form {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Standard form labels - navy, bold, small */
.standard-form label,
.library-post-form label,
.standard-form .form-label,
.library-post-form .form-label {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-color); /* Navy color */
    font-weight: bold;
    font-size: small;
    transition: color 0.3s;
}

.standard-form label:hover,
.library-post-form label:hover,
.standard-form .form-label:hover,
.library-post-form .form-label:hover {
    color: var(--primary-color);
}

/* Style required field indicator */
.standard-form label .text-danger,
.library-post-form label .text-danger,
.standard-form .form-label .text-danger,
.library-post-form .form-label .text-danger {
    color: var(--danger-color);
    margin-right: 4px;
}

/* Style labels when input is focused */
.standard-form .form-control:focus + label,
.standard-form .form-select:focus + label,
.library-post-form .form-control:focus + label,
.library-post-form .form-select:focus + label {
    color: var(--primary-color);
}

/* Override auth-form labels when standard-form is also present */
.auth-form.standard-form label,
.auth-form.standard-form .form-label {
    color: var(--primary-color);
    font-weight: bold;
    font-size: small;
}

/* Override admin-form/form-light labels when standard-form is also present */
.admin-form.standard-form label,
.form-light.standard-form label,
.admin-form.standard-form .form-label,
.form-light.standard-form .form-label {
    color: var(--primary-color);
    font-weight: bold;
    font-size: small;
}

/* Appeal page - tabbed content (appeal.php) */
.appeal-tabbed-content .appeal-lang-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.appeal-tabbed-content .appeal-lang-tab {
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}
.appeal-tabbed-content .appeal-lang-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.appeal-tabbed-content .appeal-lang-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.appeal-tabbed-content .appeal-lang-panel {
    display: none;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--border-color);
}
.appeal-tabbed-content .appeal-lang-panel.active {
    display: block;
}
.appeal-tabbed-content .appeal-title {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.appeal-tabbed-content .appeal-text {
    line-height: 1.7;
    color: var(--text-dark);
}
.appeal-page-section {
    margin-bottom: 40px;
}

/* Theme-aware typography (overridden per municipality via #municipality-theme) */
h1, h2, h3, h4, h5, h6,
.section-header h2,
.page-header h1,
.card-title,
.news-card h3 a,
.announcement-card h3 a,
.news-detail-header h1,
.comments-section__title {
    color: var(--text-heading);
}

.main-content a:not(.btn):not([class*="btn-"]):not(.nav-item):not(.quick-link):not(.social-share-btn):not(.comment-submit-btn):not(.comment-login-link):not(.social-facebook):not(.social-twitter):not(.social-instagram):not(.social-youtube):not(.social-tiktok):not(.social-whatsapp):not(.view-all) {
    color: var(--link-color);
}

.main-content a:not(.btn):not([class*="btn-"]):not(.nav-item):hover {
    color: var(--link-hover-color);
}

/* Header-top controls: theme backgrounds, light label text */
.header-actions > .btn-login,
.header-actions > .btn-register,
.header-actions > .btn-admin,
.header-actions > .btn-profile,
.header-actions .btn-user-dropdown,
.header-actions > .btn-logout,
.header-actions > a.whatsapp-link {
    color: var(--btn-label-color) !important;
}

.header-actions > .btn-login:hover,
.header-actions > .btn-register:hover,
.header-actions > .btn-admin:hover,
.header-actions > .btn-profile:hover,
.header-actions .btn-user-dropdown:hover,
.header-actions .btn-user-dropdown:focus,
.header-actions > .btn-logout:hover,
.header-actions > a.whatsapp-link:hover {
    color: var(--btn-label-color) !important;
}

/* Dropdown panels must not inherit header-top white link color */
.header-actions .dropdown-menu,
.header-actions .dropdown-menu a,
.header-actions .dropdown-menu .dropdown-header,
.header-actions .dropdown-menu .dropdown-item,
.header-actions .dropdown-menu h6.dropdown-header {
    color: var(--text-dark) !important;
}

.header-actions .dropdown-menu a.text-danger,
.header-actions .dropdown-menu .dropdown-header.text-danger {
    color: var(--danger-color) !important;
}

.header-actions .dropdown-menu a:hover,
.header-actions .dropdown-menu a.dropdown-header:hover {
    color: var(--text-dark) !important;
}

.header-actions .dropdown-menu a.text-danger:hover,
.header-actions .dropdown-menu .dropdown-header.text-danger:hover {
    color: var(--alert-danger-text) !important;
}

/* === Theme text: site-wide === */
.header-top,
.header-top a,
.header-top .contact-info span,
.header-top .contact-info .whatsapp-link {
    color: var(--text-on-primary);
}

.header-top .contact-info .whatsapp-link:hover {
    color: #25d366;
}

.main-footer,
.main-footer p,
.main-footer li,
.main-footer span,
.main-footer .footer-section {
    color: var(--footer-text-muted);
}

.main-footer h3,
.main-footer h4,
.main-footer .footer-section h3,
.main-footer .footer-section h4 {
    color: var(--footer-text);
}

.main-footer a {
    color: var(--footer-text-muted);
}

.main-footer a:hover {
    color: var(--footer-text);
}

.main-content {
    color: var(--text-body);
}

.main-content p,
.main-content li,
.main-content td,
.main-content dd {
    color: var(--text-body);
}

.main-content small,
.main-content .text-muted,
.main-content .form-text {
    color: var(--text-muted) !important;
}

.main-content label,
.main-content .form-label {
    color: var(--text-heading);
}

.main-content .text-danger,
.field-error {
    color: var(--danger-color) !important;
}

.form-section-heading,
.auth-card h5.form-section-heading,
.standard-form > h5.form-section-heading {
    color: var(--text-heading) !important;
    border-bottom: 2px solid var(--accent-color) !important;
}

.page-header,
.page-header h1 {
    color: var(--text-heading);
}

.section-header h2,
.section-header p {
    color: var(--text-heading);
}

.section-header p {
    color: var(--text-muted);
}

.breadcrumb {
    background: color-mix(in srgb, var(--primary-color) 4%, var(--white) 96%);
}

.breadcrumb-item a {
    color: var(--link-color);
}

.breadcrumb-item a:hover {
    color: var(--link-hover-color);
}

.news-card h3 a,
.announcement-card h3 a,
.project-card h3 a,
.issue-card h3 a {
    color: var(--text-heading);
}

.news-card h3 a:hover,
.announcement-card h3 a:hover,
.project-card h3 a:hover,
.issue-card h3 a:hover {
    color: var(--link-hover-color);
}

.card-meta,
.meta-text,
.text-secondary {
    color: var(--text-muted) !important;
}

.alert-danger {
    background: color-mix(in srgb, var(--danger-color) 12%, #ffffff 88%);
    color: var(--alert-danger-text);
    border-right: 4px solid var(--danger-color);
}

.alert-success {
    background: color-mix(in srgb, var(--success-color) 14%, #ffffff 86%);
    color: var(--alert-success-text);
    border-right: 4px solid var(--success-color);
}

.flash-message.flash-error:not(.db-error) {
    color: var(--alert-danger-text);
}

.flash-message.flash-success {
    color: var(--alert-success-text);
}

.choose-card h3,
.choice-card h3 {
    color: var(--text-heading);
}

.choose-card p,
.choice-card p {
    color: var(--text-muted);
}

.icon-theme {
    color: var(--accent-color);
}

.icon-theme-muted {
    color: var(--text-muted);
}

.icon-theme-danger {
    color: var(--danger-color);
}

.icon-theme-success {
    color: var(--success-color);
}