
body {
    font-family: 'Lekton', sans-serif;
    margin: 0;
    background-color: #000000;
    color: #ccc;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: #fff;
    margin: 0;
}

a {
    color: #fff;
    text-decoration: none;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.preloader-line {
    width: 0;
    height: 2px;
    background-color: #d80000;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 200px;
    }
}

/* --- Hero Section & Text Slider --- */
.hero-section-video {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.main-content-wrapper {
    position: relative;
    z-index: 2;
    background-color: #000000;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* We add position:relative here so it can act as a container for the overlay */
    position: relative; 
}

.hero-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* This is the new overlay pattern class */
.video-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 
      IMPORTANT: Make sure this path is correct! 
      It should be relative to where your styles.css file is.
      If your CSS is in an 'assets/css' folder, this path should work.
    */
    background-image: url('../images/web-pattern-2.png'); 
    background-repeat: repeat;
    
    /* Adjust this value to make the pattern more or less visible */
    opacity: 0.60; 
}
/* =================================
   CTA Section with Overlay Pattern
   ================================= */

/* 1. Set the positioning context for the parent section */
.cta-section {
    position: relative; /* THIS IS THE CRITICAL MISSING PIECE */
    z-index: 1;         /* Establishes a stacking context */
    /* Add this if you want the section's background color
       to show through the transparent pattern */
    background-color: #444;
}

/* 2. Your CSS for the overlay (with one small addition) */
.form-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/web-pattern-2.png'); 
    background-repeat: repeat;
    opacity: 0.60;
    z-index: -1; /* This pushes the overlay BEHIND the content */
}

/* 3. Ensure the content (text, button) stays on top */
.cta-section .container {
    position: relative;
    z-index: 2;
}

.hero-section-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slider-container {
    position: fixed;
    top: 25%;
    left: 0%;
    width: 100%;
    z-index: 5;
}

.simple-text-slider {
    position: relative;
    height: 400px;
    width: 100%;
}

.slide-item {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    transform: none;
    opacity: 0;
    transition: opacity 1.0s ease-in-out;
}
.slide-vertical-center .hero-main-text {
    margin-top: 60px; /* Adjust this value to move it up or down */
}

.slide-item.active {
    opacity: 1;
}

.hero-main-text {
    font-family: 'Lekton', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

/* --- Page Hero (for About/Contact pages) --- */
.page-hero {
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
    margin-top: 100px;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 1rem);
}

.page-hero .breadcrumbs {
    color: #ccc;
    font-size: 1rem;
    margin-top: 5px;
}

.page-hero .breadcrumbs-plain {
    font-size: 1rem;       /* Adjust size as needed */
    font-weight: 400;      /* Regular font weight */
    color: #ffffff;        /* A soft white for all text */
    cursor: default;       /* Ensures the cursor is always an arrow */
}

/* Make the current/last item slightly dimmer */
.page-hero .breadcrumbs-plain .active {
    color: #ff0000;
}

/* The separator slashes */
.page-hero .breadcrumbs-plain .separator {
    margin: 0 0.6rem;    /* Space around the separator */
    color: rgba(255, 255, 255, 0.7); /* Make separator slightly transparent */
}

/* --- General Content Sections --- */
.page-content-wrapper {
    position: relative;
    z-index: 2;
    background-color: #000000;
    padding-top: 50px;
}

.content-section-dark {
    padding: 60px 0;
    background-color: #000000;
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin: 0;
    font-size: 2rem;
    padding-top: 60px;
}

.section-header p {
    max-width: 600px;
    margin: 0;
    color: #aaa;
    font-size: 1.1rem;
}
.scroller-section:not(.partners-section) {
    position: relative;
    isolation: isolate; 
    padding-bottom: 50px;
}

.scroller-section:not(.partners-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* The pattern for your image scrollers */
    background-image: url('../images/web-pattern-4.png');
    background-repeat: repeat;
    opacity: 0.50; 
    z-index: -1;
}

