:root {
    --primary-color: #a5231c; 
    --primary-dark: #669bbc;
    --text-dark: #0e1831;
    --text-light: #314b6e;
    --bg-light: #f0f9ff;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: #fffcef;
    backdrop-filter: blur(10px);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 750;
    color: #a5231c;
    text-decoration: none;
}

.logo span {
    color: #cf7486;
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-left: auto; 
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-dark);
}


.hero {
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    position: relative;
    padding-top: 80px; 
}

.hero-content {
    padding: 60px 50px !important; 
    width: 80%;          
    max-width: 1000px;   
    margin: 0 auto;    
}


@media (max-width: 768px) {
    .hero-content {
        width: 90%;
        padding: 40px 20px !important;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #780000;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background-color: var(--text-light);
    transform: translateY(-3px);
}


.gallery-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 60px !important;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50px !important;
    background-color: #ffffff;      /* Warna Putih */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.section-title h2 {
    font-size: 2rem;
    color: #0e1831;
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 4px;
    background-color: #a5231c;
    margin: 0 auto;
    border-radius: 2px;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}


.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    opacity: 0; 
    transform: translateY(30px); 
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-date {
    font-size: 0.85rem;
    color: #c1121f;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #669bbc;
}

.card-desc {
    color: #003049;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;      
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.2s ease; 
}

.card:hover .card-desc {
    -webkit-line-clamp: unset;  
    overflow: visible;          
    color: #000000;    
}

.card {
    transition: all 0.3s ease;
    height: auto;               
    align-self: start;          
}

.about-section {
    padding: 80px 0;
    margin-top: 50px;
}

.about-content {
   display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 40px;              
    margin-top: 30px;
}
.about-text {
   width: 100%;
    max-width: 900px;       
    text-align: center;     
}

.about-text h3 {
   font-size: 1.8rem;
    color: #b91c1c;        
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}

.student-grid {
    display: flex;             
    flex-wrap: wrap;           
    justify-content: center;   
    gap: 15px;                 
    width: 100%;
    margin-top: 20px;
}

.student-card {
    background: #ffffff;
    padding: 15px 10px;        
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 5px solid #b91c1c;
    transition: transform 0.2s;
    flex-basis: 200px;         
    flex-grow: 1;              
    max-width: 250px;          
    display: flex;             
    align-items: center;
    justify-content: center;
}

.student-card:hover {
    transform: translateY(-5px);
    background: #fff5f5;
}

.student-card p {
    font-weight: 700;          
    color: #333;
    margin: 0;
    font-size: 0.9rem;         
    line-height: 1.3;          
}

.about-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-box {
    background: #ffffff; 
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-box p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column; 
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fffcef;
    margin: auto;
    padding: 0;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        width: 900px; 
        height: 550px;
        max-height: 90vh;
        overflow: hidden;
    }
    .modal-text {
        width: 100%;
        flex: 1;
        padding: 30px;
        overflow-y: auto; 
        color: #1e293b !important;
        background-color: #ffffff;
    }
}

.modal-image {
    width: 50%;
    height: 100%;      
    flex: 1;          
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    width: 50%;
    flex: 1;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: #780000;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    transition: 0.3s;
}

.close-btn:hover {
    background-color: #999;
}

.modal-report {
    margin-top: 10px;
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.8;
}


@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.show-animate {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background-color: var(--white);
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.about-section {
    padding: 80px 0;
    background-color: #fadad9; 
    margin-top: 50px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 4px solid var(--primary-color); 
}

.info-box h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-box p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
}

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; } 
    .modal-content { height: auto; }
    .modal-image { height: 250px; }
}