/* ============================================
   IKA NOTARIAT UI — Landing Page
   Port dari legacy style.css — section-per-section
   Bootstrap override: --bs-primary = gold F1C152, --bs-dark = 0D0D0D
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");

/*** Spinner ***/
#spinner {
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.8s ease-out,
		visibility 0s linear 0.5s;
	z-index: 99999;
}
#spinner.show {
	transition:
		opacity 0.8s ease-out,
		visibility 0s linear 0s;
	visibility: visible;
	opacity: 1;
}

/*** Back to top ***/
.back-to-top {
	position: fixed;
	right: 30px;
	bottom: 90px;
	display: flex;
	width: 50px;
	height: 50px;
	align-items: center;
	justify-content: center;
	transition: 0.5s;
	z-index: 99;
}
.back-to-top:hover {
	background: var(--bs-dark);
	color: var(--bs-primary);
}

/*** Typography ***/
a {
	text-decoration: none !important;
}
h1,
h2,
h3,
.h1,
.h2,
.h3 {
	font-weight: 700 !important;
	font-family: "Open Sans", sans-serif !important;
}
h4,
h5,
h6,
.h4,
.h5,
.h6 {
	font-weight: 600 !important;
	font-family: "Open Sans", sans-serif !important;
}

/*** Button ***/
.btn {
	font-weight: 600;
	transition: 0.5s;
}
.btn-square {
	width: 38px;
	height: 38px;
}
.btn-sm-square {
	width: 32px;
	height: 32px;
}
.btn-md-square {
	width: 46px;
	height: 46px;
}
.btn-lg-square {
	width: 58px;
	height: 58px;
}
.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: normal;
}
.btn.btn-primary:hover {
	color: var(--bs-primary) !important;
	background: var(--bs-dark) !important;
	border-color: var(--bs-dark) !important;
}
.btn.btn-dark:hover {
	color: var(--bs-dark) !important;
	background: var(--bs-primary) !important;
	border-color: var(--bs-primary) !important;
}

/*** Topbar ***/
.topbar .topbar-inner {
	height: 45px;
	padding: 10px 15px;
	background: rgba(255, 255, 255, 0.5);
}
.topbar a,
.topbar a i {
	transition: 0.5s;
}
.topbar a:hover,
.topbar a i:hover {
	color: var(--bs-primary) !important;
}

/*** Navbar ***/
.fixed-top {
	transition: 0.5s;
}
.navbar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.navbar .navbar-nav .nav-link {
	padding: 12px;
	color: var(--bs-dark);
	font-size: 17px;
	font-weight: 600;
	transition: 0.5s;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
	color: var(--bs-primary);
}
.navbar .dropdown-toggle::after {
	border: none;
	content: "\f107";
	font-family: "Font Awesome 5 Free";
	font-weight: 700;
	vertical-align: middle;
	margin-left: 8px;
}
@media (min-width: 992px) {
	.navbar-collapse {
		background: transparent !important;
	}
	.navbar .nav-item .dropdown-menu {
		display: block;
		visibility: hidden;
		top: 100%;
		transform: rotateX(-75deg);
		transform-origin: 0% 0%;
		border: 0;
		transition: 0.5s;
		opacity: 0;
	}
	.navbar .nav-item:hover .dropdown-menu {
		transform: rotateX(0deg);
		visibility: visible;
		background: var(--bs-light) !important;
		transition: 0.5s;
		opacity: 1;
	}
}
.navbar-toggler {
	background: var(--bs-secondary);
	color: var(--bs-light) !important;
	padding: 10px 20px;
	border: 2px solid var(--bs-primary) !important;
	box-shadow: none !important;
}

/*** Hero Header with Carousel ***/
.hero-header {
	position: relative;
	height: 95vh;
	overflow: hidden;
}
.hero-header .carousel-item img {
	height: 100%;
	object-fit: cover;
}

