/* Base Styles */
:root {
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --secondary-color: #f1faee;
    --dark-color: #1d3557;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #fff;
    --black: #000;
    --gray: #e9ecef;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn-primary, .btn-secondary, .btn-outline, .btn-link, .btn-register {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--dark-color);
    color: var(--white);
    border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary-color);
    padding: 5px 0;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    padding: 8px 15px;
}

.btn-register:hover {
    background-color: var(--primary-dark);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.text-center {
    text-align: center;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 120%;
}

.dropdown-menu li {
    margin: 0;
    padding: 5px 15px;
}

.dropdown-menu a {
    padding: 8px 0;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-img-top {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card img {
    width: 100%;
    height: auto;
}

.news-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 5px;
}

.news-title {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #222;
  font-weight: 600;
}

.news-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: auto;
}

.read-more {
  margin-top: 15px;
  color: #007BFF;
  font-weight: 500;
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}
.read-more i {
  margin-left: 5px;
}


/* Programs Section */
.programs-section {
    padding: 80px 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;;
    margin-bottom: 40px;
}

.program-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    height: 100px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.program-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.program-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.program-link {
    margin-top: auto;
}

/* Breadcrumb */
    .breadcrumb {
      padding: 15px 0;
      background-color: var(--light);
      font-size: 0.9rem;
    }
    
    .breadcrumb ul {
      display: flex;
      flex-wrap: wrap;
      padding: 0;
      margin: 0;
      list-style: none;
    }
    
    .breadcrumb li:not(:last-child)::after {
      content: '/';
      margin: 0 10px;
      color: var(--text-light);
    }
    
    .breadcrumb a {
      color: var(--text-light);
      text-decoration: none;
    }
    
    .breadcrumb a:hover {
      color: var(--primary);
    }
    
    /* Main Content */
    .page-content {
      padding: 60px 0;
    }
    
/* KUR Layout */
    .kur-intro {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
      margin-bottom: 50px;
    }
    
    .kur-image {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .kur-image img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }
    
    .image-caption {
      padding: 15px;
      background-color: var(--light);
      font-size: 0.9rem;
      color: var(--text-light);
      text-align: center;
    }
    
    .kur-description h2 {
      font-size: 1.8rem;
      color: var(--dark);
      margin-top: 0;
      margin-bottom: 20px;
    }
    
    .kur-description p {
      margin-bottom: 20px;
    }

    /* Requirements Grid */
    .requirements {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 20px;
      margin: 30px 0;
    }
    
    .requirement-card {
      background-color: var(--white);
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      text-align: center;
      transition: all 0.3s ease;
    }
    
    .requirement-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .requirement-icon {
      width: 60px;
      height: 60px;
      background-color: rgba(230, 57, 70, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 15px;
      color: var(--primary);
      font-size: 1.2rem;
    }
    
    .requirement-card h4 {
      margin-bottom: 10px;
      color: var(--dark);
    }
    
    .requirement-card p {
      font-size: 0.9rem;
      color: var(--text-light);
      margin-bottom: 0;
    }
    
    /* Document List */
    .document-list {
      margin: 20px 0;
    }
    
    .document-item {
      display: flex;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--gray);
    }
    
    .document-item i {
      color: var(--primary);
      margin-right: 10px;
    }
    
    /* Highlight Box */
    .highlight-box {
      background-color: rgba(230, 57, 70, 0.1);
      border-left: 4px solid var(--primary);
      padding: 20px;
      border-radius: 0 5px 5px 0;
      margin: 25px 0;
    }
    
    .highlight-box h3 {
      margin-top: 0;
      display: flex;
      align-items: center;
      color: var(--dark);
    }
    
    .highlight-box h3 i {
      margin-right: 10px;
      color: var(--primary);
    }
    
    .highlight-box ul {
      padding-left: 20px;
      margin: 0;
    }
    
    .highlight-box li {
      margin-bottom: 8px;
    }

/* Gallery Preview */
.gallery-preview {
    padding: 80px 0;
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(29, 53, 87, 0.9), rgba(29, 53, 87, 0.9)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.8;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    opacity: 0.7;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Additional styles for modern structure */
        .struktur-section {
            padding: 100px 0 60px; /* Ditambah padding-top menjadi 100px */
            background: #f9f9ff;
        }
        
        .section-title {
            color: #2a2a72;
            margin-bottom: 50px;
            font-size: 2.5rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            width: 50%;
            height: 4px;
            background: linear-gradient(90deg, #4e54c8, #8f94fb);
            bottom: -10px;
            left: 25%;
            border-radius: 2px;
        }
        
        .struktur-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .org-chart {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .org-level {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin: 20px 0;
            width: 100%;
        }
        
        .org-node {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            padding: 20px;
            margin: 15px;
            text-align: center;
            transition: all 0.3s ease;
            width: 280px;
            position: relative;
            overflow: hidden;
        }
        
        .org-node:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }
        
        .org-node:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(to bottom, #4e54c8, #8f94fb);
        }
        
        .node-title {
            font-size: 1.2rem;
            color: #2a2a72;
            margin-bottom: 15px;
            font-weight: 600;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .node-person {
            margin: 8px 0;
            font-size: 0.95rem;
            color: #555;
        }
        
        .node-person strong {
            color: #333;
            font-weight: 500;
        }
        
        .node-divider {
            height: 40px;
            width: 2px;
            background: #ddd;
            margin: 0 auto;
        }
        
        .connector-line {
            height: 30px;
            width: 2px;
            background: #ddd;
            margin: 0 auto;
        }
        
        .top-level {
            background: linear-gradient(135deg, #4e54c8, #8f94fb);
            color: white;
            padding: 25px 30px;
        }
        
        .top-level .node-title {
            color: white;
            border-bottom: 1px solid rgba(255,255,255,0.3);
        }
        
        .top-level .node-person {
            color: rgba(255,255,255,0.9);
        }
        
        .top-level .node-person strong {
            color: white;
        }
        
        .top-level:before {
            display: none;
        }
        
        .mid-level {
            background: white;
        }
        
        .dpd-level {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
        }
        
        .struktur-grid {
            display: none; /* Hide old structure */
        }
        
        @media (max-width: 768px) {
            .org-level {
                flex-direction: column;
                align-items: center;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .org-node {
                width: 90%;
                max-width: 300px;
            }

            .struktur-section {
                padding: 80px 0 40px; /* Sedikit lebih kecil untuk mobile */
            }
        }
        
/* Responsive Styles */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li {
        margin: 0 0 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 10px 0 0 15px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header .container {
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .news-grid, .programs-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}