/* assets/frontend/css/custom.css */

:root {
	--primary-color: #007bff; /* Bootstrap's default blue, you can change this */
	--primary-hover-color: #0056b3;
	--secondary-color: #6c757d; /* Bootstrap's default gray */
	--light-bg-color: #f8f9fa; /* Current light-background */
	--card-bg-color: #ffffff;
	--text-color: #333;
	--heading-color: #222;
	--border-color: #dee2e6;
	--box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	--box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
	--border-radius: 0.5rem; /* Softer rounded corners */
}

body {
	font-family: "Poppins", sans-serif;
	color: var(--text-color);
	background-color: #fff; /* Default white background */
}

.light-background {
	background-color: var(
		--light-bg-color
	) !important; /* Ensure it overrides if needed */
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Roboto", sans-serif;
	color: var(--heading-color);
	font-weight: 600; /* Bolder headings */
}

.section-title h2 {
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--primary-color); /* Make section titles use primary color */
	margin-bottom: 10px;
}

.section-title p {
	font-size: 1.1rem;
	color: var(--secondary-color);
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	padding: 12px 25px;
	font-size: 1rem;
	border-radius: var(--border-radius);
	transition: background-color 0.3s ease, border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.btn-primary:hover {
	background-color: var(--primary-hover-color);
	border-color: var(--primary-hover-color);
	box-shadow: var(--box-shadow-hover);
}

.btn-outline-primary {
	border-color: var(--primary-color);
	color: var(--primary-color);
	padding: 12px 25px;
	font-size: 1rem;
	border-radius: var(--border-radius);
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-outline-primary:hover {
	background-color: var(--primary-color);
	color: #fff;
	box-shadow: var(--box-shadow-hover);
}

/* Sticky Header Enhancement */
.header.sticky-top {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
	backdrop-filter: blur(5px); /* Nice blur effect for modern browsers */
}

.navmenu ul li a {
	font-weight: 500; /* Slightly bolder nav links */
}

.navmenu ul li a.active,
.navmenu ul li a:hover {
	color: var(--primary-color);
}

.hero.section {
	padding: 100px 0; /* More padding */
	position: relative; /* For potential background/overlay */
	background: linear-gradient(135deg, var(--primary-color) 0%, #a37eff 100%);
	color: #fff;
}

.hero-background-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: -2;
}
.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: -1;
}
.hero h1,
.hero .lead {
	color: #fff;
}

.hero h1 {
	font-size: 3rem; /* Larger heading */
	font-weight: 700;
}

.hero .lead {
	font-size: 1.3rem;
	font-weight: 300; /* Lighter lead text */
}

.hero .btn-lg {
	padding: 14px 30px;
	font-size: 1.1rem;
}

.pengumuman-card {
	/* Using Bootstrap's card class as base */
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background-color: var(--card-bg-color);
}

.pengumuman-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--box-shadow-hover);
}

.pengumuman-img-container {
	width: 100%;
	height: 200px; /* Fixed height for consistency */
	overflow: hidden;
	border-top-left-radius: var(--border-radius);
	border-top-right-radius: var(--border-radius);
}

.pengumuman-img-container img.card-img-top {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Ensures image covers the area without distortion */
}

.pengumuman-card .card-body {
	padding: 1.25rem;
}

.pengumuman-card .card-title {
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.pengumuman-card .card-text {
	font-size: 0.9rem;
	line-height: 1.6;
}

.modal-header {
	background-color: var(--primary-color);
	color: white;
}
.modal-header .modal-title {
	color: white;
}
.modal-header .btn-close {
	filter: invert(1) grayscale(100%) brightness(200%); /* Makes close button white */
}

.kandidat-card {
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background-color: var(--card-bg-color);
}

.kandidat-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--box-shadow-hover);
}

.kandidat-img-container {
	width: 150px;
	height: 150px;
	overflow: hidden;
	border: 4px solid var(--primary-color); /* Border around profile pic */
}

.kandidat-img-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kandidat-card .card-title {
	color: var(--heading-color); /* Darker for names */
	font-weight: 600;
}

