/* ===== PAGE-SPECIFIC STYLES ===== */

/* Page Hero */
.page-hero {
  padding: 180px 0 80px;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(45, 140, 140, 0.08) 0%,
    transparent 70%
  );
  animation: float 15s ease-in-out infinite;
}

.page-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
}

.bg-alternate {
  background: var(--bg-secondary);
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.column-content h2 {
  margin-bottom: 1.5rem;
}

.column-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.column-content h3 {
  margin: 2rem 0 1rem;
}

.column-image img,
.rounded-image {
  border-radius: 16px;
  width: 100%;
  height: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(45, 140, 140, 0.15);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
}

.team-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--primary);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary);
  font-weight: 500;
}

/* Programs Filter */
.programs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--border-color);
  background: transparent;
  border-radius: 100px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.resource-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-8px);
}

.resource-image {
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-card:hover .resource-image img {
  transform: scale(1.1);
}

.resource-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resource-content .btn-text {
  margin-top: auto;
  align-self: flex-start;
}

.resource-category {
  display: inline-block;
  background: rgba(45, 140, 140, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.resource-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.resource-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-text {
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  background: none;
  border: none;
}

.btn-text:hover {
  color: var(--primary-light);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.tool-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.tool-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.tool-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.tool-card h3 {
  margin-bottom: 0.75rem;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.event-card {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 30px;
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  align-items: center;
}

.event-date {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 1rem;
  border-radius: 12px;
}

.event-day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.event-month {
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-category {
  display: inline-block;
  background: rgba(45, 140, 140, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.event-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.event-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-details svg {
  width: 16px;
  height: 16px;
}

.event-image {
  border-radius: 12px;
  overflow: hidden;
  height: 150px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.partner-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.partner-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
}

.partner-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Benefits List */
.benefits-list {
  list-style: none;
  margin: 1rem 0 2rem;
}

.benefits-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--text-secondary);
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Collab Grid */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.collab-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.collab-card:hover {
  transform: translateY(-8px);
}

.collab-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.collab-icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
}

.collab-card h3 {
  margin-bottom: 0.75rem;
}

.collab-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

.contact-icon.whatsapp {
  background: #25d366;
}

.contact-icon.whatsapp svg {
  fill: white;
  stroke: none;
  width: 24px;
  height: 24px;
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-method p,
.contact-method a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-method a:hover {
  color: var(--primary);
}

.contact-method small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 140, 140, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-consent a {
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  background: var(--bg-primary);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--bg-secondary);
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='2' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: var(--bg-secondary);
  transform: translateY(-3px);
}

.cta-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn-secondary:hover {
  background: white;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .two-column-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date {
    width: fit-content;
    margin: 0 auto;
  }

  .event-image {
    order: -1;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 140px 0 60px;
  }

  .content-section {
    padding: 60px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 60px 0;
  }
}

/* Legal Content Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.legal-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.legal-content strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

/* Partner Logo SVG styling */
.partner-logo svg {
  width: 100%;
  height: 80px;
  border-radius: 8px;
}

/* ===== HUB PAGES ===== */

/* Hub Hero */
.hub-hero {
  padding: 160px 0 80px;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(110, 193, 228, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hub-badge {
  display: inline-block;
  background: rgba(110, 193, 228, 0.12);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hub-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hub-hero-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hub-hero-text .btn {
  margin-right: 12px;
  margin-bottom: 8px;
}

.hub-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ===== Digital Access Corner Animated Showcase ===== */
.dac-showcase {
  perspective: 800px;
}

.dac-showcase-inner {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  transition: transform 0.6s ease;
}

.dac-showcase:hover .dac-showcase-inner {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.02);
}

.dac-showcase-inner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.5s ease;
}

.dac-showcase:hover .dac-showcase-inner img {
  box-shadow: 0 30px 80px rgba(45, 140, 140, 0.25);
}

.dac-glow {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(45, 140, 140, 0.3),
    rgba(61, 168, 168, 0.1),
    rgba(79, 191, 191, 0.3)
  );
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
  animation: dacGlow 4s ease-in-out infinite alternate;
}

@keyframes dacGlow {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.dac-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 3;
  transition: transform 0.3s ease;
}

.dac-float svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.dac-float span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.dac-float-1 {
  top: -12px;
  right: -16px;
  animation: dacFloat1 5s ease-in-out infinite;
}

.dac-float-2 {
  bottom: 50px;
  left: -20px;
  animation: dacFloat2 6s ease-in-out infinite;
}

.dac-float-3 {
  bottom: -10px;
  right: 40px;
  animation: dacFloat3 7s ease-in-out infinite;
}

.dac-showcase:hover .dac-float {
  transform: scale(1.08);
}

@keyframes dacFloat1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes dacFloat2 {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-8px) translateX(5px);
  }
}

@keyframes dacFloat3 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

[data-theme="dark"] .dac-float {
  background: rgba(30, 40, 50, 0.92);
}

[data-theme="dark"] .dac-glow {
  background: linear-gradient(
    135deg,
    rgba(45, 140, 140, 0.2),
    rgba(61, 168, 168, 0.05),
    rgba(79, 191, 191, 0.2)
  );
}

/* Hub Features Section */
.hub-features-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.hub-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.hub-feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hub-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.hub-feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), rgba(110, 193, 228, 0.6));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.hub-feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.hub-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hub-feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Hub Journey Section */
.hub-journey-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.hub-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 2rem;
}

.hub-journey-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.hub-journey-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.journey-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4aa3cc);
  color: white;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(45, 140, 140, 0.3);
}

