/* =========================================================
   NEWS & TAQWIM
   PAGE-SPECIFIC CSS
========================================================= */

:root {
    --nt-primary: #29439a;
    --nt-primary-dark: #1f347e;
    --nt-gold: #c99b32;
    --nt-text: #29406f;
    --nt-muted: #64748b;
    --nt-light: #f5f8fc;
    --nt-border: #e3e9f2;
    --nt-white: #ffffff;
    --nt-shadow: 0 15px 40px rgba(32, 54, 104, 0.10);
}


/* =========================================================
   HERO
========================================================= */

.resource-hero {
    position: relative;
    overflow: hidden;

    padding: 170px 0 110px;

    background:
        linear-gradient(
            135deg,
            #29439a 0%,
            #3754aa 55%,
            #20357e 100%
        );

    color: var(--nt-white);
}


.resource-hero-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    opacity: .12;
}


.resource-circle-1 {
    width: 420px;
    height: 420px;

    top: -190px;
    right: -100px;

    background: #ffffff;
}


.resource-circle-2 {
    width: 280px;
    height: 280px;

    bottom: -150px;
    left: -80px;

    background: #ffffff;
}


.resource-hero .container {
    position: relative;
    z-index: 2;
}


.page-kicker {
    display: inline-block;

    margin-bottom: 15px;

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .18em;
    text-transform: uppercase;

    color: #f4d77b;
}


.resource-hero h1 {
    margin: 0;

    font-size: clamp(2.7rem, 6vw, 5rem);

    font-weight: 800;

    line-height: 1.05;

    color: #ffffff !important;
}

.resource-hero h1 span {
    color: #f4d77b !important;
}


.resource-hero p {
    max-width: 720px;

    margin: 25px auto 0;

    font-size: 1.05rem;

    line-height: 1.8;

    color: rgba(255,255,255,.88);
}


.hero-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   COMMON SECTION
========================================================= */

.news-section,
.resource-section {
    padding: 100px 0;
}


.news-section {
    background: #ffffff;
}


.resource-section {
    background: var(--nt-light);
}


.section-tag {
    display: inline-block;

    margin-bottom: 12px;

    font-size: .76rem;

    font-weight: 800;

    letter-spacing: .16em;

    text-transform: uppercase;

    color: var(--nt-gold);
}


.news-section h2,
.resource-section h2 {
    margin-bottom: 16px;

    color: var(--nt-primary);

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 800;
}


.news-section .col-lg-7 > p,
.resource-section .col-lg-7 > p {
    color: var(--nt-muted);

    line-height: 1.8;
}


/* =========================================================
   NEWS CARDS
========================================================= */

.news-card {
    height: 100%;

    overflow: hidden;

    background: var(--nt-white);

    border: 1px solid var(--nt-border);

    border-radius: 22px;

    box-shadow: var(--nt-shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.news-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 22px 50px rgba(32, 54, 104, 0.15);
}


.news-card-image {
    height: 190px;

    overflow: hidden;
}


.news-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #edf2ff,
            #f8f9fc
        );

    color: var(--nt-primary);

    font-size: 3rem;
}


.news-card-body {
    padding: 26px;
}


.news-date {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 12px;

    color: var(--nt-gold);

    font-size: .75rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.news-card h3 {
    margin-bottom: 12px;

    color: var(--nt-primary);

    font-size: 1.25rem;

    font-weight: 750;
}


.news-card p {
    margin-bottom: 20px;

    color: var(--nt-muted);

    line-height: 1.7;
}


.news-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--nt-primary);

    font-weight: 700;

    text-decoration: none;

    transition: gap .2s ease;
}


.news-link:hover {
    color: var(--nt-primary-dark);

    gap: 12px;
}


/* =========================================================
   TAQWIM DOCUMENT
========================================================= */

.featured-document {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 28px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid var(--nt-border);

    border-radius: 24px;

    box-shadow: var(--nt-shadow);
}


.featured-document-icon {
    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #edf2ff;

    color: var(--nt-primary);

    font-size: 1.8rem;
}