.scroller-container {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    padding-top: 10px;
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.scroller-item {
    flex: 0 0 auto;
    padding: 0 10px;
    position: relative;
    display: block;
    overflow: hidden;
}

.scroller-item img,
.scroller-item video {
    max-width: none;
    height: 150px;
    object-fit: cover;
}

.partner-logo img {
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.partner-logo img:hover {
    opacity: 1;
}

.scroller-container .scroller-inner {
    animation: scroll linear infinite;
}

.scroller-container[data-speed="fast"] .scroller-inner {
    animation-duration: 50s;
}

.scroller-container[data-speed="slow"] .scroller-inner {
    animation-duration: 60s;
}

.scroller-container[data-direction="right"] .scroller-inner {
    animation-direction: reverse;
}


@keyframes scroll {
    to {
        transform: translate(calc(-50%));
    }
}

/* --- Portfolio Showcase (Swiper) --- */
.portfolio-slider-section {
    padding: 50px 0;
    background-color: #000000;
    position: relative;
}

.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 600px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.portfolio-item-large,
.portfolio-item-small {
    position: relative;
    overflow: hidden;
    display: block;
    background-size: cover;
    background-position: center;
}

.portfolio-item-large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.portfolio-item-large .portfolio-hover-content,
.portfolio-item-small .portfolio-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #d80000;
    color: #fff;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item-large:hover .portfolio-hover-content,
.portfolio-item-small:hover .portfolio-hover-content {
    transform: translateY(0);
}

.portfolio-hover-content h3 {
    color: #fff;
    margin-bottom: 5px;
}

.portfolio-hover-content span {
    color: #fff;
    opacity: 0.8;
}
.swiper-desktop-instance {
    /* THIS IS THE KEY: Override Swiper's CSS variables */
    --swiper-navigation-color: #ffffff; /* Sets the default arrow color to WHITE */

    /* Optional: You can also control the size this way */
    --swiper-navigation-size: 22px; 
}

/* 2. Remove the default background circle */
.swiper-desktop-instance .swiper-button-next,
.swiper-desktop-instance .swiper-button-prev {
    background: none;
    width: 40px;
    height: 40px;
    transition: color 0.3s ease; /* Add transition for hover effect */
}

/* 3. Reposition the buttons */
.swiper-desktop-instance .swiper-button-next {
    right: 100px;
}
.swiper-desktop-instance .swiper-button-prev {
    left: 100px;
}

/* 4. Set the HOVER color for the arrows */
.swiper-desktop-instance .swiper-button-next:hover,
.swiper-desktop-instance .swiper-button-prev:hover {
    /* On hover, we change the variable's value to your theme red */
    --swiper-navigation-color: #d80000;
}

/* 5. Ensure the arrow icon remains bold (optional, but good practice) */
.swiper-desktop-instance .swiper-button-next::after,
.swiper-desktop-instance .swiper-button-prev::after {
    font-weight: 900;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-mission h2 {
    font-size: 2.2rem;
    line-height: 1.4;
    color: #fff;
}

.about-description p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 20px;
}

.about-description p:last-child {
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .about-grid {
        /* Stacks the columns on top of each other */
        grid-template-columns: 1fr;
        /* Reduces the space between the stacked items */
        gap: 40px;
    }

    .about-mission h2 {
        /* Reduces the heading font size for smaller screens */
        font-size: 1.8rem;
    }

    .about-description p {
        /* Reduces the paragraph font size for better readability */
        font-size: 1rem;
    }
}

.contact-detail-section .section-header {
    margin-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px 40px;
}

.contact-column h4 {
    font-family: 'Lekton', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 1.5px;
    margin-top: 30px;
}

.contact-column h4:first-child {
    margin-top: 0;
}

.contact-column p {
    font-family: 'Lekton', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #ddd;
}

.contact-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-column a.contact-link-red {
    color: #d80000;
    font-weight: 500;
}

.contact-column a:hover {
    color: #fff;
}

/* --- Team Section --- */
.team-section {
    padding: 0 0 120px 0;
}

.team-section h2 {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-member span {
    color: #d80000;
    font-weight: 500;
}

/* --- Service Page Styles --- */

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

.service-description h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-description h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 25px;
}

.service-description .icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-description .icon-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.service-description .icon-list svg {
    width: 28px;
    height: 28px;
    color: #d80000;
    flex-shrink: 0;
}

.service-form h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-family: 'Lekton', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d80000;
}

.service-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
    
}

