/* Section Headings  */
.section-head {
    position: relative;
    padding: .25rem 1rem;
    color: #004D40;
}

.section-head h2 {
    font-weight: 700;
    letter-spacing: .02em;
}

.section-head i {
    font-size: 1.4rem;
    color: #1565C0;
}

/* Tabs (top workshop tabs) */
.nav-tabs {
    border-bottom: none;
}

.custom-tab {
    width: 100%;
    font-size: large;
    font-weight: 600;
    border: none;
    padding: .75rem 1.5rem;
    margin: 0 .5rem;
    border-radius: .5rem .5rem 0 0;
    color: #457b9d !important;
    background: linear-gradient(90deg, #e3f2fd 0%, #ffffff 50%, #e8f5e9 100%);
    transition: background-color .3s ease, color .3s ease;
}

.custom-tab:hover {
    background: linear-gradient(90deg, #00695C, #1E88E5);
    color: #fff !important;
}

.custom-tab:focus {
    background-color: #e0f3ff;
    color: #0078d7 !important;
}

.custom-tab.active {
    font-size: larger;
    font-weight: 700;
    color: #fff !important;
    border: none;
    background: linear-gradient(90deg, #00695C, #1E88E5);
    box-shadow: 0 6px 18px rgba(21,101,192,.25);
}

.tab-pill {
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,.05);
    background: linear-gradient(90deg, #F1F5F9, #FFFFFF);
    box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}

.tab-pill .badge {
    background: rgba(21,101,192,.12);
    color: #1565C0;
    font-weight: 700;
}

/* Workshop Cards */
.workshop-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF, #F6FBFB);
}

.workshop-title {
    font-size: 2rem;
    font-weight: 700;
    color: #004D40;
    margin-bottom: .75rem;
}

.action-row {
    margin: .25rem 0 1rem;
}

.workshop-card .download-btn {
    position: relative;
    text-decoration: none;
    color: #00796B;
    font-weight: 500;
    background: transparent;
    border: none;
    transition: color .3s ease;
}

.workshop-card .download-btn::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #00796B;
    transition: width .3s ease;
    margin: 0 auto;
}

.workshop-card .download-btn:hover {
    color: #00796B;
    font-weight: 600;
}

.workshop-card .download-btn:hover::after {
    width: 100%;
}

/* Carousel Frame + Controls */
.carousel-wrap {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    padding: 1rem;
}

.carousel-halo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(60% 40% at 50% 10%, rgba(21,101,192,.08), transparent 60%);
}

.carousel-controls-grid {
    display: grid !important;
    grid-template-columns: 3rem 1fr 3rem;
    align-items: center;
    column-gap: .75rem;
    width: 100%;
}

.carousel-controls-grid .carousel-indicators {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
}

.btn-carousel-control {
    background-color: #457b9d;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-carousel-control:hover {
    filter: brightness(1.05);
}

.carousel-indicators {
    position: static;
    margin: 0 !important;
}

.carousel-indicators button {
    opacity: .5;
    border: none;
    min-width: 1rem;
    max-width: 2rem;
    height: .5rem;
    margin: 0 5px;
    background-color: #29a1a6 !important;
    border-radius: .5rem;
    transition: opacity .3s ease, background-color .3s ease;
}

.carousel-indicators .active {
    background-color: #457b9d !important;
    opacity: 1;
}

/* Sizing for generated images */
#pdfCarousel1, #pdfCarousel2 {
    min-height: 600px;
}

.carousel .carousel-inner img {
    height: 600px;
    object-fit: contain;
    transition: none !important;
}
/* Hide inactive panes to prevent layout shifts during lazy render */
/* Only apply to Desktop and Tablet View */
/* Mobile View will Render all tab-pane */
@media (min-width: 576px) {
    .tab-pane:not(.active) {
        display: none !important;
    }
}

/* News Cards Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.news-card {
    grid-column: span 12;
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

@media (min-width: 768px) {
    .news-card {
        grid-column: span 6;
    }
}

.news-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .35rem;
}

.lang-badge {
    font-weight: 700;
    border-radius: 999px;
    padding: .35rem .6rem;
}

.lang-en {
    background: rgba(21,101,192,.10);
    color: #1565C0;
}

.lang-es {
    background: rgba(0,105,92,.10);
    color: #00695C;
}

.date-chip {
    margin-left: auto;
    font-size: .9rem;
    color: #4F6367;
    background: #F1F5F9;
    padding: .25rem .55rem;
    border-radius: 8px;
}

.news-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0 0 .5rem 0;
    font-weight: 800;
}

.news-title a {
    position: relative;
    color: #004D40;
    text-decoration: none;
    transition: color .3s ease;
}
.news-title a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #00796B;
    transition: width .3s ease;
    margin: 0 auto;
}

.news-title a:hover {
    color: #00796B
}
.news-title a:hover::after {
    width: 100%;
}

.news-foot {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.doc-chip {
    background: #E0F2F1;
    color: #00695C;
    padding: .25rem .5rem;
    border-radius: 6px;
    font-weight: 700;
}

.sep-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #80CBC4;
}

.news-open {
    position: relative;
    text-decoration: none;
    background: transparent;
    color: #1565C0;
    font-weight: 700;
    transition: color .3s ease;
}

.news-open::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #00796B;
    transition: width .3s ease;
    margin: 0 auto;
}

.news-open:hover {
    color: #00796B;
}
.news-open:hover::after {
    width: 100%;
}

.shadow-xl {
    box-shadow: 0 16px 42px rgba(0,0,0,.12) !important;
}

@media (max-width: 576px) {
    .banner-carousel {
        height: 20rem !important;
    }

    .banner-slide {
        height: 20rem !important;
    }

    #pdfCarousel1, #pdfCarousel2 {
        min-height: auto;
    }

    .carousel .carousel-inner img {
        height: auto;
    }

    .carousel-controls-grid {
        display: none !important;
    }

    #pdfTabs {
        display: none !important;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #tab1 {
        margin-bottom: 2rem;
    }
}
