/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #6b7280;
}

.highlight {
    color: #3b82f6;
}

/* Buttons */
.btn-primary, .btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #3b82f6;
}

.arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: #3b82f6;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand{
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3b82f6;
}

:root {
  --primary-color: #00bcd4;
  --secondary-color: #333;
  --light-bg: #f4f4f4;
}

/* Logo styling */
.logo {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
  width: auto;
}

/* Animasi fade-in untuk nama instansi */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Navbar hover transition */
.nav-menu li a {
  transition: color 0.3s ease;
}
.nav-menu li a:hover {
  color: var(--primary-color);
}

/* About multiple columns */
.about-section .section-header p {
  column-count: 2;
  column-gap: 30px;
  text-align: justify;
}

/* About image filter */
.about-section img {
  filter: grayscale(100%);
  transition: filter 0.5s;
}
.about-section img:hover {
  filter: grayscale(0);
}

/* Organization Section */
.organization-section {
  padding: 60px 20px;
  text-align: center;
}
.org-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.org-member {
  position: relative;
}
.org-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}
.org-member p {
  margin-top: 10px;
  font-weight: bold;
}
/* Tooltip */
.org-member::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s;
}
.org-member:hover::after {
  opacity: 1;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 15px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  filter: sepia(40%);
  transition: filter 0.4s;
}
.gallery-grid img:hover {
  filter: sepia(0%);
}

/* News Section */
.news-content {
  column-count: 2;
  column-gap: 30px;
  margin-bottom: 20px;
  text-align: justify;
}
.pagination {
  text-align: center;
}
.pagination a {
  padding: 6px 12px;
  margin: 2px;
  border: 1px solid var(--secondary-color);
  text-decoration: none;
  color: var(--secondary-color);
}
.pagination a.active {
  background: var(--primary-color);
  color: #fff;
  border: none;
}

/* Contact Button hover */
.contact-form button {
  background: var(--primary-color);
  transition: background 0.3s;
}
.contact-form button:hover {
  background: #0097a7;
}

/* Responsive */
@media (max-width: 768px) {
  .about-section .section-header p,
  .news-content {
    column-count: 1;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
  }
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 51, 234, 0.8) 100%), 
                url('hero.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-attachment: fixed;
}

.hero-content {
    z-index: 10;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.about-section, .services-section, .contact-section {
    padding: 5rem 0;
}

.about-section {
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    color: #374151;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #6b7280;
    margin: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px -4px rgba(59, 130, 246, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.25rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Contact Section */
.contact-section {
    background-color: #f8fafc;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: #d1d5db;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Navbar */
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-item {
        padding: 1rem;
        flex: 1;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Sections padding */
    .about-section, .services-section, .contact-section {
        padding: 3rem 0;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.875rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
}