.kandidat-card .accordion-button {
	font-weight: 500;
	padding: 0.8rem 1.25rem;
	background-color: #f8f9fa; /* Lighter background for accordion buttons */
}

.kandidat-card .accordion-button:not(.collapsed) {
	color: var(--primary-color);
	background-color: #eef4ff; /* A light blue when expanded */
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.kandidat-card .accordion-button:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Focus ring consistent with primary */
}

.kandidat-card .accordion-body {
	font-size: 0.9rem;
	line-height: 1.6;
	background-color: #fff; /* Ensure body is white */
}

.tentang .section-title h2 {
	/* Specific title style if needed */
	color: var(--primary-color); /* Already handled by global section title */
}

.tentang ul li {
	padding-left: 10px; /* Align text better with icon */
	margin-bottom: 10px;
}
.tentang ul li i {
	color: var(--primary-color); /* Ensure icon color */
	font-size: 1.2rem; /* Slightly larger icons */
	margin-right: 8px;
}

.faq .faq-item {
	background-color: var(--card-bg-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	margin-bottom: 15px;
	padding: 15px 20px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq .faq-item h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--heading-color);
}

.faq .faq-item .faq-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
	padding: 0 0px;
	font-size: 0.95rem;
	line-height: 1.7;
}

.faq .faq-item.faq-active .faq-content {
	max-height: 300px; /* Adjust if content is longer */
	padding: 15px 0px 0px;
}

.faq .faq-item .faq-toggle {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
	color: var(--primary-color);
}

.kontak .info-item {
	background-color: var(--card-bg-color);
	padding: 20px;
	border-radius: var(--border-radius);
	margin-bottom: 20px;
	box-shadow: var(--box-shadow);
	display: flex;
	align-items: flex-start; /* Align icon and text to top */
}

.kontak .info-item i {
	font-size: 2rem;
	color: var(--primary-color);
	margin-right: 20px;
	flex-shrink: 0;
	width: 40px; /* Give icon a fixed width */
	text-align: center;
}

.kontak .info-item h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: var(--heading-color);
}
.kontak .info-item p {
	font-size: 0.9rem;
	margin-bottom: 0;
}

.kontak .php-email-form {
	background-color: var(--card-bg-color);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

.kontak .php-email-form .form-control {
	border-radius: var(--border-radius);
	padding: 12px 15px;
}
.kontak .php-email-form .form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.footer {
	padding: 60px 0 30px 0; /* More padding */
	font-size: 0.9rem;
}

.footer .footer-about .logo img {
	max-height: 40px; /* Adjust as needed */
}

.footer .footer-about p {
	margin-top: 1rem;
	color: var(--secondary-color);
}

.footer h4 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1.2rem;
	position: relative;
	padding-bottom: 10px;
}
/* Underline for footer headings */
.footer h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 30px;
	height: 2px;
	background: var(--primary-color);
}

.footer .footer-links ul li {
	padding: 8px 0;
}
.footer .footer-links ul li a {
	color: var(--secondary-color);
	transition: color 0.3s;
	text-decoration: none;
}
.footer .footer-links ul li a:hover {
	color: var(--primary-color);
}

.footer .social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(0, 123, 255, 0.1); /* Light primary background */
	color: var(--primary-color);
	margin-right: 10px;
	transition: background-color 0.3s, color 0.3s;
}
.footer .social-links a:hover {
	background-color: var(--primary-color);
	color: #fff;
}

.footer .copyright {
	padding-top: 30px;
	border-top: 1px solid var(--border-color); /* Light border */
}
.footer .credits {
	margin-top: 5px;
	font-size: 0.85rem;
}
.footer .credits i {
	color: #e83e8c; /* Pinkish heart */
}

.scroll-top {
	background-color: var(--primary-color);
	border-radius: var(--border-radius);
	width: 44px;
	height: 44px;
}
.scroll-top:hover {
	background-color: var(--primary-hover-color);
}
.scroll-top i {
	font-size: 24px;
}
