:root {
    --primary-color: #006837;
    /* Deep standard Green */
    --accent-color: #ffd700;
    /* Bright Golden Yellow */
    --dark-green: #003b1f;
    /* Very dark green for gradients */
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    /* Light gray for readability on dark backgrounds */
    --light-bg: #004d25;
    /* Changed body bg to deep green as per image */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--light-bg);
    /* Backgound image removed as per user request */
    /* background-image: url('../assets/img/background.png'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-attachment: fixed; */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    color: white;
    /* Default text white since bg is dark */
}

/* Green Overlay on Body */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Increased opacity as requested (stronger green) */
    background: linear-gradient(135deg, rgba(0, 104, 55, 0.75) 0%, rgba(0, 59, 31, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Header */
.main-header {
    background-color: transparent;
    /* Fully transparent to show background */
    backdrop-filter: none;
    /* Removed blur for "nitidez" */
    box-shadow: none;
    /* Removed shadow for seamless look */
    height: 144px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Content above overlay */
}

/* Specific flex container for header only */
.main-header .container {
    display: flex;
    /* Flex to align Logo + Contacts */
    justify-content: space-between;
    align-items: center;
}



.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: white;
    text-align: right;
    gap: 5px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    /* Increased from 0.9rem */
    font-weight: 700;
    /* Bolder */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
}

.header-contact-item svg {
    width: 20px;
    /* Slightly larger icons */
    height: 20px;
    color: var(--accent-color);
}

/* Hero / Maintenance Section */
.hero-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background moved to body */
    background: transparent;
    color: white;
    padding: 48px 0;
    z-index: 1;
}

/* Remove local overlay since body has it */
.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ... grid styles ... */

/* Footer */
.main-footer {
    background-color: #ffffff !important;
    /* Force white background */
    width: 100%;
    color: #333;
    text-align: center;
    padding: 32px 0 16px;
    font-size: 0.9rem;
    border-top: 5px solid var(--accent-color);
    position: relative;
    z-index: 100;
    /* Ensure it sits on top of everything */
    margin-top: auto;
    /* Push to bottom if using flex column */
}

.company-info {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.company-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.company-email {
    display: inline-block;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--primary-color);
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer Address Cards */
.footer-contact-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding-top: 0;
    border-top: none;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    /* Light gray card */
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
    backdrop-filter: none;
    /* Removed blur */
}

.contact-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 104, 55, 0.1);
    /* Light green bg */
    border-radius: 50%;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Override previous white styles */
.office-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.office-address,
.office-phone {
    font-size: 0.95rem;
    color: #444;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 5px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    width: 100%;
    align-items: flex-start;
    padding-top: 32px;
}

.maintenance-card {
    background: transparent;
    padding: 0;
    text-align: left;
    color: white;
}

.maintenance-card h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Services Card - Floating Box Style */
.sidebar-column {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.services-wrapper {
    background: transparent;
}

/* Service Buttons */
.service-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-service {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color);
    color: var(--dark-green);
}

.btn-service svg {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    color: inherit;
}

/* Footer */
.main-footer {
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 5px solid var(--accent-color);
    /* Added accent line */
}

.main-footer p {
    margin: 5px 0;
}

.main-footer ul {
    text-align: left;
    padding-left: 20px;
    /* Ensure space for bullets */
}

.main-footer li {
    text-align: left;
    list-style-position: outside;
    /* Keep bullets outside */
}

/* Footer Map Header with Line */
.footer-map-header {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    color: var(--primary-color);
}

.footer-map-header::after {
    content: "";
    flex-grow: 1;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    /* width: 100%; handled by flex-grow */
}

/* Responsive / Mobile Adjustments */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on tablet/mobile */
        gap: 40px;
        max-width: 800px;
        /* Limit width for reading */
        margin: 0 auto;
    }

    .maintenance-card {
        text-align: center;
        padding: 0;
    }

    .maintenance-card h2 {
        font-size: 2.2rem;
        /* Slightly smaller on tablet */
    }

    .sidebar-column {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Header stacking */
    .main-header {
        height: auto;
        padding: 20px 0;
    }

    .main-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-contacts {
        align-items: center;
        /* Center contacts */
        text-align: center;
    }

    .logo {
        max-height: 180px;
        /* Increased to 180px */
    }

    /* Hero adjustments */
    .hero-section {
        padding: 30px 0;
        align-items: flex-start;
        /* Start from top on mobile */
    }

    .maintenance-card h2 {
        font-size: 1.8rem;
    }

    .main-grid {
        gap: 40px;
        padding-top: 10px;
    }

    /* Footer adjustments */
    .footer-contact-modern {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
    }

    .company-desc {
        text-align: justify;
    }
}

