:root {
    --primary-bg-color: #1a1a2e; /* Dark background for technical feel */
    --secondary-bg-color: #2e2e4a; /* Slightly lighter background */
    --primary-text-color: #e0e0e0; /* Light text for contrast */
    --secondary-text-color: #a0a0a0; /* Muted text */
    --accent-color: #00ffcc; /* Bright, technical accent (e.g., neon green/blue) */
    --border-color: #007bff; /* Blue for borders/highlights */
    --retro-font: 'Orbitron', sans-serif; /* A sci-fi/technical font for titles */
    --modern-font: 'Roboto Mono', monospace; /* Placeholder for a modern technical font */
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg-color); /* Use a consistent background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002; /* Ensure it's above everything, including the header */
    opacity: 1;
    transition: opacity 0.5s ease-out; /* Smooth fade-out */
}

/* Hide preloader once page is loaded */
body.js-loaded .preloader {
    opacity: 0;
    visibility: hidden; /* Ensure it's not clickable after fade-out */
}

.spinner {
    border: 4px solid rgba(0, 255, 204, 0.3); /* Light green/cyan */
    border-top: 4px solid var(--accent-color); /* Brighter accent color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* General Link Styles */
a:link, a:visited {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover, a:active {
    color: var(--primary-text-color);
    text-decoration: underline;
}

/* General Body Styles - Mobile First */
body {
    font-family: var(--modern-font), sans-serif;
    margin: 0;
    padding: 0; /* Will be effectively overridden by padding-bottom */
    padding-bottom: 120px; /* Added for mobile to prevent overlap with fixed elements */
    padding-top: 70px; /* To account for fixed header on mobile */
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-size: 16px; /* Base font size for mobile */
}

/* Page wrapper for fade-in effect */
#page-wrapper {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

body.js-loaded #page-wrapper {
    opacity: 1;
}

.container {
    width: 95%; /* Wider on mobile */
    margin: 0 auto;
    padding: 15px 0;
}

@media (min-width: 1281px) {
    .container {
        max-width: 1200px; /* Increase container width on larger screens */
        padding: 20px 0; /* Adjust padding for desktop */
    }
}

/* Header - Mobile First */
.main-header {
    background-color: var(--secondary-bg-color);
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: fixed; /* Fixed on mobile */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001; /* Ensure header is above body overlay and other elements */
}

.main-header .container {
    display: flex;
    flex-direction: column; /* Stack logo and nav on mobile */
    align-items: center;
    position: relative; /* For hamburger positioning */
}

.main-header .logo .header-logo {
    max-height: 40px; /* Smaller logo on mobile */
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 12px var(--accent-color)) drop-shadow(0 0 20px rgba(0, 255, 204, 0.5)); /* More intense glow for SVG */
    margin-bottom: 10px; /* Space between logo and nav */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack nav items on mobile */
    text-align: center;
    width: 100%;
}

.main-nav ul li {
    margin: 5px 0;
}

.main-nav ul li a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-size: 1em;
    padding: 5px 10px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section - Mobile First */
.hero-section {
    text-align: center;
    padding: 50px 0; /* Smaller padding on mobile */
    border-bottom: 2px dashed var(--border-color);
    position: relative;
    overflow: hidden;
    background-color: var(--primary-bg-color); /* Fallback and base dark color */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (min-width: 1281px) {
    .hero-section {
        min-height: 65vh; /* Adjust hero section height to 65% of viewport height on larger screens */
        display: flex; /* Use flexbox to vertically center content if needed */
        align-items: center; /* Center content vertically */
        text-align: left; /* Align text to the left on larger screens */
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay */
    z-index: 1; /* Ensure it's above the background image but below text */
}

.hero-section .container {
    position: relative;
    z-index: 2; /* Ensure text is above the overlay */
}


/* Specific hero background images */
/*
.hero-section.hero-home {
    background-image: url('https://via.placeholder.com/1500x800/000000/00ffcc?text=SCINTILLATOR+CRYSTALS');
}
.hero-section.hero-scintillators-plastic {
    background-image: url('images/scintillator-4.svg');
}
.hero-section.hero-interface-electronics {
    background-image: url('images/interface_electronics.svg');
}
*/
.hero-section h1 {
    font-family: var(--retro-font);
    font-size: 1.8em; /* Smaller on mobile */
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color), 0 0 30px rgba(0, 255, 204, 0.7), 0 0 45px rgba(0, 255, 204, 0.3);
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1em;
    color: var(--secondary-text-color);
    max-width: 90%;
    margin: 0 auto 20px auto;
}

.hero-section .hero-image-container {
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    margin-top: 20px; /* Space above the image on mobile */
}

@media (min-width: 1281px) {
    .hero-section .hero-image-container {
        margin-top: 0; /* Reset margin on desktop */
    }
}

.hero-section .hero-side-image {
    max-height: 120px; /* Limit height of images in hero section */
    width: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Consistent rounded corners */
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4); /* Subtle glow */
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-bg-color) !important; /* Dark text */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color), 0 0 25px rgba(0, 255, 204, 0.5);
    animation: pulse-glow 2s infinite alternate;
}

