/* ============================================================
   JKU Scholarships Page — scholarships.css
   ============================================================ */

/* ---------- Banner heading + padding — mobile ---------- */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 40px 0 !important;
    }
    .breadcrumb h1 {
        font-size: 32px !important;
    }
    .jku-adm-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .jku-adm-mobile-btn {
        margin-left: 12px !important;
        margin-right: 12px !important;
        width: calc(100% - 24px) !important;
    }
    /* Section heading: block layout so long text wraps fully within card */
    .jku-adm-sec-title {
        display: block !important;
        position: relative !important;
        padding-left: 46px !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .jku-adm-sec-title .jku-adm-num {
        position: absolute !important;
        left: 0 !important;
        top: 2px !important;
        margin: 0 !important;
    }
}

/* ---------- Category table spacing ---------- */
.jku-sch-dtbl {
    margin-top: 16px;
    margin-bottom: 24px;
}

/* ---------- Hero image (Section 1 banner) ---------- */
.jku-sch-hero-img {
    width: 100%;
    max-height: 356px;
    object-fit: cover;
    object-position: center 55%;
    border-radius: 10px;
    margin-bottom: 18px;
    display: block;
}

/* ---------- Slider images ---------- */
.jku-sch-slider-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.jku-sch-slider-img--tall {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.jku-sch-slider-img--hero {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* ---------- Category document table ---------- */
.jku-sch-dtbl {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(3,75,159,0.10);
    border: 1px solid #d0ddf0;
}

.jku-sch-dtbl-title-cell {
    padding: 0;
}

.jku-sch-dtbl-title {
    background: #034B9F;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jku-sch-dtbl-title span {
    font-family: "Source Sans 3", sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #fff;
}

.jku-sch-dtbl-title i {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.jku-sch-dtbl tr {
    border-bottom: 1px solid #e4edf8;
}

.jku-sch-dtbl tr:last-child {
    border-bottom: none;
}

.jku-sch-dtbl tbody tr {
    transition: background 0.2s ease;
    cursor: default;
}

.jku-sch-dtbl tbody tr:hover td {
    background: #fde8d8;
}

.jku-sch-dtbl tbody tr:hover td.cat-col {
    background: #dce8fa;
}

.jku-sch-dtbl td.cat-col {
    width: 140px;
    background: #f0f5ff;
    padding: 16px 18px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #034B9F;
    vertical-align: middle;
    border-right: 1px solid #d0ddf0;
    white-space: nowrap;
    text-align: center !important;
    transition: background 0.2s ease;
}

.jku-sch-dtbl tbody tr:hover td.cat-col {
    background: #f0f5ff;
}

.jku-sch-name-title {
    font-family: "Source Sans 3", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #B84110;
    line-height: 1.45;
    margin-bottom: 4px;
}

.jku-sch-name-desc {
    font-family: "Source Sans 3", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #222;
    line-height: 1.5;
}

.jku-sch-dtbl td.name-col {
    background: #fff;
    padding: 14px 20px;
    vertical-align: top;
    transition: background 0.2s ease;
}

/* ---------- Category table: stacked layout on mobile ---------- */
@media (max-width: 600px) {
    .jku-sch-dtbl,
    .jku-sch-dtbl thead,
    .jku-sch-dtbl tbody,
    .jku-sch-dtbl tr,
    .jku-sch-dtbl td {
        display: block;
        width: 100%;
    }

    .jku-sch-dtbl tr {
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #d0ddf0;
    }

    .jku-sch-dtbl tr:last-child {
        margin-bottom: 0;
    }

    .jku-sch-dtbl td.cat-col {
        width: 100%;
        white-space: normal;
        border-right: none;
        border-bottom: 2px solid #d0ddf0;
        padding: 10px 16px;
        text-align: center;
    }

    .jku-sch-dtbl td.name-col {
        padding: 12px 16px;
    }
}

/* ---------- Table section headings ---------- */
.jku-sch-tbl-section-head {
    font-family: "Source Sans 3", sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #034B9F;
    margin: 24px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jku-sch-tbl-section-head::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #034B9F;
    border-radius: 2px;
    flex-shrink: 0;
}

.jku-sch-tbl-section-head--pg {
    margin-top: 32px;
}

/* ---------- Academic label spans inside table headers ---------- */
.jku-adm-tbl thead th:nth-child(2) span,
.jku-adm-tbl thead th:nth-child(3) span,
.jku-adm-tbl thead th:nth-child(4) span,
.jku-adm-tbl thead th:nth-child(5) span {
    display: inline-block;
    background: #fff;
    color: #034B9F;
    border-radius: 4px;
    padding: 1px 8px;
    font-weight: 900;
    letter-spacing: .5px;
}

/* ---------- Table scroll: desktop normal, mobile gradient hint ---------- */
.jku-adm-tbl-wrap {
    overflow-x: auto;
    position: relative;
}

/* UG table only — scrollbar on TOP, blue, mobile only */
@media (max-width: 768px) {
    .jku-sch-ug-wrap {
        overflow-x: scroll !important;
        transform: rotateX(180deg) !important;
        -webkit-transform: rotateX(180deg) !important;
        scrollbar-width: thin !important;
        scrollbar-color: #034B9F #dde6f5 !important;
        -webkit-overflow-scrolling: touch;
    }

    .jku-sch-ug-wrap::-webkit-scrollbar {
        height: 8px !important;
        display: block !important;
    }

    .jku-sch-ug-wrap::-webkit-scrollbar-track {
        background: #dde6f5 !important;
        border-radius: 4px !important;
    }

    .jku-sch-ug-wrap::-webkit-scrollbar-thumb {
        background: #034B9F !important;
        border-radius: 4px !important;
    }

    .jku-sch-ug-wrap::-webkit-scrollbar-thumb:hover {
        background: #023a7a !important;
    }

    .jku-sch-ug-wrap .jku-adm-tbl {
        transform: rotateX(180deg) !important;
        -webkit-transform: rotateX(180deg) !important;
    }
}

/* PG table — scrollbar on TOP, red, mobile only */
@media (max-width: 768px) {
    .jku-sch-pg-wrap {
        overflow-x: scroll !important;
        transform: rotateX(180deg) !important;
        -webkit-transform: rotateX(180deg) !important;
        scrollbar-width: thin !important;
        scrollbar-color: #B84110 #fde8df !important;
        -webkit-overflow-scrolling: touch;
    }

    .jku-sch-pg-wrap::-webkit-scrollbar {
        height: 8px !important;
        display: block !important;
    }

    .jku-sch-pg-wrap::-webkit-scrollbar-track {
        background: #fde8df !important;
        border-radius: 4px !important;
    }

    .jku-sch-pg-wrap::-webkit-scrollbar-thumb {
        background: #B84110 !important;
        border-radius: 4px !important;
    }

    .jku-sch-pg-wrap::-webkit-scrollbar-thumb:hover {
        background: #a03610 !important;
    }

    .jku-sch-pg-wrap .jku-adm-tbl {
        transform: rotateX(180deg) !important;
        -webkit-transform: rotateX(180deg) !important;
    }
}

/* Swipe hint below each table — mobile only */
.jku-sch-scroll-hint {
    display: none;
    align-items: center;
    gap: 6px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    color: #B84110;
    margin: 4px 0 8px;
    opacity: 0.85;
}

.jku-sch-scroll-hint i {
    animation: jku-swipe-pulse 1.6s ease-in-out infinite;
}

@keyframes jku-swipe-pulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    40%       { transform: translateX(5px); opacity: 0.6; }
    60%       { transform: translateX(-5px); opacity: 0.6; }
}

@media (max-width: 768px) {
    .jku-sch-scroll-hint {
        display: flex;
    }
}

.jku-sch-cat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jku-sch-pg-tbl thead th {
    background: #034B9F !important;
}

.jku-sch-tbl-label {
    font-family: "Source Sans 3", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #034B9F;
    margin: 24px 0 8px;
}

/* ---------- Note boxes ---------- */
.jku-sch-note {
    background: #FFF4EA;
    border-left: 4px solid #B84110;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 16px 0;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14.5px;
    color: #5a2d0c;
    line-height: 1.6;
}

.jku-sch-note strong {
    color: #B84110;
}

.jku-sch-note--mt {
    margin-top: 24px;
}

/* ---------- Intro paragraph helpers ---------- */
.jku-sch-p-mb-6 {
    margin-bottom: 6px;
}

.jku-sch-p-mt-24 {
    margin-top: 24px;
}

/* ---------- Intro 2-col grid (Section 3) ---------- */
.jku-sch-intro-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    margin-bottom: 8px;
}

.jku-sch-img-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 768px) {
    .jku-sch-intro-grid { grid-template-columns: 1fr; }
    .jku-sch-img-stack  { flex-direction: row; }
}

