/* Base Styles */
:root {
    --primary-color: #0047AB;
    --secondary-color: #003380;
    --accent-color: #FFD700;
    --text-color: #333333;
    --light-text: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark-bg: #212529;
    --border-color: #DDDDDD;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo img {
    height: 50px;
}

.nav-menu ul {
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    color: #fff; /*var(--text-color);*/
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: yellow; /*var(--primary-color);*/
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: yellow; /*var(--primary-color);*/
    transition: var(--transition);
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}
/* ========== Dropdown Menu ========== */
.nav-menu ul li {
  position: relative;
}

.nav-menu ul li.has-dropdown > a::after {
  content: " ▼";
  font-size: 0.7em;
}

.nav-menu ul li .dropdown {
  display: none;
  position: absolute;
  top: 135%;
  left: 0;
  background: linear-gradient(to bottom right, #001f3f, #06F);
  font-size: 0.9rem;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 180px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

.nav-menu ul li .dropdown li {
  margin: 0;
}

.nav-menu ul li .dropdown li a {
  color: #fff;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  font-weight: 400;
}

.nav-menu ul li .dropdown li a:hover {
  background-color: yellow;
  color: #000;
}

/* Tampilkan dropdown saat hover */
.nav-menu ul li:hover > .dropdown {
  display: block;
}

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

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: var(--transition);
}

/* Hero Carousel Styles */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.carousel-container {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-text);
    max-width: 800px;
    width: 90%;
    padding: 20px;
    z-index: 1;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.slide-content .btn {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--light-text);
    transform: scale(1.2);
}

/* About Section Styles */
.about-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.about-image {
    flex: 1;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 8px;
    border: solid 1px #f6f6f6;
    justify-content: center;
    display: grid;
    align-content: center;
    padding: 5px;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section Styles */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 4px 2px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4px );
}

.service-card h3 {
    /*font-size: 1.5rem;*/
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover::after {
    margin-left: 10px;
}

/* News Section Styles */
.news-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.news-item:hover {
  transform: scale(1.1);
}
.news-image {
    height: 200px;
    overflow: hidden;
}

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

.news-content {
    padding: 25px;
}

.news-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}

.news-content p {
    margin-bottom: 20px;
}

.news-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.news-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.news-link:hover::after {
    margin-left: 10px;
}

.news-more {
    text-align: center;
    margin-top: 50px;
}

/* Programs Section Styles */
.programs-section {
    padding: 100px 0;
}

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

.program-box {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.program-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent-color);
    z-index: -1;
}

.program-icon {
    margin-bottom: 20px;
    transition: var(--transition);
}

.program-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.program-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.program-box p {
    margin-bottom: 20px;
}

.program-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.program-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.program-link:hover::after {
    margin-left: 10px;
}

/* Contact Section Styles */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    margin-right: 15px;
}

.contact-icon img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    margin-top: 40px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.xtable{
    .tr-th{
        background-image: linear-gradient(to bottom right, #001f3f, #06F);
        color: #fff;

        th{
            padding: 10px;
        }
    }
    .tr-td{
        td{
            padding: 10px;
        }
    }
    .tr-td:nth-child(even){
        background-color: #f7faff;
    }
    .tr-td:nth-child(odd){
        background-color: #fff;
    }
    .tr-td:hover{
        background-color: #e4ebf6;
    }
}
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.2);
}

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

/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

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

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
    padding: 0 20px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    color: #fff;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-icon img {
    width: 20px;
    height: 20px;
}

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

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* MAPS */
  .map-embed {
    width: 100%;
    max-width: 1200px; /* optional: batas lebar */
    margin: 0 auto;
  }

  /* Modern: use aspect-ratio when supported */
  .map-embed .map-frame {
    aspect-ratio: 1 / 1;
    width: 100%;
    border: 0;
    display: block;
    overflow: hidden;
    position: relative;
    background: #eee;
  }

  /* Fallback for older browsers: padding-bottom trick */
  .map-embed .map-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* The wrapper establishes the positioned context for the iframe fallback */
  .map-embed .map-frame.fallback {
    height: 100%;
    padding-bottom: calc(9 / 16 * 100%); /* 56.25% for 16:9 */
  }

  /* small responsive tweak */
  @media (max-width: 480px) {
    .map-embed { padding: 0 12px; }
  }

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .slide-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    background-color: #fff; /* tetap kontras dengan header */
  }

  .nav-menu {
    position: fixed;
    top: 70px; /* sesuai tinggi header kamu */
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: linear-gradient(to bottom right, #001f3f, #06F);
    padding: 40px 20px;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 1000;
  }

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

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu ul li {
    margin: 15px 0;
  }

  .nav-menu ul li a {
    color: #fff;
    font-size: 1.1rem;
  }

  .nav-menu ul li .dropdown {
    position: static;
    display: none;
    background: rgba(255,255,255,0.1);
    width: 100%;
    margin-top: 10px;
    border-radius: 5px;
  }

  .nav-menu ul li.show-dropdown > .dropdown {
    display: block;
  }

  .nav-menu ul li .dropdown li a {
    padding: 10px 15px;
    color: #fff;
    font-size: 1rem;
  }

  .nav-menu ul li .dropdown li a:hover {
    background-color: yellow;
    color: #000;
  }
}

@media (max-width: 576px) {
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 5px;
        width: 100%;
    }
}