/* 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: #3182ce;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    transition: padding 0.3s ease;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.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;
}

/* Home link wrapper removed - logo is now the home button */

.header-actions a {
    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: rgba(255,255,255,0.2);
}

.btn-login:hover, .btn-register:hover, .btn-admin:hover, .btn-profile:hover {
    background: rgba(0, 255, 55, 0.3);
}

.btn-logout {
    background: rgba(255, 0, 0, 0.623);
}

.btn-logout:hover {
    background: rgb(255, 0, 0);
}
.welcome-text {
    font-size: 0.9rem;
}

.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;
    transition: padding 0.1s ease;
}

.main-header.scrolled .header-main {
    padding: 10px 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;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: gap 0.1s ease, opacity 0.2s ease;
}

.logo.home-button:active {
    opacity: 0.75;
}

.logo-image-wrapper {
    position: relative;
    display: inline-block;
    height: 60px;
    width: auto;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: height 0.1s ease, 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%);
    height: 60px;
    width: 60px;
    display: none !important;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: height 0.1s ease, width 0.1s ease, opacity 0.2s ease;
    font-size: 2.5rem;
    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;
}

.main-header.scrolled .logo.home-button {
    gap: 10px;
}

.main-header.scrolled .logo-image-wrapper {
    height: 45px;
}

.main-header.scrolled .logo-img {
    height: 45px;
}

.main-header.scrolled .home-icon {
    height: 45px;
    width: 45px;
    font-size: 2rem;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    transition: font-size 0.1s ease, margin-bottom 0.1s ease;
}

.main-header.scrolled .logo-text h1 {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.logo-text {
    position: relative;
}

.logo-text h6 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    transition: font-size 0.1s ease, 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;
}

.main-header.scrolled .logo-text h6 {
    font-size: 0.75rem;
}

.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;
    transition: all 0.3s ease;
    transform-origin: center;
}

.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: 3px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

/* Prevent navigation from wrapping on large screens */
@media (min-width: 769px) {
    .main-nav ul {
        flex-wrap: nowrap;
    }
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.main-header.scrolled .main-nav a {
    padding: 8px 16px;
    font-size: 0.95rem;
    flex-direction: row;
    gap: 6px;
}

.main-header.scrolled .main-nav i {
    font-size: 1.2rem;
    margin-left: 5px;
}


.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

.main-nav i {
    margin-left: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}


.main-nav .nav-text {
    transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

/* 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: #c6f6d5;
    color: #22543d;
    border-right: 4px solid var(--success-color);
}

.flash-error {
    background: #fed7d7;
    color: #742a2a;
    border-right: 4px solid var(--danger-color);
}

.flash-info {
    background: #bee3f8;
    color: #2c5282;
    border-right: 4px solid var(--info-color);
}

.close-flash {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

/* Hero Section */
.hero-section {
    background-image: url('../img/bnr/mghairiye-s.jpg');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    margin-top: -30px;
    margin-bottom: 30px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}


.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width:100%;
    margin-top: -100px;
}

.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);
}

.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;
}


/* 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;
}

/* 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;
}

.news-detail-footer {
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* 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-section {
    margin-bottom: 40px;
}

.documents-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.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;
}

.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: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.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: var(--white);
    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: #fafbfc;
    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: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    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: #a0aec0;
}

/* Contact Form Button */
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.25);
}

.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 {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.35);
}

.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: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    color: var(--primary-color);
    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;
    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 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-right: 4px solid var(--danger-color);
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    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: #2c5282;
    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;
}

.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;
}

/* Responsive: 2 columns on small devices */
@media (max-width: 576px) {
    .photos-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.videos-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.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: #ccc;
}

.video-placeholder {
    background: #000;
}

.video-placeholder i {
    font-size: 48px;
    color: #666;
}

.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: #333;
    text-align: center;
}

.video-preview-info h4 {
    font-size: 16px;
    text-align: right;
    margin-bottom: 8px;
}

.video-preview-meta {
    font-size: 12px;
    color: #999;
    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: #333;
    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;
}

.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: #dc3545;
    color: white;
    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: #1565c0;
    border-right: 4px solid var(--info-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    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;
}