.document-status {
    display: inline-block;

    margin-bottom: 8px;

    color: #3b8a5a;

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.featured-document-content h3 {
    margin-bottom: 8px;

    color: var(--nt-primary);

    font-size: 1.35rem;

    font-weight: 800;
}


.featured-document-content p {
    margin-bottom: 14px;

    color: var(--nt-muted);

    line-height: 1.6;
}


.document-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 16px;

    color: var(--nt-muted);

    font-size: .82rem;
}


.document-meta span {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}


.document-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-adni-primary {
    background: var(--nt-primary);

    border-color: var(--nt-primary);

    color: #ffffff;
}


.btn-adni-primary:hover {
    background: var(--nt-primary-dark);

    border-color: var(--nt-primary-dark);

    color: #ffffff;
}


.btn-outline-adni {
    border: 1px solid var(--nt-primary);

    color: var(--nt-primary);
}


.btn-outline-adni:hover {
    background: var(--nt-primary);

    color: #ffffff;
}


/* =========================================================
   ADMISSION CTA
========================================================= */

.admission-cta-section {
    padding: 100px 0;

    background: #ffffff;
}


.admission-cta {
    position: relative;

    overflow: hidden;

    padding: 65px 30px;

    text-align: center;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #29439a,
            #20357e
        );

    color: #ffffff;

    box-shadow: 0 20px 50px rgba(32, 54, 104, .18);
}


.admission-cta .cta-icon {
    margin-bottom: 16px;

    font-size: 2rem;

    color: #f4d77b;
}


.admission-cta > span {
    display: block;

    margin-bottom: 10px;

    color: #f4d77b;

    font-size: .78rem;

    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.admission-cta h2 {
    margin-bottom: 15px;

    font-size: clamp(1.9rem, 4vw, 3rem);

    font-weight: 800;

    color: #ffffff !important;
}


.admission-cta p {
    max-width: 650px;

    margin: 0 auto 28px;

    color: rgba(255,255,255,.85);

    line-height: 1.8;
}


.btn-adni-gold {
    background: #d1a438;

    border-color: #d1a438;

    color: #ffffff;
}


.btn-adni-gold:hover {
    background: #b88e27;

    border-color: #b88e27;

    color: #ffffff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .resource-hero {
        padding: 150px 0 90px;
    }

    .featured-document {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .featured-document-icon {
        margin: 0 auto;
    }

    .document-meta,
    .document-actions {
        justify-content: center;
    }

}


@media (max-width: 575.98px) {

    .news-section,
    .resource-section,
    .admission-cta-section {
        padding: 75px 0;
    }

    .resource-hero {
        padding: 135px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .featured-document {
        padding: 25px 20px;
    }

    .document-actions {
        flex-direction: column;
    }

    .document-actions .btn {
        width: 100%;
    }

}

/* =========================================================
   FACEBOOK AUTO FEED
========================================================= */

.social-feed-card {
    width: 100%;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--nt-border);
    border-radius: 24px;
    box-shadow: var(--nt-shadow);
}


/* =========================================================
   FACEBOOK HEADER
========================================================= */

.social-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 28px;
    padding-bottom: 22px;

    border-bottom: 1px solid var(--nt-border);

    text-align: center;
}

.social-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #1877f2;
    color: #ffffff;

    font-size: 1.6rem;

    box-shadow:
        0 8px 20px rgba(24, 119, 242, .18);
}

.social-header h3 {
    margin: 0;

    color: var(--nt-primary);

    font-size: 1.3rem;
    font-weight: 800;
}

.social-header p {
    max-width: 600px;

    margin: 0;

    color: var(--nt-muted);

    font-size: .88rem;
    line-height: 1.6;
}


/* =========================================================
   FACEBOOK FEED GRID
========================================================= */

.social-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}


/* =========================================================
   FACEBOOK POST CARD
========================================================= */

.social-post-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--nt-border);
    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(32, 54, 104, .07);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.social-post-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 35px rgba(32, 54, 104, .13);
}


