/* General Styles */
body {
    font-family: 'Assistant', sans-serif;
    background-color: #f8f8fc;
    margin: 0;
    color: #4D4D4D;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.7;
    white-space: normal;
    padding: 0;
}

a {
    color: #28A9C5;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.strong-text {
    font-weight: 500;
}

/* Container Styles */
.container {
    max-width: 1800px; 
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.content-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px;
}

/* Header Styles */
.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 15px;
    padding: 0 20px;
    height: 85px;
}

.site-description {
    color: #666;
    margin: 0 0 10px 0;
    padding: 0;
    max-width: 600px;
    width: 100%
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 40px;
    width: auto;
}

.site-logo.mobile-logo {
    display: none;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-link {
    color: #28A9C5;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 23px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #f6f6f6;
}

.nav-list li:last-child a {
    border: 2px solid #28A9C5;
    border-radius: 10px;
    padding: 10px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-list li:last-child a:hover {
    background-color: #28A9C5;
    color: #fff;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #02234d;
    margin: 5px 0;
    transition: 0.3s;
}

@media only screen and (max-width: 1024px) {
    .header-container {
        padding: 20px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background-color: #fff;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        align-items: center;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
    }

    .hamburger-menu {
        display: block;
    }

    .site-logo.desktop-logo {
        display: none;
    }

    .site-logo.mobile-logo {
        display: block;
    }
}

/* Typography */
h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
    color: #4D4D4D;
    font-size: 2.3em;
    line-height: 1.2;
}

.main-title {
    max-width: 1800px;
    margin: 0 auto 20px;
    padding: 0 50px;
}

.site-title {
    font-family: montserrat,sans-serif;
    font-weight: 500;
    font-size: 2em;
    margin: 0;
    padding: 0
}

.site-favicon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    background-color: #fff;
    opacity: 0;
    transition: opacity .3s ease
}

.site-header-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}

/* Button Styles */
.button-style,
.search-box,
.dropdown-select,
.clear-button {
    height: 50px;
    border: 1px solid #ebebeb;
    border-radius: 15px;
    padding: 0 15px;
    font-size: 16px;
    margin-right: 5px;
    font-weight: 500;
    color: #02234d;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button-style:hover,
.clear-button:hover {
    background-color: #02234d;
    color: #fff;
}

.dropdown-select:hover {
    border-color: #c4c4c4; /* Darker shade of border color */
}

.button-style.active {
    background-color: #02234d;
    color: #fff;
}

.list-view-button {
    display: flex;
    align-items: center;
    border: 2px solid #28A9C5;
    color: #28A9C5;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.list-view-button:hover {
    border-color: #E3C797;
    color: #E3C797;
}

.list-view-button svg {
    margin-left: 15px;
    width: 20px;
    height: 20px;
    fill: #28A9C5;
    transition: fill 0.3s ease;
}

.list-view-button:hover svg {
    fill: #E3C797;
}

/* Table Styles */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
}

.table-controls-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.table-wrapper {
    background-color: #fff;
    border-radius: 15px;
    overflow: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    font-weight: 600;
    color: #c4c4c4;
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
    background-color: #fff;
    cursor: pointer;
}

.modern-table td {
    font-weight: 400;
    color: #02234d;
    padding: 30px;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
}

.modern-table tr:hover {
    background-color: #FAFBFD;
}

.modern-table th:first-child {
    border-top-left-radius: 15px;
}

.modern-table th:last-child {
    border-top-right-radius: 15px;
}

.modern-table tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.modern-table tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.modern-table td.positive-change {
    color: green !important;
}

.modern-table td.negative-change {
    color: red !important;
}

/* Form Elements */
.search-box {
    width: 15rem;
    margin-left: auto;
}

.dropdown-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gray"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
    padding-right: 40px;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 70px;
}

.carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
    padding-bottom: 20px;
    padding-top: 20px;
}

