/* Desktop */
.custom-header {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
}

/* Mobile */
@media (max-width: 768px) {

    .custom-header {
        min-height: 350px;
        border-radius: 14px;
    }

    .custom-header .container {
        padding-top: 1rem !important;
        padding-bottom: 5rem !important;
    }

    .custom-header h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .custom-header p {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 10px;
    }
}

.dana-card{
    border:1px solid #e9ecef;
    border-radius:12px;
    padding:16px;
    background:#fff;
    transition:all .2s ease;
}

.dana-card:hover{
    transform:translateY(-3px);
    box-shadow:0 .5rem 1rem rgba(0,0,0,.08);
}

.progress{
    border-radius:999px;
    background:#f1f3f5;
}

.progress-bar{
    border-radius:999px;
}

#activityModal .modal-dialog{
    max-width:700px;
}

#activityModal .modal-content{
    border:none;
    overflow:hidden;
    border-radius:24px;
}

.modal-close-btn{
    background:rgba(255,255,255,.15);
    border:none;
    width:30px;
    height:30px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    cursor:pointer;
    transition:.2s;
}

.modal-close-btn:hover{
    background:rgba(255,255,255,.25);
    transform:rotate(90deg);
}

.modal-close-btn i{
    font-size:20px;
    color:white;
}

.modal-header {
    border:none;
    padding:15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-banner{
    width:100%;
    height:280px;
    object-fit:cover;
}

.event-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-bottom:20px;
}

.meta-item{
    display:flex;
    align-items:flex-start;
    gap:15px;
    background:#f8f9fa;
    border-radius:15px;
    padding:10px;
    border:1px solid #eee;
}

.meta-icon{
    font-size:24px;
}

.meta-label{
    font-size:12px;
    font-weight:600;
    color:#999;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.meta-value{
    font-size:15px;
    font-weight:600;
    color:#333;
}

.full-width{
    grid-column:1 / -1;
}

.event-description{
    background:#fff5f8;
    border-left:5px solid #e91e63;
    border-radius:12px;
    padding:20px;
    margin-bottom:20px;
}

.event-description h6{
    color:#e91e63;
    font-weight:700;
    margin-bottom:15px;
}

.qr-section{
    text-align:center;
}

.qr-title{
    font-size:20px;
    font-weight:700;
    color:#e91e63;
    margin-bottom:10px;
}

.qr-section img{
    display:block;
    margin:0 auto;
    width:200px !important;
}

#modalQr{
    width:300px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    background:white;
    padding:15px;
}

/* =========================================================
COMMUNITY SUMMARY
========================================================= */
.community-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.community-section-title h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #172033;
}

.community-card {
    position: relative;
    height: 100%;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.community-card::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    right: -25px;
    bottom: -25px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.025);
}

.community-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
    border-color: #e5e7eb;
}

.community-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.community-icon i {
    font-size: 27px;
}

.community-card small {
    font-size: 12px;
}

.community-card h3 {
    font-size: 24px;
    line-height: 1.1;
    color: #111827;
    margin-top: 3px !important;
    margin-bottom: 2px !important;
}

.alumni-icon {
    background: #ffe5ef;
    color: #e91e63;
}

.pibg-icon {
    background: #ddf7e8;
    color: #08a65b;
}

.total-icon {
    background: #e3efff;
    color: #2878f0;
}

.year-icon {
    background: #fff0d9;
    color: #f59e0b;
}

/* =========================================================
IMPORTANT INFORMATION
========================================================= */
.important-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 2px;
    border-bottom: 1px solid #f0f2f5;
    transition: background .2s ease;
}

.important-item:first-child {
    padding-top: 0 !important;
}

.important-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.important-icon i {
    font-size: 21px;
}

.important-info {
    flex: 1;
}

.important-info .fw-semibold {
    font-size: 13px;
    color: #374151;
    margin-bottom: 3px;
}

.important-info small {
    font-size: 11px;
    color: #6b7280 !important;
}

.important-countdown {
    text-align: right;
    min-width: 65px;
    line-height: 1;
}

.important-countdown strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.important-countdown small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

/* =========================================================
SECTION HEADER
========================================================= */
.dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-section-title i {
    font-size: 21px;
    color: #e91e63;
}

.dashboard-section-title span {
    font-size: 17px;
    font-weight: 700;
    color: #172033;
}


/* =========================================================
BUTTON
========================================================= */
.btn-dashboard {
    border: 1px solid #e91e63 !important;
    color: #e91e63 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all .2s ease;
}

.btn-dashboard:hover {
    background: #e91e63 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* =========================================================
TAKWIM
========================================================= */
.takwim-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 2px;
    border-bottom: 1px solid #f0f2f5;
    transition: background .2s ease;
}

.takwim-item:hover {
    background: #fafbfc;
}

.takwim-date {
    min-width: 50px;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
}

.takwim-date strong,
.takwim-date span,
.takwim-date small {
    display: block;
}

.takwim-date strong {
    font-size: 20px;
    line-height: 1;
}

.takwim-date span {
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
    color: black;
}

.takwim-date small {
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
    color: black;
}

.takwim-date .takwim-day {
    margin-top: 2px;
    font-weight: 400;
    color: black;
}

.takwim-info {
    flex: 1;
}

