/* Brand Color Variables - Added at the top of the file */
:root {
    --primary-color: #193661;
    --primary-light: #234578;
    --primary-dark: #0f2040;
    --secondary-color: #E9E7D6;
    --secondary-light: #f5f4ec;
    --secondary-dark: #d0cebf;
    --header-height: 80px;
    --footer-height: 60px;
}

.content-section {
	margin-top: 120px;
}

.form-signin {
	max-width: 300px;
	margin: 0 auto;
	background-color: #fff;
	border: 1px solid transparent;
	border-radius: 4px;
	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
	box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.v-center-15 {
	margin: 15% auto !important;
}

.v-center-20 {
	margin: 20% auto !important;
}

.footer.small {
	padding: 0.5rem 0 !important;
}

.footer.small .copyright {
	padding-top: 00.5rem !important;
}

.btn-wa-wrapper {
	display:inline-flex;background:#32C03C;vertical-align:center;height:35px;border-radius:20px;color:white;width:140px;border:1px solid white;
}

.wa-icon {
	height:60px;margin-top: -15px;margin-left: -30px;
}

.gc-container, .gc-container .btn {
	font-size: 0.85rem !important;
}

.font-small {
	font-size: small !important;
}

.wa-icon-xs {
    height: 30px;
    top: 15px;
    position: fixed;
    right: 20px;
}
.pmb h1 {
    padding-top: 2px;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;;
    text-shadow: -2px 0 white;
    font-style: italic;
    margin: 20px auto;
}

.pmb p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-left: 15px;
}

.img-pmb {
    width: 100%;
    height: auto;
    position: relative;
    left: 1%;
    top: 2%;
}

.cover-pmb {
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    clip-path: ellipse(50% 50% at 50% 50%);
    margin-right:-100px;
}

.btn-blue-dark {
    background-color: var(--primary-color);
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.btn-blue-light {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
}
.ml-6 {
    margin-left: 6rem !important;
}
.body-pmb {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    .body-pmb {
        min-height: auto;
        height: auto;
    }
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: -10px;
    margin-left: 15px;
    border-radius: 50px;
    border-color: #dee2e6 #dee2e6 #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border: none;
}
.nav-tabs > .nav-item > .nav-link {
    border: none !important;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: -10px;
    margin-left: 15px;
    border-radius: 50px;
}
.nav-link {
    display: block;
    padding-bottom: 10px !important;
    padding-left: 15px;
}
.w-full {
    width: 100% !important;
}
.h-200 {
    height: 200px;
}
.h-400 {
    height: 400px;
}
.navbar-nav li.nav-item a.nav-link {
    color: #fff !important;
}
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover, 
.nav-tabs .nav-link {
    border: none !important;
}

.beasiswa-wrapper {
    color: #3a5a99;
    border: #3a5a99 2px solid;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 450px;
    height: auto;
}
.beasiswa-wrapper h4 {
    margin-top: 10px;
    font-size: 30px;
    font-weight: 700;
}
.beasiswa-wrapper p, p.info-beasiswa {
    font-size: 15px;
    font-weight: 400;
    text-align: justify;
    color: #3a5a99;
    margin-left: 10px;
    margin-bottom: 30px;
}
p.info-beasiswa-ppiu {
    font-size: 15px;
    font-weight: 400;
    text-align: justify;
    color: #3a5a99;
    margin-left: 10px;
}
ul.info > li, ul.info > li::marker {
    font-size: 15px;
    font-weight: 400;
    text-align: justify;
    color: #3a5a99;
    margin-left: 10px;
    margin-bottom: 30px;
}
ul.dokumen-beasiswa > li, ul.dokumen-beasiswa > li::marker {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 5px;
    text-align: justify;
    color: #3a5a99;
}
.beasiswa-wrapper p > a {
    font-size: 25px;
    font-weight: 700;
    color: #222 !important;
    font-style: italic;
}
.beasiswa-heading {
    font-size: 25px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    color:#fff;
    background-color: #3a5a99;
    padding: 5px 15px;
    border-radius: 15px;
    width:fit-content;
}
.timeline {
  list-style-type: none;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0;
  color: #3a5a99;
  font-weight: 700;
  font-size: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #0c4894;
    top: 22px;
    bottom: 133px;
    left: 20px;
}

.timeline li {
  padding-left: 27px;
  position: relative;
  background-color: inherit;
}

.timeline li::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: #0c4894;
    border: 1px solid #0c4894;
    top: 5px;
    left: 12px;
    border-radius: 50%;
    z-index: 1;
}

li > div.content {
    padding-left: 25px;
    padding-bottom: 70px;
}
.img-tc {
    height: 200px;
    position: absolute;
    top: 0;
    left: 25%;
    z-index: -999;
}
.img-br {
    padding-top: 0;
    height: 400px;
    position: absolute;
    bottom: 0;
    left: 10px;
    z-index: -998;
}
.img-br-2 {
    padding-top: 0;
    height: 400px;
    position: absolute;
    bottom: 0;
    left: 10px;
    z-index: -998;
}

