body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #0A2342; /* Deep Blue - static color */
    color: #fff;
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#logo {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: #fff;
}

nav {
    position: relative; /* For positioning the mobile dropdown */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

nav ul li a:hover, nav ul li a.active {
    color: #88DDFF; /* Light Accent Blue */
    border-bottom: 2px solid #88DDFF;
}

/* Dropdown Menu Styles */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown .dropdown-toggle .dropdown-icon {
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

nav ul li.dropdown .dropdown-toggle.open .dropdown-icon {
    transform: rotate(180deg);
}

nav ul li.dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0A2342; /* Match header */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 250px; /* Adjust as needed */
    z-index: 1001;
    border-radius: 0 0 5px 5px;
}

nav ul li.dropdown .submenu.open { /* Only for click toggle */
    display: block;
}

nav ul li.dropdown .submenu li {
    margin: 0;
    width: 100%;
}

nav ul li.dropdown .submenu li a {
    padding: 10px 20px;
    display: block;
    color: #fff;
    text-decoration: none;
    border-bottom: none; /* Override main nav link border */
    white-space: nowrap;
}

nav ul li.dropdown .submenu li a:hover {
    background-color: #0056b3; /* Darker blue on hover */
    color: #fff; /* Ensure text color remains white */
}

/* Hamburger icon styles */
#mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    padding: 10px;
    margin-left: 15px; /* Dodaj odstęp od napisu */
    cursor: pointer;
    position: relative; /* Changed to relative to work in the logo container */
    z-index: 1100;
}

#mobile-menu-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 22px;
}

#mobile-menu-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 4px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hamburger to X animation */
#mobile-menu-toggle.open .hamburger-icon span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
#mobile-menu-toggle.open .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-toggle.open .hamburger-icon span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: block;
    }
    header .container {
        position: relative;
    }
}

#hero {
    color: #fff;
    padding: 0; 
    min-height: 60vh;   
    position: relative; 
    display: flex; /* Changed to flex to center content wrapper */
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    overflow: hidden; 
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2; 
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 4; 
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.slider-control:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.slider-control.prev {
    left: 15px;
}

.slider-control.next {
    right: 15px;
}

.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4; 
}

.slider-pagination .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: none; /* Ensure no border interferes with click area */
    padding: 0; /* Ensure no padding interferes */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-pagination .dot.active {
    background-color: rgba(255, 255, 255, 1);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.6); 
    z-index: 2; 
}

.hero-content-wrapper {
    position: relative;
    z-index: 3; 
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content-slide {
    display: none; /* Hidden by default */
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* To stack content vertically if needed */
}

.hero-content-slide.active {
    display: flex; /* Show active slide's content */
    animation: heroContentFadeIn 0.8s ease-in-out;
}

@keyframes heroContentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero .hero-content-overlay { 
    position: relative; /* It's already inside a positioned parent */
    text-align: center;
    width: 90%; 
    max-width: 1200px;
    padding: 20px; 
}

#hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    margin-bottom: 0.5em;
    color: #fff;
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 1.5em;
    color: #f0f0f0;
}

.cta-button {
    background-color: #007BFF; 
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.cta-button:hover {
    background-color: #0056b3; 
    transform: translateY(-2px);
}

.content-section {
    padding: 60px 20px;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.content-section:nth-child(even) {
   background-color: #fcfcfc; /* Bardzo subtelny odcień, aby były naprzemienne kolory */
}

.content-section h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    color: #0A2342; 
    margin-bottom: 40px;
}

#about p {
    text-align: justify; 
}

.about-layout {
    display: flex;
    flex-wrap: wrap; /* Allows text to wrap below image on smaller screens */
    gap: 30px;
    align-items: center; /* Center items vertically */
    margin-top: 40px;
}

.about-feature-image {
    flex: 0 0 25%; /* Image takes up 40% of width, doesn't grow or shrink */
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    margin: 0; /* Remove default auto margins */
}

.about-text-content {
    flex: 1 1 55%; /* Text takes remaining space, can grow and shrink */
}

.feature-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
}

