/* AI-Sana standalone page — scoped to avoid global site overrides */
.aisana-page {
  --brand-900: #0f2913;
  --brand-800: #173d1c;
  --brand-700: #1f5f2b;
  --brand-200: #dfeee3;
  --brand-100: #eef7f0;
  --paper: #f5f7f3;
  --text: #1d241f;
  --muted: #66726a;
  --accent: #e8c86d;
  --shadow: 0 16px 40px rgba(11, 39, 20, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(63, 131, 78, 0.18), transparent 30%),
    linear-gradient(180deg, #f5f7f3 0%, #edf4ef 100%);
  color: var(--text);
}

.aisana-page .navbar {
  background: rgba(23, 61, 28, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 41, 19, 0.18);
}

.aisana-page .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aisana-page .brand-badge {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2b7a39, #14381a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.aisana-page .brand-badge i {
  font-size: 1.3rem;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.aisana-page .nav-link {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 500;
}

.aisana-page .nav-link:hover,
.aisana-page .nav-link.active {
  color: #fff !important;
}

.aisana-page .lang-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.aisana-page .lang-switch .btn {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.88rem;
  min-width: 58px;
}

.aisana-page .lang-switch .btn.active {
  background: #fff;
  color: var(--brand-800);
  border-color: #fff;
}

.aisana-page .btn-back-home {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1060;
  border-radius: 30px;
  padding: 8px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.aisana-page .btn-aisana-primary {
  background: var(--brand-700);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aisana-page .btn-aisana-primary:hover {
  background: var(--brand-800);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 95, 43, 0.28);
}

.aisana-page .announcements-view-all-wrap {
  padding-bottom: 8px;
}

.aisana-page .hero {
  background:
    linear-gradient(135deg, rgba(12, 35, 17, 0.86), rgba(28, 96, 42, 0.82)),
    radial-gradient(circle at center, rgba(113, 202, 129, 0.18), transparent 40%);
  color: #fff;
  padding: 92px 20px 72px;
  position: relative;
  overflow: hidden;
}

.aisana-page .hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(8px);
}

.aisana-page .hero-panel {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.aisana-page .hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  color: #fff;
}

.aisana-page .hero-subtitle {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  margin: 0 auto 32px;
}

.aisana-page .hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.aisana-page .hero-actions .btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
}

.aisana-page .hero-actions .btn-light {
  color: var(--brand-800);
}

.aisana-page .hero-actions .btn-outline-light:hover {
  color: var(--brand-800);
}

.aisana-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.aisana-page .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
}

.aisana-page .stat-card i.bi {
  font-size: 1.7rem;
  color: #dff7df !important;
  -webkit-text-fill-color: #dff7df !important;
  background: none !important;
  display: block;
  margin-bottom: 10px;
}

.aisana-page .stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.aisana-page .page-tabs-wrap {
  max-width: 1200px;
  margin: -28px auto 0;
  padding: 0 12px;
  position: relative;
  z-index: 2;
}

.aisana-page .page-tabs {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 61, 28, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.aisana-page .page-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-800);
  font-weight: 600;
  padding: 12px 20px;
  transition: 0.25s ease;
}

.aisana-page .page-tab.active,
.aisana-page .page-tab:hover {
  background: var(--brand-800);
  color: #fff;
}

.aisana-page main {
  padding: 28px 12px 50px;
}

.aisana-page .page-panel {
  display: none;
}

.aisana-page .page-panel.active {
  display: block;
}

.aisana-page section.content-section {
  padding: 56px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  margin: 26px auto;
  max-width: 1200px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 61, 28, 0.06);
}

