/* ========== GLOBAL STYLES ========== */
:root {
  --primary-color: #1a5f9e;
  --secondary-color: #0d3b6c;
  --accent-color: #ffc107;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #495057;
  --white: #ffffff;
  --blue-light: #d1e7ff;
  --transition: all 0.3s ease;
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  line-height: 1.3;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

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

.btn i {
  margin-right: 8px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  font-size: 2rem;
  color: var(--secondary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.text-center {
  text-align: center;
}

/* ========== TOP HEADER ========== */
.top-header {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

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

.contact-info span {
  margin-right: 1.2rem;
  display: inline-flex;
  align-items: center;
}

.contact-info i {
  margin-right: 0.4rem;
  color: var(--accent-color);
}

.social-media a {
  color: var(--white);
  margin-left: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.social-media a:hover {
  color: var(--accent-color);
}

/* ========== MAIN HEADER ========== */
.main-header {
  background-color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

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

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

.logo-img {
  height: 60px;
  width: auto;
  margin-right: 1rem;
}

.logo-text h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--text-color);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
}

.quick-links {
  display: flex;
  gap: 0.8rem;
  margin-right: 1.5rem;
}

.btn-register, .btn-login {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.btn-register:hover {
  background-color: var(--secondary-color);
}

.btn-login {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* ========== NAVIGATION ========== */
.main-nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
}

.nav-links li {
  position: relative;
}

.nav-links li.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-links li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
}

.nav-links a {
  color: var(--white);
  padding: 1rem 1.2rem;
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a i {
  margin-right: 6px;
  font-size: 0.85rem;
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg') no-repeat center center/cover;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== MAIN CONTENT ========== */
main {
  padding: 4rem 0;
  background: var(--white);
}

.section-padding {
  padding: 4rem 0;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========== CARD STYLES ========== */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid #eee;
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 0.3rem 0.7rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.card-text {
  margin-bottom: 1.2rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  align-items: center;
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.card-meta i {
  margin-right: 0.4rem;
  color: var(--primary-color);
  font-size: 0.9rem;
}

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

.about-img {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #eee;
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--secondary-color);
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-features {
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  margin-bottom: 1.2rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  flex-shrink: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.feature-text h4 {
  margin-bottom: 0.4rem;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.feature-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ========== STATS SECTION ========== */
.stats-section {
  background: var(--primary-color);
  padding: 3.5rem 0;
  color: var(--white);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.stat-card p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========== STAFF SECTION ========== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.staff-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid #eee;
  transition: var(--transition);
}

.staff-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.staff-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--light-color);
  transition: var(--transition);
}

.staff-card:hover .staff-img {
  border-color: var(--accent-color);
}

.staff-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-info h3 {
  margin-bottom: 0.4rem;
  color: var(--secondary-color);
}

.staff-info p {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.staff-info .staff-bio {
  color: var(--text-color);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.staff-social {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.staff-social a {
  width: 32px;
  height: 32px;
  background: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
  font-size: 0.9rem;
}

.staff-social a:hover {
  background: var(--primary-color);
  color: var(--white);
}


/* Achievement Section Styles */
.achievement-section {
    background-color: #f9f9f9;
}

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

.achievement-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 95, 158, 0.1), rgba(13, 59, 108, 0.1));
    border-radius: 50%;
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .achievement-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        padding: 25px 20px;
    }
    
    .achievement-card h3 {
        min-height: auto;
        margin-bottom: 10px;
    }
}

/* ========== FACILITIES SECTION ========== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.facility-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #eee;
  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.facility-img {
  height: 220px;
  overflow: hidden;
}

.facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.facility-card:hover .facility-img img {
  transform: scale(1.05);
}

.facility-body {
  padding: 1.5rem;
  background: var(--white);
}

.facility-body h3 {
  margin-bottom: 0.7rem;
  color: var(--secondary-color);
}

.facility-body p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.facility-body ul {
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
}

.facility-body li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.facility-body li i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}


/* Additional Facilities Section */
.additional-facilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-item {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(26, 95, 158, 0.1), rgba(13, 59, 108, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.facility-item:hover .facility-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: scale(1.1);
}

.facility-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.facility-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.facility-item:hover h3::after {
    width: 80px;
    background: var(--primary-color);
}

.facility-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .additional-facilities {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .additional-facilities {
        grid-template-columns: 1fr;
    }
    
    .facility-item {
        padding: 25px 20px;
    }
    
    .facility-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

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

.facility-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.facility-item:nth-child(1) { animation-delay: 0.1s; }
.facility-item:nth-child(2) { animation-delay: 0.2s; }
.facility-item:nth-child(3) { animation-delay: 0.3s; }
.facility-item:nth-child(4) { animation-delay: 0.4s; }
.facility-item:nth-child(5) { animation-delay: 0.5s; }
.facility-item:nth-child(6) { animation-delay: 0.6s; }

/* ========== BLOG SECTION ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #eee;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.blog-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  font-size: 0.85rem;
}

.blog-date span {
  display: block;
}

.blog-date span:first-child {
  font-size: 1.4rem;
}

.blog-body {
  padding: 1.5rem;
}

.blog-body h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.blog-body h3 a {
  color: var(--secondary-color);
  transition: var(--transition);
}

.blog-body h3 a:hover {
  color: var(--primary-color);
}

.blog-meta {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.blog-meta span {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.blog-meta i {
  margin-right: 0.4rem;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
}

.read-more:hover {
  color: var(--secondary-color);
  transform: translateX(3px);
}

.read-more i {
  margin-left: 5px;
  font-size: 0.8rem;
}


/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(26, 95, 158, 0.3);
}

.page-btn.active:hover {
    background-color: var(--secondary-color);
    transform: none;
    box-shadow: 0 2px 8px rgba(26, 95, 158, 0.3);
}

.page-btn i {
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-btn {
    animation: fadeIn 0.3s ease forwards;
}

.page-btn:nth-child(1) { animation-delay: 0.1s; }
.page-btn:nth-child(2) { animation-delay: 0.15s; }
.page-btn:nth-child(3) { animation-delay: 0.2s; }
.page-btn:nth-child(4) { animation-delay: 0.25s; }
.page-btn:nth-child(5) { animation-delay: 0.3s; }

/* Categories Section Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 95, 158, 0.1), rgba(13, 59, 108, 0.1));
    border-radius: 50%;
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: rotateY(180deg);
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* Warna Ikon Berbeda untuk Setiap Kategori */
.category-card:nth-child(1) .category-icon {
    color: #1a5f9e; /* Warna biru untuk berita */
}
.category-card:nth-child(2) .category-icon {
    color: #28a745; /* Warna hijau untuk kegiatan */
}
.category-card:nth-child(3) .category-icon {
    color: #ffc107; /* Warna kuning untuk prestasi */
}
.category-card:nth-child(4) .category-icon {
    color: #dc3545; /* Warna merah untuk kegiatan orang tua */
}

.category-card:hover:nth-child(1) .category-icon {
    background: linear-gradient(135deg, #1a5f9e, #0d3b6c);
}
.category-card:hover:nth-child(2) .category-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}
.category-card:hover:nth-child(3) .category-icon {
    background: linear-gradient(135deg, #ffc107, #ffab00);
}
.category-card:hover:nth-child(4) .category-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 25px 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

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

.category-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
/* ========== GALLERY SECTION ========== */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--light-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
  padding: 1rem;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.gallery-view {
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-view:hover {
  background: var(--accent-color);
  color: var(--dark-color);
}

/* ========== VIDEO GALLERY ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.video-card:hover .play-btn {
  background: var(--accent-color);
  color: var(--dark-color);
}

.video-card h3 {
  margin-top: 0.8rem;
  font-size: 1.1rem;
}

.video-card p {
  color: #6c757d;
  font-size: 0.85rem;
}

/* ========== CONTACT SECTION ========== */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.contact-info h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.contact-info p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.contact-item i {
    margin-right: 4px; /* Jarak khusus antara ikon dan teks */
    color: var(--white);
    font-size: 16px;
    margin-top: 3px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.contact-text h4 {
  margin-bottom: 0.2rem;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.contact-text p, .contact-text a {
  font-size: 0.9rem;
  color: var(--text-color);
}

.contact-text a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-map {
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid #eee;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.contact-form textarea {
  height: 150px;
  resize: vertical;
}


/* Contact Persons Section */
.contact-persons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.person-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.person-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.person-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.person-card:hover .person-img img {
    transform: scale(1.05);
}

.person-info {
    padding: 25px;
    flex-grow: 1;
}

.person-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.person-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.person-info p {
    margin: 10px 0;
    color: #555;
    line-height: 1.5;
}

.person-info p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.person-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-persons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .contact-persons {
        grid-template-columns: 1fr;
    }
    
    .person-img {
        height: 180px;
    }
    
    .person-info {
        padding: 20px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.person-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.person-card:nth-child(1) { animation-delay: 0.1s; }
.person-card:nth-child(2) { animation-delay: 0.2s; }
.person-card:nth-child(3) { animation-delay: 0.3s; }


/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(26, 95, 158, 0.1);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 25px;
}

.faq-answer p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.faq-answer ol, 
.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
    color: #555;
}

.faq-answer table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.faq-answer th, 
.faq-answer td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.faq-answer th {
    background-color: #f5f5f5;
    color: var(--secondary-color);
}

.extracurricular-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.extracurricular-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

.extracurricular-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .extracurricular-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }
    
    .faq-answer table {
        font-size: 14px;
    }
    
    .extracurricular-list {
        grid-template-columns: 1fr;
    }
}

/* ========== STRUCTURE SECTION ========== */
.structure-chart {
  margin-top: 2rem;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-level {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.org-item {
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.2rem;
  border: 1px solid #eee;
  transition: var(--transition);
  min-width: 200px;
}

.org-item:hover {
  border-color: var(--primary-color);
}

.org-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.8rem;
  border: 3px solid var(--light-color);
}

.org-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--secondary-color);
}

.org-info p {
  font-size: 0.85rem;
  color: var(--text-color);
}

.org-connector {
  width: 2px;
  height: 30px;
  background: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.org-connector::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.committee-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid #eee;
  transition: var(--transition);
  text-align: center;
}

.committee-card:hover {
  border-color: var(--primary-color);
}

.committee-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--light-color);
}

.committee-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.committee-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--secondary-color);
}

.committee-info p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
.main-footer {
  background: var(--secondary-color);
  color: var(--white);
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-color);
}

.footer-top {
  padding: 3.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.footer-about .footer-logo img {
  height: 45px;
  margin-right: 0.8rem;
}

.footer-about .footer-logo h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.3rem;
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--accent-color);
  color: var(--dark-color);
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-links a i {
  margin-right: 6px;
  font-size: 0.7rem;
  width: 12px;
}

.newsletter-form {
  display: flex;
  margin-top: 1.2rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: inherit;
  font-size: 0.9rem;
}

.newsletter-form button {
  background: var(--accent-color);
  color: var(--dark-color);
  border: none;
  padding: 0 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.newsletter-form button:hover {
  background: var(--white);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.1);
  padding: 1.2rem 0;
  text-align: center;
}

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

.footer-bottom p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.85rem;
}

.footer-menu {
  display: flex;
  gap: 1.2rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-menu a:hover {
  color: var(--accent-color);
}

/* ========== UTILITY CLASSES ========== */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pt-4 { padding-top: 4rem; }
.pt-5 { padding-top: 5rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.pb-4 { padding-bottom: 4rem; }
.pb-5 { padding-bottom: 5rem; }

.bg-primary { background: var(--primary-color); }
.bg-secondary { background: var(--secondary-color); }
.bg-light { background: var(--light-color); }
.bg-white { background: var(--white); }

.text-white { color: var(--white); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }

.rounded { border-radius: var(--border-radius); }
.rounded-full { border-radius: 50%; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  .hero-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .top-header-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .contact-info span {
    margin: 0 0.5rem;
  }
  
  .hero {
    height: 60vh;
    min-height: 450px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-img {
    order: -1;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  
  .logo-img {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .quick-links {
    margin-right: 0;
  }
  
  .nav-links {
    position: fixed;
    top: 110px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 110px);
    background: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.5rem;
    transition: var(--transition);
  }

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

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    height: 55vh;
    min-height: 400px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .facility-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .quick-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-register, .btn-login {
    width: 100%;
    text-align: center;
  }

  .hero {
    height: 70vh;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* Mobile Bottom Menu Styles - Always Visible */
.mobile-bottom-menu {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0 5px;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav li {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.mobile-bottom-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 2px;
    color: #555;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s;
}

.mobile-bottom-nav li a i {
    font-size: 16px;
    margin-bottom: 3px;
    transition: all 0.2s;
}

.mobile-bottom-nav li.active a {
    color: #0066cc;
    font-weight: 500;
}

.mobile-bottom-nav li.active a i {
    color: #0066cc;
}

.mobile-bottom-nav li a:hover {
    color: #0066cc;
}

/* Hide main nav on mobile */
@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: block; /* Show only on mobile */
    }
    
    .main-nav {
        display: none;
    }
    
    .quick-links {
        display: none;
    }
    
    /* Hide any toggle buttons */
    .mobile-menu-toggle, 
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Show regular navigation on desktop */
@media (min-width: 769px) {
    .mobile-bottom-menu {
        display: none !important;
    }
    
    .main-nav {
        display: block;
    }
}

/* Menu Toggle Button - Hidden di desktop */
        .mobile-menu-toggle {
            display: none;
        }