
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
}

html, body {
    /* overflow-x: hidden; Removed this line as it can interfere with position: sticky */
    /* Adjust scroll-padding-top to the height of your sticky header when top-bar is hidden */
    scroll-padding-top: 100px; 
    background-color: #eeeeeeea;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom margin/space issues */
}

/* Add orange accents for brand recognition */
body {
    background-color: #f5f5f5;
    /* Add subtle orange gradient for body background */
    background-image: linear-gradient(to bottom, #f5f5f5 0%, #faf8f5 100%);
}

.top-bar {
    background-color: #f0f0f0;
    padding: 10px 0;
    border-bottom: 2px solid #ec7c1c;
    /* Added for smooth hide/show animation */
    overflow: hidden;
    max-height: 60px; /* Adjust based on actual content height + padding + border, e.g., 60px */
    opacity: 1;
    transition: max-height 0.3s ease-in-out, 
                opacity 0.3s ease-in-out, 
                padding-top 0.3s ease-in-out, 
                padding-bottom 0.3s ease-in-out, 
                border-bottom-width 0.3s ease-in-out;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* background-color: ; */
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    color: #ec7c1c;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    color: #555;
    text-decoration: none;
    font-size: 18px;
}

.social-links a:hover {
    color: #ec7c1c;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Styles for the main sticky header container */
header#page-header {
    background-color: #fff; /* Default background for the entire sticky header area */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* Refined transition */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Styles for the bar containing logo and main navigation */
.main-header-bar {
    padding: 10px 0; /* Padding for the main navigation area */
    transition: padding 0.3s ease; 
    background-color: #eeeeee; /* Ensure this bar has a background */
}

header#page-header.scrolled .main-header-bar {
    padding: 5px 0; /* Reduced padding for the main navigation area when scrolled */
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Styles for the container of logo and logo-text for desktop */
.header-top {
    display: flex; /* Arrange logo and logo-text side-by-side */
    align-items: center; /* Vertically align them */
    gap: 15px; /* Space between logo and logo-text */
}

.logo {
    display: flex;
    align-items: center;
    /* gap: 15px; This is already here, if .logo itself has multiple items, otherwise not strictly needed if .header-top has gap */
}

.logo img {
    height: 80px;
}

.logo-text {
    font-size: 24px; /* Base size, can be overridden by children */
    font-family: 'Arial Black', sans-serif;
    font-weight: bold;
    color: #333;
    display: flex;
    flex-direction: column; /* This makes "Ekonomik" and "Oficjalna Strona" stack vertically */
}

.logo-text span:first-child { /* For "Ekonomik" */
    color: orange;
    font-size: 36px;
}

.logo-text span:last-child { /* For "Oficjalna Strona" */
    font-size: 16px;
    color: #777;
}

/* Desktop navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    padding: 10px 15px; /* Default padding, will be overridden for desktop */
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #ec7c1c;
    color: #000000;
}

.hero {
    height: 85vh; /* Full viewport height */
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

  .hero.visible {
    opacity: 1;
    transform: translateY(0);
  }
  

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

.hero-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(236, 124, 28, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-controls button.active {
    background-color: #ec7c1c;
    border-color: #ec7c1c;
    transform: scale(1.2);
}

.hero-controls button:hover {
    background-color: rgba(236, 124, 28, 0.7);
    border-color: #ec7c1c;
}

.section-title {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #ec7c1c;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3,  1fr);
    gap: 30px;
    padding: 40px 0;
}

/* Enhanced orange accents for news cards */
.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #ec7c1c;
    box-shadow: 0 5px 20px rgba(236, 124, 28, 0.2);
}

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

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

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

/* Orange accent for news date */
.news-date i {
    color: #ec7c1c;
}

.news-content {
    padding: 20px;
}

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

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Enhanced read more button with orange styling */
.read-more {
    display: inline-block;
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ec7c1c;
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    color: #ec7c1c;
    text-decoration: none;
}

/* Enhanced category buttons with orange theme */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 40px;
    padding: 0 20px;
}

.category-btn {
    padding: 15px 30px;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 25px;
    color: #555;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    background-color: #ec7c1c;
    border-color: #ec7c1c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(236, 124, 28, 0.3);
}

/* Show more button for hero section */
.hero-scroll-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ec7c1c, #ff9539);
    color: white;
    padding: 30px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(236,124,28,0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 1s;
    z-index: 10;
    font-size: 23px;
}

.hero-scroll-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(236,124,28,0.4);
    background: linear-gradient(135deg, #ff9539, #ec7c1c);
}

.hero-scroll-btn i {
    margin-left: 8px;
    animation: bounce 2s infinite;
}

/* Styles for "Więcej aktualności" button */
.wiecej-akt-link {
    display: block; /* Make the anchor a block to control its alignment */
    text-align: center; /* Center the inline-block div within it */
    margin-top: 20px; /* Add some space above the button */
    margin-bottom: 20px; /* Add some space below the button */
}

.wiecej-akt {
    display: inline-block; /* Allows centering within the block-level anchor */
    background-color: #ec7c1c;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.wiecej-akt:hover {
    background-color: #d46f13; /* Darken color on hover */
}


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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.parish-info {
    background: linear-gradient(135deg, #ec7d1c18 0%, #ff953918 100%);
    padding: 60px 0;
    position: relative;
}

.parish-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ec7c1c, #ff9539, #ec7c1c);
}

.parish-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default for desktop */
    gap: 40px;
    align-items: center;
}

