/* ============================================================
   ASPILUKI - Custom Styles
   Asosiasi Piranti Lunak Telematika Indonesia
   ============================================================ */

/* ----- Google Fonts Import ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ----- Root Variables ----- */
:root {
  /* Primary Green */
  --primary-green: #1B7A3E;
  --primary-green-rgb: 27, 122, 62;
  --primary-green-dark: #15632f;
  --primary-green-light: #239e52;

  /* Dark Green */
  --dark-green: #2E7D32;
  --dark-green-rgb: 46, 125, 50;

  /* Blue */
  --primary-blue: #1565C0;
  --primary-blue-rgb: 21, 101, 192;
  --primary-blue-dark: #0D47A1;
  --primary-blue-light: #1e88e5;

  /* Dark Blue */
  --dark-blue: #0D47A1;
  --dark-blue-rgb: 13, 71, 161;

  /* Navy Footer */
  --navy-footer: #0A2342;
  --navy-footer-rgb: 10, 35, 66;

  /* Text & Neutral */
  --text-dark: #1A1A2E;
  --text-dark-rgb: 26, 26, 46;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;

  /* Backgrounds */
  --bg-light: #eaf5ee;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.15);

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-round: 50%;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.4s ease;

  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --section-padding-mobile: 50px 0;

  /* Sizing */
  --navbar-height: 72px;
  --top-border-size: 4px;
}

/* ----- Base Reset & Typography ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: linear-gradient(180deg, #eaf5ee 0%, #e3f2fd 50%, #e8f5e9 100%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--dark-blue);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  padding-left: 0;
  list-style: none;
}

/* ----- Selection ----- */
::moz-selection {
  background: var(--primary-green);
  color: #fff;
}

::selection {
  background: var(--primary-green);
  color: #fff;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green-dark);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-green) var(--bg-light);
}

/* ----- Section Container ----- */
.section {
  padding: var(--section-padding);
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-green);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title.text-start::after {
  margin: 12px 0 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ----- Navbar ----- */
.navbar {
  background: var(--primary-green) !important;
  box-shadow: var(--shadow-sm);
  padding: 0 1rem;
  height: var(--navbar-height);
  transition: var(--transition-base);
  z-index: 1030;
}

.navbar.navbar-scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff !important;
  letter-spacing: 1px;
  padding: 0;
}

.navbar-brand span {
  color: rgba(255, 255, 255, 0.85);
}

.navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  color: #fff !important;
}

.navbar .navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px 2px 0 0;
}

/* Navbar Dropdown */
.navbar .dropdown-menu {
  border: none;
  border-top: 3px solid var(--primary-green);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  margin-top: 0;
}

.navbar .dropdown-menu .dropdown-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.navbar .dropdown-menu .dropdown-item:hover {
  background: rgba(var(--primary-green-rgb), 0.08);
  color: var(--primary-green);
}

.navbar .dropdown-menu .dropdown-item.active {
  background: var(--primary-green);
  color: #fff;
}

.navbar .nav-cta-btn {
  background: #fff;
  color: var(--primary-green) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition-base);
  border: 2px solid #fff;
}

.navbar .nav-cta-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-green-dark) !important;
  transform: translateY(-1px);
}

.navbar .nav-cta-btn-outline {
  background: transparent;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
}

.navbar .nav-cta-btn-outline:hover {
  background: #fff;
  color: var(--primary-green) !important;
  transform: translateY(-1px);
}

/* Navbar user avatar */
.navbar .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-round);
  object-fit: cover;
  margin-right: 8px;
}

/* Hamburger toggler */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: #fff;
}

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Hero Section ----- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-green-dark) 50%, var(--primary-green) 100%);
  overflow: hidden;
  margin-top: calc(-1 * var(--navbar-height));
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
}

.hero-section .hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.hero-section .hero-content p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .hero-buttons .btn {
  margin: 0.5rem;
  min-width: 180px;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition-base);
}

.hero-section .hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Hero slider */
.hero-slider .carousel-item {
  min-height: 85vh;
  background-size: cover;
  background-position: center;
}