/* ---------- Image cards ---------- */
.jku-sch-img-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(3,75,159,0.12);
    position: relative;
}

.jku-sch-img-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Image slider (desktop: 2-col grid / mobile: fade carousel) ---------- */
.jku-sch-img-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 20px;
}

@media (max-width: 660px) {
    .jku-sch-img-slider {
        display: block;
        position: relative;
        height: 200px;
        overflow: hidden;
        border-radius: 12px;
        margin: 0 0 20px;
    }

    .jku-sch-img-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        transition: opacity .7s ease;
    }

    .jku-sch-img-slide.active {
        opacity: 1;
    }

    .jku-sch-img-slide img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        border-radius: 0;
    }

    .jku-adm-ul li::before {
        top: 7px;
    }

    .jku-sch-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Contact box ---------- */
.jku-sch-contact {
    background: #fff;
    border: 1px solid #e4eaf5;
    border-radius: 10px;
    padding: 24px;
    margin-top: 24px;
}

.jku-sch-contact h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 16px;
}

.jku-sch-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
}

.jku-sch-contact-row:last-child {
    margin-bottom: 0;
}

.jku-sch-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #EBF3FF;
    color: #034B9F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.jku-sch-contact-row a {
    color: #034B9F;
    text-decoration: none;
}

.jku-sch-contact-row a:hover {
    text-decoration: underline;
}

