:root {
  --color-primary: #1a1a1a;
  --color-secondary: #fcd34d;
  --color-accent: #ef4444;
  --color-light: #ffffff;
  --color-bg: #f8fafc;
  --color-text: #334155;
  --color-text-light: #64748b;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .gap-8 { gap: 2rem; }
.text-center { text-align: center; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-12 { margin-bottom: 3rem; } .py-12 { padding: 3rem 0; } .py-20 { padding: 5rem 0; }
.hover-scale { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .hover-scale:hover { transform: scale(1.03); }
.btn { display: inline-block; padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; font-family: var(--font-heading); text-align: center; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-primary { background-color: var(--color-secondary); color: var(--color-primary); }
.btn-primary:hover { background-color: #fbbf24; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(252, 211, 77, 0.4); }
.btn-outline { border: 2px solid var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: var(--color-light); }
.btn-accent { background-color: var(--color-accent); color: var(--color-light); }
.btn-accent:hover { background-color: #dc2626; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
.navbar { background-color: var(--color-primary); color: var(--color-light); padding: 1rem 0; position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.navbar .logo { font-size: 1.25rem; font-weight: 800; font-family: var(--font-heading); color: var(--color-secondary); display: flex; align-items: center; gap: 0.5rem; }
.navbar .logo span { color: var(--color-light); }
.navbar .nav-links a { color: var(--color-light); font-weight: 500; font-size: 0.95rem; }
.navbar .nav-links a:hover { color: var(--color-secondary); }
.footer { background-color: var(--color-primary); color: var(--color-light); padding: 4rem 0 2rem; margin-top: 5rem; }
.footer h3 { color: var(--color-secondary); margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--color-text-light); }
.slider-container { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; background-size: cover; background-position: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; }

/* Semantic Classes for Welcome Page */
.news-section-pengumuman { padding-top: 5rem; padding-bottom: 2.5rem; background-color: var(--color-bg); }
.news-section-berita { padding-top: 2.5rem; padding-bottom: 2.5rem; background-color: var(--color-bg); }
.news-section-kegiatan { padding-top: 2.5rem; padding-bottom: 5rem; background-color: var(--color-bg); }
.news-header { margin-bottom: 3rem; }
.news-category-label { color: var(--color-primary); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: var(--color-primary); min-width: 220px; box-shadow: 0px 10px 25px rgba(0,0,0,0.3); z-index: 100; border-radius: 8px; top: 100%; left: 0; padding: 0.5rem 0; border: 1px solid rgba(255,255,255,0.1); }
.dropdown-content a { color: var(--color-light) !important; padding: 0.75rem 1.25rem; text-decoration: none; display: block; font-size: 0.95rem; font-weight: 500; transition: background 0.2s; }
.dropdown-content a:hover { background-color: rgba(255,255,255,0.1); color: var(--color-secondary) !important; }
.dropdown:hover .dropdown-content { display: block; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links > a, .dropdown > a { color: white; text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.25rem; transition: color 0.2s; }
.nav-links > a:hover, .dropdown:hover > a { color: var(--color-secondary); }

/* Footer Social Buttons */
.footer-social-btn { color: white; background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; transition: background 0.3s; }
.footer-social-btn:hover { background: rgba(255,255,255,0.2); }

/* Profile Page Styles */
.profile-page-wrapper { background-color: var(--color-bg); min-height: 80vh; padding-bottom: 5rem; }
.profile-card { padding: 4rem 3rem; }
.profile-main-card { background: white; border-radius: 12px; padding: 4rem 3rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; margin-bottom: 2rem; }
.profile-header-title { font-size: 3rem; color: var(--color-primary); margin-bottom: 0.5rem; font-family: var(--font-heading); line-height: 1.1; }
.profile-header-slogan { font-size: 1.25rem; color: var(--color-text-light); }

.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.vm-card { background: white; padding: 2.5rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid #f1f5f9; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.vm-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1); }
.vm-card.vision { border-bottom: 4px solid var(--color-primary); }
.vm-card.mission { border-bottom: 4px solid var(--color-secondary); }
.vm-card h2 { font-size: 1.75rem; color: var(--color-primary); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.vm-icon { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 10px; background: #f8fafc; font-size: 1.25rem; }

.history-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.history-image-container { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.history-image-container img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 4/3; }
.history-text { font-size: 1.1rem; line-height: 1.9; color: #475569; text-align: justify; }

/* Mobile Menu & Responsiveness */
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.75rem; cursor: pointer; padding: 0.5rem; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 99; opacity: 0; transition: opacity 0.3s; }

@media (max-width: 768px) {
    /* Navbar Mobile */
    .mobile-menu-btn { display: block; }
    .nav-links { display: flex; flex-direction: column; position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: var(--color-primary); z-index: 100; padding: 2rem 1.5rem; align-items: flex-start; transition: right 0.3s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.1); gap: 1rem; overflow-y: auto; }
    .nav-links.open { right: 0; }
    .mobile-menu-overlay.open { display: block; opacity: 1; }
    .nav-links > a, .dropdown > a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .dropdown { width: 100%; }
    .dropdown-content { position: static; box-shadow: none; background: rgba(255,255,255,0.02); padding-left: 1rem; display: none; border: none; min-width: 100%; margin-top: 0.5rem; }
    .dropdown:hover .dropdown-content { display: block; }

    /* General Layout */
    .hero .container { grid-template-columns: 1fr !important; text-align: center; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { margin: 0 auto 2rem; }
    
    /* Specific overrides for mobile */
    h1 { font-size: 2rem !important; }
    section h2 { font-size: 1.75rem !important; }
    .slider-container { height: 400px !important; }
    .slide-content { padding: 1.5rem !important; }
    .slide-content h3 { font-size: 1.5rem !important; line-height: 1.3 !important; }
    
    section .container.flex { flex-direction: column; text-align: center; }
    section .container.flex .btn { margin: 1rem auto; }
    
    .news-header { flex-direction: column; text-align: center; gap: 1rem; margin-bottom: 2rem !important; }
    
    /* Padding Adjustments */
    .py-20, .news-section-pengumuman, .news-section-berita, .news-section-kegiatan { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    
    /* Footer */
    .footer .container { grid-template-columns: 1fr !important; text-align: center; gap: 2.5rem; }
    .footer .mt-4 { justify-content: center; }
    /* Profile Page Adjustments */
    .profile-card { padding: 2rem 1.25rem; }
    .profile-main-card { padding: 2rem 1.5rem; }
    .profile-header-title { font-size: 2.25rem; }
    .vision-mission-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .history-section { grid-template-columns: 1fr; gap: 2rem; }
}
