/* Custom Styles for LPK JBA */
:root {
  /* Primary Colors */
  --primary-blue: #4A90B8;
  --secondary-gold: #E6B566;
  --dark-navy: #1E2B4D;
  --accent-blue: #5A9BD4;
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  --gradient-gold: linear-gradient(135deg, var(--secondary-gold) 0%, #F4D03F 100%);
  --gradient-overlay: linear-gradient(to right, rgba(30, 43, 77, 0.8), rgba(74, 144, 184, 0.8));
  
  /* Background Colors */
  --light-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --footer-bg: #1E2B4D;
}

/* Card Styles */
.card {
  border: 0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.03);
}

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

.card-title {
  color: var(--dark-navy);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card-text {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

/* Section Styles */
.section {
  padding: 100px 0;
  position: relative;
  background-color: #fff;
}

.section:nth-child(even) {
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 20px;
  color: var(--dark-navy);
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title p {
  color: #6B7280;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Footer Styles */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

footer h5 {
  color: #fff;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

footer h5:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-gold);
}

footer a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 10px;
}

footer a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 5px;
}

.footer-bottom {
  background: rgba(0,0,0,0.1);
  padding: 20px 0;
  margin-top: 60px;
  font-size: 14px;
  text-align: center;
}

/* Social Links */
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

/* Button Styles */
.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0,0,0,0.15);
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-gold);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-primary:hover:before {
  width: 100%;
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

/* Navbar - DISABLED: using navbar-override.css instead */
/*
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
*/

.navbar-brand img {
  max-height: 50px;
  transition: all 0.3s ease;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-nav .nav-link {
  color: var(--dark-navy);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-blue);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 70%;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    margin: 0;
  }
  
  .navbar-nav .nav-link:after {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 180px 0 220px;
  overflow: hidden;
  background: var(--gradient-primary);
  color: #fff;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg-pattern.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Features Section */
.feature-box {
  padding: 2.5rem 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(74, 144, 184, 0.3);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-navy);
}

.feature-text {
  color: #6B7280;
  margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 0 1rem;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-text {
  font-style: italic;
  color: #4B5563;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-blue);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
}

.testimonial-author h5 {
  margin: 0;
  color: var(--dark-navy);
  font-weight: 600;
}

.testimonial-author p {
  margin: 0;
  color: #6B7280;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--gradient-primary);
  color: #fff;
  overflow: hidden;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/pattern.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.cta-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(74, 144, 184, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(74, 144, 184, 0.4);
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 150px 0 180px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 1rem;
  }
  
  .hero-image {
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 80px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 120px 0 150px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .feature-box {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 1.1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Utility Classes */
.rounded-lg {
  border-radius: 12px !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.transition {
  transition: all 0.3s ease;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.opacity-8 {
  opacity: 0.8;
}

.opacity-9 {
  opacity: 0.9;
}

.z-1 {
  z-index: 1;
}

.z-2 {
  z-index: 2;
}

.z-3 {
  z-index: 3;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .container {
    width: auto;
    max-width: 100%;
    padding: 0;
  }
  
  .card {
    border: 1px solid #ddd;
    box-shadow: none !important;
  }
  
  /* .navbar {
    display: none !important;
  } */
  
  footer {
    display: none !important;
  }
}

/* Responsive Video Iframe Styling */
/* Desktop: Make iframe height match text column height */
@media (min-width: 992px) {
  .cinematic-about .row {
    display: flex;
    align-items: stretch;
  }
  
  .cinematic-about .col-md-6 {
    display: flex;
    flex-direction: column;
  }
  
  .cinematic-about .about-text-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .cinematic-about .video-container-modern {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .cinematic-about .ratio {
    height: 100%;
    width: 100%;
    flex: 1;
  }
  
  .cinematic-about .video-container-modern iframe {
    height: 100% !important;
    width: 100% !important;
    min-height: 370px;
  }
}

/* Tablet/Mobile: Maintain normal aspect ratio */
@media (max-width: 991.98px) {
  .cinematic-about .video-container-modern iframe {
    height: auto !important;
    width: 100% !important;
    min-height: 300px;
  }
}

/* Program Grid Styles (updated per spec) */
.program-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 1199px) { .program-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }

/* Program Card (per spec) */
.program-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease;
  cursor: default;
  min-height: 150px;
}
.program-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.program-icon { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4/3; }
.program-icon img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; transition: transform .2s ease; }
.program-card:hover .program-icon img { transform: scale(1.08); }

.program-label { font-weight: 600; font-size: 15px; text-align: center; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Only "Lainnya" clickable */
.program-card.is-link { text-decoration: none; color: inherit; cursor: pointer; outline: none; }
.program-card.is-link:hover { background: #004aad; color: #fff; }
.program-card.is-link:hover img { filter: brightness(0) invert(1); }
.program-card.is-link:focus { box-shadow: 0 0 0 3px rgba(0,74,173,.35), 0 4px 20px rgba(0,0,0,.06); }

/* Reveal states (kept, ensure visible once triggered) */
.program-reveal { opacity: 0; transform: translateY(14px) scale(.96); }
.program-reveal.is-visible { opacity: 1; transform: none; transition: opacity .32s cubic-bezier(.22,1,.36,1), transform .32s cubic-bezier(.22,1,.36,1); }