.carousel-item {
    flex: 0 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    transition: width 0.3s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card {
    background-color: #fff;
    width: 100%;
    height: 230px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--card-bg-image, url('img/sample.png'));
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.card h3, .card-footer p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 1.5em;
    margin: 0;
    width: 100%;
}

.card-content {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    z-index: 3;
    position: relative;
}

.card-content-link {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 3;
}

.card-footer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 30px);
    padding-top: 10px;
    z-index: 3;
}

.card-footer p {
    font-size: 0.9em;
    margin: 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.metric-label {
    font-size: 0.8em;
    color: #777;
    margin-left: 4px;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
}

.card-link:hover .card {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 35px;
    height: 55px;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
}

.prev-button {
    left: 10px;
    margin-left: 7px;
    background-image: url('img/arrow-left.png');
}

.next-button {
    right: 10px;
    margin-right: 7px;
    background-image: url('img/arrow-right.png');
}

/* Data Box Styles */
.data-box {
    background-color: #f8f8fc;
    padding: 15px;
    border-radius: 15px;
    flex: 1 1 calc(30% - 20px);
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.data-box-large {
    background-color: #f8f8fc;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

/* Post Styles */
.post-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.8em;
    margin: 0;
    color: #28A9C5;
    line-height: 1.2;
}

.post-meta {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1.1em;
}

/* Site Details Styles */
.site-details-container {
    max-width: 1800px;
    margin: 0 auto 20px;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.columns-container {
    display: flex;
    gap: 30px;
}

.left-column {
    display: flex;
    width: 50%;
}

.left-column .flex-column {
    flex-direction: column;
}

.right-column {
    display: flex;
    width: 50%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.right-column .data-box {
    padding: 15px;
    border-radius: 15px;
    width: calc(33.333% - 14px);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.site-details-container .data-value {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 5px;
}

/* Traffic History Styles */
#trafficHistoryBox {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#trafficChart {
    width: 100% !important;
    height: 100% !important;
    max-height: 350px;
}

/* Icon Styles */
.section-icon {
    margin-left: 15px;
    width: 40px;
    height: 40px;
}

.menu-icon {
    margin-left: 15px;
    width: 20px;
    height: 20px;
}

.menu-icon:hover {
    fill: #E3C797;
}

/* Filter Styles */
.filter-button-wrapper {
  position: relative;
  display: inline-block;
}

.filter-window {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 2px solid #ebebeb;
    border-radius: 15px;
    padding: 30px;
    z-index: 1000;
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  }

@media (max-width: 768px) {
  .filter-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.filter-item {
    margin-bottom: 20px;
}

.filter-item label {
    display: block;
    margin-bottom: 10px;
    color: #02234d;
    font-weight: 500;
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input {
    flex: 1;
    height: 40px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 0 15px;
    font-size: 14px;
}

.filter-select {
    width: 100%;
    height: 40px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 0 15px;
    font-size: 14px;
    background-color: white;
}

/* Custom styling for noUiSlider */
.noUi-connect {
    background: #02234d !important;
}

/* Custom styling for specific sliders */
#traffic-slider .noUi-connect,
#growth-slider .noUi-connect,
#dr-slider .noUi-connect {
    background: #133753 !important;
}

/* More Categories Styles */
.more-categories {
    position: relative;
    cursor: pointer;
    color: #02234d;
}

.more-categories:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 0;
    white-space: nowrap;
    background-color: #e7e7e7;
    border: 1px solid #c4c4c4;
    padding: 5px;
    margin-top: 5px;
    border-radius: 3px;
    z-index: 1001;
    pointer-events: none;
}

/* Loading Indicator */
#loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
}

/* Positive/Negative Change Styles */
.positive-change {
    color: green;
}

.negative-change {
    color: red;
}

/* Dashboard Link */
.dashboard-link {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    color: #02234d;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ebebeb;
    border-radius: 15px;
    font-weight: 500;
}

.dashboard-link:hover {
    background-color: #FAFBFD;
}

/* Responsive Styles */
@media only screen and (max-width: 1840px) {
    .container {
        max-width: 100%;
    }
}

.guides-header,
.samples-header {
    margin-bottom: 20px;
}

/* Common styles for both sections */
.flex-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.8em;
    color: #28A9C5;
}

.section-header p {
    font-size: 1.1em;
    max-width: 600px;
    margin-top: 10px;
}

.section-icon {
    margin-left: 15px;
    width: 45px;
    height: 45px;
}

.guides-container,
.samples-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
}

.guide-card,
.sample-card {
    flex: 0 1 calc(50% - 10px);
    width: 100%;
    height: 230px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.guide-card::before,
.sample-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--card-bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.guide-card::after,
.sample-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.guide-card:hover::before,
.sample-card:hover::before {
    transform: 0;
}

.guide-card:hover::after,
.sample-card:hover::after {
    background-color: rgba(0, 0, 0, 0.6);
}

.guide-card-content,
.sample-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.guide-card h3,
.sample-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5em;
    color: #fff;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-card-content,
.sample-card:hover .sample-card-content,
.guide-card:hover h3,
.sample-card:hover h3 {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .guide-card,
    .sample-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Make sample cards clickable */
.sample-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sample-card:hover {
    transform: 0;
}

/* Site Details Carousel Styles */
.site-details-carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 70px;
    padding-bottom: 20px; /* Add some padding at the bottom for scrollbar */
}

.site-details-carousel .carousel {
    display: flex;
    gap: 20px; /* Add gap between cards */
}

.site-details-carousel .carousel-item {
    flex: 0 0 auto;
    width: 340px;
    min-width: 340px;
}

.site-details-carousel .card {
    background-color: #fff;
    width: 100%;
    height: 230px;
    border-radius: 15px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.site-details-carousel .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--card-bg-image);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.site-details-carousel .card::after {
    content: none; /* Remove the overlay */
}

.site-details-carousel .card-content {
    width: 100%;
    text-align: center;
    z-index: 2;
    position: relative;
}

.site-details-carousel .card-content-link {
    text-decoration: none;
    color: inherit;
}

.site-details-carousel .card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5em;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Remove hover effects */
.site-details-carousel .card:hover {
    transform: none;
    box-shadow: none;
}

/* Ensure the carousel container doesn't overflow on smaller screens */
@media (max-width: 767px) {
    .site-details-carousel {
        scroll-snap-type: x mandatory;
    }

    .site-details-carousel .carousel-item {
        scroll-snap-align: start;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.site-details-carousel::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.site-details-carousel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Site Details Carousel Styles */
.site-details-carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 70px;
    padding-bottom: 20px; /* Add some padding at the bottom for scrollbar */
}

.site-details-carousel .carousel {
    display: flex;
    gap: 20px; /* Add gap between cards */
}

.site-details-carousel .carousel-item {
    flex: 0 0 auto;
    width: 340px;
    min-width: 340px;
}

.site-details-carousel .card {
    background-color: #fff;
    width: 100%;
    height: 230px;
    border-radius: 15px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.site-details-carousel .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--card-bg-image);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.site-details-carousel .card::after {
    content: none; /* Remove the overlay */
}

.site-details-carousel .card-content {
    width: 100%;
    text-align: center;
    z-index: 2;
    position: relative;
}

.site-details-carousel .card-content-link {
    text-decoration: none;
    color: inherit;
}

.site-details-carousel .card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5em;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Remove hover effects */
.site-details-carousel .card:hover {
    transform: none;
    box-shadow: none;
}

/* Ensure the carousel container doesn't overflow on smaller screens */
@media (max-width: 767px) {
    .site-details-carousel {
        scroll-snap-type: x mandatory;
    }

    .site-details-carousel .carousel-item {
        scroll-snap-align: start;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.site-details-carousel::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.site-details-carousel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

@media only screen and (max-width: 1024px) {
    .columns-container {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .right-column {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .right-column .data-box {
        width: 100%;
        max-width: none;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .right-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media only screen and (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .table-controls-left {
        flex-direction: column;
        width: 100%;
    }

    .table-controls > *,
    .table-controls-left > *,
    .search-box {
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .button-style,
    .search-box,
    .dropdown-select,
    .clear-button {
        margin-right: 0;
        width: 100%;
    }

    .search-box {
        margin-left: 0;
    }

    .dashboard-link {
        position: static;
        display: block;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .site-favicon {
        margin-bottom: 10px;
    }

    .site-description {
        margin-left: 0;
    }

    .main-title,
    .content-container {
        padding: 20px;
    }

    #trafficChart {
        padding-left: 0 !important;
    }

    .site-logo.desktop-logo {
        display: none;
    }

    .site-logo.mobile-logo {
        display: block;
        width: 90px;
    }

    .prev-button {
        left: 10px;
    }

    .next-button {
        right: 10px;
    }
}

@media only screen and (max-width: 575px) {
    /* Styles for very small screens */
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.filter-actions a {
  text-decoration: none;
  color: #02234d;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.filter-actions a:hover {
  background-color: #f0f0f0;
}

#apply-filters {
  color: #28A9C5;
}

#clear-filters {
    color: #28A9C5;
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    /* Styles for small screens */
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* Styles for medium screens */
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    /* Styles for large screens */
}

@media only screen and (min-width: 1200px) {
    /* Styles for extra large screens */
}

.card-with-image {
    position: relative;
    overflow: hidden;
}

.card-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.card-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.card-with-image .card-content-link,
.card-with-image .card-footer {
    position: relative;
    z-index: 3;
}

.card-with-image h3,
.card-with-image .card-footer p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.card-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.card-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.card-with-image .card-content-link,
.card-with-image .card-footer {
    position: relative;
    z-index: 3;
}

.card-with-image h3,
.card-with-image .card-footer p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.card-with-image {
    position: relative;
    overflow: hidden;
}

.card-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.card-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.card-with-image .card-content-link,
.card-with-image .card-footer {
    position: relative;
    z-index: 3;
}

.card-with-image h3,
.card-with-image .card-footer p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Feature Image Styles */
.feature-image {
    max-width: 840px;
    width: 100%;
    height: 400px;
    margin: 0 auto 20px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .feature-image {
        width: 100%;
        height: auto;
    }

    .sidebar {
        display: none;
    }

    .blog-content {
        width: 100%;
        margin: 0;
    }
}

/* Post Container Styles */
.post-container {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
    background-color: #fff;
    border-radius: 15px;
    box-sizing: border-box;
}

.sidebar {
    width: 27.5%;
    display: flex;
    justify-content: flex-end;
}

.blog-content {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 15px;
    box-sizing: border-box;
}

.tableofcontents {
    width: 60%;
    background-color: #fff;
    border-radius: 15px;
    padding: 0 10px;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .feature-image {
        width: 100%;
        height: auto;
    }

    .sidebar {
        display: none;
    }

    .blog-content {
        width: 100%;
        margin: 0;
    }
    .post-container {
        padding: 20px;
    }
}

.blog-h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.8em;
    margin: 30px 0 10px 0;
    color: #28A9C5;
    line-height: 1.2;
}

.blog-h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    margin: 30px 0 10px 0;
    color: #28A9C5;
    line-height: 1.2;
}

.blog-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 15px;
    -webkit-box-shadow: 4px 7px 23px -11px rgba(0,0,0,0.47);
    -moz-box-shadow: 4px 7px 23px -11px rgba(0,0,0,0.47);
    box-shadow: 4px 7px 23px -11px rgba(0,0,0,0.47);
}

/* Blog content specific link styles */
.blog-content a {
    color: #28A9C5; /* Change this to your desired link color */
    transition: color 0.3s ease;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #E3C797; /* Change this to your desired hover color */
    text-decoration: underline;
    text-decoration: underline;
}

/* Add this to your existing styles */
.site-details-carousel .carousel-item {
    min-width: 340px;
    width: 340px;
}

.site-details-carousel .card {
    min-width: 340px;
    width: 100%;
}

/* Ensure the carousel container doesn't overflow on smaller screens */
@media (max-width: 767px) {
    .site-details-carousel {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .site-details-carousel .carousel-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

/* Login Styles */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f8fc;
}

.login-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 0px;
    text-align: left;
    color: #28A9C5;
}

.login-container input[type="email"] {
    width: 100%;
    padding: 12px 23px;
    margin-bottom: 20px;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 12px 23px;
    background-color: #28A9C5;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #1f8ca3;
}

.login-container .message {
    margin-top: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Add this to your existing CSS file */

.sortable {
    cursor: pointer;
    position: relative;
}

.sort-icon {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    margin-left: 5px;
    vertical-align: middle;
    filter: invert(80%) sepia(3%) saturate(13%) hue-rotate(314deg) brightness(92%) contrast(84%);
}

th.asc .sort-icon {
    transform: rotate(180deg);
}

th.desc .sort-icon {
    transform: rotate(0deg);
}

/* Add these new styles */
.site-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verified-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle; /* Ensures icon aligns with text */
    position: relative;
}

/* Add tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: normal;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.pr-icon {
    width: 35px;
    height: auto;
    vertical-align: middle;
    position: relative;
    opacity: 0.7;
}

/* Update existing site-name class to better handle multiple icons */
.site-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Ensure strong tag (site name) doesn't shrink */
.site-name strong {
    flex-shrink: 0;
}

.row-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

#copy-data-button {
    margin: 0px;
}

.selection-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

#selected-counter {
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 50%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input {
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    font-size: 14px;
}

.modal-form button {
    padding: 12px;
    background-color: #28A9C5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.modal-form button:hover {
    background-color: #2391a9;
}

/* Add these new utility classes */
.hidden {
    display: none !important;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed !important;
}

.column-hidden {
    display: none !important;
}

/* Update button styles to work with disabled state */
.button-style:disabled,
.button-style.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed !important;
    background-color: #f0f0f0;
}

/* Add these styles to hide checkmarks and related elements */
.table-wrapper.checkmarks-hidden .row-checkbox,
.table-wrapper.checkmarks-hidden #select-all-checkbox,
.table-wrapper.checkmarks-hidden .modern-table th:first-child,
.table-wrapper.checkmarks-hidden .modern-table td:first-child {
    display: none;
}

/* Hide selection-related buttons when checkmarks are hidden */
.hidden {
    display: none !important;
}

.copy-button-wrapper {
    position: relative;
    display: inline-block;
}

.copy-options-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 180px;
    margin-top: 5px;
}

.copy-option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #02234d;
    transition: background-color 0.3s ease;
}

.copy-option:first-child {
    border-radius: 10px 10px 0 0;
}

.copy-option:last-child {
    border-radius: 0 0 10px 10px;
}

.copy-option:hover {
    background-color: #f6f6f6;
}

.copy-option:not(:last-child) {
    border-bottom: 1px solid #ebebeb;
}

.nav-list li {
    margin-right: 15px;
}

.nav-list li:last-child {
    margin-right: 0;
}

.request-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.request-form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.submit-button,
.cancel-button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.submit-button {
    background: #28A9C5;
    color: white;
}

.cancel-button {
    background: #ddd;
}

.thank-you-message {
    text-align: center;
    padding: 2rem;
}

.thank-you-message h2 {
    color: #28A9C5;
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
    line-height: 1.5;
}

.thank-you-message button {
    min-width: 120px;
}