/* css/style.css */

:root {
  --navy-dark: #0D2447;
  --navy-light: #1a3a69;
  --accent-gold: #FBBF24;
  --light-bg: #F8F9FA;
  --text-dark: #333333;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg) !important;
  color: var(--text-dark);

  /* --- Sticky Footer Setup --- */
  display: flex;          /* 1. Use flexbox for the body's direct children */
  flex-direction: column; /* 2. Stack children vertically */
  min-height: 100vh;      /* 3. Ensure body is at least as tall as the viewport */
}

/* Make the main content area grow to push the footer down */
main {
  flex-grow: 1;
}

/* Style the footer for centering its content */
footer {
  /* `flex-grow` was moved to `main` */
  display: flex;
  align-items: center;    /* Center content vertically */
  justify-content: center;/* Center content horizontally */
  /* Note: You may want to add padding or a min-height here */
}

/* --- Navigation Bar --- */
nav.bg-white {
  background-color: var(--navy-dark) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

nav .text-gray-500 {
  color: var(--white) !important;
  transition: color 0.3s ease;
}

nav a.text-gray-500:hover {
  color: var(--accent-gold) !important;
}

nav a.bg-green-500 {
  background-color: var(--accent-gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

nav a.bg-green-500:hover {
  background-color: #fca700 !important;
}

/* --- General Typography & Sections --- */
h1, h2, h3 {
  color: var(--navy-dark);
}

section#menu .grid > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
}

section#menu .grid > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Buttons & Modals --- */
.bg-blue-500 {
  background-color: var(--navy-dark) !important;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.bg-blue-500:hover {
  background-color: var(--navy-light) !important;
}

.modal-header {
  background-color: var(--navy-dark);
  color: var(--white);
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-footer .btn-primary {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  transition: background-color 0.3s ease;
}

.modal-footer .btn-primary:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
}

/* --- Hero Section Typing Animation --- */
#hero-title {
  border-right: .15em solid var(--navy-dark);
  white-space: nowrap;
  overflow: hidden;
  animation: blinking-cursor .75s step-end infinite;
  line-height: 1.2;
  padding-bottom: 0.1em;
  display: inline-block;
}

@keyframes blinking-cursor {
  from, to { border-color: transparent }
  50% { border-color: var(--navy-dark); }
}

/* --- Gallery Section --- */
.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Edukasi Section --- */
#edukasi .bg-white {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#edukasi .bg-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Merged and cleaned up icon styles for Edukasi section */
#edukasi img {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  transition: transform 0.3s ease-in-out;
}

#edukasi img:hover {
  transform: scale(1.15) rotate(7deg);
}