:root {
    --primary: #11224E;
    --bg: #eeeeeeff;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: rgba(18, 29, 63, 1);
    min-height: 1000px;  

}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 5%;
    background-color: rgba(238, 238, 238, 1); 
    border-bottom: 1px solid #171d6eff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

}.navbar .navbar-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #11224E;
    font-style: ;
}

.navbar .navbar-logo span { 
    color: #BF092F;
}

.navbar .navbar-nav a {
    color: #BF092F;
    display: inline-block;
    font-size: 1.3rem;
    margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
    color: var(--primary);
}

.navbar .navbar-nav a::after {
    content: '';
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem solid var(--primary);
    transform: scaleX(0);
    transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after{
    transform: scaleX(0.5);
}

.navbar .navbar-extra a {
    color: #234393ff;
    margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
    color: var(--primary)
}

#hamburger-menu {
    display: none;
}

/* Navbar search form */
.navbar .search-form {
    position: absolute;
    top: 100%;
    right: 7%;
    background-color: #ffff;
    width: 30rem;
    height: 5rem;
    display: flex;
    align-items: center;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s;
}

.navbar .search-form.active {
    transform: scaleY(1);
}
.navbar .search-form input {
    height: 100%;
    width: 100%;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 1rem;
}

.navbar .search-form label {
    cursor: pointer;
    font-size: 2rem;
    margin-right: 1.5rem;
    color: #11224E;
}