/* Static overlay — di luar carousel-inner, tetap saat slide berganti */
.hero-header .hero-overlay {
	position: absolute;
	top: 50%;
	left: 10%;
	transform: translateY(-50%);
	text-align: left;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(1px);
	padding: 2.5rem;
	border-radius: 10px;
	max-width: 820px;
	min-width: 620px;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	z-index: 5;
}
.hero-header .hero-title {
	font-size: 3rem;
	font-weight: bold;
	color: var(--bs-dark);
	margin-bottom: 0.5rem;
}
.hero-header .hero-subtitle {
	font-size: 1.25rem;
	color: var(--bs-dark);
	margin-bottom: 0;
	letter-spacing: 2px;
}
.hero-header .hero-desc {
	font-size: 1.15rem;
	color: var(--bs-dark);
	opacity: 0.8;
}
@media (max-width: 992px) {
	.hero-header {
		height: 75vh;
	}
	.hero-header .hero-overlay {
		left: 5%;
		right: 5%;
		max-width: none;
		padding: 1.5rem;
	}
	.hero-header .hero-title {
		font-size: 2rem;
	}
	.hero-header .hero-desc {
		font-size: 0.95rem;
	}
}
@media (max-width: 768px) {
	.hero-header {
		height: 50vh;
	}
	.hero-header .hero-overlay {
		padding: 1rem;
	}
	.hero-header .hero-title {
		font-size: 1.8rem;
	}
}

/* Carousel control arrows */
.hero-header .carousel-control-prev,
.hero-header .carousel-control-next {
	width: 8%;
	opacity: 0.6;
	transition: opacity 0.3s;
}
.hero-header .carousel-control-prev:hover,
.hero-header .carousel-control-next:hover {
	opacity: 1;
}

/*** About ***/
.about a.btn.btn-light:hover {
	background: var(--bs-dark) !important;
	color: var(--bs-primary) !important;
	border: 0;
}

/*** Teams ***/
#teams {
	background: linear-gradient(
		180deg,
		var(--bs-body-bg) 0%,
		rgba(241, 193, 82, 0.05) 40%,
		rgba(241, 193, 82, 0.08) 60%,
		var(--bs-body-bg) 100%
	);
}
.teams .teams-card {
	position: relative;
}
.teams .teams-item {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	background: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	padding: 28px 20px 20px;
	text-align: center;
}

.teams .teams-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 20px;
	right: 20px;
	height: 3px;
	background: var(--bs-primary);
	border-radius: 0 0 3px 3px;
	transition:
		left 0.3s ease,
		right 0.3s ease;
}

.teams .teams-item .team-number {
	position: absolute;
	top: 10px;
	right: 14px;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--bs-secondary-color);
	opacity: 0.4;
	letter-spacing: -0.5px;
}

.teams .teams-item h5 {
	width: 100%;
	text-align: center;
	font-size: 0.925rem;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.teams .teams-item .team-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	gap: 8px;
	min-height: 160px;
}

.teams .teams-item .icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(241, 193, 82, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.5rem;
	transition:
		background 0.3s ease,
		transform 0.3s ease;
}

.teams .teams-item .description {
	flex-grow: 1;
	text-align: center;
	font-size: 0.85rem;
	color: var(--bs-secondary-color);
	line-height: 1.5;
}

.teams .teams-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
	border-color: var(--bs-primary);
	background: var(--bs-body-bg);
	color: inherit;
}

.teams .teams-item:hover::before {
	left: 0;
	right: 0;
}

.teams .teams-item:hover .icon {
	background: var(--bs-primary);
	transform: scale(1.1);
}

.teams .teams-item:hover .icon i {
	color: var(--bs-dark) !important;
}

