/* Top Dentistry — portal homepage styles (extends template) */

/* Header brand: text on dark bar, logo on white (scrolled) */
.portal-nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.portal-nav-brand-img {
  display: none;
  width: auto;
  height: 38px;
  max-width: 180px;
}

.ftco-navbar-light.scrolled .portal-nav-brand-text {
  display: none;
}

.ftco-navbar-light.scrolled .portal-nav-brand-img {
  display: block;
}

@media (max-width: 991.98px) {
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    font-size: 17px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .ftco-navbar-light.scrolled .nav-link {
    font-size: 17px;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }
}

.portal-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
}

.portal-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(20, 60, 110, 0.82) 0%, rgba(44, 140, 160, 0.72) 100%);
}

.portal-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.portal-hero .brand-mark {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.portal-hero .brand-mark span {
  color: #78d5ef;
}

.portal-hero h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.25rem;
}

.portal-hero .lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 2rem;
}

.portal-hero-actions .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

.portal-hero-actions .btn-outline-light {
  border-width: 2px;
}

@media (max-width: 767.98px) {
  .portal-hero {
    min-height: auto;
  }
  .portal-hero h1 {
    font-size: 28px;
  }
  .portal-hero .lead {
    font-size: 16px;
  }
  .portal-hero .container {
    padding-top: 110px;
    padding-bottom: 60px;
  }
}

/* Section cards */
.portal-section-card {
  display: block;
  height: 100%;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  color: inherit;
  text-decoration: none !important;
}

.portal-section-card:hover {
  border-color: #2f89fc;
  box-shadow: 0 10px 28px rgba(47, 137, 252, 0.12);
  transform: translateY(-3px);
  color: inherit;
}

.portal-section-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(47, 137, 252, 0.1);
  color: #2f89fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.portal-section-card .icon span {
  font-size: 28px;
  line-height: 1;
}

.portal-section-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a2b3c;
  margin-bottom: 0.75rem;
}

.portal-section-card p {
  font-size: 15px;
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Cities */
.portal-city {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 4px;
  color: #1a2b3c;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none !important;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.portal-city:hover {
  border-color: #2f89fc;
  color: #2f89fc;
  background: rgba(47, 137, 252, 0.04);
}

/* News cards — reuse blog layout, tighten portal feel */
.portal-news .blog-entry {
  background: #fff;
  border: 1px solid #e8eef3;
  height: 100%;
}

.portal-news .blog-entry .text {
  padding: 20px !important;
}

.portal-news .blog-entry .heading {
  font-size: 17px;
  line-height: 1.45;
}

.portal-news .meta {
  font-size: 13px;
}

/* Feature / CTA panels */
.portal-feature {
  padding: 70px 0;
}

.portal-feature.bg-soft {
  background: #f5f8fb;
}

.portal-feature.bg-accent {
  background: linear-gradient(135deg, #2f89fc 0%, #2cbcbc 100%);
  color: #fff;
}

.portal-feature.bg-accent h2,
.portal-feature.bg-accent p {
  color: #fff;
}

.portal-feature.bg-accent .btn-light {
  color: #2f89fc;
  font-weight: 600;
}

.portal-feature h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a2b3c;
}

.portal-feature p {
  font-size: 16px;
  line-height: 1.75;
  color: #5a6a7a;
  max-width: 720px;
}

.portal-feature.bg-accent p {
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
}

.portal-about {
  background: #fff;
  border-top: 1px solid #e8eef3;
}

.portal-about p {
  font-size: 17px;
  line-height: 1.8;
  color: #5a6a7a;
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f89fc;
  margin-bottom: 0.75rem;
}

.bg-soft {
  background: #f5f8fb;
}

/* Contact page cards */
.portal-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 2rem 0 2.5rem;
}

.portal-contact-card {
  background: #f5f8fb;
  border: 1px solid #e8eef3;
  border-radius: 4px;
  padding: 28px 22px;
  text-align: center;
}

.portal-contact-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(47, 137, 252, 0.1);
  color: #2f89fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-contact-card .icon span {
  font-size: 22px;
}

.portal-contact-card strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8a9a;
  margin-bottom: 0.5rem;
}

