@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

    .logo img {
      height: 30px;
    }

    /* ABOUT SECTION */
    .alarm-image {
      width: 100%;
      max-width: 500px;
      display: block;
      margin: 2rem auto;
    }
    .about-header {
      text-align: center;
      margin: 4rem auto 2rem;
    }
    .about-header h1 {
      font-size: 4rem;
      color: #00B1B7;
      margin: 0;
    }
    .about-header h5 {
    color: #00B1B7;
    font-size: 1.4rem; /* ubah ukuran sesuai kebutuhan, misalnya 2rem untuk lebih besar */
    font-weight: 700;  /* bold */
    margin-bottom: 0.5rem;
  	}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1;
  padding: 0.5rem 0;
  border-radius: 8px;
}

.dropdown-content a {
  color: #333;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #EEFEFF;
  color: #00B1B7;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Tambahkan/ubah CSS untuk dropdown di file style.css Anda */

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  max-height: 400px;        /* NEW: Batasi tinggi maksimal */
  overflow-y: auto;         /* NEW: Tambahkan scroll vertikal */
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;           /* Tingkatkan z-index agar tidak tertutup */
  padding: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0; /* NEW: Tambahkan border untuk clarity */
}

/* Custom scrollbar styling (opsional - untuk browser webkit) */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #00B1B7;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #00969b;
}

/* Styling untuk item dropdown */
.dropdown-content a {
  color: #333;
  padding: 12px 20px;      /* Sedikit lebih besar untuk kemudahan klik */
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #EEFEFF;
  color: #00B1B7;
}