/* --- Portfolio Page Styles --- */
.feature-section {
    padding: 120px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-media .media-wrapper {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-media .media-wrapper:hover .play-button-overlay {
    opacity: 1;
}

.play-icon {
    width: 80px;
    height: 80px;
    color: #fff;
    transition: transform 0.3s ease;
}

.feature-media .media-wrapper:hover .play-icon {
    transform: scale(1.2);
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #d80000;
}

.cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
}

.cta-section .cta-button {
    display: inline-block;
    background-color: #d80000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* --- Footer --- */
.main-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-footer p {
    color: #888;
    font-size: .8em;
}

.social-links a {
    /* Define the circle's size */
    width: 20px;
    height: 20px;
    
    /* Keep the spacing between icons */
    margin-left: 20px;

    /* Make the link a circle */
    border-radius: 50%;
    
    /* Use flexbox to perfectly center the icon inside */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Set the default icon and border color */
    color: #888;
    border: 1px solid #888;
    
    /* Remove default underline from links */
    text-decoration: none;
    
    /* Animate the changes for a smooth hover effect */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* 2. Define the hover effect */
.social-links a:hover {
    /* Change background to your theme red */
    background-color: #d80000;
    
    /* Make the border red as well to look solid */
    border-color: #d80000;
    
    /* Change the icon color to white */
    color: #fff;
}

/* 3. Control the icon's size inside the circle */
.social-links a i {
    font-size: .7rem; /* Your original icon size */
}

/* ======================================================= */
/* ---               RESPONSIVE STYLES                 --- */
/* ======================================================= */
@media (min-width: 1080px) {

    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1080px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .hero-main-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    .simple-text-slider{
    position: relative;
    height: 200px;
    width: 100%;
    }

}

/* ======================================================= */
/* ✅ SELF-HOSTED VIDEO STYLES ✅                         */
/* ======================================================= */
/* This container centers the video block on the page */
.container.local-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* This wrapper sets the video's width */
.video-wrapper {
    max-width: 800px; /* Control the max size of your video here */
    width: 100%;
    border-radius: 8px; /* Optional: adds nice rounded corners */
    overflow: hidden; /* Hides anything that spills out of the rounded corners */
}

/* This styles the video element itself */
.video-wrapper video {
    width: 100%; /* Makes the video responsive */
    height: auto; /* Maintains the aspect ratio */
    display: block; /* Removes any extra space below the video */
    border: 0; /* Ensures no border is added by the browser */
}
/* ======================================================= */
/* ✅ PLAY/PAUSE BUTTON FOR LOCAL VIDEO ✅                  */
/* ======================================================= */

/* Make the wrapper a positioning context for the button and add a pointer */
.video-wrapper {
    position: relative;
    cursor: pointer;
}

/* Style the overlay that contains the button */
.play-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}


/* The "Play" triangle icon (using CSS borders) */
.play-pause-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Visually centers the triangle */
    width: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    transition: all 0.2s ease;
}

/* The "Pause" icon (two vertical bars) */
.video-wrapper.is-playing .play-pause-button::before {
    transform: translate(-50%, -50%);
    width: 20px; /* Width of the combined pause bars */
    height: 24px;
    border-style: double;
    border-width: 0 0 0 20px;
    border-left-color: #ffffff;
}

/* When video is playing, fade out the overlay */
.video-wrapper.is-playing .play-pause-overlay {
    opacity: 0;
}

/* On hover (while playing), bring the overlay back */
.video-wrapper.is-playing:hover .play-pause-overlay {
    opacity: 1;
}

/* Add a subtle zoom effect on hover for the button */
.video-wrapper:hover .play-pause-button {
    transform: scale(1.1);
}
/* ======================================================= */
/* ✅ STYLES FOR THE SCROLL-DOWN ARROW ✅                  */
/* ======================================================= */

/* This enables smooth scrolling when the arrow is clicked */
html {
    scroll-behavior: smooth;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 50px; /* Adjust distance from the bottom */
    left: 50%;
    transform: translateX(-50%) rotate(45deg); /* Center and rotate */
    width: 28px;
    height: 28px;
    border: 2px solid #ffffff;
    border-top: 0;
    border-left: 0;
    z-index: 10; /* Ensure it's clickable and on top */
    animation: bounce 2.5s infinite;
}
#our-clients {
    /* 
      This tells the browser to stop scrolling 100px BEFORE the top
      of this section, leaving a perfect gap for your header.
      Adjust the value to match your header's height + some space.
    */
    scroll-margin-top: 88px; 
}