.portal-contact-card a,
.portal-contact-card .value {
  font-size: 16px;
  font-weight: 600;
  color: #1a2b3c;
  word-break: break-word;
}

.portal-contact-card a:hover {
  color: #2f89fc;
}

@media (max-width: 767.98px) {
  .portal-contact-grid {
    grid-template-columns: 1fr;
  }
}

.portal-copy .copy-sep {
  display: inline;
}

/* Homepage footer spacing */
.portal-footer.ftco-section {
  padding-top: 3.5rem;
  padding-bottom: 1.25rem;
}

.portal-footer .portal-footer-top {
  margin-bottom: 1.5rem !important;
}

.portal-footer .ftco-footer-widget {
  margin-bottom: 1.25rem !important;
}

.portal-footer .portal-footer-links a.py-2 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  line-height: 1.4;
}

.portal-footer .block-23.mb-3 {
  margin-bottom: 0.75rem !important;
}

.portal-footer .block-23 ul li,
.portal-footer .block-23 ul li > a {
  margin-bottom: 0;
}

.portal-footer .block-23 ul li {
  margin-bottom: 0.45rem;
}

.portal-footer .block-23 ul li:last-child {
  margin-bottom: 0;
}

.portal-footer .portal-copy {
  margin-bottom: 0;
  font-size: 14px;
}

.portal-footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
  line-height: 0;
}

.portal-footer-logo img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Mobile footer accordion */
.portal-footer-acc-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.portal-footer-acc-btn:focus {
  outline: none;
  color: #fff;
}

.portal-footer-acc-icon::before {
  content: "+";
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}

.portal-footer-acc-btn[aria-expanded="true"] .portal-footer-acc-icon::before {
  content: "\2212";
}

.portal-footer-acc-panel {
  padding-bottom: 0.75rem;
}

.portal-footer-legal-mobile {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer-social-mobile {
  margin: 0.75rem 0 0.25rem;
  padding: 0;
  float: none;
}

.portal-footer-social-mobile li {
  display: inline-block;
  margin: 0 10px 0 0;
}

@media (max-width: 767.98px) {
  .portal-footer .portal-footer-top {
    margin-bottom: 1rem !important;
  }

  .portal-footer .portal-footer-brand {
    text-align: center;
  }

  .portal-footer-logo {
    display: block;
    width: fit-content;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.85rem;
  }

  .portal-footer-logo img {
    max-width: 280px;
    margin: 0 auto;
  }

  .portal-footer .portal-footer-brand .ftco-footer-widget {
    margin-bottom: 0.75rem !important;
  }

  .portal-footer .portal-footer-acc .ftco-footer-widget {
    margin-bottom: 0 !important;
  }

  .portal-footer .portal-footer-acc .ml-md-5 {
    margin-left: 0 !important;
  }

  .portal-footer .portal-footer-bottom {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 768px) {
  .portal-footer .portal-footer-acc-panel.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

.portal-legal-links {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 14px;
}

.portal-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0.35rem;
}

.portal-legal-links a:hover {
  color: #fff;
}

.portal-legal-links .sep {
  color: rgba(255, 255, 255, 0.35);
}

.portal-updated {
  font-size: 14px;
  color: #7a8a9a;
  margin-bottom: 1.75rem;
}

/* TikTok icon for footer (not in icomoon set) */
.ftco-footer-social span.icon-tiktok {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-2.88 2.5 2.89 2.89 0 0 1-2.89-2.89 2.89 2.89 0 0 1 2.89-2.89c.28 0 .54.04.79.1v-3.5a6.37 6.37 0 0 0-.79-.05A6.34 6.34 0 0 0 3.15 15.2a6.34 6.34 0 0 0 6.34 6.34 6.34 6.34 0 0 0 6.34-6.34V8.7a8.18 8.18 0 0 0 4.76 1.52V6.79a4.85 4.85 0 0 1-1-.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-2.88 2.5 2.89 2.89 0 0 1-2.89-2.89 2.89 2.89 0 0 1 2.89-2.89c.28 0 .54.04.79.1v-3.5a6.37 6.37 0 0 0-.79-.05A6.34 6.34 0 0 0 3.15 15.2a6.34 6.34 0 0 0 6.34 6.34 6.34 6.34 0 0 0 6.34-6.34V8.7a8.18 8.18 0 0 0 4.76 1.52V6.79a4.85 4.85 0 0 1-1-.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ftco-footer-social span.icon-tiktok:before {
  content: none;
}

@media (max-width: 767.98px) {
  .portal-copy .copy-line {
    display: block;
  }
  .portal-copy .copy-sep {
    display: none;
  }
}

/* Inner article pages */
.portal-article-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.portal-article-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 60, 110, 0.85) 0%, rgba(44, 140, 160, 0.75) 100%);
}

