/**
 * FWEL Content Plugin - Styles (cloned from Sample_Site main.css)
 */
.hidden { display: none !important; }
.flex { display: flex; }

:root {
  --fwel-primary: #0B3D91;
  --fwel-primary-light: #eef3f8;
  --fwel-primary-600: #09306a;
  --fwel-gray-50: #F5F7FA;
  --fwel-gray-100: #f3f4f6;
  --fwel-gray-200: #e5e7eb;
  --fwel-gray-600: #4b5563;
  --fwel-gray-900: #111827;
  --fwel-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --fwel-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Page layout - match Sample_Site */
.fwel-content-wrap,
.elementor-widget-text-editor .elementor-widget-container {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.fwel-section-wrapper,
.section-wrapper.bg-white {
  padding: 4rem 0;
  background: #fff;
}
.fwel-content-container,
.content-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .fwel-content-container, .content-container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .fwel-content-container, .content-container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* Section title - match Sample_Site */
.section-title {
  margin-bottom: 3.5rem;
  text-align: center;
}
.section-title h2 {
  font-size: 1.875rem;
  font-weight: bold;
  letter-spacing: -0.025em;
  color: var(--fwel-gray-900);
}
@media (min-width: 640px) {
  .section-title h2 { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .section-title h2 { font-size: 3rem; }
}
.section-title p {
  margin-top: 1.25rem;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--fwel-gray-600);
}

/* Prose - match Sample_Site */
.prose p + p,
[class*="prose"] p + p {
  margin-top: 1.25em;
}
.prose-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Card modern - match Sample_Site */
.card-modern {
  border-radius: 1rem;
  background: white;
  padding: 1.5rem;
  box-shadow: var(--fwel-shadow);
  transition: all 0.3s ease-out;
}
.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--fwel-shadow-hover);
}

/* Team & Board grid */
.fwel-team-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .fwel-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .fwel-team-grid { grid-template-columns: repeat(3, 1fr); }
}

.fwel-team-card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--fwel-shadow);
  transition: all 0.3s;
}
.fwel-team-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.fwel-team-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

.fwel-team-name {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--fwel-primary);
}

.fwel-team-role {
  margin-top: 0.25rem;
  color: var(--fwel-gray-600);
}

/* CSR */
.fwel-csr { max-width: 56rem; margin: 0 auto; }
.fwel-csr-title { font-size: 1.5rem; font-weight: 700; color: var(--fwel-primary); margin: 2rem 0 1rem; }
.fwel-csr-desc { color: var(--fwel-gray-600); line-height: 1.75; }
.fwel-csr-strategy-img { text-align: center; margin: 1.5rem 0; }
.fwel-csr-strategy-img img { max-width: 100%; border-radius: 0.5rem; }

.fwel-csr-bullets {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 1.5rem 0;
}

.fwel-csr-bullet {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(11, 61, 145, 0.2);
  border-radius: 0.75rem;
  background: rgba(11, 61, 145, 0.03);
}

.fwel-csr-bullet-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--fwel-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.fwel-csr-bullet-title { font-weight: 600; color: var(--fwel-primary); margin: 0; }
.fwel-csr-bullet-desc { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--fwel-gray-600); }

.fwel-csr-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--fwel-shadow);
  margin-top: 2rem;
  overflow: hidden;
}

.fwel-csr-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  transition: background 0.2s;
}
.fwel-csr-accordion-btn:hover { background: #f9fafb; }

.csr-accordion-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  color: var(--fwel-gray-600);
  transition: transform 0.2s;
}
.csr-accordion-item .csr-accordion-icon.rotate-45 { transform: rotate(45deg); }

.fwel-csr-panel { border-top: 1px solid #f3f4f6; overflow: hidden; }
.fwel-csr-panel.hidden { display: none; }
.fwel-csr-panel-inner { padding: 1.5rem; }
.fwel-csr-panel-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .fwel-csr-panel-content { flex-direction: row; align-items: flex-start; }
}

.fwel-csr-panel-img { flex-shrink: 0; }
@media (min-width: 1024px) {
  .fwel-csr-panel-img { width: 20rem; }
}

.fwel-csr-panel-img .csr-gallery-trigger {
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.75rem;
  border: none;
  padding: 0;
  background: none;
}
.fwel-csr-panel-img .csr-gallery-trigger img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}
.fwel-csr-panel-img .csr-gallery-trigger:hover img { transform: scale(1.05); }

.fwel-csr-panel-text { flex: 1; }
.fwel-csr-panel-text p { color: var(--fwel-gray-600); line-height: 1.75; margin: 0; }

/* Lightbox */
.fwel-lightbox, .gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem;
}
.fwel-lightbox.flex, .gallery-lightbox.flex { display: flex; }
.fwel-lightbox.hidden, .gallery-lightbox.hidden { display: none !important; }

.fwel-lightbox img, .gallery-lightbox img {
  max-height: min(calc(100vh - 5rem), calc(100dvh - 5rem));
  max-width: min(calc(100vw - 8rem), 100%);
  object-fit: contain;
}

.fwel-lightbox-close, .fwel-lightbox-prev, .fwel-lightbox-next {
  position: absolute;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.fwel-lightbox-close:hover, .fwel-lightbox-prev:hover, .fwel-lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}
.fwel-lightbox-close { right: 1rem; top: 1rem; }
.fwel-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.fwel-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.fwel-lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

/* Gallery */
.fwel-gallery .gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.3s;
}
.btn-primary {
  background: var(--fwel-primary);
  color: white;
  border-color: var(--fwel-primary);
}
.btn-secondary {
  background: white;
  color: var(--fwel-primary);
  border-color: var(--fwel-primary);
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  display: flex;
  height: 16rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--fwel-gray-200);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s;
}
.gallery-item:hover { box-shadow: var(--fwel-shadow-hover); }
.gallery-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Counters */
.fwel-counters {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .fwel-counters { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .fwel-counters { grid-template-columns: repeat(4, 1fr); }
}

.fwel-counter-item {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--fwel-shadow);
}

.fwel-counter-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fwel-primary);
  margin: 0;
}

.fwel-counter-label {
  margin: 0.25rem 0 0;
  color: var(--fwel-gray-600);
}

/* Utility classes */
.mb-8 { margin-bottom: 2rem; }

/* Page links */
.fwel-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--fwel-primary);
  background: white;
  color: var(--fwel-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.fwel-btn-secondary:hover {
  background: var(--fwel-primary-light);
  transform: translateY(-2px);
}
