:root {
    --primary-color: #790d0d;
    --secondary-color: #d86691;
    --accent-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-brand img {
    height: 50px;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 30px;
    
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.card {
    transition: transform 0.3s;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.news-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.teacher-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facility-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
}

.sidebar-widget {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.announcement-item {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.announcement-item:last-child {
    border-bottom: none;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white;
}

.berita-thumbnail {
    width: 100%;
    height: 200px; /* Atur tinggi yang kamu inginkan di sini */
    object-fit: cover;
    object-position: center;
}

.berita-content h1,
.berita-content h2,
.berita-content h3,
.berita-content h4,
.berita-content h5,
.berita-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.berita-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.berita-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.berita-content ul,
.berita-content ol {
    margin-bottom: 1rem;
    padding-left: 20px;
}

/* --- New Styles for Registration Form --- */

.form-container-wrapper {
    background-color: white;
    padding: 4rem 0; /* py-16 */
}

.form-max-width {
    max-width: 768px; /* max-w-3xl */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
}

.form-page-title {
    font-size: 2.25rem; /* text-3xl */
    font-weight: bold; /* font-bold */
    text-align: center; /* text-center */
    margin-bottom: 0.5rem; /* mb-2 */
    color: var(--primary-dark); /* Match existing headings */
}

.form-description {
    text-align: center; /* text-center */
    color: var(--text-light); /* text-gray-600 */
    margin-bottom: 2rem; /* mb-8 */
}

/* Flash Messages */
.form-message {
    padding: 1rem; /* p-4 */
    border-radius: 8px; /* rounded */
    margin-bottom: 1rem; /* mb-4 */
    font-size: 0.95rem;
    border: 1px solid; /* Add border for messages */
}

.form-message.success {
    background-color: #d4edda; /* bg-green-100 equivalent */
    color: #155724; /* text-green-700 equivalent */
    border-color: #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da; /* bg-red-100 equivalent */
    color: #721c24; /* text-red-700 equivalent */
    border-color: #f5c6cb;
}

/* Registration Form Container */
.registration-form {
    background-color: var(--secondary-color); /* bg-gray-50 equivalent, or slightly lighter if needed */
    padding: 2rem; /* p-8 */
    border-radius: 8px; /* rounded-lg */
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* shadow-lg */
}

.form-section-title {
    font-weight: 600; /* font-semibold */
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 1rem; /* mb-4 */
    border-bottom: 1px solid #ddd; /* border-b */
    padding-bottom: 0.5rem; /* pb-2 */
    color: var(--primary); /* Match existing headings */
}

.form-section-title.mt-6 { /* Specific margin top for second section title */
    margin-top: 1.5rem; /* mt-6 */
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    gap: 1rem; /* gap-4 */
}

/* Responsive grid for 2 columns on medium screens */
@media (min-width: 768px) { /* md: breakpoint */
    .form-grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }


}

/* Form Group (label + input) */
.form-group {
    margin-bottom: 1rem; /* mb-4 */
}

.form-group label {
    display: block; /* Make label take full width */
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

/* Form Input Fields */
.form-input {
    width: 100%; /* w-full */
    border: 1px solid #ccc; /* border */
    border-radius: 4px; /* rounded */
    padding: 0.5rem; /* p-2 */
    box-sizing: border-box; /* Include padding in width */
    font-size: 1rem;
    color: var(--text);
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2); /* primary color shadow */
}

/* Specific styling for file inputs */
.form-input[type="file"] {
    padding: 0.75rem 0.5rem; /* Adjust padding for file input */
    line-height: 1.2; /* Adjust line height for better appearance */
}


/* Submit Button */
.form-submit-button {
    background-color: var(--primary-color); /* bg-blue-500 -> primary color */
    color: white; /* text-white */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    border-radius: 8px; /* rounded */
    width: 100%; /* w-full */
    margin-top: 1rem; /* mt-4 */
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.form-submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
