/* ==========================================================================
   Import Fonts
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ==========================================================================
   Base Styles and Resets
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fc;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Button Styles
   ========================================================================== */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #e6ff32;
  color: #111111;
}

.btn-secondary:hover {
  background-color: #d8ea2a;
}

.btn-secondary .icon-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.btn-language {
  background-color: #2e8586;
  color: white;
  padding: auto 24px;
  border-radius: 16px;
  margin-left: 20px;
}

.btn-language:hover {
  background-color: #256d6e;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .sub-heading {
  font-size: 0.875rem;
  color: #2e8586;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.section-header .main-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #111111;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(0deg,
      rgb(26, 118, 71) -75%,
      rgb(38, 127, 110) 43.95%,
      rgb(46, 133, 134) 203.73%);
  color: white;
  padding: 12px 0;
  font-size: 1rem;
}

.announcement-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-bar p {
  font-weight: 600;
}

/* ==========================================================================
   Header/Navigation
   ========================================================================== */
.main-header {
  background-color: #02534A;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

.logo {
  width: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #e6ff32;
}

.nav-arrow {
  width: 10px;
  margin-left: 4px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background-color: #02534a;
  max-width: 100%;
  height: auto;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(360deg,
      rgba(17, 17, 17, 0) 0%,
      rgba(17, 17, 17, 0.424) 90.3%,
      rgb(17, 17, 17) 188.64%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Info PMB Section
   ========================================================================== */
.info-pmb-section {
  padding: 60px 0;
}

.info-pmb-section .section-header .main-heading {
  color: #2e8586;
}

.info-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-card {
  background-color: #e4f1f1;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(46, 133, 134, 0.15);
}

.info-card-icon {
  width: 24px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.25rem;
  color: #111111;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: #2E8586;
  flex-grow: 1;
  margin-bottom: 16px;
}

.info-card-arrow img {
  width: 28px;
  align-self: flex-end;
  margin-top: auto;
}

/* ==========================================================================
   Cokromuda Section
   ========================================================================== */
.cokromuda-section {
  padding: 60px 0;
  background-color: #facc15;
}

.cokromuda-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.cokromuda-card {
  background-color: #e4f1f1;
  color: #111111;
  padding: 24px 16px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cokromuda-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.cokromuda-card img {
  width: 32px;
}

/* ==========================================================================
   News and Campus Activities Section
   ========================================================================== */
.news-section,
.kegiatan-kampus-section {
  padding: 60px 0;
}

.news-section {
  background-color: #ffffff;
}

.kegiatan-kampus-section {
  background-color: #02534a;
}

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

.news-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.kegiatan-kampus-section .news-card,
.news-section .news-card {
  border: 1px solid #2e8586;
}

.news-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-content .news-category {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #2e8586;
  margin-bottom: 10px;
}

.news-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-card-content h3 a {
  color: #111;
}

.news-card-content h3 a:hover {
  color: #2e8586;
}

.news-card-content p {
  font-size: 0.9rem;
  color: #7f7f7f;
  max-height: 5.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
}

/* ==========================================================================
   Social Media Section
   ========================================================================== */
.social-media-section {
  padding: 50px 0;
}

.social-icons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.social-icons-container img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons-container img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ==========================================================================
   Testimonial Section
   ========================================================================== */
.testimoni-section {
  padding: 60px 0;
  background-color: #02534a;
}

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

.testimoni-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimoni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimoni-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.testimoni-card-content {
  padding: 12px;
  color: #111;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimoni-card-content .testimoni-meta {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #2e8586;
  margin-bottom: 8px;
}

.testimoni-card-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.testimoni-card-content .testimoni-role {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 12px;
  font-style: italic;
}

.testimoni-card-content .testimoni-text {
  font-size: 0.9rem;
  color: #7f7f7f;
  line-height: 1.5;
  max-height: 5em;
  overflow: hidden;
  text-overflow: ellipsis;
  quotes: "\201C" "\201D" "\2018" "\2019";
}

.testimoni-card-content .testimoni-text::before {
  content: open-quote;
  font-size: 1.5em;
  margin-right: 0.1em;
  vertical-align: -0.2em;
  color: #ccc;
}

/* ==========================================================================
   Partner Section
   ========================================================================== */
.mitra-section {
  padding: 60px 0;
}

.mitra-logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.mitra-logos-container img {
  max-height: 60px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(50%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.mitra-logos-container img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer-container {
  background-color: #facc15;
  color: #2e8586;
  padding: 50px 0 20px;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #111;
}

.footer-col.footer-about p {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #444;
}

.footer-col.footer-about h4 {
  margin-top: 10px;
}

.footer-logos-wrapper {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-logo {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: #2e8586;
}

.footer-col ul li a:hover {
  text-decoration: underline;
  color: #1a6747;
}

.footer-contact p {
  margin-bottom: 5px;
  display: flex;
  font-size: 0.85rem;
  color: #444;
}

.footer-contact p span {
  display: inline-block;
  width: 70px;
  font-weight: 500;
  color: #2e8586;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  color: #555;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
  .main-header .container {
    position: relative;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(2, 83, 74, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    margin: 0;
    width: 100%;
  }

  .main-nav a {
    padding: 12px 20px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .nav-arrow {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .hero-section {
    height: fit-content;
  }

  .section-header .main-heading {
    font-size: 1.75rem;
  }

  .logo-container {
    flex-grow: 1;
  }

  .btn-language {
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .hero-section {
    height: fit-content;
  }

  .announcement-bar {
    display: none;
  }

  .info-cards-container,
  .cokromuda-cards-container,
  .news-cards-container,
  .testimoni-cards-container,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mitra-logos-container {
    gap: 20px;
  }

  .mitra-logos-container img {
    max-height: 40px;
    max-width: 100px;
  }

  .footer-col.footer-about,
  .footer-col .footer-logos-wrapper {
    align-items: center;
  }

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

  .footer-contact p {
    justify-content: center;
  }

  .footer-contact p span {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: fit-content;
  }

  .social-icons-container {
    flex-direction: column;
  }

  .social-icons-container img {
    width: 100px;
    height: 100px;
  }
}