.kategori-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
}

.takwim-days {
    min-width: 55px;
    text-align: right;
    line-height: 1;
}

.takwim-days strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.takwim-days small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}

.takwim-footer {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #f2b6ca;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e91e63;
    background: #fff8fb;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: all .2s ease;
}

.takwim-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.takwim-footer i {
    font-size: 17px;
}

.takwim-footer:hover {
    background: #e91e63;
    color: #ffffff;
}

.landing-content {
    position: relative;
    z-index: 2;
    margin-top: -15px;
    padding-bottom: 30px;
}

.landing-card {
    background: #ffffff;
    border: 1px solid #edf0f4 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(30, 41, 59, 0.06) !important;
    overflow: hidden;
}

.landing-card .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f2f5 !important;
    padding: 18px 20px !important;
}

.landing-card .card-body {
    padding: 16px 20px !important;
}

.landing-content > .row {
    margin-bottom: 0;
}

.dashboard-row {
    margin-top: 18px;
}

.dashboard-card-row {
    margin-top: 18px;
}

#activityModal .modal-dialog {
    max-width: 700px;
}

#activityModal .modal-content {
    border: none;
    overflow: hidden;
    border-radius: 24px;
}

.takwim-modal-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem 2rem;
}

.takwim-modal-body > .important-item:first-child,
.takwim-modal-body > .takwim-item:first-child {
    margin-top: 0 !important;
}

/* Optional: nicer scrollbar */
.takwim-modal-body::-webkit-scrollbar {
    width: 6px;
}

.takwim-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.takwim-modal-body::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
}

.takwim-modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* =====================================================
   LAPORAN & BERITA TERKINI
===================================================== */
.landing-news-section {
    padding: 18px;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: white;
    box-shadow: 0 3px 12px rgba(30, 50, 80, 0.04);
    overflow: hidden;
}

/* Header */

.landing-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.landing-news-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.landing-news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e9eaff;
    color: #4353d8;
}

.landing-news-icon i {
    font-size: 23px;
}

.landing-news-title {
    margin: 0 0 4px;
    color: #263248;
    font-size: 20px;
    font-weight: 700;
}

.landing-news-subtitle {
    margin: 0;
    color: #7b8495;
    font-size: 11px;
    line-height: 1.5;
}

/* Header buttons */
.landing-news-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.landing-news-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    margin-right: 8px;
    border: 1px solid #f2a2c0;
    border-radius: 7px;
    color: #e84d87;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.landing-news-all:hover {
    color: #c72d69;
    background: #fff5f9;
}

.landing-news-all i {
    font-size: 15px;
}

.news-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #edf0f5;
    border-radius: 50%;
    background: #e91e63;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-nav-btn:hover:not(:disabled) {
    background: #fce7f0;
    border-color: #f4b4cc;
    color: #d63375;
}

.news-nav-btn:disabled {
    cursor: default;
}

.news-nav-btn i {
    font-size: 21px;
}

/* Horizontal carousel */
.landing-news-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 1px 1px 4px;
}

.landing-news-track::-webkit-scrollbar {
    display: none;
}

/* Cards */
.landing-news-card {
    position: relative;
    display: flex;
    flex: 0 0 calc((100% - 48px) / 5);
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #fff;
    scroll-snap-align: start;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 50, 80, 0.08);
}

/* Cover photo */

.landing-news-image-link {
    position: relative;
    display: block;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eef2f7;
}

.landing-news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.landing-news-card:hover .landing-news-image {
    transform: scale(1.04);
}

.landing-news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #98a2b3;
}

.landing-news-image-placeholder i {
    font-size: 32px;
}

/* Date badge */

.landing-news-date {
    position: absolute;
    left: 8px;
    bottom: -1px;
    padding: 4px 8px;
    border-radius: 6px 6px 0 0;
    background: #e7f5f5;
    color: #27858a;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* Card content */

.landing-news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
}

.landing-news-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 34px;
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.landing-news-card-title a {
    color: #283449;
    text-decoration: none;
}

.landing-news-card-title a:hover {
    color: #e84d87;
}

.landing-news-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 30px;
    margin: 0 0 10px;
    color: #7b8495;
    font-size: 11px;
    line-height: 1.5;
}

.landing-news-card-footer {
    margin-top: auto;
}

.landing-news-category {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 8px;
    border-radius: 5px;
    background: #e0f3f5;
    color: #23828b;
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1199px) {
    .landing-news-card {
        flex-basis: calc((100% - 36px) / 4);
    }
}

@media (max-width: 991px) {
    .landing-news-card {
        flex-basis: calc((100% - 24px) / 3);
    }
}

@media (max-width: 767px) {
    .landing-news-section {
        padding: 13px;
    }

    .landing-news-header {
        align-items: flex-start;
    }

    .landing-news-subtitle {
        max-width: 260px;
    }

    .landing-news-controls {
        gap: 5px;
    }

    .landing-news-all {
        padding: 6px 8px;
        margin-right: 0;
    }

    .landing-news-card {
        flex-basis: 210px;
    }

    .landing-news-image-link {
        height: 115px;
    }

    .news-nav-btn {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .landing-news-header {
        flex-direction: column;
    }

    .landing-news-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .landing-news-card {
        flex-basis: 78%;
    }
}