/* ============================================
   MODERN DESKTOP STYLES - CN INSIGHT PAGE
   Only affects screens >= 769px
   Created: Separated from cninsight.css for easier debugging/reverting
   ============================================ */
@media only screen and (min-width: 992px) {

    /* --- Force hide mobile sections on desktop --- */
    .mobile-view {
        display: none !important;
    }

    /* --- Section Spacing & Backgrounds --- */
    .codec-page-section {
        padding: 80px 0;
        position: relative;
    }

    .light-grey.codec-page-section {
        background: linear-gradient(135deg, #f0f4ff 0%, #f7f9fc 50%, #eef2ff 100%);
    }

    /* Subtle decorative bg for white sections */
    .codec-page-section:not(.light-grey)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background:
            radial-gradient(ellipse at 10% 20%, rgba(21, 65, 110, 0.03) 0%, transparent 50%),
            radial-gradient(ellipse at 90% 80%, rgba(24, 186, 96, 0.03) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

    .codec-page-section > .container,
    .codec-page-section > div > .container {
        position: relative;
        z-index: 1;
    }

    /* --- Modern Section Headings --- */
    .desktop-view .modern-section-header {
        text-align: center;
        margin-bottom: 55px;
        position: relative;
    }

    .desktop-view .modern-section-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 16px 0;
        letter-spacing: -0.8px;
        line-height: 1.2;
    }

    .desktop-view .modern-section-header .section-accent {
        display: inline-block;
        width: 70px;
        height: 4px;
        border-radius: 4px;
        margin-bottom: 16px;
    }

    .desktop-view .modern-section-header .section-subtitle {
        font-size: 17px;
        color: #64748b;
        margin: 0;
        font-weight: 400;
        letter-spacing: 0.2px;
    }

    /* Accent colors per section */
    .home-blog .section-accent { background: linear-gradient(90deg, #0c3d6e, #3b82f6, #60a5fa); }
    .newsletters .section-accent { background: linear-gradient(90deg, #0284c7, #38bdf8, #7dd3fc); }
    .podcast .section-accent { background: linear-gradient(90deg, #059669, #34d399, #6ee7b7); }
    .events .section-accent { background: linear-gradient(90deg, #dc2626, #f87171, #fca5a5); }

    /* Hide old vertical text on desktop */
    .desktop-view .vertical-text,
    .desktop-view .vertical-text-single {
        display: none;
    }

    /* ==============================
       BLOG CARDS - Glass Morphism
       ============================== */
    .desktop-view .template15-wrap-main {
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.04),
            0 6px 24px rgba(0, 0, 0, 0.06);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .desktop-view .template15-wrap-main-img {
        overflow: hidden;
        position: relative;
        height: 230px;
    }

    .desktop-view .template15-wrap-main-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .desktop-view .template15-wrap-main-content {
        padding: 24px 26px 28px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .desktop-view .template15-wrap-main-content span {
        font-size: 12px;
        color: #3b82f6;
        margin-bottom: 10px;
        display: inline-block;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .desktop-view .template15-wrap-main-content span i {
        font-style: normal;
    }

    .desktop-view .template15-wrap-main-content h4 {
        font-size: 19px;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .desktop-view .template15-wrap-main-content h4 a {
        color: #0f172a;
        text-decoration: none;
    }

    .desktop-view .template15-wrap-main-content p {
        font-size: 14.5px;
        line-height: 1.7;
        color: #64748b;
        flex: 1;
    }

    .desktop-view .template15-wrap-main-content p a {
        color: #3b82f6;
        font-weight: 600;
        text-decoration: none;
    }

    /* Blog row spacing */
    .desktop-view .home-blog .row {
        display: flex;
        gap: 0;
    }

    .desktop-view .home-blog .row .col-md-4 {
        padding: 0 16px;
        display: flex;
    }

    /* ==============================
       NEWSLETTER / EVENT CARDS
       ============================== */
    .desktop-view .codec-wrap-main {
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.04),
            0 6px 24px rgba(0, 0, 0, 0.06);
        height: 100%;
    }

    .desktop-view .codec-wrap-main-img {
        overflow: hidden;
        height: 190px;
        position: relative;
    }

    .desktop-view .codec-wrap-main-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .desktop-view .codec-wrap-main-content {
        padding: 20px 22px 24px;
    }

    .desktop-view .codec-wrap-main-content h4 {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .desktop-view .codec-wrap-main-content h4 a {
        color: #0f172a;
        text-decoration: none;
    }

    .desktop-view .codec-wrap-main-content p {
        font-size: 14px;
        line-height: 1.65;
        color: #64748b;
        margin: 0;
    }

    /* ==============================
       MODERN UNDERLINE TABS (Newsletters)
       ============================== */
    #template15 .desktop-view ul#tabs-nav1 {
        /* display: flex; */
        justify-content: center;
        /* gap: 0; */
        /*padding: 0;*/
        background: transparent;
        border-radius: 0;
        /*margin-bottom: 40px;*/
        width: auto;
        /*border-bottom: 2px solid #e2e8f0;*/
    }

    #template15 .desktop-view ul#tabs-nav1 li {
        background: #15416e !important;
        border: none !important;
        border-radius: 0;
        padding: 14px 32px !important;
        /* margin: 0 !important; */
        float: none;
        width: auto;
        min-width: auto;
        position: relative;
    }

    /* Active underline indicator */
    #template15 .desktop-view ul#tabs-nav1 li::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #15416e, #15416e);
        border-radius: 3px 3px 0 0;
    }

    #template15 .desktop-view ul#tabs-nav1 li.active::after {
        width: 100%;
    }

    #template15 .desktop-view ul#tabs-nav1 li a {
        font-size: 15px;
        font-weight: 500;
        color: #ffffff;
    }

    #template15 .desktop-view ul#tabs-nav1 li.active {
        background: #18ba60 !important;
        border-color: transparent !important;
        box-shadow: none;
    }

    #template15 .desktop-view ul#tabs-nav1 li.active a {
        color: #ffffff !important;
        font-weight: 600;
    }

    /* ==============================
       MODERN UNDERLINE TABS (Events)
       ============================== */
    #template15 .desktop-view ul#tabs-nav {
        display: flex;
        justify-content: center;
        gap: 0;
        /*padding: 0;*/
        background: transparent;
        border-radius: 0;
        /*margin-bottom: 40px;*/
        width: auto;
        /*border-bottom: 2px solid #e2e8f0;*/
    }

    #template15 .desktop-view ul#tabs-nav li {
        background: #15416e !important;
        border: none;
        border-radius: 0;
        padding: 14px 32px !important;
        /* margin: 0 !important; */
        float: none;
        width: auto;
        min-width: auto;
        position: relative;
    }

    #template15 .desktop-view ul#tabs-nav li::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #15416e, #15416e);
        border-radius: 3px 3px 0 0;
    }

    #template15 .desktop-view ul#tabs-nav li.active::after {
        width: 100%;
    }

    #template15 .desktop-view ul#tabs-nav li a {
        font-size: 15px;
        font-weight: 500;
        color: #ffffff;
    }

    #template15 .desktop-view ul#tabs-nav li.active {
        background: #18ba60 !important;
        box-shadow: none;
    }

    #template15 .desktop-view ul#tabs-nav li.active a {
        color: #ffffff !important;
        font-weight: 600;
    }

    /* ==============================
       CODE PAGINATION GRID
       ============================== */
    .desktop-view .code-pagination {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .desktop-view .code-pagination li {
        flex: none;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* ==============================
       PODCAST CARDS
       ============================== */
    .desktop-view .podcast .row {
        display: flex;
        gap: 0;
    }

    .desktop-view .podcast .row .col-md-4 {
        padding: 12px 16px;
        display: flex;
    }

    .desktop-view .podcast-video {
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.04),
            0 6px 24px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        width: 100%;
        position: relative;
    }

    .desktop-view .podcast-video img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

    /* Play button overlay */
    .desktop-view .podcast-video::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 64px;
        height: 64px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23059669'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 55% center;
        background-size: 28px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        z-index: 2;
        opacity: 0.9;
    }
    
        .podcast-video{
          padding-top: 0px !important;
        }
  

    /* ==============================
       MODERN VIEW ALL BUTTONS
       ============================== */
    .desktop-view .blog-view {
        text-align: center;
        margin-top: 48px;
    }

    .desktop-view .blog-view a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 40px;
        background: linear-gradient(135deg, #15416e 0%, #1e5a96 100%);
        color: #ffffff;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 16px rgba(21, 65, 110, 0.2);
    }

    /* ==============================
       BANNER
       ============================== */
    .template_12_banner {
        position: relative;
        overflow: hidden;
    }

    .template_12_banner .template_12-header {
        position: relative;
        z-index: 2;
    }

    .template_12_banner .template_12-header h1 {
        font-size: 46px;
        font-weight: 800;
        letter-spacing: -1.5px;
        line-height: 1.15;
    }

    .template_12_banner .template_12-header p {
        font-size: 19px;
        opacity: 0.9;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }

    /* ==============================
       STICKY TAB MENU
       ============================== */
    .services-menu.sticky_nav .anchor-nav {
        display: flex;
        justify-content: center;
        gap: 6px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .services-menu.sticky_nav .anchor-nav li a.sticky_link {
        display: inline-block;
        padding: 10px 26px;
        font-size: 14px;
        font-weight: 600;
        color: #475569;
        text-decoration: none;
        border-radius: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .services-menu.sticky_nav .anchor-nav li a.sticky_link.active {
        background: linear-gradient(135deg, #15416e 0%, #1e5a96 100%);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(21, 65, 110, 0.25);
    }


    /* ==============================
       HIDE MOBILE TAB LIST & OWL CAROUSEL
       ============================== */
    .desktop-view ul#tabs-nav1.mobile,
    .desktop-view ul#tabs-nav.mobile,
    .desktop-view ul#tabs-nav.mobile .owl-carousel,
    .desktop-view ul#tabs-nav.mobile .owl-wrapper-outer,
    .desktop-view ul#tabs-nav.mobile .owl-wrapper,
    .desktop-view ul#tabs-nav1.mobile .owl-carousel,
    .desktop-view ul#tabs-nav1.mobile .owl-wrapper-outer {
        display: none !important;
    }
}