/* Themed sections: must beat section.content-section background (higher specificity) */
.aisana-page section.content-section.contact-shell {
  background: linear-gradient(135deg, #173d1c, #204f28);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.aisana-page section.content-section.news-hero,
.aisana-page section.content-section.links-hero,
.aisana-page section.content-section.announcements-hero {
  background: linear-gradient(135deg, rgba(24, 69, 34, 0.98), rgba(38, 100, 49, 0.94));
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.aisana-page section.content-section.logo-carousel {
  background: linear-gradient(180deg, rgba(232, 246, 234, 0.92), rgba(255, 255, 255, 0.96));
}

.aisana-page .section-title {
  margin-bottom: 28px;
  font-weight: 750;
  color: var(--brand-800);
}

.aisana-page .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 12px;
  font-weight: 700;
}

.aisana-page .section-kicker i.bi {
  color: var(--brand-700) !important;
  -webkit-text-fill-color: var(--brand-700) !important;
}

/* Light surfaces: default kicker stays brand green */
.aisana-page .content-section:not(.contact-shell):not(.news-hero):not(.links-hero):not(.announcements-hero) .section-kicker,
.aisana-page .content-section:not(.contact-shell):not(.news-hero):not(.links-hero):not(.announcements-hero) .section-kicker span {
  color: var(--brand-700);
}

/* Dark surfaces: hero + tab heroes + contact */
.aisana-page .hero .section-kicker,
.aisana-page .hero .section-kicker span,
.aisana-page section.content-section.contact-shell .section-kicker,
.aisana-page section.content-section.contact-shell .section-kicker span,
.aisana-page section.content-section.news-hero .section-kicker,
.aisana-page section.content-section.news-hero .section-kicker span,
.aisana-page section.content-section.links-hero .section-kicker,
.aisana-page section.content-section.links-hero .section-kicker span,
.aisana-page section.content-section.announcements-hero .section-kicker,
.aisana-page section.content-section.announcements-hero .section-kicker span {
  color: rgba(255, 255, 255, 0.92) !important;
}

.aisana-page .hero .section-kicker i.bi,
.aisana-page section.content-section.contact-shell .section-kicker i.bi,
.aisana-page section.content-section.news-hero .section-kicker i.bi,
.aisana-page section.content-section.links-hero .section-kicker i.bi,
.aisana-page section.content-section.announcements-hero .section-kicker i.bi {
  color: #d9f3de !important;
  -webkit-text-fill-color: #d9f3de !important;
}

.aisana-page .icon-box,
.aisana-page .feature-card,
.aisana-page .resource-card,
.aisana-page .news-card,
.aisana-page .announcement-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
  border: 1px solid rgba(23, 61, 28, 0.08);
  box-shadow: 0 8px 26px rgba(18, 44, 23, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aisana-page .icon-box:hover,
.aisana-page .feature-card:hover,
.aisana-page .resource-card:hover,
.aisana-page .news-card:hover,
.aisana-page .announcement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(18, 44, 23, 0.12);
}

.aisana-page .icon-box i.bi,
.aisana-page .feature-card i.bi,
.aisana-page .resource-card i.bi,
.aisana-page .announcement-card i.bi {
  color: var(--brand-700) !important;
  -webkit-text-fill-color: var(--brand-700) !important;
  background: none !important;
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.aisana-page .lead-note {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto;
}

.aisana-page .president-quote img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  object-fit: cover;
  min-height: 320px;
}

.aisana-page .president-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  border-left: 4px solid var(--brand-700);
  padding-left: 18px;
  margin-top: 18px;
  color: #34423a;
}

.aisana-page .agent-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.aisana-page .agent-card .card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(13, 37, 17, 0.08);
  transition: 0.25s ease;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.aisana-page .agent-card .card:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 38px rgba(13, 37, 17, 0.14);
}

.aisana-page .agent-card .card i.bi {
  color: var(--brand-700) !important;
  -webkit-text-fill-color: var(--brand-700) !important;
  font-size: 2rem;
}

.aisana-page .logo-carousel {
  overflow: hidden;
  position: relative;
}

.aisana-page .logo-track {
  display: flex;
  gap: 60px;
  animation: aisana-scroll 26s linear infinite;
  min-width: max-content;
}

.aisana-page .logo-track span {
  font-size: 1.14rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-800);
  border: 1px solid rgba(23, 61, 28, 0.08);
}

@keyframes aisana-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.aisana-page .contact-shell {
  color: #fff;
}

.aisana-page section.content-section.contact-shell .section-title,
.aisana-page section.content-section.contact-shell .section-kicker,
.aisana-page section.content-section.contact-shell .section-kicker span,
.aisana-page section.content-section.contact-shell p,
.aisana-page section.content-section.contact-shell h5 {
  color: #fff !important;
}

.aisana-page section.content-section.contact-shell .section-kicker i.bi {
  color: #d9f3de !important;
  -webkit-text-fill-color: #d9f3de !important;
}

.aisana-page .contact-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  height: 100%;
}

.aisana-page .contact-box i.bi {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 10px;
  color: #d9f3de !important;
  -webkit-text-fill-color: #d9f3de !important;
  background: none !important;
}

