/**
 * CS Single Page Styles
 */

/* General Layout */
.cs-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.cs-page-content h3.elementor-heading-title {
    margin-bottom: 0;
}

.section-table .elementor-container {
    max-width: 840px!important;
}

body p {
    margin-bottom: 0;
    font-size: inherit;
    line-height: inherit;
}

.cs-single-page-wrapper {
    width: 100%;
}

/* Featured Image Header */
.cs-featured-image-header {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    background-color: #888;
    align-items: end;
    display: flex;
}

.cs-featured-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Breadcrumbs */
.cs-breadcrumb-wrapper {
    background-color: #e30613;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.cs-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cs-breadcrumb-link {
    color: #fff!important;
    text-decoration: none;
    margin-right: 5px;
    font-size: 14px;
}

.cs-breadcrumb-separator {
    margin: 0 8px;
    color: #fff;
}

.elementor-tab-content a {
    color: #e4002b;
}

.elementor-tab-content a:visited {
    color: #e4002b;
}

.cs-breadcrumb-separator img {
    position: relative;
    top: 1px;
}

.cs-breadcrumb-current {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

/* Content Layout */
.cs-page-content-wrapper {
    padding: 60px 0;
    /* padding-bottom: 0!important; */
}

/* .cs-standard-page-wrapper a {
    color: #e4002b;
} */

.cs-standard-page-wrapper a:visited {
    color: #e4002b;
}

.cs-standard-page-wrapper .elementor-button-wrapper a.elementor-button {
    color: white;
    text-transform: math-auto;
}

[data-widget_type="text-editor.default"] a {
    color: #e4002b!important;
} 

[data-widget_type="text-editor.default"] a:visited {
    color: #e4002b; 
}

.cs-standard-page-wrapper [data-widget_type="text-editor.default"] a{
    color: #e4002b; 
}

[data-widget_type="text-editor.default"] a, a.elementor-button {
    text-shadow: none!important;
}

.cs-content-layout {
    display: flex;
}

.cs-content-layout.has-sidebar {
    display: flex;
    flex-wrap: wrap;
}

.cs-content-layout.no-sidebar .cs-main-content {
    width: 100%;
}

.cs-content-layout.no-sidebar .cs-main-content-standard {
    width: 100%;
}

/* Sidebar */
.cs-sidebar {
    width: 25%;
    padding-right: 0px;
}

.cs-main-content {
    width: 70%;
    padding-left: 90px;
}

.cs-sidebar-heading {
    margin-bottom: 0;
    background-color: #000;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    position: relative;
}

.elementor-widget-container .elementor-accordion .elementor-accordion-item {
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

.cs-page-content-wrapper .cs-sidebar-heading h2 {
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-weight: bold;
    color: #fff;
    display: inline-block;
}

.page .elementor-toggle .elementor-tab-title {
    line-height: 24px;
}

.page .elementor-toggle .elementor-tab-title .elementor-toggle-icon {
    padding-top: 5px;
}

.cs-sidebar-heading img {
    margin-right: 15px;
    margin-bottom: 0px;
}

/* Sidebar Navigation */
.cs-sidebar-navigation {
    background-color: #f5f5f5;
}

.cs-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.cs-sidebar-menu > li {
    border-bottom: 0px solid #e6e6e6;
    margin: 0;
}

.cs-sidebar-menu > li:last-child {
    border-bottom: none;
}

.cs-sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.cs-sidebar-menu > li > a {
    font-weight: bold;
    color: #000;
}

.cs-sidebar-menu li a:hover {
    background-color: #e6e6e6;
}

/* Toggle icon for expandable items */
.cs-sidebar-toggle-icon img {
    width: 12px;
    height: 12px;
    transform: rotate(-90deg)!important;
    transition: transform 0.3s ease;
}

.cs-sidebar-toggle-icon {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
    vertical-align: middle;
    cursor: pointer;
    line-height: 0;
}

.cs-sidebar-toggle-icon img {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

/* When expanded, rotate the arrow */
.cs-sidebar-menu li.expanded .cs-sidebar-toggle-icon img,
.cs-sidebar-menu li.active.expanded .cs-sidebar-toggle-icon img {
    transform: rotate(0deg);
}

/* Submenu */
.cs-sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
    opacity: 0;
}

/* Show submenu ONLY when parent is explicitly expanded */
.cs-sidebar-menu li.expanded > .cs-sidebar-submenu,
.cs-sidebar-submenu.cs-submenu-visible {
    max-height: 500px; /* Large enough to contain all items */
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.cs-sidebar-submenu.cs-submenu-visible,
.cs-sidebar-menu li.expanded > .cs-sidebar-submenu {
    max-height: 500px; /* Large enough to contain all items */
}

/* Always show submenu for active parent */
.cs-sidebar-menu li.active > .cs-sidebar-submenu {
    /* Only show if also expanded */
    max-height: 0;
    display: none;
}

.cs-sidebar-menu li.active.expanded > .cs-sidebar-submenu {
    max-height: 500px;
    display: block;
}

.cs-sidebar-menu li.expanded .cs-sidebar-toggle-icon {
    transform: rotate(90deg);
}

.cs-sidebar-submenu li {
    margin: 0;
    border-top: 0px solid #f0f0f0;
}

.cs-sidebar-submenu li a {
    padding: 10px 15px 10px 25px;
    font-size: 14px;
    background-color: #F9F9F9;
}

.cs-sidebar-submenu li.active > a,
.cs-sidebar-submenu li a.current-link {
    color: #e30613;
}

.cs-sidebar-submenu li a:hover {
    background-color: #f9f9f9;
}

/* Special styling for the active path */
/* .cs-sidebar-menu > li.active {
    background-color: #f9f9f9;
} */

/* Highlight the current page in red */
.cs-sidebar-submenu li.active > a {
    color: #e30613;
}

/* Style for the current page (highlighted in red) */
.cs-sidebar-menu .current-page > a,
.cs-sidebar-submenu .current-page > a {
    color: #e30613 !important;
}

/* Page Title and Content */
.cs-page-title {
    font-size: 48px;
    padding: 0;
    color: #000000;
    margin-bottom: 40px;
    margin-top: 0px;
    line-height: 50px;
}

.cs-page-content {
    line-height: 1.6;
}

.cs-featured-image-header {
    position: relative;
    z-index: 2; /* Ensure content appears above the gradient overlay */
}

.cs-featured-image-header.type5 .cs-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/img/GradientDarkSection.png');
    background-size: cover;
    background-position: center;
    z-index: -1; /* Place above the background image but below the content */
}

.cs-featured-image-header.type2 {
    background-color: #000000;
    background-image: none !important;
}

/* Create the diagonal black overlay for type3 */
.cs-featured-image-header.type3 .diagonal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: polygon(0 0, 0% 100%, 72% 100%, 53% 0);
    background-color: #000;
    z-index: 2;
}

.cs-featured-image-header.type3 {
    background-size: contain!important;
    background-position: right!important;
    background-repeat: no-repeat;
}

/* CSS for Header Type4 */

/* Main type4 container - full width and proper height */
.cs-featured-image-header.type4 {
    position: relative;
    width: 100%;
    height: 550px; /* Adjust based on your needs */
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Container for all type4 elements */
.cs-type4-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

/* Background image styling */
.cs-type4-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Dark overlay */
.cs-type4-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

/* Content box for the text */
.cs-type4-content-box {
    position: relative;
    width: 100%;
    max-width: 834px;
    padding: 25px;
    color: #ffffff;
    z-index: 3;
    background: black;
    margin-bottom: 40px;
}

/* NYHEDER category link */
.cs-type4-category {
    display: inline-block;
    color: #E4002B!important; /* Red color as shown in the image */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.cs-type4-category:hover {
    text-decoration: underline;
    color: #E4002B;
}

/* Title link styling */
.cs-type4-title-link {
    text-decoration: none;
    display: block;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.cs-type4-title-link:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}

/* Three dots styling */
.cs-type4-dots {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

.cs-type4-dot {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
}

/* Header title styling */
.page .cs-header-title-type4 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Make the header text container invisible when using type4 */
.cs-featured-image-header.type4 .cs-container.header-content-format {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cs-featured-image-header.type4 {
        height: 400px;
    }
    
    .cs-type4-content-box {
        padding: 30px 20px;
    }
    
    .cs-header-title-type4 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cs-featured-image-header.type4 {
        height: 300px;
    }
    
    .cs-header-title-type4 {
        font-size: 1.75rem;
    }
}

/* Container for the image */
.cs-featured-image-header .cs-featured-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
  
  /* Image styling with object-fit */
  .cs-featured-image-header .cs-featured-img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    display: block;
    float: right;
  }

.cs-media-credit {
    color: #BBBCBC;
    font-size: 12px;
    border-radius: 2px;
    line-height: 1.4;
    position: relative;
}

.header-content-format {
    justify-content: space-between;
    display: flex;
    align-items: end;
    min-height: 90px;
}

.header-content-format h1 {
    color: white!important;
    font-size: 48px!important;
    padding-bottom: 50px!important;
    line-height: 55px!important;
    z-index: 3;
}

.cs-featured-image-header.type5 .header-content-format h1 {
    padding-bottom: 50px;
}

/* .cs-header-titel-image {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 2px;
    line-height: 1.4;
} */

/* Adjust media credit position based on header type */
.cs-featured-image-header .cs-media-credit {
    padding-bottom: 30px;
    z-index: 3;
}

/* .cs-featured-image-header.type2 .cs-media-credit {

} */

.cs-featured-image-header.type5 {
    min-height: 480px;
}

.cs-featured-image-header.type5 .cs-media-credit {
    padding-bottom: 30px;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    .cs-media-credit {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Responsive */
@media (max-width: 820px) {
    .cs-sidebar,
    .cs-main-content {
        width: 100%;
        padding-left: 0;
    }
    
    .cs-sidebar {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .cs-content-layout {
        flex-direction: column;
    }

    .cs-sidebar-submenu li a {
        font-size: 16px;
        background-color: white;
    }

    .cs-header-title-type4 {
        color: white !important;
        font-size: 27px !important;
        padding-bottom: 0px !important;
        line-height: 32px !important;
        z-index: 3;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .header-content-format h1 {
        color: white !important;
        font-size: 36px !important;
        padding-bottom: 30px !important;
        line-height: 38px !important;
        z-index: 3;
    }

    .elementor-toggle-item .elementor-toggle-title {
        margin-left: 30px;
        text-align: left;
        display: block;
    }

    .cs-breadcrumb-wrapper {
        display: none;
    }

    .cs-featured-image-header.type5 .header-content-format h1 {
        padding-bottom: 45px;
    }

    .cs-featured-image-header.type5 {
        min-height: 240px;
    }

    .cs-featured-image-header.type5 .cs-media-credit {
            padding-bottom: 15px;
    }
}

.page-template-default .elementor-button-wrapper {
    display: flex;
    justify-content: inherit;
    align-items: inherit;
}

.page-template-default .centerbtn .elementor-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .page-id-9302 .elementor-element-572adb4, .page-id-117 .elementor-element-572adb4 {
    display: none!important;
} */

/**
 * Mobile Dropdown Sidebar CSS
 * Styles for the dropdown menu functionality
 */

/* Mobile sidebar dropdown container */
.cs-mobile-sidebar-dropdown {
    width: 100%;
    background: var(--cs-section-color, #e11b22);
    position: relative;
    z-index: 100;
}

/* Dropdown header (the clickable bar) */
.cs-mobile-sidebar-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.cs-mobile-sidebar-dropdown-header:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Dropdown title */
.cs-mobile-sidebar-dropdown-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Dropdown arrow */
.cs-mobile-sidebar-dropdown-arrow {
    stroke: white;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 30px;
    height: 28px;
}

/* Dropdown content container */
.cs-mobile-sidebar-dropdown-content {
    background: white;
    /* border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef; */
    position: relative;
}

/* Dropdown menu styling */
.cs-mobile-sidebar-dropdown-menu {
    padding: 0;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 25px 0;
    display: block !important;
    background: #F4F4F4;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-menu > li:last-child {
    border-bottom: none;
}

/* Menu item links */
.cs-mobile-sidebar-dropdown-menu .cs-sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* Active/current page styling */
.cs-mobile-sidebar-dropdown-menu .cs-sidebar-menu .active > a,
.cs-mobile-sidebar-dropdown-menu .cs-sidebar-menu .current-page > a {
    color: var(--cs-section-color, #e11b22);
    font-weight: 600;
}

/* Dropdown toggle for items with children */
.cs-mobile-sidebar-dropdown-menu .cs-sidebar-dropdown-toggle {
    position: relative;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-menu .current-page > a::after, .cs-mobile-sidebar-dropdown-menu .cs-sidebar-submenu .current-page > a::after {
    display: none!important;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-toggle-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-toggle-icon img {
    width: 16px;
    height: 16px;
}

/* Submenu styling */
.cs-mobile-sidebar-dropdown-menu .cs-sidebar-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 10px;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-submenu li:last-child {
    border-bottom: none;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-submenu a:hover {
    background-color: #e9ecef;
}

.cs-mobile-sidebar-dropdown-menu .cs-sidebar-submenu .active > a,
.cs-mobile-sidebar-dropdown-menu .cs-sidebar-submenu .current-page > a {
    color: var(--cs-section-color, #e11b22);
    font-weight: 600;
}

/* Expanded submenu state */
.cs-mobile-sidebar-dropdown-menu .expanded .cs-sidebar-submenu {
    display: block;
}

/* Content layout adjustments for mobile */
.cs-content-layout.sidebar-mobile.has-sidebar {
    display: block;
}

.cs-content-layout.sidebar-mobile .cs-main-content {
    width: 100%;
}

/* Hide original sidebar when mobile dropdown is active */
.cs-sidebar-mobile-hidden {
    display: none !important;
}

/* Ensure sticky wrapper can accommodate the dropdown */
.sticky-wrapper-section {
    position: relative;
    z-index: 999;
}

/* Animation states */
.cs-dropdown-closed .cs-mobile-sidebar-dropdown-arrow {
    transform: rotate(0deg);
}

.cs-dropdown-open .cs-mobile-sidebar-dropdown-arrow {
    transform: rotate(180deg);
}

.cs-member-card .sagsomraader-dropdown summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 8px 30px 8px 0; /* Add right padding for SVG */
    position: relative;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

/* Hide the default marker in WebKit browsers */
.cs-member-card .sagsomraader-dropdown summary::-webkit-details-marker {
    display: none;
}

/* Custom SVG arrow on the right */
.cs-member-card .sagsomraader-dropdown summary::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('../cs-widgets/assets/OpenCross.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.2s ease;
}

/* Switch to CloseCross.svg when open */
.cs-member-card .sagsomraader-dropdown[open] summary::after {
    background-image: url('../cs-widgets/assets/CloseCross.svg');
}

/* Optional: Style the dropdown list */
.cs-member-card .sagsomraader-list {
    margin: 8px 0 0 0;
    padding: 8px 20px;
}

.sagsomraader-list .sub-list {
    list-style: none;
    padding-left: 0px;
    margin-top: 2px;
}

.sagsomraader-list .sub-list li {
    position: relative;
    padding-left: 15px;
}

.sagsomraader-list li.has-submenu {
    list-style: none;
}

.sagsomraader-list li.has-submenu::marker {
    content: none;
    display: none;
}

.sagsomraader-list .sub-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

/* .cs-member-card .sagsomraader-list li {
    padding: 4px 0;
    font-size: 14px;
    color: #666;
} */

.wordbreak_sentence {
	word-wrap: break-word;
}


/* Responsive adjustments */
@media (max-width: 480px) {
    .cs-mobile-sidebar-dropdown-header {
        padding: 12px 15px;
    }
    
    .cs-featured-image-header.type3 {
        height: 135px;
    }

    .cs-featured-image-header.type3 .cs-media-credit {
        display: none;
    }

    .cs-featured-image-header.type3 .diagonal-overlay {
        clip-path: polygon(0 0, 0% 100%, 100% 100%, 100% 0);
    }

    .cs-featured-image-header.type3 .header-content-format h1 {
        font-size: 32px !important;
    }

    .cs-page-title {
        line-height: 38px!important;
    }
}

/* Desktop: Hide mobile dropdown */
@media (min-width: 821px) {
    .cs-mobile-sidebar-dropdown {
        display: none !important;
    }  
}

@media (max-width: 821px) {
    .cs-sidebar-menu > li > a {
        font-weight: normal;
        color: #000;
    }
}

/* Ensure proper spacing after mobile dropdown */
.cs-page-content-wrapper.has-mobile-sidebar {
    padding-top: 20px;
}

/* Smooth transitions */
.cs-mobile-sidebar-dropdown-content {
    transition: height 0.3s ease;
    overflow: hidden;
}

/* Enable scrolling for dropdown content when needed */
.cs-mobile-sidebar-dropdown-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

/* Responsive max-height adjustments */
@media (max-width: 480px) {
    .cs-mobile-sidebar-dropdown-content {
        max-height: calc(100vh - 150px);
    }
}

/* Post Slider Styles */
.cs-post-slider {
    position: relative;
    overflow: hidden;
}

/* Hide radio buttons */
.cs-post-slider input[type="radio"] {
    display: none;
}

/* Slides container */
.cs-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%; /* 3 slides * 100% */
}

/* Individual slide */
.cs-slide {
    width: 33.333%; /* 100% / 3 slides */
    flex-shrink: 0;
}

/* Slide animations - show slide 0 by default */
.cs-post-slider input[type="radio"]:nth-child(1):checked ~ .cs-slides {
    transform: translateX(0%);
}

.cs-post-slider input[type="radio"]:nth-child(2):checked ~ .cs-slides {
    transform: translateX(-33.333%);
}

.cs-post-slider input[type="radio"]:nth-child(3):checked ~ .cs-slides {
    transform: translateX(-66.666%);
}

/* Dots styling */
.cs-type4-dots {
    display: flex;
    justify-content: left;
    gap: 10px;
    margin-top: 20px;
}

.cs-type4-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.cs-type4-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Active dot states */
.cs-post-slider input[type="radio"]:nth-child(1):checked ~ .cs-type4-dots label:nth-child(1),
.cs-post-slider input[type="radio"]:nth-child(2):checked ~ .cs-type4-dots label:nth-child(2),
.cs-post-slider input[type="radio"]:nth-child(3):checked ~ .cs-type4-dots label:nth-child(3) {
    background-color: #E4002B;
}

/* Pause animation on hover */
.cs-post-slider:hover .cs-slides {
    animation-play-state: paused;
}

/* Title styling to match your existing styles */
.cs-slide .cs-header-title-type4 {
    /* Keep your existing title styles */
    transition: opacity 0.3s ease-in-out;
}

.cs-slide .cs-type4-title-link {
    /* Keep your existing link styles */
    text-decoration: none;
    color: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cs-type4-dots {
        gap: 8px;
    }
    
    .cs-type4-dot {
        width: 10px;
        height: 10px;
    }
}