.hero-slider .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-slider .carousel-caption {
  z-index: 2;
  bottom: 50%;
  transform: translateY(50%);
  left: 10%;
  right: 10%;
}

.hero-slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  opacity: 1;
}

.hero-slider .carousel-indicators button.active {
  background: #fff;
  border-color: #fff;
}

/* ----- WhatsApp Floating Button ----- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #20bd5a;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
  font-size: 1.6rem;
}

/* ----- Feature Cards ----- */
.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 4px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}

.feature-card .icon-circle {
  width: 72px;
  height: 72px;
  background: rgba(var(--primary-green-rgb), 0.1);
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition-base);
}

.feature-card:hover .icon-circle {
  background: var(--primary-green);
  color: #fff;
}

.feature-card .icon-circle i {
  font-size: 1.75rem;
  color: var(--primary-green);
  transition: var(--transition-base);
}

.feature-card:hover .icon-circle i {
  color: #fff;
}

.feature-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ----- News Cards ----- */
.news-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.news-card .news-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.news-card .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-thumbnail img {
  transform: scale(1.05);
}

.news-card .news-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 3rem;
  min-height: 180px;
}

.news-card:hover .news-thumbnail-placeholder {
  transform: scale(1.05);
  transition: var(--transition-slow);
}

.news-card .news-body {
  padding: 1.25rem;
}

.news-card .news-category {
  display: inline-block;
  background: var(--primary-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.news-card .news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card .news-title a {
  color: var(--text-dark);
}

.news-card .news-title a:hover {
  color: var(--primary-blue);
}

.news-card .news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-card .news-meta i {
  margin-right: 0.35rem;
}

.news-card .news-read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.news-card .news-read-more:hover {
  color: var(--dark-blue);
  gap: 0.6rem;
}

/* Horizontal news card layout */
.news-card-horizontal .row {
  align-items: center;
}

.news-card-horizontal .news-thumbnail {
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

/* Vertical news card (for grids) */
.news-card-vertical {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  height: 100%;
}

.news-card-vertical:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.news-card-vertical .news-thumbnail {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-vertical .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card-vertical:hover .news-thumbnail img {
  transform: scale(1.08);
}

.news-card-vertical .news-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 3.5rem;
}

.news-card-vertical:hover .news-thumbnail-placeholder {
  transform: scale(1.08);
  transition: transform 0.4s ease;
}

.news-card-vertical .news-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-vertical .news-category {
  display: inline-block;
  background: var(--primary-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.news-card-vertical .news-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card-vertical .news-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-vertical .news-title a:hover {
  color: var(--primary-blue);
}

.news-card-vertical .news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-vertical .news-meta {
  font-size: 0.8rem;
  color: #999;
}

.news-card-vertical .news-meta i {
  margin-right: 0.3rem;
}

.news-card-vertical .news-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
  white-space: nowrap;
}

.news-card-vertical .news-read-more:hover {
  gap: 0.6rem;
  color: var(--dark-blue);
}

/* ----- Program Cards ----- */
.program-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  border-top: 4px solid var(--primary-green);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.program-card .program-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.program-card .program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.program-card:hover .program-image img {
  transform: scale(1.05);
}

.program-card .program-body {
  padding: 1.5rem;
}

.program-card .program-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.program-card .program-title a {
  color: var(--text-dark);
}

.program-card .program-title a:hover {
  color: var(--primary-green);
}

.program-card .program-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-card .program-btn {
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-base);
  display: inline-block;
}

.program-card .program-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* ----- Buttons ----- */
.btn-primary-green,
.btn-green {
  background: var(--primary-green);
  color: #fff;
  border: 2px solid var(--primary-green);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-primary-green:hover,
.btn-green:hover {
  background: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary-blue,
.btn-blue {
  background: var(--primary-blue);
  color: #fff;
  border: 2px solid var(--primary-blue);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-primary-blue:hover,
.btn-blue:hover {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--text-dark);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-green {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-outline-green:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-blue {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-outline-blue:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm-rounded {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* Touch target min 44px */
.btn,
.nav-link,
.dropdown-item,
.pagination .page-link,
.social-icon,
.whatsapp-float {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ----- Footer ----- */
.footer {
  background: var(--navy-footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
  font-size: 0.9rem;
}

.footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-green);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--primary-green);
  padding-left: 3px;
}

.footer .footer-links li {
  margin-bottom: 0.5rem;
}

.footer .footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer .footer-links li a i {
  font-size: 0.65rem;
  color: var(--primary-green);
}

.footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer .contact-item i {
  font-size: 1rem;
  color: var(--primary-green);
  margin-top: 3px;
  min-width: 18px;
}

.footer .contact-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

/* Social Icons */
.footer .social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer .social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-round);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-base);
  min-height: 40px;
}

.footer .social-icon:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-3px);
  padding-left: 0;
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  margin-top: 40px;
  text-align: center;
}

.footer .footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Dashboard Sidebar ----- */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
}

.dashboard-sidebar {
  width: 260px;
  background: var(--navy-footer);
  color: #fff;
  flex-shrink: 0;
  transition: var(--transition-base);
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  bottom: 0;
  z-index: 1020;
  overflow-y: auto;
}

.dashboard-sidebar .sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.dashboard-sidebar .sidebar-header img {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-round);
  object-fit: cover;
  margin: 0 auto 0.75rem;
}

.dashboard-sidebar .sidebar-header h6 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.dashboard-sidebar .sidebar-header small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.dashboard-sidebar .nav-item {
  width: 100%;
}

.dashboard-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0;
  transition: var(--transition-fast);
  min-height: 48px;
}