.hub-journey-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hub-journey-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hub-journey-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hub-journey-grid {
    grid-template-columns: 1fr;
  }
}

/* Hub CTA Section */
.hub-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), #4aa3cc);
  position: relative;
  overflow: hidden;
}

.hub-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='2' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hub-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hub-cta-content h2 {
  color: white;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hub-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hub-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hub-cta-buttons .btn-primary {
  background: white;
  color: var(--primary);
  border-color: white;
}

.hub-cta-buttons .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.hub-cta-buttons .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.hub-cta-buttons .btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Other Hubs Section */
.other-hubs-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.other-hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 2rem;
}

.other-hub-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.other-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.other-hub-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.other-hub-card:hover img {
  transform: scale(1.05);
}

.other-hub-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 1.25rem 1.25rem 0.25rem;
}

.other-hub-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0 1.25rem 1.25rem;
}

/* Section Title (shared) */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
}

.section-title span {
  color: var(--primary);
}

/* Hub Page Responsive */
@media (max-width: 992px) {
  .hub-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hub-hero-text {
    text-align: center;
  }

  .hub-hero-image {
    order: -1;
  }

  .other-hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hub-hero {
    padding: 130px 0 50px;
  }

  .hub-hero-image img {
    height: 280px;
  }

  .hub-features-grid {
    grid-template-columns: 1fr;
  }

  .other-hubs-grid {
    grid-template-columns: 1fr;
  }

  .hub-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ARTICLE PAGES ===== */
.article-section {
  padding: 120px 0 80px;
}
.article-container {
  max-width: 800px;
  margin: 0 auto;
}
.article-header {
  text-align: left;
  margin-bottom: 3rem;
}
.article-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(
    --primary
  ); /* Changed to use var(--primary) for consistency */
  color: white;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: left;
}
.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  text-align: left;
  line-height: 1.6;
}
.article-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .article-image {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: left; /* Removed justify */
}
.article-content h2,
.article-content h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  text-align: left;
  font-weight: 700;
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content strong {
  color: var(--text-primary);
}
.article-note {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.article-note p {
  margin-bottom: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}
.back-link:hover {
  transform: translateX(-5px);
}
.article-social-cta {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
}
.article-social-cta h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.article-social-cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.social-circle-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(45, 140, 140, 0.1);
  color: var(--primary);
  transition: all 0.3s ease;
}
.social-circle-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}
@media (max-width: 768px) {
  .article-section {
    padding: 100px 0 60px;
  }
}