/* Pastikan dropdown tetap muncul saat hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Responsive: Sesuaikan tinggi untuk mobile */
@media (max-width: 768px) {
  .dropdown-content {
    max-height: 300px;     /* Lebih pendek di mobile */
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .dropdown-content {
    max-height: 250px;     /* Lebih pendek lagi di mobile kecil */
    min-width: 180px;
  }
}
.logo {
    flex: 1;
}

.nav-wrapper {
    flex: 2;
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
    transform: scale(1.15); /* efek pop out */
    color: #00B1B7;         /* opsional: ubah warna saat hover */
}

/* Auth buttons styling - UPDATED */
.auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-auth {
	  color: white;
  padding: 6px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
	background: #00B1B7;  
  transition: all 0.3s ease;
}


.btn-auth:hover {
  background: #00969b;
}

.auth {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.auth a {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-block;
    line-height: 1;
    transition: all 0.3s ease;
}

.hero {
    position: relative;
    text-align: center;
	background-color: white;
}

.hero img {
    width: auto;
	height: 95vh;
    max-width: 100%;
	object-fit: contain;
	border-radius: 0px;
	display: block;
	margin: 0 auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    height: 90vh;
    background: rgba(0, 0, 0, 0.4); /* efek shadow */
    border-radius: 0px;
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 72%; /* awalnya 25%, digeser ke bawah */
    left: 50%;
    transform: translate(-50%, -60%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* tambahkan shadow */
	z-index: 2;
}

.hero-text h1 {
    font-size: 3.7rem;
    font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.hero-text .btn {
    margin-top: 2rem; /* tambahkan jarak dari teks ke tombol */
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 14px 36px; /* Dibesarkan */
    font-size: 1.1rem;   /* Ukuran teks diperbesar */
    background: #00B1B7;
    color: white;
    border-radius: 40px; /* Agar tetap proporsional */
    text-decoration: none;
    font-weight: 700;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2); /* Tambahan opsional */
    transition: 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    background: #009da2; /* Sedikit gelap saat hover */
}


.services {
    background-color: #ffffff; /* putih */
    padding: 4rem 2rem 6rem;
    text-align: center;
}

.services h2 {
    font-size: 2.8rem;       /* lebih besar */
    font-weight: 700;        /* bold */
    color: #00B1B7;          /* tetap warna khas RS Awal Bros */
    margin-bottom: 2.5rem;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 3rem;
    justify-content: center;       /* NEW: grid container rata tengah */
    justify-items: center;         /* NEW: item di dalam grid rata tengah */
    align-items: center;
    padding: 2rem 0;
    max-width: 1200px;             /* NEW: batasi lebar grid */
    margin: 0 auto;                /* NEW: posisikan grid di tengah */
}


.icons-grid img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.appointment {
  background-color: #00B1B7;
  color: white;
  text-align: center;
  padding: 1rem 1rem;
  font-family: 'Poppins', sans-serif;
}

.appointment h3 {
  font-size: 1.5rem;
  font-weight: 600;
	margin-top: 1.5rem;
}

.appointment h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
	margin-top: 1.5rem;
}

.appointment p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn-reserve {
  display: inline-block;
  background: white;
  color: #00B1B7;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.btn-reserve:hover {
  transform: scale(1.05);
}

footer {
    background: #EEFEFF;
    padding: 3rem 2rem 2rem;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Tambahkan padding-right jika ada white space yang terlalu banyak di kanan */
    /* padding-right: Xpx; */ /* Sesuaikan X dengan kebutuhan */
}

.footer-left {
    flex: 1;
	display: flex;
	flex-direction: column
}

.footer-logo {
    width: 160px;
    margin-bottom: 1rem;
	margin-left: -10px;
}

.follow-title {
    font-weight: 700;
    color: #00B1B7;
    margin-bottom: 0.5rem;
}


.social-icons a {
    font-size: 1.8rem;
    color: #00B1B7;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #00B1B7;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

.btn-footer {
    padding: 12px 28px;
    background: #00B1B7;
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-footer:hover {
    transform: scale(1.05);
    box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.2);
}


.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #555;
}

/* responsive buat hp dan tablet */
/* Tambahkan CSS responsive ini ke file style.css Anda */

/* Desktop hero text (default) */
.hero-text h1 {
    font-size: 3.7rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* ========== TABLET STYLES (768px - 1024px) ========== */
@media (max-width: 1024px) {

  header {
    padding: 1rem 1.5rem;
  }
  
  nav {
    gap: 1.5rem;
  }
  
  /* Header adjustments */
	 .hero-text h1 {
    font-size: 2.8rem;  /* Dikecilkan dari 3rem */
    line-height: 1.2;
    margin: 0;
    padding: 0 1rem;    /* Tambah padding samping */
  }
	  
	.hero-text {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;         /* Batasi lebar */
    max-width: 600px;   /* Max width untuk tablet */
  }
  
  .hero img {
    height: 85vh;
  }
  
  .overlay {
    height: 80vh;
  }
    
	.btn {
    padding: 12px 28px;
    font-size: 1rem;
    margin-top: 1.5rem;
  }
  /* Services grid - 3 columns for tablet */
  .icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    padding: 1.5rem 0;
  }
  
  .icons-grid img {
    width: 150px;
  }
  
  /* Services title */
  .services h2 {
    font-size: 2.5rem;
  }
  
  /* Appointment section */
  .appointment h1 {
    font-size: 2.5rem;
  }
  
  .appointment h3 {
    font-size: 1.3rem;
  }
}

/* ========== MOBILE STYLES (768px and below) ========== */
@media (max-width: 768px) {
  /* Header - Stack vertically */
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }
    
	.hero-text {
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 400px;
    padding: 0 1rem;
  }
	
	.hero-text h1 {
    font-size: 2rem;    /* Lebih kecil dari sebelumnya */
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-align: center;
  }
	
  .logo {
    order: 1;
  }
  
  .nav-wrapper {
    order: 2;
    flex: none;
  }
  
  .auth {
    order: 3;
    flex: none;
    justify-content: center;
  }
  
  nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Dropdown adjustments */
  .dropdown-content {
    max-height: 300px;
    min-width: 200px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Hero section */
  .hero img {
    height: 60vh;
  }
  
  .overlay {
    height: 55vh;
  }
  
  .hero-text {
    top: 65%;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
	.btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    margin-top: 1.2rem;
    border-radius: 30px;
  }
	
  
  /* Services section */
  .services {
    padding: 3rem 1rem 4rem;
  }
  
  .services h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Services grid - 2 columns for mobile */
  .icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
  }
  
  .icons-grid img {
    width: 120px;
  }
  
  /* Appointment section */
  .appointment {
    padding: 2rem 1rem;
  }
  
  .appointment h3 {
    font-size: 1.2rem;
  }
  
  .appointment h1 {
    font-size: 2rem;
    margin: 1rem 0;
  }
  
  .appointment p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .btn-reserve {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 1rem 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    align-items: center;
  }
  
  .footer-left {
    align-items: center;
    width: 100%;
  }
  
  .footer-logo {
    width: 120px;
    margin-left: 0;
    margin-bottom: 1rem;
  }
  
  .follow-title {
    font-weight: 700;
    color: #00B1B7;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
  }
  
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .social-icons a {
    font-size: 1.4rem;
    color: #00B1B7;
    margin: 0;
    transition: transform 0.3s ease;
  }
  
  .footer-right {
    align-items: center;
    width: 100%;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-links a {
    color: #00B1B7;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .btn-footer {
    padding: 12px 28px;
    background: #00B1B7;
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    color: #666;
  }
}

/* ========== SMALL MOBILE STYLES (480px and below) ========== */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 0.8rem;
  }
	
	
  .logo img {
    height: 30px;
  }
  
  nav {
    gap: 0.8rem;
    font-size: 0.9rem;
  }
  
  .btn-auth {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  /* Hero section */
  .hero img {
    height: 50vh;
  }
  
  .overlay {
    height: 45vh;
  }
	
   .hero-text {
   width: 98%;
   max-width: 320px;
   padding: 0 0.5rem;
  }
	
  .hero-text h1 {
   font-size: 1.6rem;  /* Lebih kecil lagi */
   line-height: 1.0;
   margin: 0;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
  
  /* Services */
  .services {
    padding: 2rem 0.8rem 3rem;
  }
  
  .services h2 {
    font-size: 1.7rem;
  }
  
  .icons-grid img {
    width: 100px;
  }
  
  /* Appointment */
  .appointment {
    padding: 1.5rem 0.8rem;
  }
  
  .appointment h1 {
    font-size: 1.8rem;
  }
  
  .appointment h3 {
    font-size: 1.1rem;
  }
  
  .appointment p {
    font-size: 0.85rem;
  }
  
  /* Footer */
  footer {
    padding: 1.5rem 0.8rem 1rem;
  }
  
  .footer-logo {
    width: 100px;
  }
  
  .follow-title {
    font-size: 1rem;
  }
  
  .social-icons a {
    font-size: 1.2rem;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .btn-footer {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
    margin-top: 1rem;
  }
}

/* ========== EXTRA SMALL MOBILE (360px and below) ========== */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 1.4rem;
    line-height: 0.95;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .footer-logo {
    width: 90px;
  }
  
  .social-icons a {
    font-size: 1.1rem;
  }
}

/* ========== EXTRA FEATURES ========== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-auth, .btn-reserve, .btn-footer {
    min-height: 44px;
    min-width: 44px;
  }
  
  nav a {
    padding: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Hide horizontal scroll */
body {
  overflow-x: hidden;
}

/* Improve dropdown on touch devices */
@media (hover: none) {
  .dropdown-content {
    display: none;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* Desktop: Tetap pakai hover */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .dropdown-toggle:hover .fas {
    transform: rotate(180deg);
  }
}

/* Mobile: Pakai click */
@media (hover: none) and (pointer: coarse) {
  /* Default state - dropdown hidden */
  .dropdown-content {
    display: none;
  }
  
  /* Active state - dropdown visible */
  .dropdown.active .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease;
  }
  
  /* Rotate arrow when active */
  .dropdown.active .dropdown-toggle .fas {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }
  
  /* Make dropdown toggle more touch-friendly */
  .dropdown-toggle {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    cursor: pointer;
    user-select: none;
  }
  
  /* Prevent link default behavior on mobile */
  .dropdown-toggle {
    pointer-events: auto;
  }
}

/* Animation for smooth dropdown */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
