/* ======= RESET DASAR ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* ========================= */
/* HERO SECTION */
.hero {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #0a4d1a, #1e7f3e); /* gradasi hijau */
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================= */
/* SEJARAH SECTION */
.sejarah {
  padding: 80px 20px;
  background-color: #f8faf8;
}

.sejarah-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Item Sejarah */
.sejarah-item {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sejarah-item.left .sejarah-image {
  order: 0;
}

.sejarah-item.right .sejarah-image {
  order: 1;
}

.sejarah-image {
  flex: 1 1 500px;
  max-width: 600px;
}

.sejarah-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sejarah-content {
  flex: 1 1 400px;
}

.sejarah-content h2 {
  font-size: 28px;
  color: #0a4d1a;
  margin-bottom: 15px;
}

.sejarah-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* ========================= */
/* RESPONSIVE DESIGN */

/* TV Ultra Wide */
@media (min-width: 1600px) {
  .hero-content h2 {
    font-size: 60px;
  }
  .hero-content p {
    font-size: 24px;
  }
  .sejarah-content h2 {
    font-size: 32px;
  }
  .sejarah-content p {
    font-size: 18px;
    text-align: justify;
  }
}

/* Komputer & Laptop */
@media (min-width: 1200px) and (max-width: 1599px) {
  .hero-content h2 {
    font-size: 50px;
  }
  .hero-content p {
    font-size: 20px;
  }
  .sejarah-content h2 {
    font-size: 28px;
  }
  .sejarah-content p {
    font-size: 16px;
    text-align: justify;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: 38px;
  }
  .hero-content p {
    font-size: 18px;
    
  }
  .sejarah-item {
    flex-direction: column;
    gap: 30px;
  }
  .sejarah-image,
  .sejarah-content {
    flex: 1 1 100%;
  }
  .sejarah-content h2 {
    font-size: 24px;
  }
  .sejarah-content p {
    font-size: 15px;
    text-align: justify;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    min-height: 60vh;
    padding: 40px 15px;
  }
  .hero-content h2 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 14px;
  }
  .sejarah-container {
    gap: 40px;
  }
  .sejarah-content h2 {
    font-size: 20px;
  }
  .sejarah-content p {
    font-size: 14px;
    text-align: justify;
  }
  .sejarah-image img {
    border-radius: 10px;
  }
}


/* ========================= */
/* === PROFIL PIMPINAN ==== */
/* ========================= */
.profil-pimpinan {
  padding: 50px 20px;
  text-align: center;
  background-color: #f8faf8;
  
}

.profil-pimpinan h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #0a4d1a;
}

.profil-pimpinan .subtitle {
  font-size: 16px;
  margin-bottom: 40px;
  color: #555;
}

/* === GRID === */
.profil-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
  align-items: start;
}

/* === PROFIL CARD === */
.profil-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 15px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Gambar persegi panjang tanpa terpotong, menyesuaikan tinggi asli */
.profil-card img {
  width: 100%;
  height: auto;       /* menyesuaikan rasio asli */
  border-radius: 10px;
  object-fit: contain; /* gambar penuh, tidak terpotong */
  margin-bottom: 15px;
  background-color: #e0e0e0;
}

/* Nama & Jabatan */
.profil-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #0a4d1a;
}

.profil-card .jabatan {
  font-size: 14px;
  color: #555;
}

/* Hover Efek */
.profil-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* === Layout Khusus === */
/* Rektor paling atas */
.profil-grid .profil-card:nth-child(1) {
  grid-column: 1 / -1; /* full width */
}

/* 4 Wakil Rektor baris kedua */
.profil-grid .profil-card:nth-child(n+2):nth-child(-n+5) {
  /* otomatis berjajar sesuai grid-template-columns */
}

/* Kabag Humas paling bawah */
.profil-grid .profil-card:nth-child(6) {
  grid-column: 1 / -1; /* full width */
}

/* ========================= */
/* === RESPONSIVE DESIGN === */
/* ========================= */

/* Tablet: 2 kolom */
@media (max-width: 1024px) {
  .profil-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profil-card {
    max-width: 90%;
  }

  
}

/* Mobile: 1 kolom */
@media (max-width: 768px) {
  .profil-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .profil-card {
    max-width: 90%;
    margin: 0 auto;
  }

  .profil-pimpinan h2 {
    font-size: 24px;
   
  }

  .profil-pimpinan .subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .profil-card h3 {
    font-size: 16px;
  }

  .profil-card .jabatan {
    font-size: 13px;
  }
}

/* Smartphone kecil < 480px */
@media (max-width: 480px) {
  .profil-pimpinan {
    margin-bottom: 20px;
  }
  .profil-card img {
    max-width: 100%;
    height: auto;
  }
}

/* ==========================
   PMB SECTION
   ========================== */
.pmb-section {
  width: 100%;
  padding: 80px 20px;
  background: #0A4D1A;
  color: #fff;
}

.pmb-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 30px;
}

/* Teks PMB */
.pmb-text {
  flex: 1 1 500px;
  z-index: 2;
}

.pmb-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #FFD700;
}

.pmb-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.pmb-btn {
  display: inline-block;
  background-color: #FFD700;
  color: #0A4D1A;
  font-weight: bold;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pmb-btn:hover {
  background-color: #fff;
  color: #0A4D1A;
  transform: translateY(-3px);
}

/* Gambar PMB */
.pmb-image {
  flex: 1 1 500px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.pmb-image img {
  width: 48%; /* dua gambar per baris */
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.pmb-image img:hover {
  transform: scale(1.05);
}

/* ==========================
   RESPONSIVE
   ========================== */

/* TV besar */
@media (min-width: 1600px) {
  .pmb-text h2 { font-size: 4.5rem; }
  .pmb-text p { font-size: 1.8rem; }
  .pmb-btn { padding: 20px 45px; }
  .pmb-image img { width: 100%; }
}

/* Desktop / Laptop besar */
@media (min-width: 1200px) and (max-width: 1599px) {
  .pmb-text h2 { font-size: 3.8rem; }
  .pmb-text p { font-size: 1.5rem; }
  .pmb-btn { padding: 18px 40px; }
  .pmb-image img { width: 100%; }
}

/* Laptop / Tablet */
@media (min-width: 992px) and (max-width: 1199px) {
  .pmb-text h2 { font-size: 3.5rem; }
  .pmb-text p { font-size: 1.3rem; }
  .pmb-btn { padding: 16px 35px; }
  .pmb-image img { width: 80%; }
}

/* Tablet / Mobile landscape */
@media (min-width: 600px) and (max-width: 991px) {
  .pmb-container {
    flex-direction: column-reverse; /* gambar di bawah teks */
    align-items: center;
  }
  .pmb-text h2 { font-size: 2.8rem; text-align: center; }
  .pmb-text p { font-size: 1.2rem; text-align: center; }
  .pmb-btn { padding: 14px 30px; }
  .pmb-image img { width: 90%; }
}

/* Mobile kecil */
@media (max-width: 599px) {
  .pmb-text h2 { font-size: 2rem; text-align: center; }
  .pmb-text p { font-size: 1rem; text-align: center; }
  .pmb-btn { padding: 12px 25px; }
  .pmb-image img { width: 100%; margin-bottom: 15px; }
}
