/* WordPress Customizer Accordion Styles */
#sub-accordion-panel-themeone_sections .accordion-section {
    margin: 0;
    border: none;
    border-bottom: 1px solid #ddd;
    max-height: 48px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#sub-accordion-panel-themeone_sections .accordion-section.open {
    max-height: 500px;
}

#sub-accordion-panel-themeone_sections .accordion-section-title {
    padding: 15px;
    background: #f5f5f5;
    cursor: pointer;
    position: relative;
    margin: 0;
    font-weight: 600;
    transition: all 0.2s ease;
}

#sub-accordion-panel-themeone_sections .accordion-section-title:hover {
    background: #e5e5e5;
}

#sub-accordion-panel-themeone_sections .accordion-section-title::after {
    content: "\f347";
    font-family: dashicons;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

#sub-accordion-panel-themeone_sections .accordion-section.open .accordion-section-title::after {
    transform: translateY(-50%) rotate(180deg);
}

#sub-accordion-panel-themeone_sections .accordion-section-content {
    padding: 0 15px 15px;
}

/* Force all controls to be visible when printing */
@media print {
    #sub-accordion-panel-themeone_sections .accordion-section {
        max-height: none !important;
    }
}

/* Section 71 Styles */
.sec71-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section 2 Styles */
.block-title{
    padding:10px 0;
}
.the-subtitle {
    margin: 4px 0;
    display: flex;
    align-items: center;
}

.the-subtitle::before {
    height: 1rem;
    width: 2.5rem;
    --tw-content: "";
    content: "";
}

.the-subtitle span {
    display: flex;
    align-items: center;
    padding-inline-start: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 100%;
}

.featured-post {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    position: relative;
    min-height: 0; /* Allows grid item to shrink */
}

.featured-post h4 {
    color: #fff
} 
.featured-post .post-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 3;
}

.featured-post img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.grid-post {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.grid-post .post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
}