.btn-primary:hover {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color) !important; /* Light text */
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent-color), 0 0 35px rgba(0, 255, 204, 0.7);
}

/* Sections - Mobile First */
section {
    padding: 40px 0;
    background-color: var(--primary-bg-color);
}

section:nth-of-type(even) {
    background-color: var(--secondary-bg-color);
}

h2 {
    font-family: var(--retro-font);
    font-size: 1.8em; /* Smaller on mobile */
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--accent-color);
}

/* Product Grid - Mobile First */
.product-grid {
    display: flex;
    flex-direction: column; /* Stack items on mobile */
    gap: 20px;
}

@media (min-width: 1281px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for larger screens */
        gap: 30px; /* Adjust gap for desktop */
    }
}

.product-item {
    background-color: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.product-item h3 {
    font-family: var(--modern-font);
    color: var(--accent-color);
    font-size: 1.5em;
    margin-top: 0;
    border-bottom: 1px dashed var(--secondary-text-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.product-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.product-item ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
    color: var(--primary-text-color);
}

.product-item ul li::before {
    content: '>';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

/* About Section - Mobile First */
.about-section p {
    max-width: 95%;
    margin: 0 auto 15px auto;
    text-align: center;
    font-size: 1em;
    color: var(--secondary-text-color);
}

/* Footer - Mobile First */
.main-footer {
    background-color: var(--secondary-bg-color);
    color: var(--secondary-text-color);
    text-align: center;
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
    font-size: 0.9em; /* Increased font size */
}

.main-footer .footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

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

/* Radioactive Touches (already mobile-first compatible) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 0.5%,
        transparent 1%
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.1;
}

/* Keyframe for pulse glow animation */
@keyframes pulse-glow {
    from {
        box-shadow: 0 0 15px var(--accent-color), 0 0 25px rgba(0, 255, 204, 0.5);
    }
    to {
        box-shadow: 0 0 25px var(--accent-color), 0 0 40px rgba(0, 255, 204, 0.8);
    }
}

/* New styles for hero image gallery - Mobile First */
.image-gallery-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.image-gallery-hero .hero-img {
    max-width: 45%; /* Two images per row on mobile */
    height: auto;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
    transition: transform 0.3s ease;
}

.image-gallery-hero .hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Styles for Scintillator Details Page - Mobile First */
.small-hero {
    padding: 40px 0;
    background-size: cover;
    background-position: center;
    border-bottom: 2px dashed var(--border-color);
}

.content-section {
    padding: 30px 0;
    background-color: var(--primary-bg-color);
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--secondary-text-color);
}

.content-section h2 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.6em;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 8px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.content-section ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: var(--primary-text-color);
}

.content-section ul li::before {
    content: '>';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

.content-section img {
    max-width: 100%; /* Ensure images don't overflow their containers */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Allows margin: auto for centering */
    margin: 20px auto; /* Center images and provide vertical spacing */
    border-radius: 8px; /* Consistent rounded corners */
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3); /* Consistent subtle shadow */
}

/* Override for specific max-width for content images on larger screens */
@media (min-width: 768px) {
    .content-section img {
        max-width: 600px; /* Max width for content images on larger screens */
    }
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.image-gallery img {
    height: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* Added for rounded corners */
}

.image-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
}

.full-width-img {
    height: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* Styling for the contained banner image in the hero section */
.hero-banner {
    display: block;
    margin: 20px auto 0 auto;
    max-width: 100%;
    width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: block;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    margin: 0;
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}



.main-nav {
    display: none; /* Hide nav by default on mobile */
    position: absolute;
    top: calc(100% + 10px); /* Position below header with a small gap */
    left: 0;
    width: 100%;
    background-color: var(--secondary-bg-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    padding: 10px 0;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.main-header.mobile-nav-active .main-nav {
    display: block; /* Show nav when active */
}

/* Transitions for hamburger icon */
.main-header.mobile-nav-active .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.main-header.mobile-nav-active .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

.main-header.mobile-nav-active .hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* Media Queries for larger screens (min-width) */

/* NEW styles for header-right-section and search bar (Mobile-First defaults, overridden by media queries) */
.header-right-section {
    display: flex;
    flex-direction: column; /* Stack logo and search on mobile */
    align-items: center;
    order: 2; /* Default order for mobile, will be overridden for desktop */
    margin-top: 10px; /* Space between logo and search on mobile */
}

/* Adjust logo margin for mobile when search is present */
.main-header .logo .header-logo {
    max-height: 40px; /* Smaller logo on mobile */
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 12px var(--accent-color)) drop-shadow(0 0 20px rgba(0, 255, 204, 0.5)); /* More intense glow for SVG */
    margin-bottom: 5px; /* Reduce margin to make space for search */
}

/* Search Container Styles */
.search-container {
    display: flex;
    align-items: center;
    background-color: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px; /* Space from logo on mobile */
}

.search-container input[type="search"] {
    border: none;
    padding: 8px 10px;
    background: transparent;
    color: var(--primary-text-color);
    font-size: 0.9em;
    width: 150px; /* Adjust width for mobile */
    outline: none;
}

.search-container input[type="search"]::placeholder {
    color: var(--secondary-text-color);
    opacity: 0.7;
}

.search-container button {
    background-color: var(--accent-color);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--primary-bg-color);
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #00b386; /* A slightly darker shade of accent-color */
    color: var(--primary-text-color);
}


/* Tablet and Mid-size screens (min-width: 768px and up to 1279px) */
@media (min-width: 768px) and (max-width: 1279px) {
    .main-header {
        position: fixed; /* Keep fixed for tablet */
    }
    body {
        font-size: 17px;
        padding-top: 70px; /* Keep padding for fixed header */
    }

    .container {
        width: 90%;
        padding: 20px 0;
    }

    /* Hamburger remains visible, nav remains toggleable/stacked */
    /* Header container remains flex-direction: column to stack hamburger/logo/search */
    
    .main-header .logo .header-logo {
        max-height: 50px; /* Bigger logo on tablet */
        margin-bottom: 10px; /* Space below logo */
    }
    
    /* Search bar adjustments for tablet */
    .search-container input[type="search"] {
        width: 180px; /* Wider search input for tablet */
        font-size: 1em;
    }

    /* General content adjustments */
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    h2 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .product-grid {
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .product-item {
        flex: 1 1 calc(50% - 30px); 
        max-width: calc(50% - 30px);
        padding: 25px;
    }

    .product-item h3 {
        font-size: 1.6em;
    }

    .about-section p {
        font-size: 1.1em;
    }

    .main-footer {
        padding: 20px 0;
        font-size: 0.9em;
    }

    .image-gallery-hero .hero-img {
        max-width: 18%; 
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        text-align: center;
        font-size: 2em;
    }

    .image-gallery img {
        max-width: 45%;
    }
}


/* Desktop and larger screens (min-width: 1280px) */
@media (min-width: 1280px) {
    .main-header {
        position: relative; /* Unfix for desktop */
        z-index: 10000; /* Revert z-index */
    }
    body {
        padding-top: 0; /* No fixed header padding on desktop */
    }
    .hamburger-menu {
        display: none; /* Hide hamburger on desktop */
    }

    .main-header .container {
        flex-wrap: nowrap;
        flex-direction: row; /* Ensure row direction for two columns */
        justify-content: space-between;
        align-items: center; 
    }

    /* Main Navigation (left column) */
    .main-nav {
        display: flex; /* Make nav visible and a flex container */
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
        border-top: none;
        order: 1; /* Ensure nav is on the left */
        flex: 1 1 auto; /* Allow nav to grow and shrink, taking available space, with auto basis */
        margin-right: 20px; /* Space between nav and right section */
    }

    .main-nav ul {
        display: flex; /* Ensure ul is a flex container */
        flex-direction: row; /* Force horizontal layout */
        justify-content: flex-start; /* Align items to the left */
        list-style: none; /* Ensure no bullets */
        margin: 0; /* Reset margins */
        padding: 0; /* Reset padding */
        gap: 15px; /* Reduce space between menu items to free up horizontal space */
        width: auto; /* Allow ul to size based on items */
        flex-wrap: nowrap; /* Prevent menu items from wrapping within ul */
    }
    
    .main-nav ul li {
        margin: 0; /* Reset list item margins */
        display: block;
    }

    .main-nav ul li a {
        padding: 5px 10px;
        display: block;
        font-size: 1.1em; /* Increased font size for desktop nav links */
    }

    /* Header Right Section (right column: Logo + Search) */
    .header-right-section {
        order: 2;
        flex: 0 1 auto; /* Allow its content to determine basis, allow it to shrink if needed */
        flex-direction: column; /* Stack logo and search */
        align-items: flex-end; /* Align contents to the right */
        margin-top: 0; /* Reset any mobile top margin */
        margin-bottom: 0; /* Reset any mobile bottom margin */
    }

    /* Ensure logo and search have appropriate spacing/sizing */
    .main-header .logo .header-logo {
        max-height: 50px;
        margin-bottom: 5px;
    }
    
    .search-container input[type="search"] {
        width: 100%; /* Make search input fluid within its container */
        max-width: 200px; /* Retain a max-width for aesthetic */
        font-size: 1em;
    }
}

/* Larger titles for very large screens */
@media (min-width: 1281px) {
    .hero-section h1 {
        font-size: 3.5em; /* Even larger H1 for extra large screens */
    }

    h2 {
        font-size: 2.8em; /* Even larger H2 for extra large screens */
    }
}
/* Go to Top Button */
#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--accent-color); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    box-shadow: 0 4px 8px rgba(0, 255, 204, 0.4); /* Subtle shadow */
    filter: drop-shadow(0 0 12px var(--accent-color)) drop-shadow(0 0 20px rgba(0, 255, 204, 0.5)); /* Apply glow effect */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#myBtn:hover {
    background-color: var(--hover-color); /* Add a darker background on hover */
    transform: translateY(-2px);
}



/* Specific Breadcrumb Styling (for nav > ol.breadcrumb) */
nav[aria-label="breadcrumb"] {
    margin-bottom: 10px; /* Space below the breadcrumb */
}

ol.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none; /* Remove default list styling */
    font-size: 1em; /* Increased font size for breadcrumb */
    color: var(--secondary-text-color); /* Default text color */
}

li.breadcrumb-item a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative; /* Needed for ::after positioning */
}

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

