/* ACMI Youth – Modern theme overrides */

:root {
  --primary-color: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --secondary-color: #1e293b;
  --section-bg-color: #f8fafc;
  --site-footer-bg-color: #0f172a;
  --custom-btn-bg-color: #0d9488;
  --custom-btn-bg-hover-color: #0f766e;
  --p-color: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --body-font-family: 'Plus Jakarta Sans', 'Metropolis', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 700;
}

/* Section headings */
.section-heading {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), #34d399);
}

/* Top bar */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  padding: 10px 0;
}

.site-header .social-icon-link {
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.25s ease, transform 0.25s ease;
}

.site-header .social-icon-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Sticky navbar */
.modern-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.modern-nav .navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
}

.modern-nav .navbar-brand small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--primary-color);
}

.modern-nav .navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.25rem 1rem !important;
  position: relative;
}

.modern-nav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.modern-nav .navbar-nav .nav-link:hover::after,
.modern-nav .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.modern-nav .nav-link.custom-btn {
  background: linear-gradient(135deg, var(--primary-color), #14b8a6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.6rem 1.5rem !important;
  margin-top: 0.75rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.modern-nav .nav-link.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

/* Hero carousel */
.hero-section-full-height {
  height: 75vh;
  min-height: 520px;
  max-height: 720px;
}

#hero-slide .carousel-item {
  height: 75vh;
  min-height: 520px;
  max-height: 720px;
}

.carousel-image {
  min-height: 75vh;
  object-fit: cover;
  filter: brightness(0.85);
}

#hero-slide .carousel-caption {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  clip-path: none;
  color: #fff;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  min-width: unset;
  min-height: unset;
  text-align: left;
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
}

#hero-slide .carousel-caption h1,
#hero-slide .carousel-caption h2 {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

#hero-slide .carousel-caption p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 1.25rem;
  background-size: 50%;
  filter: invert(1);
  opacity: 0.8;
}

/* Featured blocks */
.featured-block {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.featured-block-text {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Cards & content blocks */
.custom-block-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-block-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.custom-block-image {
  border-radius: 0;
}

.custom-text-box,
.custom-text-block {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.custom-text-box-image,
.about-image,
.custom-block-image {
  border-radius: var(--radius-md);
}

/* Buttons */
.custom-btn,
.btn-primary {
  border-radius: 999px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

/* Forms */
.custom-form .form-control,
.form-control {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-form .form-control:focus,
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Progress bars */
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border-color);
}

.progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), #34d399);
}

/* Volunteer section */
.volunteer-section {
  background: linear-gradient(135deg, var(--secondary-color), #334155) !important;
}

/* Footer */
.site-footer {
  background: var(--site-footer-bg-color);
}

.site-footer-title {
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}

.site-footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-color);
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .social-icon-link {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}

.site-footer .social-icon-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Announcement */
.announcement-section {
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
  padding: 2.5rem 1rem;
}

.announcement-title {
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.announcement-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), #34d399);
}

.announcement-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.announcement-video {
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
  border: 1px solid var(--border-color);
}

/* Section spacing */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-bg {
  background: var(--section-bg-color);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-section-full-height,
  #hero-slide .carousel-item {
    height: 60vh;
    min-height: 400px;
  }

  .carousel-image {
    min-height: 60vh;
  }

  #hero-slide .carousel-caption {
    padding: 2rem 1.5rem;
  }

  #hero-slide .carousel-caption h1 {
    font-size: 2rem;
  }

  #hero-slide .carousel-caption h2 {
    font-size: 1.5rem;
  }
}

/* Modern lightbox gallery */
.g-backdrop-modern {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.g-overlay-modern lightbox {
  width: min(1100px, 94vw);
  height: min(820px, 90vh);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.g-overlay-modern lightbox gallery-core {
  background: #0f172a;
}

.g-overlay-modern .g-counter {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.g-overlay-modern .g-nav-next,
.g-overlay-modern .g-nav-prev {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: background 0.25s ease, transform 0.25s ease;
}

.g-overlay-modern .g-nav-next:hover,
.g-overlay-modern .g-nav-prev:hover {
  background: rgba(13, 148, 136, 0.8);
  transform: scale(1.08);
  opacity: 1;
}

.g-overlay-modern .g-nav-next svg,
.g-overlay-modern .g-nav-prev svg {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.g-overlay-modern gallery-thumbs {
  background: rgba(15, 23, 42, 0.6);
  padding: 0.75rem 0;
}

.g-overlay-modern .g-active-thumb {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 6px;
}

.g-overlay-modern .g-btn-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 1rem;
  top: 1rem;
  transition: background 0.25s ease;
}

.g-overlay-modern .g-btn-close:hover {
  background: rgba(239, 68, 68, 0.8);
}

@media (max-width: 768px) {
  .g-overlay-modern lightbox {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
  }
}