.dashboard-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar .nav-link.active {
  color: #fff;
  background: var(--primary-green);
}

.dashboard-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.dashboard-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  min-height: calc(100vh - var(--navbar-height));
}

/* Offcanvas sidebar for mobile */
.offcanvas-sidebar {
  background: var(--navy-footer) !important;
  color: #fff;
}

.offcanvas-sidebar .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-sidebar .offcanvas-header .btn-close {
  filter: invert(1) brightness(2);
}

.offcanvas-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.offcanvas-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.offcanvas-sidebar .nav-link.active {
  color: #fff;
  background: var(--primary-green);
}

/* ----- Forms ----- */
.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-green-rgb), 0.2);
}

.form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-green-rgb), 0.2);
}

.form-check-input:checked {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.form-control.is-valid:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

/* ----- Pagination ----- */
.pagination {
  gap: 4px;
}

.pagination .page-item .page-link {
  border: none;
  border-radius: var(--border-radius-md) !important;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  transition: var(--transition-fast);
  min-height: 40px;
}

.pagination .page-item .page-link:hover {
  background: rgba(var(--primary-green-rgb), 0.1);
  color: var(--primary-green);
}

.pagination .page-item.active .page-link {
  background: var(--primary-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.pagination .page-item.disabled .page-link {
  background: transparent;
  color: var(--text-muted);
}

/* ----- Badges ----- */
.badge-pill-green {
  background: rgba(var(--primary-green-rgb), 0.12);
  color: var(--primary-green);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

.badge-pill-blue {
  background: rgba(var(--primary-blue-rgb), 0.12);
  color: var(--primary-blue);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  background: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.88rem;
}

.breadcrumb-item a:hover {
  color: var(--dark-blue);
}

.breadcrumb-item.active {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* ----- Alerts / Flash Messages ----- */
.alert-flash {
  border-radius: var(--border-radius-md);
  border: none;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  position: relative;
}

.alert-flash .btn-close {
  font-size: 0.8rem;
}

.alert-success {
  background: rgba(var(--primary-green-rgb), 0.1);
  border-left: 4px solid var(--primary-green);
  color: var(--primary-green-dark);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.08);
  border-left: 4px solid #dc3545;
  color: #b02a37;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.12);
  border-left: 4px solid #ffc107;
  color: #997404;
}

.alert-info {
  background: rgba(var(--primary-blue-rgb), 0.1);
  border-left: 4px solid var(--primary-blue);
  color: var(--dark-blue);
}

/* Flash message container */
.flash-container {
  position: fixed;
  top: calc(var(--navbar-height) + 12px);
  right: 16px;
  z-index: 9999;
  max-width: 400px;
  width: 100%;
}

.flash-container .alert {
  animation: slideInRight 0.4s ease;
  margin-bottom: 0.5rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ----- Page Header / Banner ----- */
.page-header {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-green-dark));
  color: #fff;
  padding: 60px 0;
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: calc(var(--navbar-height) + 40px);
}

.page-header h1 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
  margin-bottom: 0;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Section Backgrounds ----- */
.bg-green-soft {
  background: rgba(var(--primary-green-rgb), 0.06);
}

.bg-blue-soft {
  background: rgba(var(--primary-blue-rgb), 0.06);
}

/* Auth/Form Cards */
.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: none !important;
  border-top: 4px solid var(--primary-green) !important;
  border-radius: var(--border-radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}

.auth-card .card-body {
  padding: 2.5rem;
}

@media (max-width: 575.98px) {
  .auth-card .card-body {
    padding: 1.5rem;
  }
}

.bg-dark-blue {
  background: var(--dark-blue);
  color: #fff;
}

.bg-dark-blue h2,
.bg-dark-blue h3,
.bg-dark-blue p {
  color: #fff;
}

/* ----- Cards Generic ----- */
.card-custom {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.card-custom:hover {
  box-shadow: var(--shadow-lg);
}

.card-custom .card-body {
  padding: 1.5rem;
}

/* ----- Stat / Counter Cards ----- */
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-base);
  border-top: 4px solid var(--primary-green);
}

.stat-card:nth-child(even) {
  border-top-color: var(--primary-blue);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.stat-card .stat-icon {
  font-size: 2rem;
  color: rgba(var(--primary-green-rgb), 0.2);
  margin-bottom: 0.75rem;
}

/* ----- Table Responsive Wrapper ----- */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive-wrapper table {
  min-width: 600px;
}

.table-custom {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-custom thead th {
  background: var(--navy-footer);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 0.85rem 1rem;
}

.table-custom tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.table-custom tbody tr:hover {
  background: rgba(var(--primary-green-rgb), 0.04);
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

/* ----- CKEditor Styling ----- */
.ck-editor__editable {
  min-height: 300px;
}

/* ----- Card Image Aspect Ratio ----- */
.card-img-aspect {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.card-img-aspect-4x3 {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-img-aspect-1x1 {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

/* ----- Page Content / Typography ----- */
.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content ul li,
.page-content ol li {
  margin-bottom: 0.35rem;
}

.page-content img {
  border-radius: var(--border-radius-md);
  margin: 1.5rem 0;
}

.page-content blockquote {
  border-left: 4px solid var(--primary-green);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(var(--primary-green-rgb), 0.05);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.page-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

/* ----- Team / Organization Cards ----- */
.team-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-card .team-image {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-round);
  object-fit: cover;
  margin: 1.5rem auto 0;
  border: 4px solid rgba(var(--primary-green-rgb), 0.15);
}

.team-card .team-body {
  padding: 1.25rem 1.5rem;
}

.team-card .team-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.team-card .team-position {
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-card .team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ----- Membership Status Badges ----- */
.status-active {
  background: rgba(var(--primary-green-rgb), 0.12);
  color: var(--primary-green);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #997404;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
}

.status-expired {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
}

/* ----- Empty State ----- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state i {
  font-size: 3.5rem;
  color: rgba(var(--primary-green-rgb), 0.3);
  margin-bottom: 1rem;
}

.empty-state h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 1rem;
}

/* ----- Loading Spinner ----- */
.spinner-green {
  color: var(--primary-green);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy-footer);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

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

.back-to-top:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-3px);
}

/* ----- Print Styles ----- */
@media print {
  .navbar,
  .footer,
  .whatsapp-float,
  .back-to-top,
  .flash-container {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
  }
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* Large devices (desktops, < 1200px) */
@media (max-width: 1199.98px) {
  .hero-section .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-section .hero-content p {
    font-size: 1.05rem;
  }

  .dashboard-sidebar {
    width: 230px;
  }

  .dashboard-content {
    margin-left: 230px;
    padding: 1.5rem;
  }
}

/* Medium devices (tablets, < 992px) */
@media (max-width: 991.98px) {
  body {
    padding-top: var(--navbar-height);
  }

  .navbar {
    height: auto;
    min-height: var(--navbar-height);
    padding: 0.5rem 1rem;
  }

  .navbar .navbar-nav .nav-link {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .navbar .navbar-nav .nav-link.active::after {
    display: none;
  }

  .navbar .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
  }

  .navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
  }

  .hero-section {
    min-height: 70vh;
  }

  .hero-section .hero-content h1 {
    font-size: 2rem;
  }

  .hero-section .hero-content p {
    font-size: 1rem;
  }

  .hero-section .hero-buttons .btn {
    min-width: 150px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .section {
    padding: var(--section-padding-mobile);
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-content {
    margin-left: 0;
    padding: 1.25rem;
  }

  .news-card-horizontal .news-thumbnail {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }

  .footer {
    padding: 40px 0 0;
  }

  .footer .footer-bottom {
    margin-top: 30px;
  }
}

/* Small devices (landscape phones, < 768px) */
@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero-section {
    min-height: 60vh;
  }

  .hero-section .hero-content {
    padding: 1.5rem;
  }

  .hero-section .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-section .hero-content p {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
  }

  .hero-section .hero-buttons .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .feature-card .icon-circle {
    width: 60px;
    height: 60px;
  }

  .feature-card .icon-circle i {
    font-size: 1.4rem;
  }

  .page-header {
    padding: 40px 0;
    padding-top: calc(var(--navbar-height) + 30px);
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .stat-card .stat-number {
    font-size: 1.8rem;
  }

  .footer h5 {
    margin-top: 1.5rem;
  }

  .footer h5:first-child {
    margin-top: 0;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float i {
    font-size: 1.35rem;
  }

  .flash-container {
    max-width: 90%;
    right: 5%;
    top: calc(var(--navbar-height) + 8px);
  }

  .table-custom thead {
    display: none;
  }

  .table-custom tbody td {
    display: block;
    text-align: right;
    padding: 0.6rem 1rem;
    border-bottom: none;
  }

  .table-custom tbody td::before {
    content: attr(data-label);
    float: left;
    font-weight: 700;
    color: var(--text-dark);
  }

  .table-custom tbody tr {
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    display: block;
    padding: 0.5rem 0;
  }

  .team-card .team-image {
    width: 100px;
    height: 100px;
  }
}

/* Extra small devices (phones, < 576px) */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }

  .hero-section {
    min-height: 55vh;
  }

  .hero-section .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-section .hero-content p {
    font-size: 0.88rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .dashboard-content {
    padding: 1rem;
  }

  .news-card .news-body {
    padding: 1rem;
  }

  .news-card .news-title {
    font-size: 1rem;
  }

  .program-card .program-body {
    padding: 1.25rem;
  }

  .card-custom .card-body {
    padding: 1.25rem;
  }
}

/* Large desktop (min-width 1400px) */
@media (min-width: 1400px) {
  .hero-section .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-section .hero-content p {
    font-size: 1.25rem;
  }

  .container {
    max-width: 1200px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Only applies to dashboard/user areas, not public site */
  .dashboard-wrapper .dashboard-content {
    background: #1a1a2e;
    color: #e0e0e0;
  }

  .dashboard-wrapper .dashboard-content h1,
  .dashboard-wrapper .dashboard-content h2,
  .dashboard-wrapper .dashboard-content h3,
  .dashboard-wrapper .dashboard-content h4,
  .dashboard-wrapper .dashboard-content h5,
  .dashboard-wrapper .dashboard-content h6 {
    color: #f0f0f0;
  }
}
