/* Base hero section styles */
.about-hero-section {
    position: relative;
    isolation: isolate;
    background-color: #031834;
    background-image: url('/landingPageItsb/images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 180px 0 180px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(3, 24, 52, 0.92), rgba(0, 101, 255, 0.75));
    z-index: 0;
}

.about-hero-section .container {
    position: relative;
    z-index: 1;
}

.about-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0 auto;
}

/* Blog-specific hero overrides */
.about-hero-section.blog-hero,
.about-hero-section.blog-detail-hero {
    min-height: 500px;
    padding: 180px 0 160px;
    text-align: center;
}

.about-hero-section.blog-hero .about-hero-content,
.about-hero-section.blog-detail-hero .about-hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.about-hero-section.blog-hero .about-hero-title,
.about-hero-section.blog-detail-hero .about-hero-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.about-hero-section.blog-detail-hero .about-hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.about-hero-section.blog-hero .about-hero-subtitle {
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .about-hero-section.blog-hero,
    .about-hero-section.blog-detail-hero {
        min-height: 420px;
        padding: 140px 0 120px;
    }
}

@media (max-width: 576px) {
    .about-hero-section.blog-hero,
    .about-hero-section.blog-detail-hero {
        min-height: 360px;
        padding: 100px 0 100px;
    }
}

/* ----------------------------------------------------
   Blog Listing
   ---------------------------------------------------- */
.lp-blog-list {
    padding: 72px 0 96px;
    background-color: #ffffff;
}

.lp-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lp-blog-card {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.lp-blog-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.lp-blog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.lp-blog-card:hover .lp-blog-card__image {
    transform: scale(1.03);
}

.lp-blog-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.lp-blog-card__meta {
    display: none;
}

.lp-blog-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a2e;
    line-height: 1.4;
}

.lp-blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.lp-blog-card__title a:hover {
    color: #003e9c;
}

.lp-blog-card__excerpt {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-blog-card__read-more {
    display: none;
}

.lp-blog-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    color: #888;
    aspect-ratio: 16 / 10;
    width: 100%;
}

.lp-blog-card__placeholder svg {
    opacity: 0.6;
}

.lp-blog-card__placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination Styles */
.lp-blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.lp-blog-pagination nav {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.lp-blog-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.lp-blog-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a2e;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lp-blog-pagination .page-item .page-link:hover {
    background-color: #003e9c;
    border-color: #003e9c;
    color: #ffffff;
}

.lp-blog-pagination .page-item.active .page-link {
    background-color: #003e9c;
    border-color: #003e9c;
    color: #ffffff;
}

.lp-blog-pagination .page-item.disabled .page-link {
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
}

.lp-blog-empty {
    background: #e6efff;
    border-radius: 24px;
    padding: 72px 40px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0,101,255,0.12);
}

.lp-blog-empty h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #003e9c;
    margin-bottom: 12px;
}

.lp-blog-empty p {
    margin: 0 0 24px;
    color: #5f6b86;
}

.lp-blog-empty__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    background-color: #0065ff;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.lp-blog-empty__cta:hover {
    transform: translateY(-2px);
    background-color: #00337f;
    color: #ffffff;
}

/* ----------------------------------------------------
   Blog Detail
   ---------------------------------------------------- */
.lp-blog-detail {
    background-color: #ffffff;
    padding: 64px 0 96px;
}

.lp-blog-detail__content {
    max-width: 1140px;
    margin: 0 auto;
}

.lp-blog-detail__back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #0065ff;
    text-decoration: none;
    margin-bottom: 20px;
}

.lp-blog-detail__back-link:hover {
    color: #00337f;
}

.lp-blog-detail__figure {
    margin: 0 0 32px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(1, 64, 54, 0.18);
    background-color: #e6efff;
    height: clamp(240px, 40vw, 480px);
}

.lp-blog-detail__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.lp-blog-detail__body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #303f38;
}

.lp-blog-detail__share {
    margin-top: 32px;
}

.lp-blog-detail__share-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0065ff;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lp-blog-detail__share-button:hover {
    background: #00337f;
    transform: translateY(-1px);
}