.img-container {
    height: 600px;
    width: 100%;
}
.img-container-2 {
    height: 400px;
    width: 100%;
}
.img-yayasan-container {
    height: 400px;
    width: inherit;
}
.img-mhs-yayasan {
    padding-top: 0;
    height: 300px;
    position: absolute;
    bottom: -20px;
    left: -30px;
    z-index: 2;
}
@media (min-width: 1200px) {
    .img-container {
        height: inherit;
        width: inherit;
    }
    .img-container-2 {
        height: inherit;
        width: inherit;
    }
    .img-tc {
        height: 300px;
        position: relative;
        top: 0;
        left: 20%;
        z-index: -999;
    }
    .img-br {
        padding-top: 0;
        height: 400px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: -998;
    }
    .img-br-2 {
        padding-top: 0;
        height: 400px;
        position: absolute;
        bottom: 0;
        left: -250px;
        z-index: -998;
    }
    .img-yayasan-container {
        height: inherit;
        width: inherit;
    }
    .img-mhs-yayasan {
        padding-top: 0;
        height: 580px;
        position: absolute;
        bottom: -20px;
        left: -150px;
        z-index: 2;
    }
}
@media (min-width: 1147px) and (max-width: 1199px) {
    .img-yayasan-container {
        height: inherit;
        width: inherit;
    }
    .img-mhs-yayasan {
        padding-top: 0;
        height: 500px;
        position: absolute;
        bottom: -45px;
        left: -78px;
        z-index: 2;
    }
}
@media (min-width: 1027px) and (max-width: 1146px) {
    .img-yayasan-container {
        height: 800px;
        width: inherit;
    }
    .img-mhs-yayasan {
        padding-top: 0;
        height: 500px;
        position: absolute;
        bottom: -15px;
        left: -78px;
        z-index: 2;
    }
}
@media (min-width: 1000px) and (max-width: 1026px) {
    .img-yayasan-container {
        height: 900px;
        width: inherit;
    }
    .img-mhs-yayasan {
        padding-top: 0;
        height: 500px;
        position: absolute;
        bottom: -15px;
        left: -78px;
        z-index: 2;
    }
}
@media (max-width: 999px) {
    .img-yayasan-container {
        height: 400px;
        width: inherit;
    }
    .img-mhs-yayasan {
        padding-top: 0;
        height: 400px;
        position: absolute;
        bottom: -15px;
        left: 0px;
        z-index: 2;
    }
}

/* Hero Section Styles */
.hero-section {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    position: relative;
    display: flex;
    align-items: center;
}

.welcome-badge {
    display: inline-block;
    background-color: rgba(25, 54, 97, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pmb h1 {
    padding-top: 2px;
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 10px 0 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pmb p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-left: 0;
    line-height: 1.6;
}

.features-list {
    margin: 25px 0;
}

.feature-item {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.btn-blue-dark {
    background-color: var(--primary-color);
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 25px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-blue-dark:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(25, 54, 97, 0.2);
}

.btn-blue-light {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-blue-light:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(25, 54, 97, 0.1);
}

/* Hero Image Styles */
.hero-image-container {
    position: relative;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow: hidden;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 54, 97, 0.3) 0%, rgba(25, 54, 97, 0.1) 100%);
    z-index: 1;
}

.img-pmb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    left: 0;
    top: 0;
}

/* Stats Container */
.stats-container {
    position: absolute;
    bottom: 100px;
    left: 50px;
    display: flex;
    gap: 20px;
    z-index: 2;
}