/* Partners Section */
#partners h2 {
    margin-bottom: 30px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.partner-logo {
    max-height: 60px; 
    max-width: 150px; 
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-item {
    background-color: #f4f7f9; 
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.service-item h3 {
    font-family: 'Orbitron', sans-serif;
    color: #0056b3; 
    margin-bottom: 10px;
    font-size: 1.4em;
}

.service-item p {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1; /* Added to help align content if descriptions vary a lot */
    margin-bottom: 0; /* Remove bottom margin if button/link is part of item */
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-family: 'Orbitron', sans-serif;
    color: #0A2342;
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-info address, .contact-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

#map {
    height: 300px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

#contact-form {
    flex: 1.5; 
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form h3 {
    font-family: 'Orbitron', sans-serif;
    color: #0A2342;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left; 
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

#contact-form textarea {
    resize: vertical;
    flex-grow: 1;
}

#contact-form button.cta-button {
    align-self: flex-start; 
}

footer {
    background-color: #1d2d3c; 
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Subpage specific styles */
.subpage-hero {
    background: url('images/about-hero-background.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px; 
    position: relative;
}
.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.7); 
    z-index: 1;
}
.subpage-hero .container {
    position: relative;
    z-index: 2;
}
.subpage-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8em;
    margin-bottom: 0.3em;
    color: #fff;
}
.subpage-hero p {
    font-size: 1.3em;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subpage-content-section {
    padding: 60px 20px;
    background-color: #fff;
    margin: 20px auto; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.subpage-content-section.alt-bg {
    background-color: #f9fafb; 
}

.subpage-content-section h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    color: #0A2342;
    margin-bottom: 40px;
}
.subpage-content-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: #0056b3; 
    margin-top: 30px;
    margin-bottom: 15px;
}

.subpage-content-section p, .subpage-content-section ul {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}
.subpage-content-section ul {
    padding-left: 20px;
}
.subpage-content-section ul li {
    margin-bottom: 8px;
}
.subpage-content-section p {
    text-align: justify; 
}

/* Management Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-member {
    background-color: #f4f7f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-member img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #007BFF; 
}

.team-member h4 { 
    font-family: 'Orbitron', sans-serif;
    color: #0A2342; 
    margin-bottom: 8px;
    font-size: 1.5em;
}

.team-member p.title { 
    font-style: italic;
    color: #0056b3; 
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 500;
}

.team-member p.bio { 
    font-size: 0.95em;
    color: #555;
    text-align: left;
    line-height: 1.6;
}

/* News Section Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.news-item {
    background-color: #f4f7f9;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners are rounded if image itself is not */
    text-decoration: none;
    color: inherit;
    display: flex; /* Changed to flex for better control over content */
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.news-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers the area, might crop */
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill space if items have different text lengths */
}

