
/* 1. Hide the actual checkbox */
#read-more-toggle {
    display: none;
}

/* 2. Container Styling */
.transcript-container {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

/* 3. Content Wrapper - Default Collapsed State */
.article-content {
    /*max-height: 300px; /* Adjust height as needed */
    max-height: 200vh; /* Adjust height as needed */
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

/* 4. The Gradient Fade Overlay */
.article-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, white);
    transition: opacity 0.3s;
}

/* 5. Logic: When Checkbox is Checked (Expanded State) */
#read-more-toggle:checked ~ .article-content {
    max-height: 5000px; /* High value to allow full expansion */
    overflow-y: scroll;
}

#read-more-toggle:checked ~ .article-content::after {
    opacity: 0; /* Hide gradient when expanded */
    pointer-events: none;
}

/* 6. Professional Button Styling using Label */
.read-more-label {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 0px;
    color: #24404d;
    border: 0px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

.read-more-label:hover {
    /*background: #f9be2f;*/
    color: #2b2a2a;
}

/* 7. Change Text and Icon based on state */
.read-more-label .text-less,
.read-more-label .icon-less { display: none; }

#read-more-toggle:checked ~ .label-wrapper .read-more-label .text-more,
#read-more-toggle:checked ~ .label-wrapper .read-more-label .icon-more { display: none; }

#read-more-toggle:checked ~ .label-wrapper .read-more-label .text-less,
#read-more-toggle:checked ~ .label-wrapper .read-more-label .icon-less { display: inline; }

/* Article content internal styling */
.slide-article { padding: 15px 0; border-bottom: 1px solid #f8f9fa; }
/*.slide-article h2 { font-size: 1.25rem; color: #1a2a3a; }*/
.article a {
    font-weight: 700;
    color: #2b2a2a;
}

.ss-article {
    color: #333;
    padding: 20px 0px;
    box-sizing: border-box;    
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);        
}

.ss-article * {
    box-sizing: border-box;
}

.ss-article .article {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ss-article .slide-article {
    position: relative;
    padding: 40px 0;
    border-bottom: 1px solid #eeeeee;
    padding-right: 20px;
}

.ss-article .slide-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ss-article .slide-article::after {
    content: "";
    display: table;
    clear: both;
}

.ss-article .bg-img {
    float: left;
    width: 160px;
    margin-right: 25px;
    margin-bottom: 15px;
}

.ss-article .bg-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: block;
}

.ss-article .t-block {
    display: block;
}

.ss-article .lable {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffb400;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ss-article .title, 
.ss-article .subTitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.ss-article .title a, 
.ss-article .subTitle a {
    color: #1a1a1a;
    text-decoration: none;
}

.ss-article .title a:hover, 
.ss-article .subTitle a:hover {
    color: #ffb400;
}

.ss-article p, 
.ss-article ul {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 15px;
    color: #4a4a4a;
}

.ss-article ul {
    padding-left: 25px;
}

.ss-article li {
    margin-bottom: 8px;
}

.ss-article .icon-set {
    position: absolute;
    top: 40px;
    right: 10px;
    width: 14px;
    height: 14px;
    background-color: #b3b3b3;
    border-radius: 50%;
    box-shadow: -22px 0 0 #b3b3b3, -44px 0 0 #b3b3b3;
}
/* 1. Hide the actual checkbox */
#d-read-more-toggle {
    display: none;
}                

/* 3. Content Wrapper - Default Collapsed State */
.ss-header-ai-container {
    max-height: 100px; /* Adjust height as needed */
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

/* 4. The Gradient Fade Overlay */
.ss-header-ai-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, white);
    transition: opacity 0.3s;
}

/* 5. Logic: When Checkbox is Checked (Expanded State) */
#d-read-more-toggle:checked ~ .ss-header-ai-container {
    max-height: 5000px; /* High value to allow full expansion */
}

#d-read-more-toggle:checked ~ .ss-header-ai-container::after {
    opacity: 0; /* Hide gradient when expanded */
    pointer-events: none;
}

/* 6. Professional Button Styling using Label */
/*.read-more-label {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 30px;
    color: #24404d;
    border: 1px solid #e4e4e4;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}
.read-more-label:hover {
    background: #0d6efd;
    color: #fff;
}

/* 7. Change Text and Icon based on state * /
.read-more-label .text-less,
.read-more-label .icon-less { display: none; }*/

#d-read-more-toggle:checked ~ .label-wrapper .read-more-label .text-more,
#d-read-more-toggle:checked ~ .label-wrapper .read-more-label .icon-more { display: none; }

#d-read-more-toggle:checked ~ .label-wrapper .read-more-label .text-less,
#d-read-more-toggle:checked ~ .label-wrapper .read-more-label .icon-less { display: inline; }