.grid-post .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-header {
    position: absolute;
    bottom: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.post-header h4 {
    margin: 0
}

.post-header a {
    color: #fff
}

.post-header .post-date {
    color: #fff;
}

.post-date {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a {
    text-decoration: none;
}

/* Hover effects */
.featured-post:hover .post-thumbnail img,
.grid-post:hover .post-thumbnail img {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}
.featured-post .post-thumbnail {
    transition: transform 0.3s ease;
}
.featured-post .post-thumbnail img,
.grid-post .post-thumbnail img {
    transition: transform 0.3s ease;
}

.featured-post:hover .post-date,
.grid-post:hover .post-date {
    opacity: 0;
}

.featured-post .post-header,
.grid-post .post-header {
    transition: transform 0.3s ease;
}

.featured-post:hover .post-header,
.grid-post:hover .post-header {
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .sc3-post {
        flex: 0 0 150px;
    }
}

/* Section 42 Styles */
.sec42-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sec42-latest {
    width: 100%;
}

.sec42-horizontal {
    display: flex;
    gap: 15px;
    width: 100%;
}

.sec_42 .the-subtitle::before {
    background: #bbd60aff;
}

.sec_42 .the-subtitle {
    color: #bbd60aff;
}

.sec42-horizontal .sec42-post {
    flex: 1;
    min-width: 0;
}

.sec42-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.sec42-post-thumbnail {
    position: relative;
    padding-top: 56.25%;
}

.sec42-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sec42-post:hover .sec42-post-thumbnail img {
    transform: scale(1.2);
    cursor: pointer;
}

.sec42-post-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.sec42-post-header {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 0 5px;
    z-index: 2;
    color: white;
    transition: all 0.3s ease;
}

.sec42-post-title {
    margin: 0 15px 5px 0;
}

.sec42-post:hover .sec42-post-header {
    bottom: 10px;
    cursor: pointer;
}

.sec42-post:hover .card-meta {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sec42-post-title {
    margin: 0 0 5px 0;
}

.sec42-post-meta {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sec42-horizontal {
        flex-direction: column;
    }
    
    .featured-post {
        grid-column: 1;
        grid-row: auto;
    }
}

.sec71-featured {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position:relative
}

.sec71-featured-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.sec71-featured-thumbnail img {
    width: 100%; 
    transition: transform 0.3s ease; 
      height: 200px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.sec71-featured:hover .sec71-featured-thumbnail img {
    transform: scale(1.2);
    cursor: pointer;
}

.sec71-featured-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.sec71-vertical-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sec71-featured-content{
position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 0 5px;
    z-index: 2;
    color: white;
    transition: all 0.3s ease;
}
.sec71-vertical-post {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.sec71-vertical-thumbnail {
    flex: 0 0 33.33%;
    border-radius: 6px;
    overflow: hidden;
}

.sec71-vertical-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.sec71-vertical-post:hover .sec71-vertical-thumbnail img {
    transform: scale(1.2);
}

.sec71-vertical-title {
    font-size: 16px;
    margin: 0;
    flex: 1;
}

/* Mobile styles removed to keep .sec71-vertical-posts layout consistent */

/* Section 5 Styles */
.sec5-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sec5-post {
    position: relative;
    cursor: pointer;
}

.sec5-post-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
    margin: 0;
}

.sec5-post-title i {
    color: white;
    font-size: 27px;
}

.sec5-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.sec5-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 1;
}

.sec5-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sec5-post:hover .sec5-thumbnail img {
    transform: scale(1.2);
}

.sec5-post:hover .sec5-post-title {
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .sec5-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sec5-grid {
        grid-template-columns: 1fr;
    }
}

/* Section 6 Styles */
.sec6-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    height: 100%;
}

.sec6-featured {
    flex: 1;
    max-width: 50%;
}

.sec6-featured-thumbnail {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.sec6-featured-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.sec6-featured:hover .sec6-featured-thumbnail img {
    transform: scale(1.2);
}

.sec6-featured-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.sec6-featured-title {
    font-size: 24px;
    margin: 0 0 15px 0;
}

.sec6-featured-excerpt {
    color: #444;
    line-height: 1.6;
}

.sec6-vertical-posts {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.sec6-vertical-post {
    flex: 1;
    display: flex;
    gap: 15px;
    cursor: pointer;
    min-height: 0;
    margin-bottom: 0;
    align-items: start;
}

.sec6-vertical-post:not(:last-child) {
    margin-bottom: 20px;
}

.sec6-vertical-post:last-child {
    margin-bottom: 0;
}

.sec6-vertical-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sec6-vertical-post {
    display: flex;
    gap: 15px;
    cursor: pointer;
}

.sec6-vertical-thumbnail {
    border-radius: 6px;
    overflow: hidden;
}

.sec6-vertical-thumbnail {
    overflow: hidden;
    border-radius: 6px;
}

.sec6-vertical-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.sec6-vertical-post:hover .sec6-vertical-thumbnail img {
    transform: scale(1.2);
}

.sec6-vertical-content {
    flex: 1;
}

.sec6-vertical-meta {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.sec6-vertical-title {
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .sec6-container {
        flex-direction: column;
    }
}

/* Section 41 Styles */
.sec41-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sec41-latest {
    width: 100%;
}

.sec41-horizontal {
    display: flex;
    gap: 15px;
    width: 100%;
}

.sec41-horizontal .sec41-post {
    flex: 1;
    min-width: 0;
    /* Fixes flex item overflow */
}

.sec41-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.sec41-post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
}

.sec41-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sec41-post:hover .sec41-post-thumbnail img {
    transform: scale(1.2);
    cursor: pointer;
}

.sec41-post-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.sec41-post-header {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 0 5px;
    z-index: 2;
    color: white;
    transition: all 0.3s ease;
}

.sec41-post-title {
    margin: 0 15px 5px 0;
}

.sec41-post:hover .sec41-post-header {
    bottom: 10px;
    cursor: pointer;
}

.sec41-post:hover .card-meta {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sec41-post-title {
    margin: 0 0 5px 0;
}

.sec41-post-meta {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sec41-horizontal {
        flex-direction: column;
    }
}

/* Section 3 Styles */
.sc3-section {
    position: relative;
    height: 500px;
    margin-bottom: 40px;
}

.sc3-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.sc3-category-name {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #31b25d;
    color: #000;
    padding: 12px 32px 12px 45px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.sc3-cover-content {
    position: absolute;
    bottom: 0;
    color: white;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    width: 100%;
}

.sc3-posts-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
}

.sc3-posts-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
}

.sc3-posts-list::-webkit-scrollbar {
    display: none;
}

.sc3-post {
    flex: 0 0 200px;
    overflow: hidden;
}

.sc3-post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

.sc3-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sc3-post-thumbnail:hover img {
    transform: scale(1.2);
}

.sc3-post-content {
    padding: 10px;
}

.sc3-post-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #fff;
}

.sc3-post-date {
    font-size: 11px;
    color: #fff;
}

@media (max-width: 768px) {
    .sc3-section {
        height: 400px;
    }

    .sc3-post {
        flex: 0 0 150px;
    }
}
.flex-container {
        display: flex;
        gap: 20px;
    }

    .flex-item {
        flex: 1;
    }

    @media (max-width: 768px) {
        .flex-container {
            flex-direction: column;
        }
    }
    #sec_8{
        background: #ffedd5;
        padding: 10px 0;
    }
.sec_81, .sec_82, .sec_83, .sec_84{
        background-color: #ffffff;
        padding: 5px;
}
.sec8-featured-thumbnail{  
      flex: 0 0 33.33%;
    border-radius: 6px;
    overflow: hidden;
}
.sec8-featured-title{    margin: 15px 0;}
.sec8-featured:hover  .sec8-featured-thumbnail img {
    transform: scale(1.2);
    transition: transform 0.3s ease;
    cursor: pointer;
 
}
.sec8-featured-thumbnail img {
    height: 200px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    width: 100%;
}
.sec9-header h3{
margin:7px 0;
}
.sec9-header .card-meta{
 padding: 5px 0;;
}
.sec9-featured-thumbnail img{
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
      height: 180px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    width: 100%;
}
.sec91-post:hover .sec9-featured-thumbnail img,.sec92-post:hover .sec9-featured-thumbnail img{
     transform: scale(1.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.sec9-featured-thumbnail{  
      flex: 0 0 33.33%;
    overflow: hidden;
}