/* View-specific styles for app/Views/pendaftar/beranda/index.php */
body.index-page { font-family: 'Roboto', sans-serif; color: #111; }
:root { --beranda-tosca: #0f8f8f; --beranda-tosca-dark: #087474; --beranda-tosca-soft: #e7f7f6; }
html { scroll-behavior: smooth; }
body.index-page .header {
    background: var(--beranda-tosca);
    box-shadow: 0 3px 12px rgba(8, 116, 116, .2);
}
body.index-page .navmenu a,
body.index-page .navmenu a:focus { color: #fff; }
body.index-page .navmenu li:hover > a,
body.index-page .navmenu .active,
body.index-page .navmenu .active:focus { color: #d9fffb; }
body.index-page main > section { border-bottom: 2px solid #b3d8d5; }
body.index-page main > section:last-child { border-bottom: 0; }
body.index-page .hero { padding: 60px 0; }
body.index-page .hero h2 { font-weight:700; color:#0b5; letter-spacing:1px; }
body.index-page .hero h3 { margin-top:6px; font-weight:600; color:#0a58ca; }
body.index-page .hero .text-black { color:#333; font-size:1.05rem; }

/* Slightly smaller hero title and subtitle for better balance */
.hero .display-6 { font-size:1.75rem; line-height:1.1; font-weight:700; }
.hero h3 { font-size:1.05rem; margin-top:6px; font-weight:600; }
.cta-btn { background:#0a58ca; color:#fff; display:inline-block; padding:12px 22px; border-radius:10px; text-decoration:none; font-weight:600; box-shadow:0 6px 18px rgba(10,88,202,.15); transition:transform .14s ease, box-shadow .14s ease; }
.cta-btn:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(10,88,202,.18); }
.hero .btn-secondary { background:#6c757d; border:0; color:#fff; padding:10px 18px; border-radius:8px; margin-left:12px; }
.info-item i { font-size:28px; color:#0a58ca; margin-right:12px; }
.about .content h3 { color:#0b5; }
.contact .info-item h3 { margin:0 0 6px 0; font-size:1rem; }
.section-title h2 { color:#0a58ca; font-size: 1.35rem; line-height: 1.25; }
.section-title {
    background: var(--beranda-tosca-soft);
    border: 1px solid #c5e1df;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(8, 116, 116, .08);
    padding: 16px 20px 12px;
}
.section-title h2 { margin-bottom: 6px; }
.section-title p { margin-bottom: 0; }
footer.footer { background:#f8f9fa; padding:18px 0; }
body.index-page footer.footer {
    background: var(--beranda-tosca);
    color: #fff;
    padding: 22px 0;
}
body.index-page footer.footer small { color: #fff; }
.glightbox.pulsating-play-btn { position:absolute; left:20px; top:20px; }
/* Card tweaks for tighter layout */
.about .card { margin-bottom: 0; }
.about .card .card-body { padding: 14px 16px; }
.about .card .card-body ul { margin: 0; padding-left: 20px; }
/* Reduce vertical spacing for list items inside cards in About section */
.about .card .card-body ul li { margin-top: 8px; margin-bottom: 8px; line-height: 1.45; }
@media (max-width:767px){ body.index-page .hero{padding:24px 0} body.index-page .hero h2{font-size:1.45rem} }

#beranda,
#pengumuman,
#about,
#contact {
	scroll-margin-top: 95px;
}

/* Make Beranda (hero) and About sections more compact (reduced vertical spacing) */
.hero, #pengumuman.section, #about.section {
	min-height: auto;
	padding: 24px 0 12px 0;
	display: flex;
	align-items: center;
}

body.index-page #beranda.hero {
    padding-top: 12px;
    padding-bottom: 24px;
    background: linear-gradient(180deg, #e5f7f5 0%, #f3fbfa 100%);
}

.about .content { width: 100%; display:flex; flex-direction:column; justify-content:center; }

body.index-page #about {
    background: linear-gradient(180deg, #f3fbfa 0%, #ffffff 100%);
}
.about-intro-title {
    display: block;
    width: 100%;
    color: var(--beranda-tosca-dark);
    background: #e7f7f6;
    border: 1px solid #c5e1df;
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1.25;
    padding: 12px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 7px rgba(8, 116, 116, .08);
}
.about-intro-text { color: #475569; }
.about .card {
    border: 1px solid #c5e1df;
    border-top: 4px solid var(--beranda-tosca);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(8, 116, 116, .12) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
.about .card:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(8, 116, 116, .12) !important; }
.about .card .card-title { color: var(--beranda-tosca-dark); font-size: 1.05rem; }
.about .card .card-title i { color: var(--beranda-tosca); font-size: .95rem; }
.about .card a { color: #0a58ca; }

body.index-page #helpdesk {
    padding: 18px 0 22px;
}
body.index-page #helpdesk .section-title {
    margin-bottom: 12px !important;
    padding: 10px 16px 8px;
}
body.index-page #helpdesk .section-title h2 { font-size: 1.35rem; }
body.index-page #helpdesk .section-title p { font-size: .92rem; }
body.index-page #helpdesk .card-body { padding: 16px 18px; }
body.index-page #helpdesk .row { --bs-gutter-y: .65rem; }
body.index-page #helpdesk textarea { height: 72px; min-height: 72px; }
body.index-page #helpdesk .form-label { font-size: .84rem; margin-bottom: 4px; }
body.index-page #helpdesk .form-control,
body.index-page #helpdesk .form-select {
    font-size: .84rem;
    padding: .42rem .65rem;
}

/* Ensure hero image card matches About card styling */
.about-card .card-body { padding: 18px 20px; background: var(--surface-color); }
/* Ensure sections are stacked vertically (Beranda above, About below) */
.main { display: block; }
.main > section { display: block; width: 100%; }

/* Variable for hero image sizing */
:root { --hero-image-max-height: 320px; }

/* Ensure hero columns/cards are equal height and content is centered */
.hero .row { align-items: stretch; }
/* Reduce vertical gaps inside rows to tighten spacing */
.hero .row, .about .row { row-gap: 0.75rem; }

.hero-merged-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.hero-merged-card .card-body {
    padding: 28px 30px;
}

.hero-period-highlight {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #dff4e8;
    border: 1px solid #b9e7c9;
    border-radius: 14px;
    padding: 10px 14px;
}

.hero-period-badge {
    display: inline-flex;
    align-items: center;
    background: #198754;
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hero-period-text {
    color: #2f3a4a;
    font-size: 1rem;
    font-weight: 500;
}

.hero-merged-image-wrap {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-merged-image-wrap img {
    width: 100%;
    max-width: 100%;
    max-height: var(--hero-image-max-height);
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (min-width: 992px) {
	.hero-merged-card .card-body {
        min-height: 320px;
    }
    .hero-merged-card .row {
        min-height: 100%;
    }
}

/* Smaller hero buttons (override Bootstrap .btn-lg in this view) */
.hero .btn-lg { padding: 0.375rem 0.65rem; font-size: 0.95rem; }
.hero .btn { padding: 0.35rem 0.6rem; font-size: 0.92rem; }
.hero-action-btn {
    min-width: 165px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-forgot-password { margin-top: 10px; }
.hero-forgot-password a {
    color: var(--beranda-tosca-dark);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}
.hero-forgot-password a:hover { text-decoration: underline; }
.hero .btn-success { background: var(--beranda-tosca); border-color: var(--beranda-tosca); }
.hero .btn-success:hover { background: var(--beranda-tosca-dark); border-color: var(--beranda-tosca-dark); }
.hero .btn-outline-primary {
    color: #fff;
    background: var(--beranda-tosca);
    border-color: var(--beranda-tosca);
}
.hero .btn-outline-primary:hover {
    color: #fff;
    background: var(--beranda-tosca-dark);
    border-color: var(--beranda-tosca-dark);
}
@media (max-width:767px){
    .hero .btn-lg, .hero .btn { padding: 0.45rem 0.75rem; font-size: 0.92rem; }
    .hero-merged-card .card-body { padding: 20px; }
    .hero-merged-image-wrap { min-height: auto; }
    :root { --hero-image-max-height: 260px; }
    .hero-period-highlight { width: 100%; }
    body.index-page #beranda.hero { padding-top: 10px; }
}

.announcement-card {
	border: 0;
	border-radius: 14px;
}

.announcement-badge {
	display: inline-block;
	background: #e8f1ff;
	color: #0a58ca;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
}

.announcement-list {
	padding-left: 18px;
}

.announcement-list li {
	margin-bottom: 10px;
	line-height: 1.5;
}

.announcement-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
}

.announcement-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #e8f1ff;
	color: #0a58ca;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.announcement-table th {
	background: #e8f1ff;
	color: #0a58ca;
	text-align: center;
	vertical-align: middle;
}

.announcement-table td {
	vertical-align: middle;
}

.announcement-search-wrap {
	max-width: 320px;
}

.announcement-search-wrap .form-control {
	background: #fff;
	border: 1px solid #d7e3f4;
	box-shadow: none;
}

.announcement-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
}

.announcement-page-size-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: .9rem;
}

.announcement-page-size-label .form-select { width: auto; min-width: 68px; }
.announcement-page-info { color: #64748b; font-size: .9rem; }
.announcement-table-footer .page-link { color: var(--beranda-tosca-dark); }
.announcement-table-footer .page-item.active .page-link {
    background: var(--beranda-tosca);
    border-color: var(--beranda-tosca);
    color: #fff;
}

@media (max-width: 1199px) {
    body.index-page .navmenu ul { background: var(--beranda-tosca); }
    body.index-page .navmenu a,
    body.index-page .navmenu a:focus { color: #fff; }
    body.index-page .mobile-nav-toggle { color: #fff; }
}

@media (max-width: 767px) {
    .hero-action-btn { width: 100%; margin: 0 0 8px !important; }
    .announcement-table-footer { align-items: flex-start; flex-direction: column; }
    .announcement-table-footer nav { width: 100%; overflow-x: auto; }
}