.lp-blog-detail__share-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,101,255,0.25);
}

.lp-blog-detail__share-icon svg {
    display: block;
}

.lp-blog-detail__toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #0065ff;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 101, 255, 0.18);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
}

.lp-blog-detail__toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.lp-blog-detail__body h2,
.lp-blog-detail__body h3,
.lp-blog-detail__body h4 {
    color: #003e9c;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
}

.lp-blog-detail__body p {
    margin-bottom: 20px;
}

.lp-blog-detail__body ul,
.lp-blog-detail__body ol {
    margin: 0 0 24px 1.25rem;
}

.lp-blog-detail__body a {
    color: #0065ff;
    text-decoration: underline;
}

.lp-related-blogs {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid rgba(1, 64, 54, 0.12);
}

.lp-related-blogs__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.lp-related-blogs__header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #003e9c;
}

.lp-related-blogs__header a {
    font-weight: 600;
    color: #0065ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(1, 64, 54, 0.3);
    padding-bottom: 2px;
}

.lp-related-blogs__header a:hover {
    color: #00337f;
}

.lp-related-blogs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.lp-related-blogs__card {
    background: #f4faf7;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,62,156,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-related-blogs__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,62,156,0.16);
}

.lp-related-blogs__image-link {
    display: block;
}

.lp-related-blogs__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.lp-related-blogs__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-related-blogs__body time {
    font-size: 0.875rem;
    color: #567064;
}

.lp-related-blogs__body h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.lp-related-blogs__body h3 a {
    color: #003e9c;
    text-decoration: none;
}

.lp-related-blogs__body h3 a:hover {
    color: #00337f;
}

.lp-related-blogs__body p {
    margin: 0;
    color: #5f6b86;
    line-height: 1.55;
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   Jurnal ITSB (portrait covers, no crop)
   ---------------------------------------------------- */
.lp-journals .lp-blog-card__image-link.lp-journals__image-link {
    flex: 0 0 auto;
    width: 100%;
    padding: 16px;
    background: #f4faf7;
    display: flex;
    align-items: center;
    justify-content: center;
}

@supports (aspect-ratio: 1) {
    .lp-journals .lp-blog-card__image-link.lp-journals__image-link {
        aspect-ratio: 3 / 4;
    }
}

.lp-journals .lp-blog-card__image.lp-journals__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: transparent;
}

@media (max-width: 991px) {
    .about-hero-section.blog-hero,
    .about-hero-section.blog-detail-hero {
        padding: 112px 0 64px;
    }

    .lp-blog-list {
        padding: 56px 0 72px;
    }

    .lp-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-related-blogs__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .about-hero-section.blog-hero,
    .about-hero-section.blog-detail-hero {
        padding: 96px 0 56px;
    }

    .lp-blog-grid {
        grid-template-columns: 1fr;
    }

    .lp-blog-card__body {
        padding: 16px;
    }

    .lp-related-blogs__grid {
        grid-template-columns: 1fr;
    }

    .lp-related-blogs__body {
        padding: 20px;
    }

    .lp-blog-pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* ----------------------------------------------------
   Journal Grid - Portrait Cards with Hover Overlay
   ---------------------------------------------------- */
.lp-journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-journal-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f5f5f5;
}

.lp-journal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.lp-journal-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.lp-journal-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.lp-journal-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    transition: transform 0.4s ease;
}

.lp-journal-card:hover .lp-journal-card__image {
    transform: scale(1.02);
}

.lp-journal-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.lp-journal-card:hover .lp-journal-card__overlay {
    opacity: 1;
}

.lp-journal-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lp-journal-card__excerpt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-journal-card__footer {
    padding: 16px 20px;
    background: #ffffff;
}

.lp-journal-card__footer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .lp-journal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .lp-journal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .lp-journal-card__overlay {
        padding: 16px;
    }

    .lp-journal-card__title {
        font-size: 0.95rem;
    }

    .lp-journal-card__excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .lp-journal-card__footer {
        padding: 12px 14px;
    }

    .lp-journal-card__footer-title {
        font-size: 0.85rem;
    }
}