@keyframes jku-ring {
    0%,100% { transform: rotate(0); }
    10%,30%  { transform: rotate(-15deg); }
    20%,40%  { transform: rotate(15deg); }
    50%      { transform: rotate(0); }
}

@keyframes jku-mail-bounce {
    0%,100% { transform: translateY(0); }
    30%     { transform: translateY(-4px); }
    60%     { transform: translateY(2px); }
}

.jku-sch-contact-icon--phone { animation: jku-ring 2s ease-in-out infinite; }
.jku-sch-contact-icon--mail  { animation: jku-mail-bounce 2.4s ease-in-out infinite; }

/* ---------- Ordered list items ---------- */
.jku-sch-ol-item {
    padding-left: 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 16px;
    color: #262626;
    line-height: 1.7;
}

.jku-sch-ol-num {
    min-width: auto;
    height: 24px;
    padding: 0 9px;
    border-radius: 12px;
    background: #034B9F;
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
    font-style: italic;
    letter-spacing: .3px;
}

.jku-sch-ol-item:nth-child(even) .jku-sch-ol-num {
    background: #fff;
    color: #034B9F;
    border: 2px solid #034B9F;
}

/* ---------- External scholarships list ---------- */
.jku-sch-ext-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jku-sch-ext-item {
    background: #fff;
    border: 1px solid #e4eaf5;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow .2s;
}

.jku-sch-ext-item:hover {
    box-shadow: 0 4px 16px rgba(3,75,159,0.10);
}

.jku-sch-ext-num {
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #EBF3FF;
    color: #034B9F;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jku-sch-ext-body {
    flex: 1;
}

.jku-sch-ext-name {
    font-family: "Source Sans 3", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 6px;
}

.jku-sch-ext-desc {
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 8px;
    line-height: 1.5;
}

.jku-sch-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #034B9F;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: #EBF3FF;
    transition: background .2s;
}

.jku-sch-ext-link:hover {
    background: #034B9F;
    color: #fff;
}

.jku-sch-ext-list--mt {
    margin-top: 24px;
}
