/* VARIABLES */
:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --secondary-color: #D2B48C;
    --accent-color: #2F4F4F;
    --light-color: #F5F5DC;
    --dark-color: #2C1810;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: 'Arial', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--gray-light);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* HEADER */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    color: var(--secondary-color);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* NAVIGATION */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 3px;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(47, 79, 79, 0.9));
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    padding: 0;
    margin: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 600px;
}

/* Overlay untuk kontras yang lebih baik */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* ABOUT SECTION */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.about-item h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--secondary-color);
    border: 10px solid var(--primary-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.image-placeholder {
    font-size: 3rem;
    opacity: 0.7;
}

.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.gallery-content {
    padding: 20px;
}

.gallery-content h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.gallery-description {
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--secondary-color);
}

.gallery-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
}

.gallery-photos {
    color: var(--accent-color);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    background: var(--white);
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.close-gallery {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-gallery:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.gallery-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.gallery-modal-image {
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.gallery-modal-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-modal-info {
    padding: 30px;
    background: var(--white);
}

.gallery-modal-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.gallery-modal-description {
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.gallery-modal-details {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--secondary-color);
}

.detail-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: var(--accent-color);
}

.detail-value {
    color: var(--dark-color);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-modal-body {
        grid-template-columns: 1fr;
    }
    
    .gallery-modal-image {
        padding: 20px;
    }
    
    .gallery-modal-info {
        padding: 20px;
    }
    
    .gallery-modal-title {
        font-size: 1.4rem;
    }
}

/* STUDENTS SECTION UPDATE */
.students-category {
    margin-bottom: 50px;
}

.category-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

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

.student-card {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.student-card:hover::before {
    transform: scaleX(1);
}

.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.student-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-color);
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    overflow: hidden;
    position: relative;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-initials {
    font-size: 1.8rem;
    font-weight: bold;
}

.student-card h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.student-position {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.student-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 5px;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

/* IMPROVED MODAL STYLES */
.student-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
}

.student-detail-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid var(--primary-color);
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.student-detail h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 2rem;
}

.student-detail-position {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.student-nim {
    color: var(--dark-color);
    font-size: 1rem;
    opacity: 0.8;
}

/* Info Sections */
.info-section {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-title-modal {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-modal i {
    color: var(--secondary-color);
}

/* Personal Info Grid */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
}

.info-label {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-label i {
    color: var(--primary-color);
    width: 16px;
}

.info-value {
    color: var(--dark-color);
    font-size: 1rem;
}

/* Bio Section */
.bio-text {
    line-height: 1.7;
    color: var(--dark-color);
    text-align: justify;
    font-size: 1rem;
}

/* Hobbies Section */
.hobbies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.hobby-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
    transition: var(--transition);
}

.hobby-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

/* Achievements Section */
.achievements-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-item:last-child {
    margin-bottom: 0;
}

.achievement-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 2px;
}

.achievement-text {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Animation for modal content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-section {
    animation: fadeInUp 0.5s ease-out;
}

.info-section:nth-child(2) { animation-delay: 0.1s; }
.info-section:nth-child(3) { animation-delay: 0.2s; }
.info-section:nth-child(4) { animation-delay: 0.3s; }

/* Responsive Modal Improvements */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .student-detail-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .student-detail h2 {
        font-size: 1.6rem;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .contact-links {
        justify-content: center;
    }
    
    .hobbies-container {
        justify-content: center;
    }
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: var(--accent-color);
}

.info-value {
    color: var(--dark-color);
}

.student-bio {
    text-align: left;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .student-detail-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .student-detail h2 {
        font-size: 1.5rem;
    }
}

/* SCHEDULE SECTION */
.schedule-container {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.schedule-tab {
    padding: 12px 24px;
    background: var(--light-color);
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 1rem;
    min-height: 44px;
}

.schedule-tab:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.schedule-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.schedule-day {
    display: none;
    animation: fadeIn 0.5s ease;
}

.schedule-day.active {
    display: block;
}

.day-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.day-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.schedule-classes {
    display: grid;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.schedule-classes::-webkit-scrollbar {
    width: 8px;
}

.schedule-classes::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 10px;
}

.schedule-classes::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.schedule-classes::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.class-item {
    display: flex;
    align-items: center;
    background: var(--gray-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.class-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.class-item:hover::before {
    left: 100%;
}

.class-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.class-time {
    min-width: 120px;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-time i {
    color: var(--primary-color);
}

.class-subject {
    flex: 1;
    font-weight: bold;
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-left: 20px;
}

.class-badge {
    padding: 6px 12px;
    border-radius: 15px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 15px;
}

/* Current Class Highlight */
.class-item.current {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.class-item.current .class-time,
.class-item.current .class-subject {
    color: var(--white);
}

.class-item.current .class-time i {
    color: var(--white);
}

/* Schedule Summary */
.schedule-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--secondary-color);
}

.summary-item {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
}

.summary-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.summary-label {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Responsive Schedule */
@media (max-width: 768px) {
    .schedule-tabs {
        gap: 5px;
    }
    
    .schedule-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .class-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .class-time {
        min-width: auto;
    }
    
    .class-subject {
        margin-left: 0;
    }
    
    .schedule-summary {
        grid-template-columns: 1fr;
    }
}

/* Animation for schedule */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.class-item {
    animation: slideInRight 0.5s ease-out;
}

/* CONTACT SECTION */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.contact-item h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* FOOTER */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-section p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* BUBBLE NOTIFICATION STYLES */
.bubble-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 20px 25px;
    border-radius: 15px;
    color: var(--white);
    font-weight: bold;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    backdrop-filter: blur(10px);
}

.bubble-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.bubble-notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.bubble-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-left: 5px solid #1e8449;
}

.bubble-loading {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border-left: 5px solid #d35400;
}

.bubble-error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-left: 5px solid #a93226;
}

.bubble-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bubble-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.bubble-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.bubble-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    font-weight: normal;
}

/* Loading spinner untuk bubble */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid var(--white);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive bubble */
@media (max-width: 768px) {
    .bubble-notification {
        top: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .bubble-notification.show {
        transform: translateY(0);
    }
    
    .bubble-notification.hide {
        transform: translateY(-100px);
    }
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
    /* FIX: Body & Container */
    body {
        font-size: 14px;
        line-height: 1.4;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .container {
        padding: 0 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* FIX: Header Mobile */
    header {
        padding: 12px 0 !important;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-text p {
        font-size: 0.7rem;
        opacity: 0.9;
        margin-top: 2px;
    }
    
    .logo-icon {
        font-size: 1.8rem;
        margin-right: 8px;
    }
    
    /* FIX: Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        transition: 0.3s;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        text-align: center;
        font-size: 1.1rem;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
    }
    
    .hamburger {
        display: flex;
        margin-left: 15px;
    }
    
    /* FIX: Hero Section Mobile */
    .hero {
        padding: 100px 0 50px;
        min-height: 60vh;
        display: flex;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: auto;
        min-width: 200px;
    }
    
    /* FIX: About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-item {
        flex-direction: row;
        text-align: left;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .about-item i {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .image-placeholder {
        height: 200px;
        font-size: 1rem;
    }
    
    .image-placeholder i {
        font-size: 2.5rem;
    }
    
    /* FIX: Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    /* FIX: Students Section Mobile */
    .students-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .student-card {
        padding: 15px 10px;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .student-avatar {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
    }
    
    .avatar-initials {
        font-size: 1.2rem;
    }
    
    .student-card h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .student-position {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .student-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* FIX: Schedule Mobile */
    .schedule-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .schedule-tab {
        padding: 12px 8px;
        font-size: 0.8rem;
        text-align: center;
        min-width: auto;
    }
    
    .day-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .class-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }
    
    .class-time {
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .class-subject {
        margin-left: 0;
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .class-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        margin-left: 0;
    }
    
    .schedule-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 20px;
    }
    
    .summary-item {
        padding: 15px 10px;
    }
    
    .summary-number {
        font-size: 1.8rem;
    }
    
    .summary-label {
        font-size: 0.75rem;
    }
    
    /* FIX: Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .contact-item i {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px;
    }
    
    /* FIX: Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* FIX: Modal Mobile */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .student-detail-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .student-detail h2 {
        font-size: 1.3rem;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 15px;
    }
    
    /* FIX: Bubble Notification Mobile */
    .bubble-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .bubble-notification.show {
        transform: translateY(0);
    }
}

/* ===== SMALL MOBILE FIXES ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .student-card {
        min-height: 120px;
        padding: 12px 8px;
    }
    
    .schedule-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedule-summary {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .nav-link,
    .btn,
    .student-card,
    .gallery-item,
    .schedule-tab {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .student-card:hover,
    .gallery-item:hover,
    .schedule-tab:hover {
        transform: none;
    }
    
    /* Add active states */
    .student-card:active,
    .gallery-item:active,
    .schedule-tab:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* ===== ORIENTATION SPECIFIC FIXES ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 30px;
        min-height: auto;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .modal-content {
        margin: 2% auto;
        max-height: 96vh;
    }
}

/* ===== SAFE AREA INSETS FOR NOTCH PHONES ===== */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    header {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .hero {
        padding-top: max(100px, env(safe-area-inset-top));
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Reduce animations for better performance */
    .student-card,
    .gallery-item,
    .about-item {
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ===== MOBILE HERO FIX ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero .container {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 20px 15px;
        transform: translateY(-20px); /* Sedikit naik di mobile */
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        transform: translateY(-10px);
    }
}

/* ===== MOBILE TOUCH FIX ===== */
@media (max-width: 768px) {
    /* Fix untuk student cards biar bisa di-click */
    .student-card {
        min-height: 44px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        padding: 20px 15px !important;
    }
    
    /* Fix untuk gallery items */
    .gallery-item {
        min-height: 44px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Prevent text selection */
    .student-card h3,
    .gallery-item h3,
    .student-position {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Larger touch targets untuk semua interactive elements */
    .nav-link,
    .btn,
    .schedule-tab {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== MOBILE TOUCH OPTIMIZATION ===== */
@media (max-width: 768px) {
    .student-card,
    .gallery-item,
    .btn,
    .schedule-tab,
    .nav-link {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Touch feedback */
    .student-card:active,
    .gallery-item:active,
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
        transition: transform 0.1s, opacity 0.1s;
    }
}

/* ===== ENHANCED MOBILE TOUCH FIX ===== */
/* Pastikan semua interactive elements mudah di-click di mobile */
@media (max-width: 768px) {
    /* Force pointer cursor untuk semua clickable elements */
    .student-card,
    .gallery-item,
    .btn,
    .schedule-tab,
    .nav-link,
    .social-links a {
        cursor: pointer !important;
    }
    
    /* Improved touch feedback */
    .student-card:active,
    .gallery-item:active,
    .btn:active,
    .schedule-tab:active {
        transform: scale(0.96) !important;
        opacity: 0.8 !important;
        transition: all 0.1s ease !important;
    }
    
    /* Prevent text selection on tap */
    .student-card h3,
    .gallery-item h3,
    .student-position,
    .btn,
    .schedule-tab {
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Optimize touch targets */
    .student-card {
        min-height: 140px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .gallery-item {
        min-height: 200px !important;
    }
}

/* ===== FALLBACK FOR OLDER BROWSERS ===== */
/* Pastikan compatibility maksimal */
.student-card,
.gallery-item {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

/* Force hardware acceleration untuk smoother animations */
.student-card,
.gallery-item,
.btn {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ===== FOOTER MOBILE FIX ===== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    .footer-section {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-section p {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 8px auto !important;
        width: 100% !important;
    }
}

/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 768px) {
    /* FIX 1: TAMPILKAN NAMA SEKOLAH */
    .logo-text p {
        display: block !important;
        visibility: visible !important;
        opacity: 0.9 !important;
        font-size: 0.7rem !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* FIX 2: HAMBURGER DI KANAN */
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .logo {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .navbar {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    .hamburger {
        margin-left: 15px !important;
    }
    
    /* FIX 3: STUDENT CARDS 2 KOLOM */
    .students-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .student-card {
        padding: 15px 10px !important;
        min-height: 140px !important;
    }
}

/* ===== MOBILE BRUTE FIX ===== */
@media (max-width: 768px) {
    /* FORCE 1: NAMA SEKOLAH HARUS MUNCUL */
    .logo-text p {
        display: block !important;
        visibility: visible !important;
        opacity: 0.9 !important;
        font-size: 0.7rem !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* FORCE 2: HAMBURGER DI KANAN */
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .logo {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .navbar {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .hamburger {
        margin-left: 15px !important;
        margin-right: 0 !important;
    }
    
    /* FORCE 3: STUDENT CARDS 2 KOLOM */
    .students-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .student-card {
        padding: 15px 10px !important;
        min-height: 140px !important;
    }
    
    .student-avatar {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 10px !important;
    }
    
    .student-card h3 {
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    /* ===== MOBILE GALLERY FIX ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }
    
    .gallery-item {
        margin: 0 auto !important;
        max-width: 100% !important;
        min-height: auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .gallery-image {
        height: 200px !important;
        width: 100% !important;
    }
    
    .gallery-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .gallery-content {
        padding: 15px !important;
    }
    
    .gallery-content h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    .gallery-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    .gallery-meta {
        padding-top: 12px !important;
        margin-top: 12px !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        gap: 10px !important;
        padding: 0 5px !important;
    }
    
    .gallery-image {
        height: 180px !important;
    }
    
    .gallery-item {
        border-radius: 10px !important;
    }
}
}

/* ===== SMALL MOBILE FIX ===== */
@media (max-width: 480px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .student-card {
        padding: 12px 8px !important;
        min-height: 120px !important;
    }
}

/* ===== MOBILE ULTIMATE FIX ===== */
@media (max-width: 768px) {
    /* NAMA SEKOLAH - FORCE WITH EVERYTHING */
    .logo-text p {
        display: block !important;
        visibility: visible !important;
        opacity: 0.9 !important;
        font-size: 0.7rem !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 200px !important;
    }
    
    /* HEADER LAYOUT - FORCE */
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
    }
    
    .logo {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .navbar {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    
    .hamburger {
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* 2 KOLOM List Siswa */
    .students-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .student-card {
        padding: 15px 10px !important;
        min-height: 140px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
}

/* ===== TEACHER SECTION STYLES ===== */
.teacher-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.teacher-avatar {
    position: relative;
    text-align: center;
}

.avatar-image {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
    overflow:hidden;
}

.avatar-image i {
    font-size: 4rem;
    color: var(--white);
}

.teacher-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

.teacher-info {
    padding: 20px 0;
}

.teacher-name {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.teacher-subject {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
}

.teacher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.teacher-quote {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--dark-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.teacher-quote i:first-child {
    color: var(--primary-color);
    margin-right: 10px;
}

.teacher-quote i:last-child {
    color: var(--primary-color);
    margin-left: 10px;
}

/* Teacher Modal Styles */
.teacher-modal-content {
    max-width: 800px;
    margin: 2% auto;
}

.teacher-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 40px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

.teacher-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.teacher-modal-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.teacher-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-modal-avatar i {
    font-size: 3rem;
    color: var(--white);
}

.teacher-modal-title {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.teacher-modal-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.teacher-modal-body {
    padding: 40px;
}

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

.teacher-info-card {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.teacher-info-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.teacher-info-card h4 i {
    color: var(--secondary-color);
}

.teacher-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--secondary-color);
}

.teacher-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    color: var(--dark-color);
    text-align: right;
}

.teacher-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.subject-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.teacher-bio-section {
    background: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid var(--secondary-color);
}

.teacher-bio-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.teacher-bio-section h3 i {
    color: var(--secondary-color);
}

.teacher-bio-text {
    line-height: 1.7;
    color: var(--dark-color);
    text-align: justify;
}

.teacher-contact-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.teacher-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.teacher-contact-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: var(--white);
}

/* Responsive Teacher Section */
@media (max-width: 968px) {
    .teacher-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .teacher-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .teacher-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .teacher-name {
        font-size: 1.8rem;
    }
    
    .teacher-subject {
        font-size: 1.1rem;
    }
    
    .teacher-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .teacher-modal-body {
        padding: 25px 20px;
    }
    
    .teacher-info-grid {
        grid-template-columns: 1fr;
    }
    
    .teacher-contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .teacher-contact-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .teacher-card {
        padding: 25px 15px;
    }
    
    .avatar-image {
        width: 150px;
        height: 150px;
    }
    
    .avatar-image i {
        font-size: 3rem;
    }
    
    .teacher-name {
        font-size: 1.5rem;
    }
    
    .teacher-modal-title {
        font-size: 1.5rem;
    }
}

/* ========== FIX TEACHER PHOTO ZOOM ========== */

.teacher-card .avatar-image img {
    transform: scale(1) !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

.teacher-card .avatar-image {
    overflow: hidden !important;
    transform: scale(1) !important;
}

/* Force the image to show full face */
.teacher-card .avatar-image img {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: scale(1) !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Backup fix kalo masih ngezoom */
.teacher-avatar {
    position: relative !important;
    overflow: visible !important;
}

.teacher-avatar .avatar-image {
    position: relative !important;
    overflow: visible !important;
}

/* ========== FIX STUDENT MODAL PHOTO ZOOM ========== */

.student-detail-avatar img {
    transform: scale(1) !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

.student-detail-avatar {
    overflow: hidden !important;
    transform: scale(1) !important;
}

/* Force the image to show full face di modal */
.student-detail-avatar img {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: scale(1) !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* ===== GALLERY MOBILE BOX FIX ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .gallery-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        gap: 15px !important;
    }
}

/* BIKIN HANYA TOMBOL YANG CLICKABLE */
.teacher-card {
    pointer-events: none !important;
}

.teacher-card .btn {
    pointer-events: auto !important;
}

/* FIX TEXTAREA TINGGI DI DESKTOP */
@media (min-width: 769px) {
    #message {
        height: 280px !important;
        min-height: 280px !important;
        resize: vertical !important;
    }
}

/* FIX BACKGROUND HERO TETAP DI TEMPAT */
.hero {
    background-attachment: fixed !important;
    position: relative;
    overflow: hidden;
}

/* FIX SPACE DI ATAS BERANDA */
#home {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}