.parish-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

.parish-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ec7c1c, #ff9539);
    border-radius: 2px;
}

.parish-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.parish-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.events {
    padding: 60px 0;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.event-date {
    width: 80px;
    background-color: #0078d4;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.event-date .day {
    font-size: 24px;
    font-weight: bold;
}

.event-date .month {
    font-size: 14px;
}

.event-info {
    padding: 15px;
    flex: 1;
}

.event-info h3 {
    margin-bottom: 5px;
    color: #333;
}

.event-info p {
    color: #666;
    font-size: 14px;
}

.event-info .event-time {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #777;
}

.office-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    position: relative;
}

.office-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ec7c1c, transparent);
}

.office-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.office-hours {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 3px solid #ec7c1c;
    position: relative;
}

.office-hours h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    position: relative;
}

.office-hours h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ec7c1c;
}

.office-hours iframe {
    width: 100%; /* Ensure it takes full width of its container */
    max-width: 100%; /* Prevent it from exceeding container width */
    height: 400px; /* Default height for desktop */
    border: 0; 
}

.contact-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 3px solid #ec7c1c;
    position: relative;
}

.contact-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    position: relative;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ec7c1c;
}

/* Enhanced contact items with orange accents */
.contact-item i {
    color: #ec7c1c;
    font-size: 20px;
    margin-top: 2px;
    padding: 8px;
    background-color: rgba(236, 124, 28, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info div {
    color: #555;
}

.contact-info div:first-child {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ec7c1c, #ff9539, #ec7c1c);
}

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #ec7c1c;
    bottom: -10px;
    left: 0;
}

.footer-column p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Orange accent for footer links */
.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

ul li {
    margin-bottom: 10px; /* Zwiększa odstęp między elementami */
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: #ec7c1c;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-links a:hover {
    color: #ec7c1c;
    padding-left: 20px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #bbb;
}

.footer-contact-item i {
    color: #ec7c1c;
    padding: 5px;
    background-color: rgba(236, 124, 28, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative; /* Changed from fixed to be part of header flow on mobile */
    z-index: 1001;
    /* Removed background, border-radius, box-shadow from base, will be in media query */
}

.mobile-menu-toggle .bar {
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #ec7c1c, #ff9539);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .office-content {
        grid-template-columns: 1fr; /* Ensure single column for mobile */
    }

    .office-hours iframe {
        height: 300px; /* Adjust height for mobile */
    }
    
    .parish-content {
        grid-template-columns: 1fr; /* Single column for mobile, text will be on top */
    }

    .hero-scroll-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 25px; /* Adjusted padding for mobile */
        font-size: 18px; /* Adjusted font size for mobile */
        line-height: 1.3; /* Improve line height for stacked text */
    }

    .hero-scroll-btn span {
        display: block; /* Ensure span takes its own line if needed, though flex handles it */
    }

    .hero-scroll-btn i {
        margin-left: 0; /* Remove side margin */
        margin-top: 8px; /* Add space above the arrow */
        display: block; /* Ensure it's on its own line */
    }

    .header-top {
        display: flex;
        justify-content: space-between; /* This will override the desktop gap for mobile layout */
        align-items: center;
        width: 100%;
    }
    
    .logo {
        order: 1;
        gap: 0; /* Reset gap if not needed on mobile when logo-text is pushed right */
    }
    
    .logo-text {
        order: 2;
        text-align: right;
        margin-left: auto; /* Pushes logo-text to the right */
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3; /* Ensures it's below logo/text if header-content is column */
        width: 50px; /* Hamburger button size */
        height: 50px;
        align-self: center;
        margin: 15px auto 0;
        background: linear-gradient(135deg, #ec7c1c, #ff9539); /* Orange button style */
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(236,124,28,0.3);
        transition: all 0.3s ease;
        position: relative; /* Ensure it's relative to its container */
        padding: 0; /* Reset padding if any from base */
        justify-content: center;
        align-items: center;
    }
    
    .mobile-menu-toggle .bar {
        width: 20px;
        height: 2px;
        background: white;
        margin: 2px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, #ff9539, #ec7c1c);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(236, 124, 28, 0.4);
    }
    
    /* Hide the hamburger button when menu is active */
    .mobile-menu-toggle.active {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Close button that appears when menu is open */
    .mobile-menu-close {
        display: none; /* Initially hidden on mobile */
        position: fixed;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        background: #fff;
        color: #ec7c1c;
        font-size: 22px;
        border: 1px solid #ec7c1c;
        box-shadow: 0 2px 8px rgba(236,124,28,0.10);
        z-index: 10010;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    
    body.menu-open .mobile-menu-close {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: white;
        z-index: 1000;
        transition: top 0.3s ease-in-out;
        padding: 80px 30px 30px;
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    nav.active {
        top: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        padding: 20px 15px;
        text-align: center;
        border-radius: 5px;
        margin: 2px 0;
        font-size: 18px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background-color: #ec7c1c;
        color: white;
        transform: translateX(10px);
    }
    
    .logo img {
        height: 60px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-text span:first-child {
        font-size: 28px !important; /* Mobile specific size for "Ekonomik" */
    }
    
    .logo-text span:last-child {
        font-size: 14px; /* Mobile specific size for "Oficjalna Strona" */
    }
    
    /* Overlay when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }

    .office-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

    
    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }
}

@media (min-width: 769px) {
    header#page-header { /* Apply sticky behavior and scrolled effects only on desktop */
        position: sticky;
        top: 0;
        width: 100%; 
        z-index: 1000; 
        /* background-color: #fff; Moved to base style for header#page-header */
    }

    header#page-header.scrolled {
        box-shadow: 0 3px 6px rgba(0,0,0,0.12); /* Enhance shadow when scrolled */
    }
    
    /* Styles for .top-bar when header is scrolled (desktop) */
    header#page-header.scrolled .top-bar {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-width: 0; /* Makes the border disappear smoothly */
    }

    /* .main-header-bar when scrolled is already handled by:
       header#page-header.scrolled .main-header-bar { padding: 5px 0; } */

    .mobile-menu-toggle {
        display: none !important; /* Ensure hamburger is hidden */
    }

    .mobile-menu-close {
        display: none !important; /* Ensure X (close button) is hidden */
    }

    #main-nav {
        display: flex !important; /* Or block, ensure it's visible and behaves as per desktop design */
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        overflow-y: visible;
        top: auto; /* Reset mobile positioning */
        left: auto; /* Reset mobile positioning */
        z-index: auto; /* Reset mobile z-index */
        transition: none; /* Reset mobile transition */
    }

    #main-nav.active { /* Reset active state from mobile */
        top: auto;
    }

    #main-nav ul {
        flex-direction: row; /* Desktop navigation is horizontal */
        gap: 20px; /* Restore desktop gap */
        padding: 0;
        max-width: none;
        margin: 0;
    }

    #main-nav ul li {
        margin: 0;
        width: auto;
        border-bottom: none;
    }

    #main-nav ul li  {
        display: inline-block; /* Or original desktop display */
        width: auto;
        padding: 5px 15px; /* Reduced vertical padding from 10px to 5px for desktop */
        text-align: left;
        font-size: inherit; /* Or specific desktop font size */
        font-weight: 500; /* Restore desktop font-weight */
        color: #444; /* Restore desktop color */
        background-color: transparent; /* Reset mobile hover potentially */
        transform: none; /* Remove mobile hover transform */
    }

   
    #main-nav ul li a:hover {
        background-color: #ec7c1c; /* Desktop hover */
        color: #000000; /* Desktop hover */
        transform: none;
    }

    body.menu-open {
        overflow: auto; /* Restore scrolling on desktop */
    }

    body.menu-open::after {
        display: none; /* Hide mobile menu overlay on desktop */
    }
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 100;
    border-radius: 8px;
    margin-top: 8px;
    border-top: 3px solid #ec7c1c;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: #333;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #ec7c1c;
}

/* Add a delay for hiding the dropdown */
.dropdown.hide .dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .logo-text {
        display: none !important;
    }
    .mobile-menu-toggle,
    .mobile-menu-close {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(236,124,28,0.10);
        border: 1px solid #ec7c1c;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    .mobile-menu-toggle .bar {
        width: 22px;
        height: 3px;
        background: #ec7c1c;
        margin: 3px 0;
        border-radius: 2px;
    }
    .mobile-menu-close {
        position: fixed;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        background: #fff;
        color: #ec7c1c;
        font-size: 22px;
        border: 1px solid #ec7c1c;
        box-shadow: 0 2px 8px rgba(236,124,28,0.10);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 10010;
        padding: 0;
    }
    body.menu-open .mobile-menu-close {
        display: flex;
    }
    .header-top {
        position: relative;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
    }
    .logo {
        margin-right: auto;
    }
}