.portal-article-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 50px;
}

.portal-article-hero .breadcrumbs {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.portal-article-hero .breadcrumbs a {
  color: #fff;
}

.portal-article-hero h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  max-width: 820px;
  margin-bottom: 0.75rem;
}

.portal-article-hero .hero-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin-bottom: 0;
}

.portal-article {
  padding: 70px 0 40px;
}

.portal-article-body {
  max-width: 780px;
  margin: 0 auto;
}

.portal-article-body h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a2b3c;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.portal-article-body h2:first-child {
  margin-top: 0;
}

.portal-article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2f89fc;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.portal-article-body p {
  font-size: 16.5px;
  line-height: 1.8;
  color: #4a5a6a;
  margin-bottom: 1.25rem;
}

.portal-article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.portal-article-body ul li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  font-size: 16px;
  line-height: 1.65;
  color: #4a5a6a;
  border-bottom: 1px solid #eef2f6;
}

.portal-article-body ul li:last-child {
  border-bottom: none;
}

.portal-article-body ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f89fc;
}

/* Inline article images — scale down only, no crop */
.portal-figure {
  margin: 2rem 0 2.25rem;
}

.portal-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #2f89fc;
  box-sizing: border-box;
}

.portal-figure figcaption {
  margin-top: 0.65rem;
  font-size: 14px;
  line-height: 1.5;
  color: #7a8a9a;
  text-align: center;
}

/* News listing */
.portal-news-list {
  margin-top: 1.5rem;
}

.portal-news-item {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid #e8eef3;
  text-decoration: none !important;
  color: inherit;
  transition: color 0.2s ease;
}

.portal-news-item:first-child {
  border-top: 1px solid #e8eef3;
}

.portal-news-item:hover h3 {
  color: #2f89fc;
}

.portal-news-item .news-meta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f89fc;
  margin-bottom: 0.45rem;
}

.portal-news-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a2b3c;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.portal-news-item p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6c757d;
}

.portal-note {
  background: #f5f8fb;
  border-left: 4px solid #2f89fc;
  padding: 22px 26px;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.portal-note p {
  margin-bottom: 0;
  color: #3d4d5c;
}

.portal-article-cta {
  background: linear-gradient(135deg, #2f89fc 0%, #2cbcbc 100%);
  color: #fff;
  padding: 40px 36px;
  border-radius: 4px;
  margin-top: 3rem;
}

.portal-article-cta h3 {
  color: #fff;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.portal-article-cta p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
}

.portal-article-cta .btn-light {
  color: #2f89fc;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.portal-article-cta .btn-outline-light {
  border-width: 2px;
  margin-bottom: 8px;
}

.portal-toc {
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 4px;
  padding: 24px 28px;
  margin-bottom: 2.5rem;
}

.portal-toc strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f89fc;
  margin-bottom: 0.85rem;
}

.portal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.portal-toc li {
  margin-bottom: 0.4rem;
  font-size: 15px;
}

.portal-toc a {
  color: #1a2b3c;
}

.portal-toc a:hover {
  color: #2f89fc;
}

@media (max-width: 767.98px) {
  .portal-article-hero {
    min-height: auto;
  }
  .portal-article-hero h1 {
    font-size: 26px;
  }
  .portal-article-hero .container {
    padding-top: 120px;
    padding-bottom: 40px;
  }
  .portal-article {
    padding: 45px 0 20px;
  }
  .portal-article-body h2 {
    font-size: 22px;
  }
  .portal-article-cta {
    padding: 28px 22px;
  }
}