.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: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 {
        padding: 5px 10px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    /* Force header-top to single row */
    .header-top {
        padding: 8px 0 !important;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        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;
    }
    
    .header-top .container {
        padding: 0 10px !important;
        max-width: 100% !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;
    }
    
    .header-actions > * {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    .header-actions a {
        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 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;
    }
    
    /* 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 a {
        padding: 10px 12px !important;
        font-size: 1.4rem !important;
        min-width: 70px !important;
        max-width: 90px !important;
    }
    
    .main-header.scrolled .header-actions a i {
        font-size: 1.6rem !important;
    }
    
    
    .main-header.scrolled .logo-img {
        height: 28px;
        transition: height 0.1s ease;
    }
    
    .main-header.scrolled .logo-text h1 {
        font-size: 0.95rem;
        margin-bottom: 0;
        transition: all 0.1s ease;
    }
    
    .main-header.scrolled .logo-text h6 {
        font-size: 0.6rem;
        display: none;
    }
    
    /* Logo hover button on mobile */
    .logo.home-button {
        gap: 10px;
    }
    
    .logo-image-wrapper {
        height: 60px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .home-icon {
        height: 60px;
        width: 60px;
        font-size: 2.5rem;
        display: none !important;
    }
    
    .logo.home-button:hover .home-icon {
        display: flex !important;
    }
    
    .main-header.scrolled .logo.home-button {
        gap: 6px;
    }
    
    .main-header.scrolled .logo-image-wrapper {
        height: 28px;
    }
    
    .main-header.scrolled .logo-img {
        height: 28px;
    }
    
    .main-header.scrolled .home-icon {
        height: 28px;
        width: 28px;
        font-size: 1.8rem;
    }
    
    .main-header.scrolled .mobile-menu-toggle {
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
    }
    
    .main-header.scrolled .mobile-menu-toggle span {
        height: 2px;
    }
    
    /* 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 */
    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
        opacity: 0;
    }
    
    .main-nav.active {
        max-height: 500px;
        opacity: 1;
        margin-top: 20px;
    }
    
    .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;
    }
    
    .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;
    }
    
    /* Hide nav text on mobile, keep icons */
    .main-nav .nav-text {
        opacity: 1;
        width: auto;
        margin: 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        min-height: 350px;
        padding: 60px 20px;
        background-attachment: scroll;
        margin-top: -30px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
    }
}

@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 {
        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 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 a:not(.btn-login) 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;
    }
    
    .mobile-menu-toggle {
        left: 10px;
    }
    
    /* Logo adjustments for very small screens */
    .logo-image-wrapper {
        height: 45px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text h6 {
        font-size: 0.7rem;
    }
    
    /* Logo hover button on very small screens */
    .logo.home-button {
        gap: 8px;
    }
    
    .home-icon {
        height: 45px;
        width: 45px;
        font-size: 2rem;
        display: none !important;
    }
    
    .logo.home-button:hover .home-icon {
        display: flex !important;
    }
    
    .main-header.scrolled .logo-image-wrapper {
        height: 24px;
    }
    
    .main-header.scrolled .logo-img {
        height: 24px;
    }
    
    .main-header.scrolled .home-icon {
        height: 24px;
        width: 24px;
        font-size: 1.5rem;
    }
    
    /* 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 {
        padding: 10px 12px !important;
        min-width: 70px !important;
        max-width: 90px !important;
        font-size: 1.4rem !important;
    }
    
    .main-header.scrolled .header-actions a i {
        font-size: 1.6rem !important;
    }
    
    
    .logo-img {
        height: 45px;
    }
    
    .home-icon {
        height: 45px;
        width: 45px;
        font-size: 1.2rem;
        display: none !important;
    }
    
    .logo.home-button:hover .home-icon {
        display: flex !important;
    }
    
    .main-header.scrolled .logo-img {
        height: 24px;
        transition: height 0.1s ease;
    }
    
    .main-header.scrolled .home-icon {
        height: 24px;
        width: 24px;
        font-size: 0.85rem;
    }
    
    .main-header.scrolled .logo-text h1 {
        font-size: 0.85rem;
        transition: font-size 0.1s ease;
    }
    
    .main-header.scrolled .logo-text h6 {
        display: none;
    }
    
    /* Profile image does not shrink on scroll */
    .main-header.scrolled .btn-profile .profile-icon-img {
        width: 40px !important;
        height: 40px !important;
    }
    
}

/* 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;
    }
}