/* =========================================================
   FACEBOOK POST IMAGE
========================================================= */

.social-post-image {
    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #f1f3f5;
}

.social-post-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform .4s ease;
}

.social-post-card:hover .social-post-image img {
    transform: scale(1.04);
}


/* =========================================================
   NO IMAGE FALLBACK
========================================================= */

.social-post-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 220px;

    background:
        linear-gradient(
            135deg,
            #edf2ff,
            #f8f9fc
        );

    color: var(--nt-primary);

    font-size: 3rem;
}


/* =========================================================
   FACEBOOK POST BODY
========================================================= */

.social-post-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px;
}


/* =========================================================
   POST META
========================================================= */

.social-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;

    font-size: .78rem;
}

.social-platform {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #1877f2;

    font-weight: 700;
}

.social-platform i {
    font-size: 1rem;
}

.social-post-date {
    color: var(--nt-muted);

    white-space: nowrap;
}


/* =========================================================
   POST TEXT
========================================================= */

.social-post-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;

    height: calc(1.6em * 3);
    margin-bottom: 18px;
}


/* =========================================================
   VIEW ON FACEBOOK
========================================================= */

.social-post-link {
    margin-top: auto;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    width: fit-content;

    color: #1877f2;

    font-size: .88rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        gap .2s ease,
        color .2s ease;
}

.social-post-link:hover {
    color: #125ec7;

    gap: 10px;

    text-decoration: none;
}


/* =========================================================
   FACEBOOK FEED STATES
========================================================= */

.social-loading,
.social-empty,
.social-error {
    width: 100%;
    min-height: 180px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;

    color: var(--nt-muted);
}

.social-loading .spinner-border {
    width: 2rem;
    height: 2rem;

    margin-bottom: 12px;
}

.social-loading p,
.social-empty p,
.social-error p {
    margin: 0;
}

.social-empty i,
.social-error i {
    margin-bottom: 12px;

    font-size: 2rem;

    color: var(--nt-primary);
}


/* =========================================================
   FACEBOOK HEADER BUTTON
   Jika HTML ada .social-facebook-btn
========================================================= */

.social-facebook-btn {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 9px 14px;

    border-radius: 10px;

    background: #1877f2;
    color: #ffffff;

    font-size: .82rem;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.social-facebook-btn:hover {
    background: #125ec7;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(24, 119, 242, .20);
}


/* =========================================================
   FACEBOOK FEED FOOTER
   Jika HTML ada .social-feed-footer
========================================================= */

.social-feed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--nt-border);
}

.social-feed-footer p {
    margin: 0;

    color: var(--nt-muted);

    font-size: .82rem;
}

.social-feed-footer p i {
    margin-right: 5px;
}

.social-feed-footer a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #1877f2;

    font-size: .85rem;
    font-weight: 700;

    text-decoration: none;
}

.social-feed-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   FACEBOOK FEED - TABLET
========================================================= */

@media (max-width: 991.98px) {

    .social-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   FACEBOOK FEED - MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .social-feed-card {
        padding: 20px;
        border-radius: 20px;
    }

    .social-header {
        align-items: flex-start;
    }

    .social-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;

        border-radius: 13px;

        font-size: 1.3rem;
    }

    .social-header h3 {
        font-size: 1.1rem;
    }

    .social-header p {
        font-size: .82rem;
    }

    .social-facebook-btn {
        width: 100%;
        justify-content: center;
    }

    .social-feed-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-post-image,
    .social-post-no-image {
        height: 220px;
    }

    .social-post-body {
        padding: 16px;
    }

    .social-post-meta {
        font-size: .76rem;
    }

    .social-post-text {
    font-size: 0.9rem;
    line-height: 1.6;

    -webkit-line-clamp: 3;

    height: calc(1.6em * 3);
}

    .social-feed-footer {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* =========================================================
   FACEBOOK FEED - SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .social-feed-card {
        padding: 16px;
    }

    .social-header {
        gap: 12px;
    }

    .social-post-image,
    .social-post-no-image {
        height: 200px;
    }

}