/* A simple bouncing animation to draw attention */
@keyframes bounce {
    0%, 100% {
        bottom: 50px;
        opacity: 1;
    }
    50% {
        bottom: 30px;
        opacity: 0.7;
    }
}
.portfolio-header h2 {
    padding-top: 0; /* Removes the default top padding from .section-header h2 */
}

.portfolio-header {
    margin-bottom: 40px; /* Adjust the space below the header text */
}
.portfolio-slider-desktop {
    display: none;
}

/* On screens larger than 768px, hide the mobile slider and show the desktop one */
@media (min-width: 1080px) {
    .portfolio-slider-desktop {
        display: block;
    }
    .portfolio-slider-mobile {
        display: none;
    }
    
}

/* --- Styling for the new single-item mobile slides --- */
.portfolio-item-single {
    display: block;
    position: relative;
    border-width: 50px;
    width: 80%;
    left: 10%;
    padding-top: 56.25%; 
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 8px; /* Optional: adds nice rounded corners */
}

.portfolio-item-single:hover .portfolio-hover-content {
    transform: translateY(0);
}
.swiper-pagination-bullet {
    background-color: #888; /* A neutral grey color */
    opacity: 0.7; /* Make them slightly transparent */
}

.swiper-pagination {
    bottom: 20px !important; /* Use !important to override inline styles if necessary */
}

/* This is for each individual dot (the inactive state) */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ffffff; /* Let's make them white */
    opacity: 0.5; /* Make them semi-transparent */
    transition: all 0.3s ease; /* Add a smooth transition effect */
}

/* This is for the currently active dot */
.swiper-pagination-bullet-active {
    background-color: #d80000; /* Your theme red */
    opacity: 1; /* Fully visible */
    width: 30px; /* Make the active dot wider to stand out */
    border-radius: 5px; /* Make it a wide, rounded rectangle */
}
.swiper-mobile-instance .swiper-pagination {
    position: static; /* This is the key change! */
    
    /* We need to add some margin to create space between the slider and the dots. */
    margin-top: 25px;
    
    /* We also have to reset the transform that Swiper uses for centering. */
    transform: none;
}
.portfolio-item-single .portfolio-hover-content {
    /* Use a gradient that fades from your theme's red to transparent */
    /* This is the line that was changed from black to red */
    background: linear-gradient(to top, rgba(216, 0, 0, 0.8) 0%, transparent 100%);

    /* Adjust padding to position the text in the darker area */
    padding: 40px 20px 20px 20px;
    
    /* Make the text content align to the bottom of the slide */
    justify-content: flex-end;
}