.news-item h3 {
    font-family: 'Orbitron', sans-serif;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.news-date {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes read-more link to bottom */
}

.read-more-link {
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
    align-self: flex-start; /* Aligns to the left */
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Article Page Specific Styles */
.article-page h2 { /* Main title of the article */
    text-align: left; /* Usually articles have left-aligned titles */
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    display: block; /* Make it a block to appear on its own line */
}

.article-feature-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-body p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.article-body h3 { /* Subheadings within article content */
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6em;
    color: #0A2342;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* News Archive Page */
.news-archive-list .news-item {
    margin-bottom: 30px; /* If they are stacked vertically */
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center; /* Ensure logo container is centered */
    }

    .logo-container {
        margin-bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
        /* text-align: center; /* If H1 is inside */
    }
    
    nav {
        width: 100%;
    }

    #mobile-menu-toggle {
        display: block;
        /* Usunięto margin: 0 auto 10px auto, bo teraz przycisk jest w kontenerze logo */
    }

    nav ul#main-navigation { /* Targeting the main ul */
        display: none; 
        flex-direction: column;
        align-items: center;
        width: 100%; /* Ensure it takes full width */
        /* position: absolute;
        top: 100%; 
        left: 0;
        right: 0; */ /* Removed as it's simpler to be part of flow */
        background-color: #0A2342; 
        z-index: 999; 
        padding: 10px 0;
        /* border-top: 1px solid #0056b3;  */
        /* box-shadow: 0 3px 5px rgba(0,0,0,0.2); */
    }

    nav ul#main-navigation.menu-open { /* Targeting the main ul */
        display: flex; 
    }

    nav ul#main-navigation > li { /* Direct children of main-navigation */
        margin: 0; /* Remove default margin */
        width: 100%;
        text-align: center;
    }
    
    nav ul#main-navigation > li > a { /* Direct links */
        padding: 12px 20px; 
        display: block; 
        border-bottom: none; 
        /* border-bottom: 1px solid #0056b3; */ /* Optional separator */
    }
    
    /* nav ul#main-navigation > li:last-child > a {
        border-bottom: none;
    } */

    nav ul#main-navigation > li > a:hover, 
    nav ul#main-navigation > li > a.active {
        background-color: #0056b3; 
        color: #fff;
        border-bottom: none; 
    }

    /* Mobile Dropdown Styles */
    nav ul li.dropdown .submenu {
        position: static; /* Override absolute positioning */
        display: none; /* Hide by default, shown only when .open class is added */
        background-color: #0056b3; /* Slightly different bg for distinction */
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        width: 100%;
    }
    
    /* Show submenu when .open class is added */
    nav ul li.dropdown .submenu.open {
        display: block;
    }
    nav ul li.dropdown .submenu li a {
        padding: 10px 20px;
        padding-left: 30px; /* Indent submenu items */
        text-align: center; /* Or left if preferred */
        font-size: 0.95em;
        color: #e0e0e0;
    }
    nav ul li.dropdown .submenu li a:hover {
        background-color: #0A2342; /* Darker on hover */
        color: #fff;
    }
    
    nav ul li.dropdown .dropdown-toggle .dropdown-icon {
        display: inline-block; /* Always show dropdown icon */
        transition: transform 0.3s;
    }
    
    /* Rotate arrow when submenu is open */
    nav ul li.dropdown .dropdown-toggle.open .dropdown-icon {
        transform: rotate(180deg);
    }


    #hero h2 {
        font-size: 2.2em;
    }

    #hero p {
        font-size: 1.1em;
    }
    
    .subpage-hero h1 {
        font-size: 2em;
    }
    .subpage-hero p {
        font-size: 1.1em;
    }

    .content-section h2, .subpage-content-section h2 {
        font-size: 1.8em;
    }
     .subpage-content-section h3 {
        font-size: 1.5em;
    }

    .partner-logos {
        justify-content: center; 
    }

    .partner-logo {
        max-height: 50px;
    }    .about-layout {
        flex-direction: column;
        align-items: center;
    }.about-feature-image {
        flex: 1 1 100%;
        max-width: 95%; /* Increased size for mobile view */
        margin-bottom: 20px;
    }
    .about-text-content {
        flex: 1 1 100%;
    }

    .service-grid {
        grid-template-columns: 1fr; 
    }

    .contact-layout {
        flex-direction: column;
    }

    #contact-form button.cta-button {
        align-self: center;
    }

    #contact-form h3 {
        text-align: center;
    }

    .contact-info h3, .contact-info address, .contact-info p {
        text-align: center;
    }

    .contact-info #map {
        margin-left: auto;
        margin-right: auto;
    }

    .team-grid {
        grid-template-columns: 1fr; 
    }
    .team-member img {
        width: 120px;
        height: 120px;
    }
    .team-member h4 {
        font-size: 1.3em;
    }
    .team-member p.title {
        font-size: 1em;
    }

    .our-story-image {
        float: right;
        width: 300px;
        max-width: 40%;
        margin: 0 0 20px 30px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        vertical-align: top;
    }


    .waveguide-detail-image {
        float: none !important;
        width: 100% !important;
        max-width: 80% !important;
        margin: 20px auto !important;
        display: block !important;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-page h2 {
        font-size: 1.6em; /* Adjust title size for mobile */
        text-align: center; /* Center title on mobile for consistency */
    }

    .article-meta {
        text-align: center;
    }

    .product-list .product-entry {
        flex-direction: column; /* Stack image and details vertically */
        align-items: stretch; /* Stretch items to full width */
        padding: 0; /* Remove padding for full width image */
        border-left: none; /* Remove left border on mobile */
        border-radius: 8px; /* Uniform border radius */
        overflow: hidden; /* Ensure image doesn't overflow rounded corners */
    }
    .product-list .product-entry .product-image {
        width: 100%; /* Full width */
        max-width: none; /* Remove max-width restriction */
        height: 250px; /* Fixed height for consistency */
        object-fit: cover; /* Cover the area while maintaining aspect ratio */
        margin-bottom: 0; /* No margin bottom since content has padding */
        border-radius: 0; /* No border radius since container handles it */
    }
    .product-list .product-entry .product-details {
        padding: 20px; /* Add padding back to content area */
    }
    .product-list .product-entry .product-details h3 {
        text-align: center;
        margin-top: 0; /* Remove top margin since image is above */
    }
     .product-list .product-entry .product-details p {
        text-align: left; /* Or justify if preferred */
    }

    .materials-list .material-item {
        flex-direction: column; /* Stack image and details vertically */
        align-items: center; /* Center items */
        padding: 20px;
        gap: 15px;
    }
    
    .materials-list .material-item .material-image {
        width: 90%;
        max-width: 300px;
        height: auto;
        margin-bottom: 0;
    }
    
    .materials-list .material-item .material-details h4 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .materials-list .material-item .material-details p {
        text-align: left;
    }

    .product-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Mobile lightbox adjustments */
    .lightbox-overlay {
        padding: 20px;
    }
    
    .lightbox-content {
        max-width: 80vw;
        max-height: 60vh;
        margin: 0 auto;
    }

    .lightbox-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Additional responsive styles for materials */
@media (max-width: 992px) {
    .materials-list .material-item .material-image {
        width: 200px !important;
        height: 160px !important;
        max-width: 200px;
        max-height: 160px;
    }
}

@media (max-width: 576px) {
    .materials-list .material-item {
        padding: 15px;
    }
    
    .materials-list .material-item .material-image {
        width: 100% !important;
        max-width: 280px !important;
        height: 200px !important;
        object-fit: cover;
    }
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 70vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: #f0f0f0;
}

.gallery-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.8;
}