/* content section */
/* CONTAINER */
    .container {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 40px;
      max-width: 1200px;
      margin: 100px auto;
      padding: 0 20px;
    }

    /* ARTICLE SECTION */
    .article {
      flex: 2;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.1);
      padding: 40px;
      animation: fadeIn 1s ease;
    }
    .article h1 {
      font-size: 2rem;
      color: #11224E;
      margin-bottom: 15px;
    }
    .meta {
      display: flex;
      gap: 15px;
      font-size: 0.9rem;
      color: #777;
      margin-bottom: 30px;
    }
    .article img {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 25px;
    }

    .article span {
        font-size: 1.2rem;
    }
    .article p {
      font-size: 1rem;
      margin-bottom: 20px;
      text-align: justify;
    }
    .article blockquote {
      background: #f0f2ff;
      border-left: 4px solid #11224E;
      padding: 15px 20px;
      margin: 25px 0;
      font-style: italic;
      color: #444;
    }

    /* SHARE SECTION */
    .share-section {
      border-top: 1px solid #ddd;
      margin-top: 40px;
      padding-top: 20px;
    }
    .share-section h4 {
      font-weight: 600;
      color: #11224E;
      margin-bottom: 10px;
    }
    .share-buttons {
      display: flex;
      gap: 15px;
    }
    .share-buttons a {
      text-decoration: none;
      color: white;
      background: #11224E;
      padding: 10px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      transition: all 0.3s;
    }
    .share-buttons a:hover {
      transform: translateY(-4px);
      background: #BF092F;
    }

    /* SIDEBAR */
    .sidebar {
      flex: 1;
      position: sticky;
      top: 100px;
      background: #fff;
      border-radius: 10px;
      padding: 25px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }
    .sidebar h3 {
      color: #11224E;
      margin-bottom: 20px;
      font-size: 1.2rem;
    }
    .related {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .related-article {
      display: flex;
      align-items: center;
      gap: 15px;
      text-decoration: none;
      color: #222;
      transition: 0.3s;
    }
    .related-article:hover { color: #BF092F; transform: translateX(5px); }
    .related-article img {
      width: 80px;
      height: 60px;
      object-fit: cover;
      border-radius: 6px;
    }
    .related-article span {
      font-size: 0.95rem;
      font-weight: 500;
    }

    /* FOOTER */
    footer {
      background: #11224E;
      color: white;
      text-align: center;
      padding: 30px;
      margin-top: 80px;
    }

    /* ANIMATION */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* RESPONSIVE */
    @media(max-width: 900px) {
      .container { flex-direction: column; }
      .sidebar { position: relative; top: 0; }
      .share-buttons { flex-wrap: wrap; }
    }

/* Infomation section */
    
.academic {
    padding: 10rem 7% 1.4rem;
}


/* Content section */
/* ABOUT SECTION */
.about-section {
  background: linear-gradient(135deg, #f6f9fc, #eef2f7);
  padding: 6rem 8%;
  position: relative;
  overflow: hidden;
}

/* Dekorasi animasi */
.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(191, 9, 47, 0.15);
  animation: float 6s infinite ease-in-out alternate;
}

.about-section::before {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -80px;
}

.about-section::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -100px;
  background: rgba(17, 34, 78, 0.15);
}

/* Container utama */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Text area */
.about-text {
  flex: 1 1 45%;
  animation: fadeInLeft 1.5s ease forwards;
  opacity: 0;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #11224E;
  margin-bottom: 1.5rem;
  position: relative;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #BF092F;
  border-radius: 2px;
  margin-top: 8px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Gambar */
.about-image {
  flex: 1 1 45%;
  text-align: center;
  animation: fadeInRight 1.5s ease forwards;
  opacity: 0;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* Animasi */
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(20px); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-image {
    flex: 1 1 100%;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}


/* CONTACT SECTION STYLES */
.contact-section {
  padding: 60px 20px;
  background: #eeeeeeff;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.contact-section h2 span {
    color: #BF092F;
}

.contact-section p {
    text-align: center;
    font-size: 1.5rem;
    max-width: 30rem;
    padding: 1.5rem;
    margin: auto;
    font-weight: 200;
    line-height: 1.6;
}

.contact-section .container {
  background: #fff;
  margin: auto;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px;
}

.contact-form {
  flex: 1 1 400px;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  pointer-events: none; /* Supaya ikon tidak menghalangi klik */
}

/* Input dan textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px 10px 40px; /* perhatikan: tambahkan ruang kiri untuk ikon */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #11224E;
}

.contact-form textarea {
  resize: none;
}


.contact-form button {
  background-color: #11224E;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #11224E;
}

.map-container {
  flex: 1 1 400px;
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#status {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
}
.success { color: green; }
.error { color: red; }

@media (max-width: 768px) {
  .contact-section .container {
    flex-direction: column;
  }
}


/* Media Queries */
/* Laptop */
@media (max-width: 1366px) {
  html {
        font-size: 75%;
    }
    
}

/* Tablet */
@media (max-width: 768px) {
  html {
        font-size: 62.5%;
    }

    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav {
        position: absolute; 
        top: 100%;
        right: -100%;
        background: #ffdbeaff;
        width: 30rem;
        height: 100vh;
        transition: 0.3s;
    }

    .navbar .navbar-nav.active {
        right: 0;
    }

    .navbar .navbar-nav a {
        color: #BF092F;
        display: block;
        margin: 1,5rem;
        padding: 0.5rem;
        font-size: 2rem;

    }

    .navbar .navbar-nav a::after {
        transform-origin: 0 0;
    }

    .navbar .navbar-nav a:hover::after {
        transform: scaleX(0.2)
    }
}

/* contact section */

.contact .row {
    flex-wrap: wrap;
}

.contact .row .map {
    height: 30rem;
}

.contact .row form {
    padding-top: 0;
}

/* footer  */
footer {
     background-color: #d2f1ffff;
     text-align: center;
     padding: 1rem 0 3rem;
     margin-top: 3rem;
}

footer .socials {
    padding: 1rem 0;
}

footer .socials a {
    color: #11224E;
    margin: 1rem;
}

footer .socials a:hover {
    color: #BF092F;
}

footer .credit {
    font-size: 1.5rem;
}

footer .credit p {
  color: #11224E;
}

footer .credit a {
    color: #BF092F;
    font-weight: 700;
}

/* Handphone */
@media (max-width: 450px) {
  html {
        font-size: 50%;
    }
}