/* Add a very subtle dark shadow to the text itself for clarity against the red */
.portfolio-item-single .portfolio-hover-content h3,
.portfolio-item-single .portfolio-hover-content span {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
/* --- Gallery Styles (from previous answer) --- */
/* --- New CSS for Masonry --- */
.project-gallery-grid {
    margin: 2rem auto 0; /* Keeps top margin, centers the block */
}

/* Clear floats for the container */
.project-gallery-grid:after {
    content: '';
    display: block;
    clear: both;
}

/*
  This is the key part for Masonry. We define the width of each item.
  The script will then position them.
*/
.gallery-item {
    /* --- Keep your existing .gallery-item styles --- */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    /* --- Add the new styles below --- */
    float: left;
    width: 31.333%; /* Creates a 3-column layout */
    margin: 1%;      /* Creates the "gap" between items */
}

/* --- Add Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    .gallery-item {
        width: 48%; /* 2 columns on tablets */
        margin: 1%;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 98%; /* 1 column on mobile */
        margin: 1%;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-radius: 0;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* --- YouTube Play Button --- */
.youtube-video .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.8) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center center;
    background-size: 40px 40px;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Allows clicks to pass through to the link */
}

.gallery-item.youtube-video:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}


/* --- Modern Modal Styles --- */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.video-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 960px;
    top: 50%;
    transform: translateY(-50%);
}

.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
/* ========================================= */
/*   CHAT WIDGET & TOGGLE STYLES (COMPLETE)  */
/* ========================================= */

/* --- 1. The Toggle Button ("NRK Media") --- */
.chat-opener-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* FIX: Set a high z-index to be on top of site content */
    z-index: 9999;
    
    background-color: #a9a9a9;
    color: #333; /* Darker text for better contrast */
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.chat-opener-button i {
    font-size: 18px;
}

.notification-dot {
    width: 10px;
    height: 10px;
    background-color: #4ee040; /* Bright red */
    border-radius: 50%;
    border: 1px solid #fff;
}

.chat-opener-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}


/* --- 2. The Main Chat Widget Window (This was the missing part) --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* FIX: Set the HIGHEST z-index to be on top of everything */
    z-index: 10000;
    
    width: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background-color: #4a4a4a;
    color: white;
    font-family: Arial, sans-serif;
    
    /* Starts hidden and transitions smoothly */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #333;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #4ee040;
    margin-right: 15px;
    object-fit: cover; /* Prevents image stretching */
}

.agent-info { flex-grow: 1; }
.agent-name { font-weight: bold; font-size: 16px; }
.agent-title { font-size: 13px; color: #ccc; }
.close-icon { font-size: 24px; cursor: pointer; padding: 5px; line-height: 1; }

.chat-body { padding: 20px; min-height: 120px; }

.typing-indicator {
    display: flex;
    padding: 15px;
    background: #555;
    border-radius: 20px;
    width: fit-content;
    opacity: 0;
    animation: fadeIn 0.3s 1s forwards, fadeOut 0.3s 4s forwards;
}

.chat-message {
    opacity: 0;
    background: #5f5f5f;
    border-radius: 20px;
    padding: 5px 20px;
    margin-top: 10px;
    animation: fadeInMessage 0.5s 4.5s forwards;
}
.chat-message p { margin: 10px 0; line-height: 1.5; }

.chat-footer { padding: 10px 20px 20px 20px; text-align: center; }
.connect-text { margin-bottom: 15px; font-size: 14px; }
.icon-buttons { display: flex; justify-content: space-around; }

.icon-btn {
    width: 40px;
    height: 40px;
    background-color: #d90429;
    border-radius: 100%;
    display: block;
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; } to { opacity: 0; display: none; }
}

@keyframes fadeInMessage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #ccc;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
/* ========================================= */
/*      CHAT WIDGET ICON STYLES          */
/* ========================================= */

/* This makes the red circle a flex container to center the icon */
.icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Add a smooth hover effect */
    transition: transform 0.2s ease;
}

/* Style the Font Awesome icon itself */
.icon-btn i {
    color: #ffffff; /* White icon color */
    font-size: 22px; /* Adjust size as needed */
}

/* Optional: Add a nice zoom effect on hover */
.icon-btn:hover {
    transform: scale(1.1);
}