/* Product Gallery Styles */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.8;
}

/* Product List Styles */
.product-list .product-entry {
    background-color: #f9fafb;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid #007BFF;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-list .product-entry .product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-list .product-entry .product-details {
    flex-grow: 1;
}

.product-list .product-entry h3 {
    font-family: 'Orbitron', sans-serif;
    color: #0A2342;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.product-list .product-entry h3 a {
    text-decoration: none;
    color: inherit;
}

.product-list .product-entry h3 a:hover {
    text-decoration: underline;
    color: #007BFF;
}

.product-list .product-entry p {
    text-align: left;
    line-height: 1.7;
    color: #444;
}

/* Materials List Styles for Desktop */
.materials-list {
    margin-top: 30px;
}

.materials-list .material-item {
    background-color: #f9fafb;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 5px solid #007BFF;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.materials-list .material-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.materials-list .material-item .material-image {
    width: 250px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    max-width: 250px;
    max-height: 200px;
}

.materials-list .material-item .material-details {
    flex-grow: 1;
}

.materials-list .material-item .material-details h4 {
    font-family: 'Orbitron', sans-serif;
    color: #0A2342;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    text-align: left;
}

.materials-list .material-item .material-details h4 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.materials-list .material-item .material-details h4 a:hover {
    text-decoration: underline;
    color: #007BFF;
}

.materials-list .material-item .material-details p {
    text-align: left;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0;
}

/* Waveguide detail image styles */
.waveguide-detail-image {
    float: right;
    width: 300px;
    height: auto;
    margin: 0 0 20px 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Our Story Section Styles */
.our-story-content {
    overflow: hidden; /* Clears floating elements */
    line-height: 1.8;
    text-align: justify;
}

.our-story-image {
    float: right;
    width: 350px;
    height: auto;
    margin: 25px 0 20px 30px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* New styles for materials grid and items */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.material-item {
    background-color: #f4f7f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.material-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}