@media (max-width: 480px) {
    .maintenance-card h2 {
        font-size: 1.6rem;
    }

    .btn-service {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

/* News Section Styles */
.latest-news-section {
    padding: 48px 0;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    /* White background for news section as per image */
    margin-top: 32px;
    border-radius: 20px;
    margin-bottom: 32px;
}

.section-heading {
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

/* News Grid */
/* Modern News Grid Layout */
.news-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.secondary-news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Base Card Styles */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.news-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: #006837;
    /* Theme green */
}

.read-more {
    margin-top: auto;
    color: #006837;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 12px;
    text-decoration: none;
}

/* Featured News Specifics */
.featured-news {
    grid-row: span 2;
    /* If we had more rows, but here it matches the height of the secondary stack */
}

.featured-news .news-image {
    height: 400px;
    /* Taller image for impact */
}

.featured-news .news-card-title {
    font-size: 2rem;
    /* Larger title */
    margin-bottom: 20px;
}

.featured-news .news-card-excerpt {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Secondary News Specifics */
.secondary-news {
    display: flex;
    flex-direction: row;
    /* Horizontal layout for smaller cards */
    align-items: center;
    height: 100%;
}

.secondary-news .news-image {
    width: 40%;
    height: 100%;
    min-height: 180px;
}

.secondary-news .news-info {
    width: 60%;
    padding: 16px;
}

.secondary-news .news-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .news-grid-container {
        grid-template-columns: 1fr;
    }

    .featured-news .news-image {
        height: 300px;
    }

    .secondary-news {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .featured-news .news-card-title {
        font-size: 1.5rem;
    }

    .secondary-news {
        flex-direction: column;
    }

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

    .secondary-news .news-info {
        width: 100%;
    }
}

/* News Detail Page */
.news-detail-section {
    padding: 48px 0;
    background: white;
    min-height: 60vh;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
    margin-bottom: 20px;
}

.news-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.news-meta span {
    margin-right: 15px;
}

.news-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: auto;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    /* Changed to dark gray, was potentially inheriting white */
}

/* Ensure all text inside news article is dark */
.news-article,
.news-article p,
.news-article h1,
.news-article h2,
.news-article h3,
.news-article li {
    color: #333;
}

.btn-share {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-share:hover {
    opacity: 0.9;
}

.btn-share.facebook {
    background-color: #3b5998;
}

.btn-share.whatsapp {
    background-color: #25d366;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-back:hover {
    background-color: var(--dark-green);
}

/* Responsive News */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        gap: 15px;
    }

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

    .read-more {
        align-self: flex-start;
    }
}

/* News Gallery Thumbnails */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Space between thumbnails */
}

.gallery-item {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
    /* Highlight border */
    z-index: 10;
}


/* Professional News Details Styling */
.news-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.3s ease;
}