.aisana-page .contact-box h5 {
  color: #ffffff !important;
  font-weight: 700;
}

.aisana-page .contact-box p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.aisana-page section.content-section.news-hero .section-title,
.aisana-page section.content-section.links-hero .section-title,
.aisana-page section.content-section.announcements-hero .section-title {
  color: #fff !important;
}

.aisana-page section.content-section.news-hero .text-white-50,
.aisana-page section.content-section.links-hero .text-white-50,
.aisana-page section.content-section.announcements-hero .text-white-50,
.aisana-page section.content-section.news-hero p,
.aisana-page section.content-section.links-hero p,
.aisana-page section.content-section.announcements-hero p {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Side cards on tab heroes: ensure readable headings on white card */
.aisana-page section.content-section.news-hero .feature-card h4,
.aisana-page section.content-section.links-hero .feature-card h4,
.aisana-page section.content-section.announcements-hero .feature-card h4 {
  color: var(--brand-800) !important;
}

.aisana-page section.content-section.news-hero .feature-card .text-secondary,
.aisana-page section.content-section.links-hero .feature-card .text-secondary,
.aisana-page section.content-section.announcements-hero .feature-card .text-secondary {
  color: var(--muted) !important;
}

.aisana-page .pill-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(23, 61, 28, 0.08);
  border-radius: 999px;
  color: var(--brand-700);
  font-size: 0.9rem;
  font-weight: 600;
}

.aisana-page .pill-meta i.bi {
  color: var(--brand-700) !important;
  -webkit-text-fill-color: var(--brand-700) !important;
}

.aisana-page .news-card,
.aisana-page .announcement-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aisana-page .news-card .news-card-image {
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #e8f0ea;
}

.aisana-page .news-card .h5,
.aisana-page .announcement-card .h5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.aisana-page .news-card .news-card-body,
.aisana-page .announcement-card .announcement-card-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  color: var(--muted, #5b6b5f);
  flex: 1;
  margin-bottom: 1rem !important;
}

.aisana-page .aisana-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(24, 125, 53, 0.1);
  color: var(--brand-700, #187d35);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.aisana-page .aisana-card-more:hover {
  background: var(--brand-700, #187d35);
  color: #fff;
  transform: translateX(2px);
}

.aisana-detail-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f7f5 0%, #eef3ef 100%);
}

.aisana-detail__container {
  max-width: 860px;
  padding: 2rem 1rem 3.5rem;
}

.aisana-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--brand-700, #187d35);
  font-weight: 700;
  text-decoration: none;
}

.aisana-detail__back:hover {
  text-decoration: underline;
}

.aisana-detail__card {
  background: #fff;
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 40px rgba(16, 40, 24, 0.08);
}

.aisana-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.aisana-detail__kind {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700, #187d35);
}

.aisana-detail__date {
  color: #5b6b5f;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.aisana-detail__title {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: #15231a;
  margin: 0 0 1.25rem;
}

.aisana-detail__image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.35rem;
}

.aisana-detail__body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2a3b31;
  white-space: pre-line;
}

.aisana-page .news-card .date,
.aisana-page .announcement-card .date {
  color: var(--brand-700);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  display: inline-block;
}

.aisana-page .priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 12px;
}

.aisana-page .priority-high { background: #ffe7e5; color: #a63b2d; }
.aisana-page .priority-medium { background: #fff3da; color: #946200; }
.aisana-page .priority-low { background: #e8f6eb; color: #23683b; }

.aisana-page .resource-card a {
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 700;
}

.aisana-page .resource-card a:hover {
  text-decoration: underline;
}

.aisana-page .footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 24px 16px;
  margin-top: 30px;
}

@media (max-width: 991.98px) {
  .aisana-page .lang-switch { margin-top: 14px; }

  .aisana-page .btn-back-home {
    left: auto;
    right: 16px;
    top: 12px;
    padding: 8px 12px;
    z-index: 1061;
  }

  .aisana-page .navbar .container {
    padding-right: 72px;
  }
}

@media (max-width: 767.98px) {
  .aisana-page .hero { padding-top: 72px; }
  .aisana-page .page-tabs { border-radius: 24px; }
  .aisana-page .page-tab { width: 100%; }
  .aisana-page section.content-section { padding: 42px 18px; }

  .aisana-page .btn-back-home__text {
    display: none;
  }

  .aisana-page .btn-back-home {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .aisana-page .navbar .container {
    padding-right: 56px;
  }
}