li.breadcrumb-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    transition: width 0.3s ease;
}

li.breadcrumb-item a:hover::after {
    width: 100%;
}

li.breadcrumb-item.active {
    color: var(--accent-color); /* Active item color */
    font-weight: bold;
}

li.breadcrumb-item + li.breadcrumb-item::before {
    content: " / "; /* Add the slash separator */
    padding-left: 8px; /* Space before the slash */
    padding-right: 8px; /* Space after the slash */
    color: var(--secondary-text-color); /* Color of the separator */
}


/* Table styling for content sections */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
}

.content-section th,
.content-section td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.content-section th {
    background-color: var(--secondary-bg-color);
    color: var(--accent-color);
    font-family: var(--modern-font);
    font-weight: bold;
    text-align: center;
}

.content-section tr:nth-child(even) {
    background-color: var(--secondary-bg-color);
}

.content-section tr:hover {
    background-color: rgba(0, 255, 204, 0.1);
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Contact Details Page Specific Styles */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px; /* Space between cards */
    margin-top: 30px;
}

@media (min-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns on tablet/desktop */
    }
}

@media (min-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(6, 1fr); /* Maintain a 6-column grid for flexibility */
    }

    .contact-info.card {
        grid-column: span 2; /* "Our Location" occupies 2 columns */
    }

    .contact-form-container.card {
        grid-column: span 4; /* "Send Us a Message" occupies the remaining 4 columns (6 - 2 = 4) */
    }

    .map-container.card {
        grid-column: 1 / -1; /* "Find Us on the Map" occupies all 6 columns, spanning the full width */
    }
}

.card {
    background-color: var(--secondary-bg-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.card h2 {
    text-align: left; /* Override global h2 centering for cards */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--primary-text-color);
}

.contact-info p i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Form Styling within card */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-color);
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: var(--secondary-text-color);
    opacity: 0.7;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.contact-form button.btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Map Container Styling */
.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    height: 300px; /* Fixed height for the map */
}