.teams .teams-item .btn-primary {
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.teams .teams-item:hover .btn-primary {
	transform: scale(1.05);
	box-shadow: 0 4px 14px rgba(241, 193, 82, 0.4);
}

/*** Teams Modal ***/
.teamsModal .modal-content {
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease-in-out;
}

.teamsModal .modal-header {
	border-radius: 10px 10px 0 0;
	border-bottom: none;
}

.teamsModal .modal-body {
	padding: 20px;
}

.teamsModal .teams-icon i {
	font-size: 70px;
}

#modalListContent {
	list-style: none;
	padding-left: 0;
}

#modalListContent li {
	text-align: justify;
	padding: 4px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#modalListContent li i {
	color: var(--bs-primary);
	margin-right: 8px;
}

/*** Events ***/
.event-item img {
	transition: 0.5s;
}
.event .event-item a {
	transition: 0.5s;
}
.event-item:hover img {
	transition: 0.5s;
	transform: scale(1.1);
}
.event-item a:hover {
	background: var(--bs-dark);
	color: var(--bs-primary);
}

/* Event info list (location, fee, quota, status) */
.event-info {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: #666;
}
.event-info li {
	margin-bottom: 2px;
}
.event-info li i {
	width: 16px;
	color: var(--bs-primary);
	margin-right: 4px;
}

/* Event content scrollable */
.event-scroll-content {
	max-height: 240px;
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Disabled button for ended events */
.btn-event-ended {
	background: #adb5bd;
	border-color: #adb5bd;
	color: #fff;
	cursor: not-allowed;
	pointer-events: none;
}

/* Mobile event date info card — cohesive date block for small screens */
.event-date-mobile .border {
	border-color: rgba(0, 0, 0, 0.1) !important;
}
.event-date-mobile .fa-calendar-alt {
	opacity: 0.7;
}
/*** Event Detail / Article Detail — float-wrap image ***/
.article-body {
}
.article-body img {
	float: left;
	width: 45%;
	max-width: 340px;
	height: auto;
	margin: 0.25rem 1.25rem 1rem 0;
	border-radius: 8px;
}
.article-body::after {
	content: "";
	display: block;
	clear: both;
}
.event-meta {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 1.1rem 1.2rem;
	margin-bottom: 1.25rem;
}
.meta-item {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.meta-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.meta-item > i {
	flex: 0 0 22px;
	width: 22px;
	text-align: center;
	color: var(--color-primary);
	font-size: 1.05rem;
	line-height: 1.5;
	margin-top: 2px;
}
.meta-item strong {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8a8a8a;
	font-weight: 700;
}
.meta-item div {
	line-height: 1.5;
	font-size: 0.95rem;
	color: #222;
}

/*** Blog / Articles ***/
.blog-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}
.blog-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.blog-item .p-4 {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.blog-item p {
	flex-grow: 1;
}
.blog-item .btn-primary {
	margin-top: auto;
}
.blog-item img {
	height: 280px;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.blog-item:hover img {
	transform: scale(1.05);
}
.blog-item .blog-meta a,
.blog-item .blog-meta a i {
	transition: 0.5s;
}
.blog-item .blog-meta a:hover,
.blog-item .blog-meta a i:hover {
	color: var(--bs-primary) !important;
}

/* Article card excerpt — scrollable container */
.blog-excerpt {
	max-height: 100px;
	overflow-y: auto;
	scrollbar-width: thin;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.6;
}

/* Card lift hover (articles list, events list) */
.card-lift {
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}
.card-lift:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Image zoom on hover */
.card-lift .card-img-top {
	transition: transform 0.5s ease;
}
.card-lift:hover .card-img-top {
	transform: scale(1.04);
}

/* Card title — 2-line clamp with ellipsis */
.card-title-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3rem;
	line-height: 1.5;
}

/* Card excerpt — 3-line clamp with ellipsis */
.card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.5;
	font-size: 0.875rem;
	color: #666;
}

/* Article card image — placeholder when empty */
.blog-img-placeholder {
	height: 280px;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px 4px 0 0;
}
.blog-img-placeholder i {
	font-size: 2.5rem;
	color: #ccc;
}

/* Pinned badge */
.pinned-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--bs-primary);
	color: var(--bs-dark);
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 12px;
	z-index: 2;
	font-weight: 600;
}