.stat-box {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-box:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-box:nth-child(3) {
    animation-delay: 0.7s;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Education Badge */
.education-badge {
    position: absolute;
    bottom: 30px;
    right: 50px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: fadeInRight 1s ease-out;
    animation-delay: 0.9s;
    animation-fill-mode: both;
}

.badge-icon {
    background-color: rgba(25, 54, 97, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.badge-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.badge-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.badge-subtitle {
    font-size: 0.8rem;
    color: #666;
}

/* Enhanced responsive styles */
@media (max-width: 991.98px) {
    :root {
        --header-height: 80px;
        --footer-height: 60px;
    }

    .hero-section {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 30px;
    }
    
    .hero-image-container {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    .stats-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
        justify-content: center;
        gap: 10px;
    }
    
    .education-badge {
        bottom: auto;
        top: 20px;
        right: 20px;
    }
    
    .pmb h1 {
        font-size: 2.2rem;
        margin: 15px 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        justify-content: center;
        margin-bottom: 20px;
    }

    .welcome-text {
        padding: 20px 0;
        text-align: center;
    }
    
    .features-list {
        margin: 20px auto;
        max-width: 300px;
        text-align: left;
    }
    
    .body-pmb {
        height: auto;
    }
}

/* New iPad Mini specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .body-pmb {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-section {
        flex-direction: row;
        min-height: calc(100vh - var(--header-height) - var(--footer-height) - 40px);
        padding-bottom: 0;
    }
    
    .welcome-text {
        padding: 20px;
        text-align: left;
    }
    
    .pmb h1 {
        font-size: 2.5rem;
        margin: 15px 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .hero-image-container {
        height: calc(100vh - var(--header-height) - var(--footer-height));
    }
    
    .features-list {
        margin: 15px 0;
        max-width: none;
    }
    
    .feature-item {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .cta-buttons {
        justify-content: flex-start;
        margin-top: 20px;
        gap: 10px;
    }
    
    .btn-blue-dark, .btn-blue-light {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .stats-container {
        bottom: 80px;
        left: 30px;
        right: auto;
        justify-content: flex-start;
    }
    
    .stat-box {
        padding: 15px;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .education-badge {
        bottom: 25px;
        right: 30px;
        top: auto;
        padding: 12px 18px;
    }
    
    .badge-icon {
        width: 35px;
        height: 35px;
    }
}

/* iPad Mini in portrait mode (768px) */
@media (min-width: 768px) and (max-width: 834px) {
    .pmb h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-item {
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        margin-top: 15px;
    }
    
    .stats-container {
        bottom: 70px;
        left: 20px;
        gap: 8px;
    }
    
    .stat-box {
        padding: 12px;
        min-width: 90px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .education-badge {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .badge-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .badge-title {
        font-size: 0.9rem;
    }
    
    .badge-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .body-pmb {
        height: auto;
        min-height: auto;
    }

    .hero-section {
        min-height: auto;
    }
    
    .hero-image-container {
        height: 45vh;
        min-height: 280px;
        max-height: 350px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .pmb h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .welcome-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .welcome-text {
        text-align: center;
        padding: 0 !important;
        padding-left: 0 !important;
    }
    
    .btn-blue-dark, .btn-blue-light {
        font-size: 1rem;
        padding: 12px 24px;
        width: 100%;
    }
    
    .mobile-stat {
        padding: 0 10px;
    }
    
    .mobile-stat .stat-number {
        color: var(--primary-color) !important;
    }
}

/* Small mobile screens */
@media (max-width: 575.98px) {
    .hero-image-container {
        height: 40vh;
        min-height: 250px;
        max-height: 300px;
    }
    
    .pmb h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-blue-dark, .btn-blue-light {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

.welcome-text {
    animation: fadeInUp 1s ease-out;
    padding-left: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    z-index: 1;
}

/* Dynamic heights for header and footer */
:root {
    --header-height: 80px;
    --footer-height: 60px;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer .copyright p {
    margin-bottom: 0;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 0;
}

/* Adjustments for extremely tall screens */
@media (min-height: 1000px) {
    .stats-container {
        bottom: 150px;
    }
    
    .education-badge {
        bottom: 80px;
    }
}

/* Login Form Styles */
.login-container {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(25, 54, 97, 0.05);
    z-index: 0;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(25, 54, 97, 0.08);
    z-index: 0;
}

.auth-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 1;
    border: none;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(50, 50, 93, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.auth-card .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(65, 84, 145, 0.1);
}

.auth-card .card-header h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-card .card-footer {
    background-color: var(--secondary-light);
    border-top: 1px solid rgba(25, 54, 97, 0.1);
}

.auth-card .form-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-card .form-control {
    border: 1px solid rgba(25, 54, 97, 0.2);
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.auth-card .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.auth-card .input-group-text {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    width: 50px;
    display: flex;
    justify-content: center;
}

.forgot-password {
    color: #415492;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    opacity: 0.8;
}

.forgot-password:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.register-link {
    color: #415492;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s;
    position: relative;
}

.register-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #415492;
    transition: width 0.3s ease;
}

.register-link:hover::after {
    width: 100%;
}

/* Additional styles for reset password page */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.85rem;
    background-color: rgba(65, 84, 145, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 90%;
}

.security-note i {
    color: #415492;
    opacity: 0.7;
    font-size: 1rem;
    margin-right: 8px;
}

/* Password strength indicator - can be used in future */
.password-strength {
    height: 5px;
    margin-top: 8px;
    border-radius: 3px;
    background-color: #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-meter {
    height: 100%;
    width: 0;
    transition: all 0.5s ease;
}

.strength-weak {
    width: 25%;
    background-color: #dc3545;
}

.strength-medium {
    width: 50%;
    background-color: #ffc107;
}

.strength-strong {
    width: 75%;
    background-color: #28a745;
}

.strength-very-strong {
    width: 100%;
    background-color: #20c997;
}

/* Help note styles */
.help-note {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 90%;
}

.help-note i {
    color: #415492;
    opacity: 0.7;
    font-size: 1rem;
    margin-right: 8px;
}

.contact-link {
    color: #415492;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #415492;
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #415492;
}

.contact-link:hover::after {
    width: 100%;
}

/* Enhanced Mobile styling for all auth forms */
@media (max-width: 767.98px) {
    .login-container {
        padding: 20px 15px;
        min-height: calc(100vh - var(--header-height) - var(--footer-height));
    }
    
    .auth-card {
        margin: 0 10px;
        animation: fadeInUp 0.5s ease; /* Faster animation on mobile */
    }
    
    .auth-card .card-header {
        padding: 15px 10px;
    }
    
    .auth-card .card-header h4 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .auth-card .card-header p {
        font-size: 0.85rem;
        padding: 0 5px;
    }
    
    .auth-card .card-body {
        padding: 20px 15px !important;
    }
    
    .auth-card .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .auth-card .form-control {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    
    .auth-card .input-group-text {
        width: 45px;
        font-size: 0.9rem;
    }
    
    .auth-card .form-text {
        font-size: 0.75rem;
        margin-top: 5px !important;
    }
    
    .auth-card .btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .auth-card .btn i {
        font-size: 0.9rem;
    }
    
    .forgot-password, .register-link {
        font-size: 0.85rem;
    }
    
    .auth-card .card-footer {
        padding: 15px 10px;
    }
    
    /* Note elements */
    .security-note,
    .help-note {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        font-size: 0.8rem;
        width: 100%;
        max-width: 100%;
    }
    
    .security-note i,
    .help-note i {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 1rem;
    }
    
    /* Ensure alert messages are readable */
    .auth-card .alert {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    /* Better touch targets */
    .auth-card a {
        padding: 5px;
        display: inline-block;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .login-container {
        padding: 15px 10px;
    }
    
    .auth-card {
        margin: 0 5px;
    }
    
    .auth-card .card-header h4 {
        font-size: 1.2rem;
    }
    
    .auth-card .card-body {
        padding: 15px 12px !important;
    }
    
    .auth-card .form-control {
        font-size: 0.9rem;
    }
    
    .auth-card .btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .security-note,
    .help-note {
        font-size: 0.75rem;
        padding: 8px 5px;
    }
    
    .contact-link {
        display: block;
        margin-top: 5px;
    }
}

/* Reset existing redundant mobile styles that we've now enhanced */
/* Removed empty rulesets to satisfy linter; all mobile styles handled above */

/* Registration styles */
.registration-container {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.registration-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(25, 54, 97, 0.05);
    z-index: 0;
}

.registration-container::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-color: rgba(25, 54, 97, 0.08);
    z-index: 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(25, 54, 97, 0.2);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(25, 54, 97, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link:hover::after {
    width: 100%;
}

.registration-card {
    margin-bottom: 40px;
    margin-top: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(65, 84, 145, 0.1);
}

.status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.custom-radio-card {
    position: relative;
    flex: 1;
    min-width: 140px;
}

.custom-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-radio-card label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 15px 20px;
    background-color: #fff;
    border: 2px solid rgba(25, 54, 97, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

/* Radio indicator centered at the top */
.custom-radio-card label::before {
    content: '';
    position: absolute;
    top: 15px; /* Position closer to top */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center alignment */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d9e6;
    background-color: #fff;
    transition: all 0.2s ease;
    z-index: 1;
    margin: 0; /* Ensure no margin affects positioning */
}

/* Center the dot within the radio */
.custom-radio-card input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    top: 21px; /* Position in center of radio */
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    z-index: 2;
    margin: 0; /* Ensure no margin affects positioning */
}

/* Center the icon and text perfectly */
.radio-icon {
    font-size: 2.4rem;
    color: #415492;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    margin-left: 0; /* Remove any horizontal margins */
    margin-right: 0; /* Remove any horizontal margins */
}

.radio-text {
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 1rem;
    transition: color 0.3s ease;
    margin-left: 0; /* Remove any horizontal margins */
    margin-right: 0; /* Remove any horizontal margins */
    width: 100%; /* Ensure text takes full width */
}

.custom-radio-card input[type="radio"]:checked + label::before {
    border-color: #415492;
    background-color: #415492;
    box-shadow: 0 0 0 2px rgba(65, 84, 145, 0.2);
}

.custom-radio-card input[type="radio"]:checked + label .radio-icon {
    transform: scale(1.1);
    color: #2a3b80;
}

.custom-radio-card input[type="radio"]:checked + label .radio-text {
    color: #2a3b80;
    font-weight: 700;
}

.custom-radio-card input[type="radio"]:checked + label {
    border-color: #415492;
    background-color: rgba(65, 84, 145, 0.05);
    box-shadow: 0 8px 20px rgba(65, 84, 145, 0.15);
    transform: translateY(-3px);
}

.custom-radio-card input[type="radio"]:focus + label {
    border-color: #415492;
    box-shadow: 0 0 0 3px rgba(65, 84, 145, 0.2);
}

.custom-radio-card:hover label {
    transform: translateY(-2px);
    border-color: #415492;
}

/* Mobile styles for improved radio cards */
@media (max-width: 767.98px) {
    .status-options {
        gap: 12px;
    }
    
    .custom-radio-card label {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 35px 15px 15px; /* Keep top padding for radio button */
    }
    
    /* Keep radio at top, centered */
    .custom-radio-card label::before {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .custom-radio-card input[type="radio"]:checked + label::after {
        top: 18px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .radio-icon {
        font-size: 1.8rem;
        margin: 0 0 10px 0; /* Top Right Bottom Left - vertical spacing only */
    }
    
    .radio-text {
        font-size: 0.95rem;
        text-align: center;
        margin: 0;
        padding: 0;
        line-height: 1.3;
    }
}

/* Scholarship page styles */
.scholarship-container {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.scholarship-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(65, 84, 145, 0.05);
    z-index: 0;
}

.scholarship-container::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-color: rgba(65, 84, 145, 0.08);
    z-index: 0;
}

.page-title {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.page-title h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 10px 0 20px;
    line-height: 1.2;
}

.page-title .subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.scholarship-cards {
    position: relative;
    z-index: 1;
}

.scholarship-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
    animation-delay: calc(var(--i, 0) * 0.1s);
    animation-fill-mode: both;
}

.scholarship-card:nth-child(2) {
    --i: 2;
}

.scholarship-card:nth-child(3) {
    --i: 3;
}

.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.scholarship-image {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scholarship-image .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scholarship-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.scholarship-content {
    padding: 25px 30px;
}

.scholarship-badge {
    display: inline-block;
    background-color: rgba(25, 54, 97, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.scholarship-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.scholarship-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.scholarship-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.scholarship-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
    margin-right: 20px;
}

.scholarship-features .feature-item i {
    color: var(--primary-color);
    margin-right: 8px;
    flex-shrink: 0;
}

.scholarship-features .feature-item span {
    display: inline-block;
}

.scholarship-cta {
    margin-top: 15px;
}

.scholarship-cta .btn {
    padding: 8px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.scholarship-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(65, 84, 145, 0.2);
}

.apply-button {
    transition: all 0.3s ease;
}

.apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(65, 84, 145, 0.3);
}

.contact-link {
    display: inline-flex;
    align-items: center;
}

.contact-link i {
    margin-left: 4px;
    transition: all 0.3s ease;
}

.contact-link:hover i {
    transform: translateX(2px);
}

.scholarship-info-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(65, 84, 145, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #415492;
    font-size: 1.3rem;
}

.info-content h4 {
    color: #415492;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.scholarship-apply-banner {
    background-color: #415492;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.apply-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.apply-content h2 {
    color: #415492;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.apply-content p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Enhanced Scholarship Responsive Styles */
.scholarship-banner {
    background-image: url('../images/beasiswa/header.png');
    background-size: cover;
    background-position: center;
    height: 210px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.scholarship-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(65, 84, 145, 0.7) 0%, rgba(65, 84, 145, 0.4) 100%);
    z-index: 1;
    animation: gradientShift 10s infinite alternate ease-in-out;
}

.scholarship-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    padding-top: 60px;
}

.banner-decorative-shape {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: 2;
    top: -125px;
    right: -50px;
    animation: shapeFloat 15s infinite alternate ease-in-out;
}

.banner-decorative-shape-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    z-index: 2;
    bottom: -75px;
    left: 10%;
    animation: shapeFloat 10s infinite alternate-reverse ease-in-out;
}

@keyframes gradientShift {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes shapeFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(15px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Mobile responsiveness for the banner */
@media (max-width: 991.98px) {
    .scholarship-container {
        padding: 40px 0;
    }
    
    .scholarship-banner {
        height: 180px;
    }
    
    .page-title h1 {
        font-size: 2.2rem;
    }
    
    .page-title .subtitle {
        font-size: 1.1rem;
    }
    
    .scholarship-image {
        padding: 15px;
    }
    
    .scholarship-content {
        padding: 20px;
    }
    
    .scholarship-info-box {
        padding: 20px;
    }
    
    .apply-content {
        padding: 25px;
    }
    
    .apply-content h2 {
        font-size: 1.6rem;
    }
    
    .banner-content {
        padding-top: 50px;
    }
}

@media (max-width: 767.98px) {
    .scholarship-container {
        padding: 30px 15px;
    }
    
    .scholarship-banner {
        height: 150px;
    }
    
    .page-title {
        margin-bottom: 30px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .page-title .subtitle {
        font-size: 1rem;
    }
    
    .scholarship-card {
        margin-bottom: 20px;
    }
    
    .scholarship-card .row {
        flex-direction: column;
    }
    
    .scholarship-image {
        padding: 15px;
        max-height: 200px;
        width: 100%;
    }
    
    .scholarship-image .image-container {
        height: 100%;
        padding: 10px;
    }
    
    .scholarship-image img {
        max-height: 130px;
        margin: 0 auto;
    }
    
    .scholarship-content {
        padding: 15px 20px 25px;
    }
    
    .scholarship-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .scholarship-badge {
        display: table;
        margin: 0 auto 15px;
    }
    
    .scholarship-content p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .scholarship-features {
        justify-content: center;
    }
    
    .scholarship-features .feature-item {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .scholarship-cta {
        text-align: center;
    }
    
    .scholarship-info-box {
        flex-direction: column;
        padding: 20px;
        margin: 30px 0;
    }
    
    .info-icon {
        margin: 0 auto 15px;
    }
    
    .info-content {
        text-align: center;
    }
    
    .info-content h4 {
        font-size: 1.1rem;
    }
    
    .scholarship-apply-banner {
        padding: 30px 15px;
    }
    
    .apply-content {
        padding: 20px;
        text-align: center;
    }
    
    .apply-content h2 {
        font-size: 1.4rem;
    }
    
    .apply-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .banner-content {
        padding-top: 40px;
    }
    
    .banner-decorative-shape {
        width: 150px;
        height: 150px;
        top: -75px;
        right: -75px;
    }
    
    .banner-decorative-shape-2 {
        width: 100px;
        height: 100px;
        bottom: -50px;
        left: 5%;
    }
}

@media (max-width: 575.98px) {
    .scholarship-container {
        padding: 25px 10px;
    }
    
    .scholarship-banner {
        height: 120px;
    }
    
    .page-title h1 {
        font-size: 1.6rem;
        margin: 5px 0 10px;
    }
    
    .page-title .subtitle {
        font-size: 0.9rem;
    }
    
    .scholarship-image {
        min-height: 160px;
        padding: 10px;
    }
    
    .scholarship-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .scholarship-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .scholarship-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .scholarship-features {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
    
    .apply-content {
        padding: 15px;
    }
    
    .apply-content h2 {
        font-size: 1.3rem;
    }
    
    .apply-content p {
        font-size: 0.9rem;
    }
    
    .scholarship-cta .btn {
        display: inline-block;
        width: auto;
    }
    
    .banner-content {
        padding-top: 30px;
    }
    
    .banner-decorative-shape {
        width: 150px;
        height: 150px;
        top: -75px;
        right: -75px;
    }
    
    .banner-decorative-shape-2 {
        width: 100px;
        height: 100px;
        bottom: -50px;
        left: 5%;
    }
}

@media (max-width: 400px) {
    .scholarship-banner {
        height: 100px;
    }
    
    .page-title h1 {
        font-size: 1.4rem;
    }
    
    .scholarship-image {
        min-height: 140px;
    }
    
    .scholarship-content {
        padding: 15px 15px 20px;
    }
    
    .scholarship-features .feature-item {
        font-size: 0.85rem;
    }
    
    .scholarship-info-box {
        padding: 15px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Ketentuan Pendaftaran Styles */
.ketentuan-container {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.ketentuan-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(65, 84, 145, 0.05);
    z-index: 0;
}

.ketentuan-container::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-color: rgba(65, 84, 145, 0.08);
    z-index: 0;
}

.ketentuan-banner {
    background-image: url('../images/beasiswa/header.png');
    background-size: cover;
    background-position: center;
    height: 210px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ketentuan-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(65, 84, 145, 0.7) 0%, rgba(65, 84, 145, 0.4) 100%);
    z-index: 1;
    animation: gradientShift 10s infinite alternate ease-in-out;
}

.ketentuan-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    padding-top: 60px;
}

.banner-decorative-shape {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: 2;
    top: -125px;
    right: -50px;
    animation: shapeFloat 15s infinite alternate ease-in-out;
}

.banner-decorative-shape-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    z-index: 2;
    bottom: -75px;
    left: 10%;
    animation: shapeFloat 10s infinite alternate-reverse ease-in-out;
}

@keyframes gradientShift {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes shapeFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(15px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Mobile responsiveness for the banner */
@media (max-width: 991.98px) {
    .ketentuan-banner {
        height: 180px;
    }
    
    .banner-content {
        padding-top: 50px;
    }
}

@media (max-width: 767.98px) {
    .ketentuan-banner {
        height: 150px;
    }
    
    .banner-content {
        padding-top: 40px;
    }
    
    .banner-decorative-shape {
        width: 150px;
        height: 150px;
        top: -75px;
        right: -75px;
    }
    
    .banner-decorative-shape-2 {
        width: 100px;
        height: 100px;
        bottom: -50px;
        left: 5%;
    }
}

.program-tabs {
    position: relative;
    z-index: 1;
}

.program-title {
    color: #415492;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
}

.custom-tabs {
    border-bottom: 2px solid rgba(65, 84, 145, 0.2);
}

.custom-tabs .nav-item {
    margin-bottom: -2px;
}

.custom-tabs .nav-link {
    color: #666;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.custom-tabs .nav-link:hover,
.custom-tabs .nav-link:focus {
    border-color: transparent;
    color: #415492;
}

.custom-tabs .nav-link.active {
    color: #415492;
    background-color: rgba(65, 84, 145, 0.05);
    border-bottom: 2px solid #415492;
}

.content-card {
    margin-top: 30px;
}

.ketentuan-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
    animation-delay: calc(var(--i, 0) * 0.1s);
    animation-fill-mode: both;
}

.ketentuan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.ketentuan-card .card-header {
    background-color: #415492;
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    border: none;
}

.ketentuan-card .card-header h4 {
    font-weight: 700;
    margin-bottom: 0;
}

.section-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.ketentuan-card .card-body {
    padding: 30px;
}

.ketentuan-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.ketentuan-list li {
    margin-bottom: 15px;
    color: #333;
}

.detail-list {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.detail-list .table {
    margin-bottom: 0;
}

.detail-list .table td {
    padding: 8px 15px;
    border-top: 1px solid rgba(65, 84, 145, 0.1);
}

.syarat-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.syarat-list li {
    margin-bottom: 12px;
    color: #333;
}

.note-list {
    margin-top: 8px;
    padding-left: 20px;
    color: #666;
}

.cta-section {
    text-align: center;
    margin: 40px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-info-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.contact-info-box .info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(65, 84, 145, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #415492;
    font-size: 1.3rem;
}

.contact-info-box .info-content h4 {
    color: #415492;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-box .info-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.scholarship-apply-banner {
    background-color: #415492;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.apply-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.apply-content h2 {
    color: #415492;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.apply-content p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Enhanced Scholarship Responsive Styles */
.scholarship-banner {
    background-image: url('../images/beasiswa/header.png');
    background-size: cover;
    background-position: center;
    height: 210px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.scholarship-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(65, 84, 145, 0.7) 0%, rgba(65, 84, 145, 0.4) 100%);
    z-index: 1;
    animation: gradientShift 10s infinite alternate ease-in-out;
}

.scholarship-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    padding-top: 60px;
}

.banner-decorative-shape {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: 2;
    top: -125px;
    right: -50px;
    animation: shapeFloat 15s infinite alternate ease-in-out;
}

.banner-decorative-shape-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    z-index: 2;
    bottom: -75px;
    left: 10%;
    animation: shapeFloat 10s infinite alternate-reverse ease-in-out;
}

@keyframes gradientShift {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes shapeFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(15px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Mobile responsiveness for the banner */
@media (max-width: 991.98px) {
    .scholarship-container {
        padding: 40px 0;
    }
    
    .scholarship-banner {
        height: 180px;
    }
    
    .page-title h1 {
        font-size: 2.2rem;
    }
    
    .page-title .subtitle {
        font-size: 1.1rem;
    }
    
    .scholarship-image {
        padding: 15px;
    }
    
    .scholarship-content {
        padding: 20px;
    }
    
    .scholarship-info-box {
        padding: 20px;
    }
    
    .apply-content {
        padding: 25px;
    }
    
    .apply-content h2 {
        font-size: 1.6rem;
    }
    
    .banner-content {
        padding-top: 50px;
    }
}

@media (max-width: 767.98px) {
    .scholarship-container {
        padding: 30px 15px;
    }
    
    .scholarship-banner {
        height: 150px;
    }
    
    .page-title {
        margin-bottom: 30px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .page-title .subtitle {
        font-size: 1rem;
    }
    
    .scholarship-card {
        margin-bottom: 20px;
    }
    
    .scholarship-card .row {
        flex-direction: column;
    }
    
    .scholarship-image {
        padding: 15px;
        max-height: 200px;
        width: 100%;
    }
    
    .scholarship-image .image-container {
        height: 100%;
        padding: 10px;
    }
    
    .scholarship-image img {
        max-height: 130px;
        margin: 0 auto;
    }
    
    .scholarship-content {
        padding: 15px 20px 25px;
    }
    
    .scholarship-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .scholarship-badge {
        display: table;
        margin: 0 auto 15px;
    }
    
    .scholarship-content p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .scholarship-features {
        justify-content: center;
    }
    
    .scholarship-features .feature-item {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .scholarship-cta {
        text-align: center;
    }
    
    .scholarship-info-box {
        flex-direction: column;
        padding: 20px;
        margin: 30px 0;
    }
    
    .info-icon {
        margin: 0 auto 15px;
    }
    
    .info-content {
        text-align: center;
    }
    
    .info-content h4 {
        font-size: 1.1rem;
    }
    
    .scholarship-apply-banner {
        padding: 30px 15px;
    }
    
    .apply-content {
        padding: 20px;
        text-align: center;
    }
    
    .apply-content h2 {
        font-size: 1.4rem;
    }
    
    .apply-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .banner-content {
        padding-top: 40px;
    }
    
    .banner-decorative-shape {
        width: 150px;
        height: 150px;
        top: -75px;
        right: -75px;
    }
    
    .banner-decorative-shape-2 {
        width: 100px;
        height: 100px;
        bottom: -50px;
        left: 5%;
    }
}

@media (max-width: 575.98px) {
    .scholarship-container {
        padding: 25px 10px;
    }
    
    .scholarship-banner {
        height: 120px;
    }
    
    .page-title h1 {
        font-size: 1.6rem;
        margin: 5px 0 10px;
    }
    
    .page-title .subtitle {
        font-size: 0.9rem;
    }
    
    .scholarship-image {
        min-height: 160px;
        padding: 10px;
    }
    
    .scholarship-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .scholarship-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .scholarship-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .scholarship-features {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
    
    .apply-content {
        padding: 15px;
    }
    
    .apply-content h2 {
        font-size: 1.3rem;
    }
    
    .apply-content p {
        font-size: 0.9rem;
    }
    
    .scholarship-cta .btn {
        display: inline-block;
        width: auto;
    }
    
    .banner-content {
        padding-top: 30px;
    }
    
    .banner-decorative-shape {
        width: 150px;
        height: 150px;
        top: -75px;
        right: -75px;
    }
    
    .banner-decorative-shape-2 {
        width: 100px;
        height: 100px;
        bottom: -50px;
        left: 5%;
    }
}

@media (max-width: 400px) {
    .scholarship-banner {
        height: 100px;
    }
    
    .page-title h1 {
        font-size: 1.4rem;
    }
    
    .scholarship-image {
        min-height: 140px;
    }
    
    .scholarship-content {
        padding: 15px 15px 20px;
    }
    
    .scholarship-features .feature-item {
        font-size: 0.85rem;
    }
    
    .scholarship-info-box {
        padding: 15px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Modern UI Enhancements - Add to the end of the file */
.ketentuan-banner::before,
.scholarship-banner::before {
    background: linear-gradient(135deg, rgba(25, 54, 97, 0.7) 0%, rgba(25, 54, 97, 0.4) 100%);
}

.ketentuan-container,
.scholarship-container {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

.card, .auth-card, .scholarship-card, .ketentuan-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .auth-card:hover, .scholarship-card:hover, .ketentuan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.ketentuan-card .card-header,
.scholarship-apply-banner {
    background-color: var(--primary-color);
}

.form-control {
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(25, 54, 97, 0.1);
    background-color: white;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    transition: all 0.3s ease;
}

.btn-blue-dark, .btn-blue-light {
    box-shadow: 0 4px 6px rgba(25, 54, 97, 0.1);
}

/* Enhanced iPad compatibility */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Additional body height adjustment */
    .body-pmb {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    /* Better vertical alignment on iPad */
    .hero-section {
        padding: 0;
        flex: 1;
        align-items: stretch;
    }
    
    .pmb.my-auto {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Fix buttons on iPad */
    .cta-buttons {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .btn-blue-dark, .btn-blue-light {
        white-space: nowrap;
        padding: 10px 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 145px;
    }
    
    /* Better positioning for stats on iPad */
    .stats-container {
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    /* Adjustments for image container */
    .hero-image-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix scrolling issues */
    html, body {
        height: 100%;
        overflow-x: hidden;
    }
    
    /* Improved welcome text alignment */
    .welcome-text {
        max-width: 90%;
    }
}

/* Fix image aspect ratio and container issues */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Improve image handling */
    .img-pmb {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    /* Fix for potential image container overflow */
    .hero-image-container {
        overflow: hidden;
    }
    
    /* Improved layout for the content section */
    .col-lg-5.col-md-6.pmb {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    /* Fix for the stats positioning */
    .stats-container {
        bottom: 60px;
        left: 20px;
    }
    
    /* Ensure proper spacing between stats boxes */
    .stat-box {
        margin-right: 8px;
        margin-bottom: 8px;
    }
    
    /* Fix education badge position */
    .education-badge {
        bottom: 20px;
        right: 20px;
    }
}

/* Fix for iPad Mini in portrait orientation */
@media (min-width: 768px) and (max-width: 820px) {
    .pmb h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-blue-dark, .btn-blue-light {
        font-size: 0.9rem;
        padding: 8px 16px;
        min-width: 130px;
    }
    
    .stats-container {
        bottom: 50px;
    }
    
    .stat-box {
        padding: 10px;
        min-width: 85px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Enhanced Tablet/Medium Device Responsiveness - Additional Styles */
@media (min-width: 600px) and (max-width: 1024px) {
    /* Improved height handling for medium devices */
    .body-pmb {
        min-height: calc(100vh - var(--header-height) - var(--footer-height));
        height: auto;
    }
    
    /* Better hero section layout */
    .hero-section {
        min-height: calc(100vh - var(--header-height) - var(--footer-height) - 20px);
        display: flex;
        align-items: stretch;
    }
    
    /* Improved text sizing for medium devices */
    .pmb h1 {
        font-size: 2.4rem;
        margin: 12px 0;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    /* Ensure buttons display properly */
    .cta-buttons {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-blue-dark, .btn-blue-light {
        padding: 10px 18px;
        font-size: 1rem;
        white-space: nowrap;
        min-width: 140px;
    }
    
    /* Fix image container on medium devices */
    .hero-image-container {
        height: 100%;
    }
    
    .img-pmb {
        object-fit: cover;
        height: 100%;
    }
    
    /* Better positioning for stats and badge */
    .stats-container {
        bottom: 70px;
        left: 25px;
        gap: 10px;
    }
    
    .stat-box {
        padding: 12px;
        min-width: 100px;
    }
    
    .education-badge {
        bottom: 20px;
        right: 20px;
    }
    
    /* Fix for portrait orientation */
    @media (orientation: portrait) {
        /* More compact layout for portrait mode */
        .hero-section {
            min-height: auto;
            padding: 10px 0;
            height: auto !important;
        }
        
        .pmb h1 {
            font-size: 2rem;
            margin: 8px 0;
        }
        
        .hero-subtitle {
            font-size: 0.95rem;
            margin-bottom: 10px;
        }
        
        .welcome-badge {
            margin-bottom: 5px;
            padding: 5px 12px;
        }
        
        .features-list {
            margin: 12px 0;
        }
        
        .feature-item {
            font-size: 0.95rem;
            margin-bottom: 6px;
        }
        
        .cta-buttons {
            margin-top: 15px;
        }
        
        .btn-blue-dark, .btn-blue-light {
            font-size: 0.95rem;
            padding: 8px 15px;
        }
        
        /* Adjust image container height */
        .hero-image-container {
            height: 50vh;
            min-height: 350px;
        }
        
        /* Adjust stats position */
        .stats-container {
            bottom: auto;
            top: 50%;
            left: 15px;
            transform: translateY(-50%);
            flex-direction: column;
            gap: 8px;
        }
        
        .stat-box {
            padding: 8px;
            min-width: 90px;
        }
        
        /* Move education badge to a better position */
        .education-badge {
            bottom: 15px;
            right: 15px;
            padding: 8px 12px;
        }
        
        /* Reduce padding in welcome text */
        .welcome-text {
            padding: 15px 10px;
        }
        
        /* Adjust column padding */
        .col-lg-5.col-md-6.pmb {
            padding: 10px 20px !important;
        }
    }
    
    /* iPad Pro specific adjustments */
    @media only screen and (min-device-width: 1024px) and (max-device-height: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
        .pmb h1 {
            font-size: 2.6rem;
        }
        
        .hero-subtitle {
            font-size: 1.1rem;
        }
        
        .stats-container {
            bottom: 80px;
        }
        
        .stat-box {
            min-width: 110px;
        }
    }
}

/* Fix for iPad Mini */
@media only screen and (min-device-width: 768px) and (max-device-width: 834px) {
    .pmb h1 {
        font-size: 2.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
        margin-bottom: 7px;
    }
    
    .btn-blue-dark, .btn-blue-light {
        font-size: 0.9rem;
        padding: 8px 15px;
        min-width: 130px;
    }
    
    .stats-container {
        bottom: 60px;
    }
    
    .stat-box {
        padding: 10px;
        min-width: 90px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    /* More compact layout for iPad Mini portrait */
    @media (orientation: portrait) {
        .hero-section {
            padding: 10px 0;
        }
        
        .pmb h1 {
            font-size: 1.8rem;
            margin: 5px 0;
        }
        
        .hero-subtitle {
            font-size: 0.9rem;
            margin-bottom: 8px;
        }
        
        .features-list {
            margin: 10px 0;
        }
        
        .feature-item {
            margin-bottom: 5px;
            font-size: 0.85rem;
        }
        
        .cta-buttons {
            margin-top: 12px;
        }
        
        .btn-blue-dark, .btn-blue-light {
            font-size: 0.85rem;
            padding: 7px 14px;
        }
        
        .hero-image-container {
            height: 45vh;
            min-height: 300px;
        }
        
        .stats-container {
            top: 40%;
        }
        
        .stat-box {
            padding: 6px;
            min-width: 80px;
        }
        
        .stat-number {
            font-size: 1.4rem;
        }
    }
}

/* Fix touch interactions on iPad */
@media (pointer: coarse) and (min-width: 768px) and (max-width: 1024px) {
    .feature-item, .cta-buttons .btn, .stat-box {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    
    .feature-item:active {
        transform: translateX(5px);
    }
    
    .btn-blue-dark:active, .btn-blue-light:active {
        transform: translateY(-2px);
    }
}

/* Smaller tablet devices in portrait mode */
@media (min-width: 540px) and (max-width: 767px) and (orientation: portrait) {
    .body-pmb {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 0;
    }
    
    .pmb h1 {
        font-size: 1.9rem;
        margin: 5px 0;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .welcome-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .features-list {
        margin: 10px 0;
    }
    
    .feature-item {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .cta-buttons {
        margin-top: 10px;
        gap: 8px;
    }
    
    .btn-blue-dark, .btn-blue-light {
        font-size: 0.9rem;
        padding: 8px 12px;
        min-width: 120px;
    }
    
    .hero-image-container {
        height: 45vh;
        min-height: 300px;
    }
    
    .stats-container {
        bottom: 50px;
        left: 15px;
        gap: 8px;
    }
    
    .stat-box {
        padding: 8px;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .education-badge {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
    }
    
    .badge-icon {
        width: 28px;
        height: 28px;
    }
    
    .badge-title {
        font-size: 0.85rem;
    }
    
    .badge-subtitle {
        font-size: 0.7rem;
    }
}

/* ------------------------------------------------------------
   Final hero overrides for tablet sizes (keep layout consistent)
   Ensures the hero image and overlay cards match desktop layout
   on iPad / medium devices and in portrait orientation
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Make sure image fills its container without offset */
    .hero-image-container .img-pmb {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* focus slightly to the right so subjects stay visible */
        object-position: 60% center;
    }

    /* Keep stats at the bottom-left like desktop */
    .stats-container {
        top: auto;
        bottom: 70px;
        left: 30px;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap; /* allow wrapping on narrower tablets */
        /* reserve space on the right for the education badge */
        width: calc(100% - 300px);
    }

    /* Keep badge at the bottom-right like desktop */
    .education-badge {
        top: auto;
        bottom: 25px;
        right: 30px;
        max-width: 290px;
    }
}

/* iPad Mini portrait fine-tuning */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    .hero-image-container .img-pmb {
        object-position: 65% center;
    }

    .stats-container {
        bottom: 60px;
        left: 20px;
        width: calc(100% - 280px); /* a bit more room in portrait */
    }

    .education-badge {
        bottom: 20px;
        right: 20px;
    }
}

/* Use dynamic viewport units on iOS Safari to stabilize heights - only on tablets and up */
@supports (height: 100dvh) {
    @media (min-width: 768px) {
        .body-pmb,
        .hero-section,
        .hero-image-container {
            min-height: calc(100dvh - var(--header-height) - var(--footer-height));
        }
    }
}

/* Ensure equal column heights for medium and larger screens */
@media (min-width: 768px) {
    .hero-section {
        align-items: stretch;
    }
    .hero-image-container {
        height: auto;
        min-height: calc(100vh - var(--header-height) - var(--footer-height));
    }
}