﻿/*********** TOP SECTION ***********/
/* The Main Container */
.enecon-breakout-section {
    position: relative;
    padding: 60px 0; /* Adjust padding to control section height */
    background: transparent; /* Base is clear */
    color: #fff;
    font-size: 20px;
    margin-top: -1px;
}

.enecon-breakout-section h2 {color: #fff;}

/* The Angled Background Layer */
.enecon-breakout-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0760a9; /* ENECON Blue */
    /* Downward slope left-to-right */
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0% 90%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 45%, 0% 90%);
    z-index: 1;
}

/* Positioning the content above the background */
.enecon-breakout-section .container {
    position: relative;
    z-index: 2; /* Sits above the ::before pseudo-element */
}

/* The "Floating" Images */
.breakout-img {
    /* Adjust margin-bottom to control how far they "hang" over the edge */
    margin-bottom: -40px; 
    /* Shadow adds to the "floating" effect */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    position: relative;
}

/* Responsive adjustment for Mobile */
@media (max-width: 767px) {
    .enecon-breakout-section::before {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 95%);
    }
    .breakout-img {
        margin-bottom: 20px; /* Reduces overlap on small screens */
        max-height: 250px;    /* Prevents images from getting too huge */
    }
}

/*********** CITY LINKS SECTION ***********/
.city-links-section .container-fluid {
    padding: 0;
}

.city-links-section .row {
    margin: 0;
}

.city-column {
    padding: 0;
}

.city-card {
    display: block;
    position: relative;
    height: 400px; /* Forces equal height across the row */
    background-size: cover;
    background-position: center;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

/* The Hover Effect: Raises the card and adds depth */
.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    z-index: 10; /* Ensures the shadow sits above neighbors */
}

/* Text Overlay Styling */
.city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darkens image slightly for text readability */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.city-card:hover .city-overlay {
    background: rgba(0, 0, 0, 0.1); /* Lightens on hover */
}

.city-overlay h3 {
    color: #ffffff;
    font-size: 28px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    margin: 0;
}

/* Responsive Fix for tablet/mobile */
@media (max-width: 991px) {
    .city-card {
        height: 300px;
    }
}

/******************** FIRST TEXT ROW *******************************/

.firsttextrow p {font-size: 18px;}
.firsttextrow h3 {font-size: 27px;}

.firsttextrow {
    /* The image used */
    background-image: url('../new-images/enecon35/diamond-plating-background.png');

    /* Set a specific height */
    /*min-height: 500px;*/

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: repeat; /* Essential for your tiled image */
    background-size: auto;     /* Keeps the tile at its original scale */
    
	margin-top: 0px; padding: 20px;
}

/******************** SCROLLING IMAGE SLIDESHOW ********************/
.enecon-scroll-section {
    background: #f4f4f4;
    padding: 50px 0;
    overflow: hidden;
}

.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 50px;
    cursor: grab; /* Shows the hand icon */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Disable selection to prevent "blue highlight" ghosting while dragging */
    user-select: none;
    -webkit-user-select: none;
}

/* Change cursor when clicking/dragging */
.scroll-wrapper:active {
    cursor: grabbing;
}

/* Remove Snap-Type while dragging for a smoother feel, 
   or keep it if you want it to always lock to an image */
.scroll-wrapper.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 450px; /* Width of each image */
    margin-right: 30px;
    position: relative;
    scroll-snap-align: center;
    transition: transform 0.4s ease;
}

.scroll-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.item-caption {
    margin-top: 15px;
    font-weight: bold;
    color: #0760a9;
    text-align: center;
}

/* Hover Effect */
.scroll-item:hover {
    transform: scale(1.03);
}

/* Responsive: Shrink items for mobile */
@media (max-width: 767px) {
    .scroll-item {
        flex: 0 0 85%; /* Shows a peek of the next image */
        margin-right: 15px;
    }
}

/******************************** TAB SECTION ******************************/
/* Container for the full-width tabs */
.tab-link-wrapper {
    display: flex;
    width: 100%;
    margin-top: 20px;
    border-bottom: 5px solid #0760a9; /* ENECON Blue base */
    /* Ensure no overflow issues with the negative margins */
    padding-right: 15px; 
}

.tab-link-wrapper .nav-tab-link {
    position: relative;
    flex: 1; /* This makes them stretch equally */
    text-align: center;
    padding: 15px 5px;
    margin-right: -20px; /* Overlap amount */
    background: #e1e1e1;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ccc;
    border-bottom: none;
    
    /* The "Folder" Shape */
    border-radius: 15px 40px 0 0;
    z-index: 1;
    transition: background 0.2s ease;
}

/* Fix for the last tab so it doesn't have an awkward overhang */
.tab-link-wrapper .nav-tab-link:last-child {
    margin-right: 0;
}

/* Active State - ENECON Blue */
.tab-link-wrapper .nav-tab-link.active {
    background: #0760a9;
    color: #ffffff;
    z-index: 10; /* Highest z-index to stay on top */
    border-color: #0760a9;
}

/* Hover State */
.tab-link-wrapper .nav-tab-link:hover:not(.active) {
    /*background: #d5d5d5;*/
    background: #0760a9;
    color: #fff;
    z-index: 5;
}

/* Mobile stacking */
@media (max-width: 767px) {
    .tab-link-wrapper {
        flex-direction: column;
        padding-right: 0;
    }
    .tab-link-wrapper .nav-tab-link {
        margin-right: 0;
        margin-bottom: -1px;
        border-radius: 5px 5px 0 0;
    }
}

/************************** MASONRY GALLERY *************************/
/* ENECON Blue Branding */
  .gallery-item .overlay {
    background: rgba(7, 96, 169, 0.8); /* ENECON Blue with transparency */
  }
  
  /* Masonry Specific Styles */
  .grid-item {
    width: 25%; /* 4 columns on desktop */
    padding: 5px;
    float: left;
  }
  
  @media (max-width: 992px) { .grid-item { width: 33.33%; } }
  @media (max-width: 768px) { .grid-item { width: 50%; } }
  @media (max-width: 480px) { .grid-item { width: 100%; } }

  .grid-item img {
    display: block;
    width: 100%;
    border-radius: 4px;
    transition: transform 0.3s ease;
  }

  .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }
/* ENECON Blue Branding for the Lightbox */
  .mfp-bg {
    background: #0b0b0b; /* Dark overlay */
  }
  .mfp-arrow-left:after { border-right-color: #0760a9; }
  .mfp-arrow-right:after { border-left-color: #0760a9; }
  
  /* Hover effect with ENECON Blue */
  .gallery-item {
    position: relative;
    overflow: hidden;
    background: #0760a9; /* Fallback color */
  }
  .gallery-item img {
    transition: all 0.3s ease-in-out;
  }
  .gallery-item:hover img {
    opacity: 0.7;
    transform: scale(1.1);
  }