/*--------------------------------------------------------------
# Featured Articles Section Styling
--------------------------------------------------------------*/

.featured-articles-section {
    margin: 10px 0;
    font-family: 'Lato', sans-serif;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--tj-text-dark);
}

.main-featured-article {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.featured-left {
    flex: 0 0 50%;
    border-radius: 16px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.featured-right {
    flex: 0 0 50%;
    padding: 40px;
    background-color: var(--tj-white);
}

.featured-right .category-label {
    display: inline-block;
    color: var(--tj-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.featured-right .article-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--tj-text-dark);
}

.featured-right .article-subtitle a {
    color: var(--tj-text-dark);
    text-decoration: none;
}

.featured-right .article-subtitle a:hover {
    color: var(--tj-primary);
}

.featured-right .article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--tj-text-medium);
    margin-bottom: 20px;
}

.featured-right .article-meta {
    font-size: 14px;
    color: var(--tj-meta-text);
}

.featured-right .category-label a,
.secondary-article .category-label a {
    color: var(--tj-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-right .category-label a:hover,
.secondary-article .category-label a:hover {
    color: var(--tj-primary-light);
    text-decoration: none;
}


/* Secondary Articles Row */

.secondary-articles-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.secondary-article {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--tj-white);
}

.secondary-article .article-image {
    height: 159px;
    overflow: hidden;
    border-radius: 16px;
}

.secondary-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.secondary-article .article-content {
    padding: 8px 0px;
}

.secondary-article .category-label {
    display: inline-block;
    color: var(--tj-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.secondary-article .article-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.secondary-article .article-title a {
    color: var(--tj-text-dark);
    text-decoration: none;
}

.secondary-article .article-title a:hover {
    color: var(--tj-primary);
}


/* CTA Box */

.cta-box {
    background: var(--tj-cta-bg);
    color: var(--tj-white);
    padding: 30px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cta-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    /* Thinner border */
    background: linear-gradient(135deg, var(--tj-purple) 0%, var(--tj-pink) 100%);
    -webkit-mask: linear-gradient(var(--tj-white) 0 0) content-box, linear-gradient(var(--tj-white) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--tj-white);
    max-width: 90%;
}

.cta-box h4 .highlight {
    color: var(--tj-purple);
}

.cta-box .cta-button {
    display: inline-block;
    background-color: var(--tj-primary);
    color: var(--tj-white);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    border-radius: 8px;
    background: linear-gradient(var(--tj-primary), var(--tj-primary)) padding-box, linear-gradient(90deg, var(--tj-light-blue) 0%, var(--tj-light-pink) 100%) border-box;
    border: 1px solid transparent;
}

.cta-box .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* Responsive Adjustments */

@media (max-width: 1199px) {
    .secondary-articles-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .main-featured-article {
        flex-direction: column;
    }
    .featured-left,
    .featured-right {
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .secondary-articles-row {
        grid-template-columns: 1fr;
    }
    .cta-box {
        grid-column: span 1;
    }
}

@media (max-width: 575px) {
    .featured-right {
        padding: 15px;
    }
    .featured-right .article-excerpt {
        display: none;
    }
    .featured-right .article-meta {
        display: none;
    }
    .featured-right .article-subtitle {
        font-size: 21px;
        font-weight: 500;
    }
    .secondary-article .article-title {
        font-size: 21px;
        font-weight: 500;
    }
}


/*--------------------------------------------------------------
# Video and Webinars Section Styling
--------------------------------------------------------------*/

.video-webinar-section-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.video-webinar-section .elementor-container {
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.blog-swiper-navigation {
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.blog-pagination {
    margin-top: 0;
}


/*--------------------------------------------------------------
# Follow Us Section Styling
--------------------------------------------------------------*/


/* Social Icons  */

.follow-us-section {
    text-align: center;
    margin: 20px 0 15px;
    padding: 10px 0;
    background-color: transparent;
}

.follow-us-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tj-text-dark);
    margin-bottom: 12px;
}

.social-icons-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons-list li {
    margin: 0;
    padding: 0;
}

.social-icon-link {
    color: var(--tj-text-medium);
    transition: color 0.3s ease;
}

.social-icon-link i {
    font-size: 20px;
}


/* Hover states with brand colors */

.social-icon-link.telegram:hover {
    color: #24a1de;
}

.social-icon-link.youtube:hover {
    color: #cd201f;
}

.social-icon-link.linkedin:hover {
    color: #0077b5;
}

.social-icon-link.twitter:hover {
    color: #000000;
}

.social-icon-link.facebook:hover {
    color: #3b5998;
}

.social-icon-link.instagram:hover {
    color: #d93175;
}

.follow-us-section+.advertising-container {
    margin-top: 15px;
}


/*--------------------------------------------------------------
# Category Posts Carousel Styling
--------------------------------------------------------------*/

.category-posts-section {
    margin: 40px 0;
    font-family: 'Lato', sans-serif;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--tj-text-dark);
    margin: 0;
}

.category-navigation {
    display: flex;
    align-items: center;
}

.nav-prev,
.nav-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tj-white);
    border: 1px solid var(--tj-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 5px;
    color: var(--tj-text-dark);
    transition: all 0.3s ease;
    box-shadow: none;
    padding: 0;
    line-height: 1;
    text-align: center;
    position: relative;
}

.nav-prev i,
.nav-next i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    line-height: 1;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: var(--tj-light-gray);
    color: var(--tj-text-dark);
}

.nav-prev:disabled,
.nav-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.see-all-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--tj-primary);
    border-radius: 8px;
    color: var(--tj-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.see-all-link:hover {
    background-color: var(--tj-bg-light);
    border-color: var(--tj-primary);
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-card {
    background-color: var(--tj-white);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
}

.post-thumbnail {
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: var(--tj-placeholder);
    border-radius: 16px;
}


/* Content styling */

.post-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-category {
    color: var(--tj-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.post-title a {
    color: var(--tj-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--tj-primary);
}

.post-meta {
    font-size: 12px;
    color: var(--tj-meta-text);
    margin-top: auto;
}

.no-posts-message {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    color: var(--tj-text-medium);
}

.carousel-dots {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.carousel-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--tj-border-color);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: var(--tj-primary);
}


/* Fix for touch events */

.carousel-track {
    touch-action: pan-y pinch-zoom;
}


/* Responsive Adjustments */

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

@media (min-width: 768px) {
    .nav-buttons-container {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .category-posts-grid {
        margin-bottom: 15px;
    }
    .carousel-dots {
        margin-top: 20px;
    }
    .post-card {
        margin: 0 auto;
        max-width: 100%;
    }
    .post-thumbnail {
        height: 200px;
    }
    .category-posts-section {
        overflow-x: hidden;
    }
    .nav-prev,
    .nav-next {
        width: 44px;
        height: 44px;
    }
    .category-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    .category-title {
        margin: 0;
        margin-bottom: 15px;
    }
    .category-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .see-all-link {
        margin-left: 0;
        margin-bottom: 10px;
    }
    .nav-buttons-container {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}

@media (min-width: 576px) {
    .category-header {
        display: flex;
        align-items: center;
    }
    .nav-buttons-container {
        display: inline-flex;
    }
}

@media (max-width: 575px) {
    .category-header {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 20px;
        position: relative;
    }
    .category-title {
        flex: 1 0 auto;
        margin-bottom: 15px;
        margin-right: 10px;
		font-size: 22px;
    }
    .see-all-link {
        position: absolute;
        top: 0;
        right: 0;
        margin-left: 0;
    }
    .category-navigation {
        flex: 1 0 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: 15px;
    }
    .nav-buttons-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        width: 100%;
    }
    .nav-prev,
    .nav-next {
        margin: 0 5px;
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 40px;
    }
    .carousel-dots .dot {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: var(--tj-border-color);
        margin: 0 3px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .carousel-dots .dot.active {
        background-color: var(--tj-primary);
        width: 8px;
        height: 8px;
    }
    .category-posts-section {
        margin-bottom: 0px;
    }
    .nav-buttons-container {
        margin-top: 5px;
    }
    .nav-prev,
    .nav-next {
        width: 36px;
        height: 36px;
    }
}