/* Reset dan Typography Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.school-info h1 {
    color: #003366;
    font-size: 1.8rem;
}

.school-info p {
    color: #666;
    font-size: 0.9rem;
}

nav ul {
    display: flex;
    list-style: none;
    background-color: #003366;
}

nav ul li {
    padding: 0;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #0055aa;
}

nav ul li a.active {
    background-color: #e63946;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #d62828;
}

/* Page Header */
.page-header {
    background-color: #003366;
    color: white;
    padding: 100px 0 50px 0;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
}

.profile-header {
    background-color: #003366;
    color: white;
    padding: 100px 0 50px 0;
    text-align: center;
    margin-top: 70px;
}

.profile-header h1 {
    font-size: 2.5rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about h2, .facilities h2, .activities h2, .news h2, .contact h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #003366;
    font-size: 2rem;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.vision-mission {
    margin-top: 30px;
}

.vision, .mission {
    margin-bottom: 20px;
}

.mission ul {
    padding-left: 20px;
}

.mission li {
    margin-bottom: 10px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Profile Content */
.profile-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.profile-section {
    margin-bottom: 50px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63946;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.profile-table td:first-child {
    font-weight: bold;
    width: 30%;
}

.vision-mission-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.goals-list {
    padding-left: 20px;
}

.goals-list li {
    margin-bottom: 15px;
}

.motto {
    font-style: italic;
    font-size: 1.5rem;
    color: #e63946;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border-left: 5px solid #e63946;
}

/* Facilities Section */
.facilities {
    padding: 80px 0;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.facility-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.facility-item:hover {
    transform: translateY(-10px);
}

.facility-item h3 {
    color: #003366;
    margin-bottom: 15px;
}

/* Activities Section */
.activities {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.activity-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.activity-item h3 {
    color: #003366;
    margin-bottom: 15px;
}

/* News Section */
.news {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    color: #003366;
    margin-bottom: 15px;
}

.date {
    display: block;
    color: #e63946;
    font-weight: bold;
    margin-top: 15px;
}

/* News Detail */
.news-item.detail {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item.detail h2 {
    color: #003366;
    margin: 20px 0;
}

.news-date {
    color: #e63946;
    font-weight: bold;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #003366;
    border: 1px solid #ddd;
}

.page-link.active, .page-link:hover {
    background-color: #003366;
    color: white;
}

/* Activities Content */
.activities-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.activities-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.activities-category {
    margin-bottom: 60px;
}

.activities-category h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.activity-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.activity-card h3 {
    color: #003366;
    padding: 15px 20px 5px 20px;
}

.activity-card p {
    padding: 0 20px 20px 20px;
    color: #666;
}

.activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-item.academic, .activity-item.character {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-item.academic h3, .activity-item.character h3 {
    color: #003366;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info-details .contact-item {
    margin-bottom: 30px;
}

.contact-info-details .contact-item h3 {
    color: #003366;
    margin-bottom: 10px;
}

.map-container {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-caption {
    padding: 15px;
    text-align: center;
    background-color: #003366;
    color: white;
}

.contact-form-section {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
    color: #003366;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.staff-directory {
    padding: 80px 0;
    background-color: #fff;
}

.staff-directory h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 50px;
    font-size: 2rem;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.staff-member {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.staff-member h3 {
    color: #003366;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        flex: 1 0 auto;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .vision-mission-detail {
        grid-template-columns: 1fr;
    }
    
    .contact-main {
        grid-template-columns: 1fr;
    }
}