/* Variables - Hijau Tua & Emas (PTA Theme) */
:root {
  --primary-color: #1B5E20; /* Hijau Tua */
  --primary-light: #4c8c4a;
  --primary-dark: #003300;
  --secondary-color: #C8A951; /* Emas */
  --secondary-light: #fbeaba;
  --text-dark: #333333;
  --text-light: #777777;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--secondary-color);
}

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

.section-bg-light {
  background-color: #fcfcfc;
}

.title-separator {
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 30px auto;
  border-radius: 2px;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
  padding-bottom: 0;
  color: var(--primary-color);
}

/* Header & Navbar */
.header {
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  background: rgba(27, 94, 32, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.header .logo {
  text-decoration: none;
}

.header .logo img {
  max-height: 50px;
  margin-right: 10px;
}

.header .logo-text {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

.header .logo-text small {
  font-size: 12px;
  font-weight: 400;
  color: var(--secondary-color);
}

.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
  transition: 0.3s;
  font-weight: 500;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--secondary-color);
}

/* Dropdown */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--white);
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
  min-width: 200px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  color: var(--text-dark);
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: var(--primary-color);
  background: var(--bg-light);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

/* Hero Section (Carousel) */
#hero {
  width: 100%;
  padding: 0;
  margin-top: 80px; /* Offset for fixed header */
}

#heroCarousel {
  width: 100%;
}

#heroCarousel .carousel-item {
  background: #1a5c1a;
  aspect-ratio: 3 / 1;
  width: 100%;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  display: block;
}

#heroCarousel .carousel-caption {
  bottom: 20%;
  background: rgba(27, 94, 32, 0.7);
  padding: 20px 40px;
  border-left: 5px solid var(--secondary-color);
  border-radius: 4px;
  text-align: left;
  backdrop-filter: blur(5px);
}

#heroCarousel .carousel-caption h5 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}

.hero-default {
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(rgba(27, 94, 32, 0.8), rgba(27, 94, 32, 0.9)), url('../img/pta-bg.jpg') center/cover;
}

.hero-default h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-default h2 {
  color: var(--secondary-color);
  font-size: 24px;
}

/* Quick Links */
.quick-links {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.quick-link-item {
  display: block;
  padding: 15px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.quick-link-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.quick-link-item img {
  max-height: 60px;
  width: auto;
}

/* Profil Section */
.profil-section {
  padding: 60px 0;
}

.content-box {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  border-top: 4px solid var(--primary-color);
}

/* Team Section */
.team-section {
  padding: 60px 0;
}

.member {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  margin-bottom: 30px;
  width: 100%;
}

.member:hover {
  transform: translateY(-10px);
}

.member .member-img {
  position: relative;
  overflow: hidden;
}

.member .member-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top;
}

.member .social {
  position: absolute;
  left: 0;
  bottom: -40px;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 94, 32, 0.8);
  transition: bottom 0.3s ease-in-out;
}

.member:hover .social {
  bottom: 0;
}

.member .social a {
  transition: color 0.3s;
  color: var(--white);
  margin: 0 10px;
  font-size: 18px;
}

.member .social a:hover {
  color: var(--secondary-color);
}

.member .member-info {
  padding: 25px 15px;
  text-align: center;
}

.member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: var(--primary-color);
}

.member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #aaaaaa;
}

.member .member-info .ppid-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 10px;
  margin-bottom: 0;
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(27, 94, 32, 0.9), rgba(27, 94, 32, 0.9)), url("../img/cta-bg.jpg") fixed center center;
  background-size: cover;
  padding: 60px 0;
}

.cta h3 {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
}

.cta p {
  color: var(--white);
}

.cta-btn {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 35px;
  border-radius: 50px;
  transition: 0.5s;
  margin-top: 10px;
  border: 2px solid var(--white);
  color: var(--white);
  background: var(--primary-color);
}

.cta-btn:hover {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--white);
}

/* Page Hero (Internal Pages) */
.page-hero {
  margin-top: 80px;
  background: var(--primary-color);
  padding: 40px 0;
  color: var(--white);
}

.page-hero h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: var(--white);
  opacity: 0.8;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--white);
  opacity: 0.5;
}

/* Dynamic Page Content */
.page-content {
  padding: 60px 0;
}

.dynamic-content h1, .dynamic-content h2, .dynamic-content h3 {
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.dynamic-content p {
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 15px;
}

.dynamic-content ol, .dynamic-content ul {
  line-height: 1.8;
  margin-bottom: 20px;
}

.dynamic-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.dynamic-content table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse;
}

.dynamic-content table th, .dynamic-content table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

/* Gallery Section */
.gallery-section {
  padding: 60px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 94, 32, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-info {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-info h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.gallery-info i {
  font-size: 28px;
  color: var(--secondary-color);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 14px;
}

.footer .footer-top {
  padding: 60px 0 30px 0;
  background: var(--primary-color);
}

.footer .footer-info h4 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer .footer-info p {
  margin-bottom: 10px;
}

.footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-dark);
}

.footer .footer-links h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--white);
  padding-bottom: 12px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  color: var(--secondary-color);
  font-size: 18px;
  line-height: 1;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--secondary-color);
}

.footer .footer-bottom {
  padding: 20px 0;
  text-align: center;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: var(--primary-dark);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--primary-light);
  color: var(--white);
}

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