/* Coming Soon placeholder card */
.blog-item.coming-soon {
	border: 2px dashed #ddd;
	background: #fafafa;
}
.blog-item.coming-soon .coming-soon-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	color: #999;
	flex-grow: 1;
}
.blog-item.coming-soon .coming-soon-body i {
	font-size: 2rem;
	margin-bottom: 0.75rem;
}
.blog-item.coming-soon .coming-soon-body h5 {
	color: #888;
	font-weight: 600;
}
.blog-item.coming-soon .coming-soon-body p {
	color: #aaa;
	font-size: 0.85rem;
	margin-bottom: 0;
}

/*** Team / Committee ***/
.team .team-img {
	height: 100%;
	padding: 25px;
	border-radius: 10px;
	background: var(--bs-white);
	overflow: hidden;
	box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.team .team-img img {
	width: 100%;
	height: 100%;
	max-height: 520px;
	border-radius: 10px;
	object-fit: cover;
}

.team .team-item {
	position: relative;
	overflow: hidden;
	padding: 10px;
	border-radius: 10px;
}

.team .team-item img {
	width: 100%;
	border-radius: 10px;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	transition: 0.5s;
	background: var(--bs-light);
	box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.team .team-item:hover img {
	transform: scale(1.2);
}

.team .team-item .team-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 4px 0;
	text-align: center;
}

.team .team-item .team-content .team-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bs-dark);
	line-height: 1.3;
}

.team .team-item .team-content .team-role {
	font-size: 0.75rem;
	color: var(--color-primary);
	font-style: italic;
}

/* Desktop: restore overlay hover */
@media (min-width: 768px) {
	.team .team-item .team-content {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		padding: 15px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		opacity: 0;
		transition: 0.5s;
		border-radius: 10px;
		text-align: center;
	}

	.team .team-item:hover .team-content {
		opacity: 1;
		background: rgba(241, 193, 82, 0.7);
	}

	/* Desktop: dark text on golden overlay */
	.team .team-item .team-content .team-role {
		color: var(--bs-dark);
	}
}

/*** Footer ***/
.footer {
	margin-top: 6rem;
	background: var(--bs-dark);
}
.footer .footer-item p {
	font-size: 16px;
	line-height: 35px;
}
.footer .border-top,
.footer .border-bottom {
	border-color: rgba(255, 255, 255, 0.08) !important;
}
.footer button {
	border: 0;
	transition: 0.5s;
}
.footer button:hover {
	background: var(--bs-dark);
	color: var(--bs-primary);
}
.footer-item a.btn.btn-light:hover {
	background: var(--bs-primary);
	color: var(--bs-dark) !important;
	border: var(--bs-primary);
}
.footer-item a,
.footer-item a i {
	transition: 0.5s;
}
.footer-item a:hover,
.footer-item a i:hover {
	color: var(--bs-primary) !important;
}

/* Footer dark background — pastikan teks kontak terbaca */
.footer .text-body {
	color: rgba(255, 255, 255, 0.7) !important;
}
.footer .text-body:hover {
	color: var(--bs-primary) !important;
}

/* Footer Search Results */
#searchResults .p-3:hover {
	background: var(--bs-light);
}
#searchResults {
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════
   Animation Keyframes (legacy animate.css subset)
   ═══════════════════════════════════════════ */
.animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale3d(0.3, 0.3, 0.3);
	}
	50% {
		opacity: 1;
	}
}
.zoomIn {
	animation-name: zoomIn;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.fadeInDown {
	animation-name: fadeInDown;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.fadeInUp {
	animation-name: fadeInUp;
	animation-delay: 0.2s;
}

/* Staggered delays for hero overlay elements */
.hero-overlay .hero-subtitle {
	animation-delay: 0s;
}
.hero-overlay .hero-title {
	animation-delay: 0.2s;
}
.hero-overlay .hero-desc {
	animation-delay: 0.4s;
}

/* ===== e-KTA card (public validation page) ===== */
.btn-gold {
	background: var(--color-primary);
	color: var(--color-dark);
	border: none;
	font-weight: 600;
}
.btn-gold:hover {
	color: var(--color-dark);
	opacity: 0.92;
}
@media print {
	body * {
		visibility: hidden;
	}
	#ektaCard,
	#ektaCard * {
		visibility: visible;
	}
	#ektaCard {
		position: static !important;
		margin: 0 !important;
		box-shadow: none !important;
		width: 662px;
		height: 992px;
	}
	@page {
		size: 662px 992px;
		margin: 0;
	}
}

/* ── Reveal animation (Intersection Observer) ─── */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.5s ease,
		transform 0.5s ease;
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered cascade — parent container gets reveal-stagger, children get reveal */
.reveal-stagger > .reveal:nth-child(1) {
	transition-delay: 0s;
}
.reveal-stagger > .reveal:nth-child(2) {
	transition-delay: 0.08s;
}
.reveal-stagger > .reveal:nth-child(3) {
	transition-delay: 0.16s;
}
.reveal-stagger > .reveal:nth-child(4) {
	transition-delay: 0.24s;
}
.reveal-stagger > .reveal:nth-child(5) {
	transition-delay: 0.3s;
}
.reveal-stagger > .reveal:nth-child(6) {
	transition-delay: 0.36s;
}
.reveal-stagger > .reveal:nth-child(7) {
	transition-delay: 0.42s;
}
.reveal-stagger > .reveal:nth-child(8) {
	transition-delay: 0.48s;
}
.reveal-stagger > .reveal:nth-child(9) {
	transition-delay: 0.54s;
}
.reveal-stagger > .reveal:nth-child(10) {
	transition-delay: 0.6s;
}
.reveal-stagger > .reveal:nth-child(11) {
	transition-delay: 0.66s;
}
.reveal-stagger > .reveal:nth-child(12) {
	transition-delay: 0.72s;
}
.reveal-stagger > .reveal:nth-child(13) {
	transition-delay: 0.78s;
}
.reveal-stagger > .reveal:nth-child(14) {
	transition-delay: 0.84s;
}
.reveal-stagger > .reveal:nth-child(15) {
	transition-delay: 0.9s;
}
.reveal-stagger > .reveal:nth-child(16) {
	transition-delay: 0.96s;
}

/* Honeypot anti-spam — hidden from humans, visible to bots */
.honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Disclaimer pembayaran — mengikuti praktik aksesibilitas (WCAG 1.4.8):
   teks RATA KIRI (ragged right), bukan justify penuh, karena justify pada
   teks pendek/layar sempit membuat spasi antar kata tidak merata.
   Tanda * dibuat menonjol (merah, hanging indent) sebagai penanda catatan. */
.disclaimer-text {
	position: relative;
	padding-left: 1.15rem;
	padding-right: 1rem;
	text-align: left;
	line-height: 1.5;
}

.disclaimer-text .req-star {
	position: absolute;
	left: 0;
	top: 0;
	color: #dc3545;
	font-weight: 700;
	line-height: inherit;
}

/* Nama anggota di modal Informasi Anggota.
   Sengaja TIDAK memakai nowrap: nama panjang akan meluber keluar kotak dan
   menabrak elemen lain. Yang dipakai adalah pemenggalan yang wajar:
   - text-wrap: balance     → baris terakhir tidak menggantung satu kata
   - overflow-wrap: break-word → token tanpa spasi tetap tidak menembus kartu
   - hyphens: auto          → pemenggalan mengikuti bahasa (html lang="id") */
#memberInfoName {
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.25;
    margin-bottom: .25rem;
}