.news-article .news-title {
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.news-article .news-content {
    font-family: 'Georgia', serif;
    /* Better for long reading */
    color: #333;
    line-height: 1.8;
}

.news-article .news-content p {
    margin-bottom: 1.5rem;
}

.news-article .news-content h2,
.news-article .news-content h3 {
    color: var(--dark-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-article .news-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

/* Enhanced Gallery Item */
.gallery-item {
    /* Base size 180px as requested */
    width: 180px;
    height: 180px;
    border-radius: 8px;
    /* Softer corners */
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 104, 55, 0.6);
    /* Primary color transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.ls-1 {
    letter-spacing: 1px;
}


/* Optimization for 1368x768 Screens (Laptop) */
@media (max-width: 1400px) {
    .main-header {
        height: 100px;
        /* Reduced from 180px */
    }

    .logo,
    .navbar-brand img {
        max-height: 80px !important;
        height: 80px !important;
        /* Adjusted for smaller header */
    }

    .hero-section {
        padding: 30px 0;
        /* Reduced padding */
    }

    .main-grid {
        gap: 40px;
        /* Tighter grid */
        grid-template-columns: 1fr 350px;
        /* Slightly narrower sidebar */
    }

    .maintenance-card h2 {
        font-size: 2.2rem;
        /* Smaller heading */
    }

    .latest-news-section {
        padding: 40px 0;
    }

    .news-title {
        font-size: 2rem;
    }
}

/* User Request: Full Width News Article */
.news-detail-section .container {
    max-width: 100%;
    width: 98%;
    /* Almost full width */
    padding-left: 15px;
    padding-right: 15px;
}

.news-article {
    max-width: 100% !important;
    /* Override previous 800px limit */
    box-shadow: none;
    /* Optional: remove shadow for cleaner full-width look, or keep it */
    padding: 30px !important;
}

.news-featured-image img {
    max-height: 60vh;
    /* Limit height so it doesn't take up entire vertical space on wide screens */
    width: 100%;
    object-fit: cover;
}


/* Header Quick Access Buttons */
.header-quick-access {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 auto;
    /* Center in remaining space */
}

.btn-header-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-header-access:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-header-access svg {
    margin-bottom: 4px;
    opacity: 0.9;
}

/* Adjust header layout to accommodate new buttons */
@media (min-width: 992px) {
    .main-header .container {
        justify-content: space-between;
        /* Ensure spreading */
    }

    .header-contacts {
        align-items: flex-end;
        /* Keep contacts right-aligned */
    }
}

@media (max-width: 1200px) {
    .btn-header-access span {
        display: none;
        /* Hide text on smaller desktops if crowded */
    }

    .btn-header-access {
        padding: 8px;
        min-width: auto;
    }

    .btn-header-access svg {
        margin-bottom: 0;
    }
}


/* New Quick Access Bar (Below Header) */
.btn-quick-access {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-quick-access:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-quick-access svg {
    width: 18px;
    height: 18px;
}

/* STRONG FIX for Green Overlay Issue */
.news-detail-section {
    position: relative !important;
    z-index: 50 !important;
    /* Force above body::before (z-index: 0) */
}

/* Ensure body::before stays behind */
body::before {
    z-index: 0;
}


/* Page Limit Width for 1368px Optimizations */
@media (min-width: 1400px) {
    .page-limit-width {
        max-width: 1368px;
        margin: 0 auto;
    }
}

/* Ensure object-fit for gallery thumbs */
.object-fit-cover {
    object-fit: cover !important;
}


/* Top Bar (Contacts) */
.top-bar {
    background-color: var(--dark-green);
    /* Or use rgba(0,0,0,0.5) */
    color: var(--text-white);
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 100;
    /* Above header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    /* Align right as requested/implied for contacts */
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrap on mobile */
    gap: 20px;
}

.top-bar-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-bar-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

/* Adjust Main Header */
.main-header {
    height: auto;
    /* Let it shrink */
    min-height: 120px;
    /* Minimum height for logo */
    padding: 10px 0;
}

/* Mobile Adjustments for Top Bar */
@media (max-width: 992px) {
    .top-bar .container {
        justify-content: center;
        gap: 15px;
    }

    .top-bar-contact-item {
        font-size: 0.8rem;
    }
}


/* Mobile Logo Resize (< 1368px) */
@media (max-width: 1368px) {
    .logo-container .logo {
        height: 140px;
        /* Larger than default auto/100px */
        width: auto;
        max-width: 280px;
    }

    .main-header {
        height: auto;
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .logo-container .logo {
        height: 100px;
        /* Slightly smaller on very small screens but still prominent */
    }
}


/* Professional Layout Sections */

/* Services Grid */
.service-card {
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color);
}

.icon-box {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 104, 55, 0.05);
    /* Light green tint */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: white !important;
}

/* Institutional Section */
.institutional-section {
    position: relative;
    overflow: hidden;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Emergency Bar */
.emergency-bar {
    background: linear-gradient(45deg, #dc3545, #c82333);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


/* Modern Header Styles */
.bg-dark-green {
    background-color: var(--dark-green) !important;
}

.text-dark-green {
    color: var(--dark-green) !important;
}

.hover-opacity:hover {
    opacity: 1 !important;
    transition: opacity 0.2s;
}

.logo-container img {
    max-height: 60px;
    /* Ensure mobile resize works */
    width: auto;
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.hover-success:hover {
    color: var(--primary-color) !important;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Mega Menu Styles */
.nav-item.static {
    position: static !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    /* Forces it to start exactly at the bottom of the navbar */
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-top: 1px solid #eee;
    /* Subtle separator instead of thick border */
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    display: none;
    /* Controlled by hover on parent */
    z-index: 1000;
}

.nav-item.static:hover .mega-menu {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-column {
    padding: 2rem;
}

.mega-menu-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.mega-menu-title i {
    margin-right: 8px;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.8rem;
}

.mega-menu-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.mega-menu-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-menu-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: #ccc;
    transition: color 0.2s;
}

.mega-menu-link:hover i {
    color: var(--accent-color);
}


/* Logo Transition */
.logo-transition {
    transition: all 0.3s ease;
}

/* Ensure logo size isn't restricted too much */
.navbar-brand img {
    max-height: 100px;
    /* Allow up to 100px */
}

/* Quick Access Button styles */
.btn-outline-success,
.btn-outline-danger {
    border-width: 2px;
    font-weight: 600;
}


/* Grid Menu Hover Effects */
.hover-bg-success:hover {
    background-color: #d1e7dd !important;
    /* Green tint */
    color: #0f5132 !important;
}

.hover-bg-danger:hover {
    background-color: #f8d7da !important;
    /* Red tint */
    color: #842029 !important;
}

.hover-bg-primary:hover {
    background-color: #cfe2ff !important;
    /* Blue tint */
    color: #084298 !important;
}


/* New Application Services Card Styles */
.service-item-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--bs-primary) !important;
    z-index: 2;
}

.hover-text-primary {
    transition: color 0.3s ease;
}

.hover-text-primary:hover {
    color: var(--bs-primary) !important;
}

.bg-light-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

/* Custom Extra Padding for News Detail */
@media (min-width: 992px) {
    .ps-custom-lg {
        padding-left: 5rem !important;
    }

    .pe-custom-lg {
        padding-right: 5rem !important;
    }
}

@media (min-width: 1600px) {
    .ps-custom-lg {
        padding-left: 10rem !important;
    }

    .pe-custom-lg {
        padding-right: 10rem !important;
    }
}

/* Quill Editor Helper Classes */
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}

.ql-size-large {
    font-size: 1.5em;
}

.ql-size-huge {
    font-size: 2.5em;
}

.ql-size-small {
    font-size: 0.75em;
}

/* Basic font support - relying on generic families for offline safety */
.ql-font-serif {
    font-family: Georgia, Times, 'Times New Роман', serif;
}

.ql-font-monospace {
    font-family: Monaco, 'Courier New', monospace;
}

/* Quill Editor Helper Classes */
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}

.ql-size-large {
    font-size: 1.5em;
}

.ql-size-huge {
    font-size: 2.5em;
}

/* FIX: Quill Indentation support */
.ql-indent-1 {
    padding-left: 3em;
}

.ql-indent-2 {
    padding-left: 6em;
}

.ql-indent-3 {
    padding-left: 9em;
}

.ql-indent-4 {
    padding-left: 12em;
}

.ql-indent-5 {
    padding-left: 15em;
}

.ql-indent-6 {
    padding-left: 18em;
}

.ql-indent-7 {
    padding-left: 21em;
}

.ql-indent-8 {
    padding-left: 24em;
}

/* Video Response Fix */
.ql-video {
    width: 100%;
    height: 400px;
    display: block;
    margin: 20px auto;
}

/* Basic font support */
.ql-font-serif {
    font-family: Georgia, Times, serif;
}

.ql-font-monospace {
    font-family: Monaco, monospace;
}

/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 59, 31, 0.95);
    /* Dark Green with slight transparency */
    color: white;
    padding: 15px 0;
    z-index: 10000;
    display: none;
    /* Hidden by default, shown via JS */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--accent-color);
}

#cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

#cookie-banner a:hover {
    color: #fff;
}

#cookie-banner .btn-accept {
    background-color: var(--accent-color);
    color: var(--dark-green);
    font-weight: bold;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Utility Classes */
.bg-dark-green {
    background-color: var(--dark-green) !important;
}

.text-dark-green {
    color: var(--dark-green) !important;
}

#cookie-banner .btn-accept:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

/* Help Portal Search & Hero Styles */
/* Ensure hero section is relative for positioning absolute elements */
.hero-section {
    position: relative;
}

.help-search-container {
    max-width: 100%;
    position: relative;
    margin-top: 20px;
}

.help-search-input {
    width: 100%;
    padding: 15px 25px;
    padding-right: 120px;
    /* Space for button */
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.help-search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.help-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 40px;
    padding: 0 30px;
    font-weight: bold;
    z-index: 2;
    background-color: var(--primary-color);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.help-search-btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-1px);
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    border: 1px solid #eee;
    text-decoration: none;
    display: block;
    color: #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-icon {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--primary-color) !important;
    margin-bottom: 15px;
    opacity: 1;
}

.popular-articles-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    color: #333;
}

.popular-articles-box a {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.popular-articles-box a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}