/*=====================================================
Theme Name   : Crafttips (TN CMS)
Based on     : Gifoy HTML5 template (style.css → gifoy.css)
Description  : Bridges Gifoy's markup to TN CMS output and makes every
               coloured surface follow the colour-scheme variables printed
               by views/partials/color-scheme.blade.php.
=======================================================*/

/* ---------- 0. Base / fonts ---------- */
body.ct-system-font {
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
::selection { background: var(--theme-color); color: #fff; }
a { color: var(--theme-color); }
a:hover { color: var(--theme-color-dark, var(--theme-color)); }
img { max-width: 100%; height: auto; }

/* Animations off (Theme Option) → content visible immediately. */
.ct-no-anim .wow { visibility: visible !important; animation: none !important; }

/* Sticky header off (Theme Option). */
.ct-no-sticky .navbar.fixed-top { position: relative; animation: none; box-shadow: none; }

/* Gifoy decorative background images ship as placeholders only → use colour. */
.ft-bg::before { background-image: none !important; }
.ts-bg::before { background-image: none !important; }
.newsletter-wrap {
  background-image: linear-gradient(120deg, var(--theme-color) 0%, var(--theme-color2) 100%);
}
.newsletter-wrap::before {
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18) 0 60px, transparent 61px),
              radial-gradient(circle at 88% 80%, rgba(255,255,255,.12) 0 90px, transparent 91px);
}
.footer-area { background: var(--footer-bg); }

/* ---------- 1. Generic section rhythm ---------- */
.ct-section { position: relative; padding: 90px 0; }
.ct-section + .ct-section { padding-top: 0; }
.ct-section.ct-section--tint,
.ct-section.ct-section--surface,
.ct-section.ct-section--accent { padding-top: 90px; }
.ct-section--tint { background: var(--theme-color-light); }
.ct-section--surface { background: var(--theme-bg-light); }
.ct-section--tint + .ct-section,
.ct-section--surface + .ct-section { padding-top: 90px; }
.ct-section--tight { padding: 30px 0; }
.ct-spacing--compact.ct-section { padding-top: 50px; padding-bottom: 50px; }
.ct-spacing--spacious.ct-section { padding-top: 120px; padding-bottom: 120px; }
.ct-empty { color: var(--body-text-color); }
.site-title span { color: var(--theme-color); }
.site-heading p { margin-top: 10px; }

/* ---------- 2. Logo ---------- */
.ct-logo-text {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--heading-font); font-weight: 800; font-size: 28px;
  letter-spacing: -.5px; line-height: 1; color: var(--color-dark);
}
.ct-logo-text--light { color: #fff; }
.ct-logo-text .ct-logo-word span { color: var(--theme-color); }
.ct-logo-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--theme-color); color: #fff; font-size: 19px;
  transform: rotate(-8deg); box-shadow: 0 8px 18px rgba(var(--theme-color-rgb), .35);
}
.footer-logo { display: inline-block; margin-bottom: 15px; }
.footer-logo .ct-logo-text { font-size: 26px; }
.navbar-brand img.ct-logo-img { width: auto; max-width: 180px; max-height: 56px; }
.footer-logo img.ct-logo-img { width: auto; max-width: 170px; max-height: 56px; }

/* ---------- 3. Header ---------- */
.header-top-list li span { color: inherit; }
.header-top .ct-lang .dropdown-menu form { margin: 0; }
.header-top .ct-lang .dropdown-menu button.dropdown-item { background: transparent; border: 0; width: 100%; text-align: left; }
.ct-menu-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 20px;
  font-size: 10px; font-weight: 700; line-height: 16px; text-transform: uppercase;
  background: var(--theme-color); color: #fff; vertical-align: 2px;
}
.navbar .nav-link.active, .navbar .dropdown-item.active { color: var(--theme-color); }
.navbar .dropdown-item.active { background: transparent; }
.ct-nav-btn { padding: 10px 18px; }
.nav-right-list { align-items: center; }
.mega-menu-title a { color: inherit; }
.ct-mega-card { display: block; color: var(--color-dark); }
.ct-mega-card-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; margin-bottom: 8px;
  background: var(--theme-color-light); color: var(--theme-color); font-size: 32px;
}
.ct-mega-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-mega-card-cat { display: block; font-size: 12px; text-transform: uppercase; color: var(--theme-color); font-weight: 600; }
.ct-mega-card-title { display: block; font-weight: 600; line-height: 1.35; }
.ct-mega-card:hover .ct-mega-card-title { color: var(--theme-color); }
@media (max-width: 991px) {
  .nav-right { display: none; }
  .ct-logo-text { font-size: 24px; }
  .ct-logo-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 16px; }
}
/* Search popup submit uses theme colour. */
.search-popup button[type="submit"] { color: var(--theme-color); }

/* ---------- 4. Breadcrumb band ---------- */
.ct-breadcrumb {
  background: var(--theme-color-light);
  overflow: hidden;
}
.ct-breadcrumb:not(.ct-breadcrumb--image)::before,
.ct-breadcrumb:not(.ct-breadcrumb--image)::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1;
}
.ct-breadcrumb:not(.ct-breadcrumb--image)::before {
  width: 260px; height: 260px; right: -60px; top: -120px;
  background: rgba(var(--theme-color-rgb), .12);
}
.ct-breadcrumb:not(.ct-breadcrumb--image)::after {
  width: 120px; height: 120px; left: 8%; bottom: -70px;
  border: 14px dashed rgba(var(--theme-color-rgb), .18);
}
.ct-breadcrumb .breadcrumb-title { font-size: 32px; text-transform: none; }
.ct-breadcrumb .breadcrumb-menu { padding-left: 0; margin: 0; }
.ct-breadcrumb .breadcrumb-menu li:first-child { margin-left: 0; }
.ct-breadcrumb .breadcrumb-menu li.active { color: var(--theme-color); }
.ct-breadcrumb .breadcrumb-menu li a:hover { color: var(--theme-color); }
.ct-breadcrumb--image .site-breadcrumb-bg::after {
  content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .78);
}

/* ---------- 5. Buttons ---------- */
.theme-btn { background: var(--theme-color); }
.theme-btn.ct-btn--outline {
  background: transparent; color: var(--theme-color);
  box-shadow: inset 0 0 0 2px var(--theme-color);
}
.theme-btn.ct-btn--outline:hover { color: #fff; }
.theme-btn.ct-btn--pill { border-radius: 50px; }
.hero-btn, .ct-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-cta-actions { justify-content: inherit; }
.text-center .ct-cta-actions { justify-content: center; }

/* ---------- 6. Hero ---------- */
.ct-hero { padding: 30px 0 0; }
.ct-hero-box {
  border-radius: 20px; padding: 80px 60px; position: relative; overflow: hidden;
  background-repeat: no-repeat; background-size: cover; background-position: center;
  min-height: 460px;
}
.ct-hero-box--bg-tint, .ct-hero-box--bg-none, .ct-hero-box--bg-surface {
  background-color: var(--theme-color-light);
  background-image:
    radial-gradient(circle at 92% 12%, rgba(var(--theme-color-rgb), .16) 0 130px, transparent 131px),
    radial-gradient(circle at 78% 92%, rgba(var(--theme-color-rgb), .10) 0 90px, transparent 91px);
}
.ct-hero-box--bg-surface { background-color: var(--theme-bg-light); }
.ct-hero-box--bg-accent { background: linear-gradient(120deg, var(--theme-color), var(--theme-color2)); }
.ct-hero-box--bg-accent .hero-content .hero-title,
.ct-hero-box--bg-accent .hero-content p,
.ct-hero-box--bg-accent .hero-content .hero-sub-title,
.ct-hero-box--bg-accent .hero-content .hero-title span { color: #fff; }
.ct-hero-box--bg-accent .theme-btn { background: #fff; color: var(--theme-color); }
.ct-hero-box--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,0) 75%);
}
.ct-hero-box > .row { position: relative; z-index: 1; margin: 0; }
.ct-hero .hero-content .hero-title { font-size: 48px; line-height: 1.15; text-transform: none; }
.ct-hero-media img { border-radius: 20px; box-shadow: var(--box-shadow); width: 100%; }
.ct-hero-highlights {
  list-style: none; padding: 0; margin: 25px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px;
}
.ct-hero-highlights li { color: var(--color-dark); font-weight: 500; }
.ct-hero-highlights li i { color: var(--theme-color); margin-right: 6px; }
.ct-hero--centered .hero-content .hero-sub-title,
.ct-hero--centered .hero-btn { justify-content: center; }
@media (max-width: 991px) {
  .ct-hero-box { padding: 50px 25px; min-height: 0; }
  .ct-hero .hero-content .hero-title { font-size: 34px; }
  .ct-hero-box--image::before { background: rgba(255, 255, 255, .85); }
}

/* Hero slider (featured-grid · magazine-hero) */
.ct-hero-slider { border-radius: 20px; overflow: hidden; }
.ct-hero-slider .hero-single { padding: 80px 60px; }
.ct-hero-slider .owl-dots .owl-dot { background: var(--theme-color); }
@media (max-width: 991px) { .ct-hero-slider .hero-single { padding: 50px 25px; } }

/* ---------- 7. Image placeholders (no featured image) ---------- */
.ct-img-placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%;
  aspect-ratio: 16 / 10; color: var(--theme-color); font-size: 46px;
  background:
    repeating-linear-gradient(45deg, rgba(var(--theme-color-rgb), .06) 0 12px, transparent 12px 24px),
    var(--theme-color-light);
}
.ct-img-placeholder--banner { aspect-ratio: 4 / 3; border-radius: 15px; }
.ct-img-placeholder--tall { aspect-ratio: 4 / 4.2; border-radius: 20px; font-size: 80px; }

/* ---------- 8. Feature grid variants ---------- */
.feature-area.ct-section { padding-top: 60px; padding-bottom: 60px; }
.feature-icon i { line-height: inherit; }
.feature-content h4 a { color: inherit; }
.category-area .category-info .icon i { color: #fff; font-size: 38px; }
.category-area .category-info .content p { margin: 0; color: var(--body-text-color); font-size: 14px; }
.category-area .category-item a:hover .content h4 { color: var(--theme-color); }
.category-area.ct-section { padding-top: 40px; padding-bottom: 40px; }
.choose-area.ct-section { background: var(--theme-bg-light); padding-top: 90px; }
.choose-icon { color: #fff; font-size: 34px; flex: 0 0 80px; }
.choose-info h4 a { color: inherit; }
.ct-banner-item .banner-content h3 span { color: var(--theme-color); }
.ct-banner-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 9. About / feature split ---------- */
.about-area.ct-section { padding-bottom: 100px; }
.ct-about-media { position: relative; padding: 0 30px 30px 0; }
.ct-about-img { position: relative; z-index: 1; }
.ct-about-img img { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 4 / 4.2; }
.ct-about-shape {
  position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; border-radius: 20px; z-index: 0;
  background-image: radial-gradient(rgba(var(--theme-color-rgb), .45) 2px, transparent 2.5px);
  background-size: 18px 18px;
}
.about-list ul { padding-left: 0; list-style: none; }
.about-list ul li i { color: var(--theme-color); }

/* ---------- 10. Counter ---------- */
.counter-area.ct-section { padding-top: 60px; padding-bottom: 60px; }
.ct-counter.ct-section--tint { background: var(--theme-color); }
.ct-counter.ct-section--surface { background: var(--color-dark); }
.ct-counter.ct-section--accent { background: linear-gradient(120deg, var(--theme-color), var(--theme-color2)); }
.ct-counter .site-title, .ct-counter .site-heading p { color: #fff; }
.counter-box .icon i { line-height: 94px; font-size: 40px; }
.counter-box .counter-static { font-size: 40px; font-weight: 800; color: #fff; }
.ct-counter--surface-card .counter-box {
  background: rgba(255,255,255,.1); padding: 20px; border-radius: 20px;
}

/* ---------- 11. Testimonials ---------- */
.testimonial-area.ct-section { background: var(--theme-bg-light); padding-top: 90px; }
.testimonial-area.ct-section--tint { background: var(--theme-color-light); }
.testimonial-area.ct-section--none { background: transparent; }
.testimonial-author-img img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.testimonial-quote-icon { width: auto; font-size: 70px; color: var(--theme-color); line-height: 1; }
.testimonial-rate i { color: var(--color-yellow); }
.ct-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--theme-color); color: #fff; font-size: 26px; font-weight: 700;
}
.ct-avatar--lg { width: 110px; height: 110px; font-size: 40px; }
.row > [class*="col"] > .testimonial-item { height: calc(100% - 20px); }

/* ---------- 12. FAQ ---------- */
.faq-area .accordion-button span i { color: #fff; }
.faq-area .accordion-button:not(.collapsed) { color: var(--theme-color); }
.ct-faq--boxed .accordion-item { box-shadow: var(--box-shadow); border: 0; }

/* ---------- 13. CTA / big banner ---------- */
.big-banner.ct-section { padding-bottom: 90px; }
.ct-cta-wrap { padding: 70px 30px !important; overflow: hidden; }
.ct-cta-bg--accent .ct-cta-wrap { background: linear-gradient(120deg, var(--theme-color), var(--theme-color2)); }
.ct-cta-bg--tint .ct-cta-wrap { background: var(--theme-color-light); }
.ct-cta-bg--surface .ct-cta-wrap { background: var(--theme-bg-light); }
.ct-cta-bg--accent .banner-content h2,
.ct-cta-bg--accent .banner-content p,
.ct-cta-bg--accent .banner-content h2 span { color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
.ct-cta-bg--accent .theme-btn:not(.ct-btn--outline) { background: #fff; color: var(--theme-color); }
.ct-cta-bg--accent .theme-btn.ct-btn--outline { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.big-banner .banner-content h2 { text-transform: none; }
.big-banner .banner-content p { text-transform: none; padding: 6px 0; }
.ct-cta--gradient-panel .ct-cta-wrap { background: linear-gradient(135deg, var(--color-dark), var(--theme-color)); }
.ct-cta--gradient-panel .banner-content h2, .ct-cta--gradient-panel .banner-content p { color: #fff !important; }

/* ---------- 14. Newsletter ---------- */
.newsletter-area.ct-section { padding-bottom: 90px; }
.newsletter-area.ct-section--tint, .newsletter-area.ct-section--none { background: transparent; }
.newsletter-content h3 { text-transform: none; }
.newsletter-content h3 span { color: var(--color-yellow); }
.newsletter-content p { text-transform: none; }
.subscribe-form .theme-btn { background: var(--color-dark); }

/* ---------- 15. Process (architecture) ---------- */
.process-item { height: 100%; background: #fff; transition: var(--transition); }
.process-item:hover { transform: translateY(-6px); box-shadow: var(--box-shadow); }
.process-item .icon { color: #fff; font-size: 34px; line-height: 80px; background: var(--theme-color); }
.process-item .icon span { color: transparent; }
.process-item p { margin: 0; }

/* ---------- 16. Pricing ---------- */
.ct-plan {
  height: 100%; padding: 35px 30px; border-radius: 20px; background: #fff;
  border: 1px solid var(--border-info-color); text-align: center; transition: var(--transition);
}
.ct-plan.is-featured { border-color: var(--theme-color); box-shadow: 0 15px 40px rgba(var(--theme-color-rgb), .18); }
.ct-plan-name { color: var(--color-dark); }
.ct-plan-price { font-size: 40px; font-weight: 800; color: var(--theme-color); margin: 10px 0 20px; }
.ct-plan-price small { font-size: 16px; color: var(--body-text-color); font-weight: 500; }
.ct-plan-features { list-style: none; padding: 0; margin: 0 0 25px; text-align: left; }
.ct-plan-features li { padding: 6px 0; border-bottom: 1px dashed var(--border-info-color); }
.ct-plan-features li i { color: var(--theme-color); margin-right: 6px; }

/* ---------- 17. Brands ---------- */
.brand-area.ct-section { background: var(--theme-bg-light); padding-top: 50px; padding-bottom: 50px; }
.brand-area.ct-section--none { background: transparent; }
.ct-grayscale .brand-item img { filter: grayscale(1); opacity: .7; transition: var(--transition); }
.ct-grayscale .brand-item:hover img { filter: none; opacity: 1; }

/* ---------- 18. Blog cards ---------- */
.blog-area.ct-section { padding-bottom: 90px; }
.blog-item { height: 100%; display: flex; flex-direction: column; }
.blog-item-info { flex: 1; display: flex; flex-direction: column; }
.blog-item-info .theme-btn { align-self: flex-start; margin-top: auto; }
.blog-item-img > a { display: block; }
.blog-item-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-item-meta ul li span { color: var(--body-text-color); }
.blog-item-meta ul li i { color: var(--theme-color); }
.blog-title a { color: var(--color-dark); }
.blog-title a:hover { color: var(--theme-color); }
.blog-date { background: var(--theme-color); }
.ct-post-slider .blog-item { margin: 5px 0 15px; }

/* Story cards (featured grid) */
.ct-story { height: 100%; }
.ct-story-link { position: relative; display: block; height: 100%; border-radius: 16px; overflow: hidden; color: #fff; }
.ct-story-media { display: block; height: 100%; }
.ct-story-media img, .ct-story-media .ct-img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ct-story--feature .ct-story-media img, .ct-story--feature .ct-story-media .ct-img-placeholder { min-height: 420px; }
.ct-story--grid .ct-story-media img, .ct-story--grid .ct-story-media .ct-img-placeholder { aspect-ratio: 4 / 3.2; }
.ct-story-link:hover .ct-story-media img { transform: scale(1.06); }
.ct-story-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 100%);
}
.ct-story-cat {
  align-self: flex-start; padding: 3px 12px; border-radius: 30px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; background: var(--theme-color); color: #fff;
}
.ct-story-title { font-family: var(--heading-font); font-weight: 700; font-size: 18px; line-height: 1.35; color: #fff; }
.ct-story--feature .ct-story-title { font-size: 26px; }
.ct-story-excerpt { color: rgba(255,255,255,.85); font-size: 15px; }
.ct-story-date { color: rgba(255,255,255,.8); font-size: 13px; }

/* Category blocks */
.ct-cat-block {
  height: 100%; padding: 28px; border-radius: 20px; background: #fff;
  border: 1px solid var(--border-info-color); transition: var(--transition);
}
.ct-cat-block:hover { box-shadow: var(--box-shadow); border-color: transparent; }
.ct-cat-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ct-cat-block-head h3 { font-size: 20px; margin: 0; }
.ct-cat-block-head h3 a { color: var(--color-dark); }
.ct-cat-block-head h3 a:hover { color: var(--theme-color); }
.ct-cat-block-icon {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-color-light); color: var(--theme-color);
}
.ct-cat-block-list { list-style: none; padding: 0; margin: 0 0 15px; }
.ct-cat-block-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border-info-color); }
.ct-cat-block-list li > i { color: var(--theme-color); margin-top: 5px; font-size: 13px; }
.ct-cat-block-list li a { color: var(--color-dark); font-weight: 500; }
.ct-cat-block-list li a:hover { color: var(--theme-color); }
.ct-cat-block-list small { display: block; color: var(--body-text-color); font-size: 13px; }
.ct-cat-block-more { font-weight: 600; }

/* Trending list */
.ct-rank-list { list-style: none; padding: 0; margin: 0; }
.ct-rank-item {
  display: flex; gap: 20px; align-items: center; padding: 18px 22px; margin-bottom: 14px;
  border-radius: 16px; background: #fff; border: 1px solid var(--border-info-color);
}
.ct-rank-num {
  font-family: var(--heading-font); font-size: 34px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--theme-color); min-width: 54px;
}
.ct-rank-body h4 { font-size: 18px; margin: 0 0 4px; }
.ct-rank-body h4 a { color: var(--color-dark); }
.ct-rank-body h4 a:hover { color: var(--theme-color); }
.ct-rank-body p { margin: 0; font-size: 14px; display: flex; gap: 16px; }
.ct-rank-body p i { color: var(--theme-color); }
.ct-trending--compact .ct-rank-item { padding: 12px 16px; }

/* Media band */
.ct-media-band-figure { margin: 0; }
.ct-media-band-figure img { width: 100%; display: block; }
.container .ct-media-band-figure img { border-radius: 20px; }
.ct-media-band-figure figcaption { text-align: center; color: var(--body-text-color); padding-top: 12px; font-size: 15px; }

/* ---------- 19. Single post & pages ---------- */
.blog-single-area .blog-thumb-img img { width: 100%; border-radius: 15px; }
.blog-meta-left ul li a { color: var(--color-dark); }
.blog-meta-left ul li a:hover { color: var(--theme-color); }
.blog-meta-left ul li i { color: var(--theme-color); }
.ct-share { display: flex; align-items: center; gap: 8px; }
.ct-share .share-link { margin-right: 4px; }
.ct-share a {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--theme-color-light); color: var(--theme-color); transition: var(--transition);
}
.ct-share a:hover { background: var(--theme-color); color: #fff; }
.ct-lead { font-size: 18px; color: var(--color-dark); font-weight: 500; }
.ct-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; padding-top: 25px;
  border-top: 1px solid var(--border-info-color);
}
.ct-post-nav a { display: block; color: var(--color-dark); }
.ct-post-nav a small { display: block; color: var(--theme-color); font-weight: 600; text-transform: uppercase; font-size: 12px; margin-bottom: 4px; }
.ct-post-nav a span { font-weight: 600; }
.ct-post-nav a:hover span { color: var(--theme-color); }
.ct-related { margin-top: 50px; }
.ct-related-title { margin-bottom: 25px; color: var(--color-dark); }
.blog-details-tags ul li a:hover { background: var(--theme-color); color: #fff; }

.ct-entry-title { color: var(--color-dark); font-size: 34px; margin-bottom: 25px; }
.ct-entry-thumb img { width: 100%; border-radius: 15px; margin-bottom: 30px; }
.ct-archive-intro { margin-bottom: 35px; padding: 25px; border-radius: 16px; background: var(--theme-color-light); }
.ct-archive-intro img { border-radius: 12px; margin-bottom: 15px; }
.ct-empty-box { text-align: center; padding: 60px 20px; border-radius: 20px; background: var(--theme-bg-light); }
.ct-empty-box i { font-size: 54px; color: var(--theme-color); margin-bottom: 15px; }

/* Rich content typography (post body, pages, rich-text sections) */
.ct-prose { color: var(--body-text-color); font-size: 16px; line-height: 1.8; }
.ct-prose > *:last-child { margin-bottom: 0; }
.ct-prose h1, .ct-prose h2, .ct-prose h3, .ct-prose h4, .ct-prose h5, .ct-prose h6 {
  color: var(--color-dark); margin: 1.6em 0 .6em; line-height: 1.3;
}
.ct-prose h2 { font-size: 28px; }
.ct-prose h3 { font-size: 23px; }
.ct-prose p, .ct-prose ul, .ct-prose ol { margin-bottom: 1.1em; }
.ct-prose ul { list-style: none; padding-left: 0; }
.ct-prose ul li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ct-prose ul li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: 12px;
  position: absolute; left: 0; top: 4px; width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 50%; background: var(--theme-color-light); color: var(--theme-color);
}
.ct-prose ol { padding-left: 0; counter-reset: ct-step; list-style: none; }
.ct-prose ol > li { counter-increment: ct-step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.ct-prose ol > li::before {
  content: counter(ct-step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%;
  background: var(--theme-color); color: #fff; font-weight: 700; font-size: 14px;
}
.ct-prose img { border-radius: 14px; margin: 10px 0; }
.ct-prose a { color: var(--theme-color); text-decoration: underline; text-underline-offset: 3px; }
.ct-prose blockquote {
  position: relative; margin: 1.5em 0; padding: 25px 30px 25px 35px; border-radius: 0 16px 16px 0;
  background: var(--theme-color-light); border-left: 4px solid var(--theme-color);
  color: var(--color-dark); font-size: 18px; font-style: italic;
}
.ct-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.ct-prose th, .ct-prose td { border: 1px solid var(--border-info-color); padding: 10px 12px; }
.ct-prose th { background: var(--theme-color-light); color: var(--color-dark); }
.ct-prose code { background: var(--theme-bg-light); padding: 2px 6px; border-radius: 6px; color: var(--theme-color); }
.ct-prose iframe { max-width: 100%; border-radius: 14px; }
.ct-prose hr { border-color: var(--border-info-color); opacity: 1; }
.ct-prose--wide { max-width: none; }

/* ---------- 20. Sidebar & widgets (TN CMS .tn-widget → Gifoy .widget) ---------- */
.sidebar .tn-widget,
.sidebar .widget {
  background: var(--theme-bg-light); padding: 30px; margin-bottom: 30px; border-radius: 15px;
}
.sidebar .tn-widget__title {
  color: var(--color-dark); font-size: 20px; font-weight: 700;
  margin-bottom: 25px; padding-bottom: 10px; position: relative;
}
.sidebar .tn-widget__title::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 15px; height: 2px; background: var(--theme-color);
}
.sidebar .tn-widget__title::after {
  content: ""; position: absolute; left: 20px; bottom: 0; width: 30px; height: 2px; background: var(--theme-color);
}
.sidebar .tn-widget__list { list-style: none; padding: 0; margin: 0; }
.sidebar .tn-widget__item { padding: 10px 0; border-bottom: 1px solid var(--border-info-color); }
.sidebar .tn-widget__item:last-child { border-bottom: 0; }
.sidebar .tn-widget__item a { color: var(--color-dark); font-weight: 500; }
.sidebar .tn-widget__item a::before {
  content: "\f061"; font-family: "Font Awesome 6 Pro"; font-weight: 400; margin-right: 8px;
  color: var(--theme-color); font-size: 13px;
}
.sidebar .tn-widget--recent-posts .tn-widget__item a::before { content: "\f304"; }
.sidebar .tn-widget__item a:hover { color: var(--theme-color); }
.sidebar .tn-widget__count, .sidebar .tn-widget__date { float: right; color: var(--body-text-color); font-size: 14px; }
.sidebar .tn-widget--recent-posts .tn-widget__date { float: none; display: block; padding-left: 22px; font-size: 13px; }
.sidebar .search-form .form-control:focus { border-color: var(--theme-color); }
.sidebar .search-form button { background: var(--theme-color); }
.sidebar .social-share-link a:hover { background: var(--theme-color); }
.ct-sidebar-hint { margin: 15px 0 0; font-size: 13px; color: var(--body-text-color); }

/* Footer widgets */
.ct-footer-widgets .tn-widget { margin-bottom: 25px; }
.ct-footer-widgets .tn-widget__title {
  color: #fff; position: relative; padding-bottom: 20px; margin-bottom: 20px; font-weight: 500; font-size: 18px;
}
.ct-footer-widgets .tn-widget__title::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--theme-color);
}
.ct-footer-widgets .tn-widget__list { list-style: none; padding: 0; margin: 0; }
.ct-footer-widgets .tn-widget__item { margin-bottom: 12px; }
.ct-footer-widgets .tn-widget__item a, .ct-footer-widgets a { color: #fff; transition: var(--transition); }
.ct-footer-widgets .tn-widget__item a:hover, .ct-footer-widgets a:hover { color: var(--theme-color); padding-left: 4px; }
.ct-footer-widgets .tn-widget__count, .ct-footer-widgets .tn-widget__date { color: rgba(255,255,255,.6); font-size: 13px; }
.ct-footer-widgets p, .footer-widget-box p { color: rgba(255,255,255,.8); }
.footer-list li span { color: rgba(255,255,255,.75); }
.ct-footer-social { justify-content: flex-start !important; margin-top: 10px; }
.footer-list li a:hover, .copyright-text a { color: var(--theme-color); }
.footer-social a:hover { background: var(--theme-color); }

/* ---------- 21. Pagination / search ---------- */
.pagination .page-item.active .page-link,
.pagination .page-link:hover { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.ct-search-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.ct-search-form .form-control { flex: 1 1 260px; height: 54px; border-radius: 12px; }
.ct-search-form .form-select { flex: 0 0 180px; height: 54px; border-radius: 12px; }
.ct-search-form .form-control:focus { border-color: var(--theme-color); box-shadow: none; }
.ct-search-summary, .ct-search-note { color: var(--body-text-color); }
.ct-search-result { padding: 22px 0; border-bottom: 1px solid var(--border-info-color); }
.ct-search-result h3 { font-size: 21px; margin: 6px 0; }
.ct-search-result h3 a { color: var(--color-dark); }
.ct-search-result h3 a:hover { color: var(--theme-color); }
.ct-search-type {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--theme-color-light); color: var(--theme-color); text-transform: uppercase;
}

/* ---------- 22. Contact, auth, errors, maintenance ---------- */
.contact-info-icon { color: var(--theme-color); }
.contact-info-content p a { color: inherit; }
.contact-map iframe { width: 100%; height: 450px; display: block; }
.contact-wrapper .contact-info { height: calc(100% - 25px); }

.login-form .ct-auth-icon {
  width: 72px; height: 72px; margin: 0 auto 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-color-light); color: var(--theme-color); font-size: 30px;
}
.login-form .form-control:focus { border-color: var(--theme-color); box-shadow: none; }
.login-form .form-check-input:checked { background-color: var(--theme-color); border-color: var(--theme-color); }
.login-form .alert ul { list-style: disc; }

.ct-error-art svg { width: 100%; max-width: 420px; height: auto; }
.ct-error-search { display: flex; max-width: 420px; margin: 0 auto 25px; position: relative; }
.ct-error-search .form-control { height: 52px; border-radius: 30px; padding-right: 60px; }
.ct-error-search button {
  position: absolute; right: 5px; top: 5px; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--theme-color); color: #fff;
}

.ct-maintenance { background: var(--theme-color-light) !important; }
.ct-maintenance::before { display: none; }
.ct-maintenance .title { color: var(--color-dark) !important; }
.ct-maintenance .lead, .ct-maintenance-retry { color: var(--body-text-color) !important; }
.ct-maintenance-logo { margin-bottom: 30px; }
.ct-maintenance-icon {
  width: 110px; height: 110px; margin: 0 auto 25px; border-radius: 50%; font-size: 46px;
  display: flex; align-items: center; justify-content: center; background: var(--theme-color); color: #fff;
}
.ct-maintenance-social { justify-content: center; margin-top: 25px; }
.ct-maintenance-social a { background: var(--theme-color); }

/* ---------- 23. Scroll top / preloader ---------- */
#scroll-top { background: var(--theme-color); }
.loader-ripple div { border-color: var(--theme-color); }

/* ---------- 24. Responsive helpers ---------- */
@media (max-width: 767px) {
  .ct-section { padding: 60px 0; }
  .ct-section--tint + .ct-section, .ct-section--surface + .ct-section,
  .ct-section.ct-section--tint, .ct-section.ct-section--surface { padding-top: 60px; }
  .ct-breadcrumb .breadcrumb-title { font-size: 26px; }
  .ct-post-nav { grid-template-columns: 1fr; }
  .ct-post-nav .text-end { text-align: left !important; }
  .ct-story--feature .ct-story-media img, .ct-story--feature .ct-story-media .ct-img-placeholder { min-height: 300px; }
}

/* ---------- 25. Vietnamese-friendly casing ----------
   Gifoy capitalises Every Word in menus, buttons and titles; that reads badly
   in Vietnamese, so keep the author's own casing everywhere. Taglines keep
   their uppercase style. */
.navbar .nav-link, .navbar .dropdown-item, .theme-btn, .site-title, .breadcrumb-title,
.site-breadcrumb .breadcrumb-menu li, .hero-title, .blog-title, .feature-content h4,
.category-info .content h4, .choose-info h4, .counter-box .title, .testimonial-author-info h4,
.footer-widget-title, .footer-list li a, .mega-menu-title, .banner-content h3, .banner-content p,
.process-item h4, .contact-info-content h5, .login-form .login-header h3, .error-wrapper h2,
.blog-details-title, .author-name { text-transform: none !important; }

/* Top-bar notice readable on the light bar */
.header-top .header-top-list li.help a,
.header-top .header-top-list li.help span { color: var(--color-dark); }
.header-top .header-top-list li.help i { color: var(--theme-color); }
.ct-story--grid .ct-story-link { min-height: 200px; }
.ct-story--feature .ct-story-link { min-height: 360px; }
.ct-banner-item { overflow: hidden; }
.ct-banner-item::after {
  content: ""; position: absolute; inset: 0; border-radius: 15px;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 75%);
}
.ct-banner-item .banner-content { z-index: 1; }
.faq-area .accordion-button { text-transform: none !important; }
.blog-author { display: flex; gap: 25px; align-items: center; }
.blog-author-img { flex: 0 0 auto; width: auto; }
.blog-author-img img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
@media (max-width: 575px) { .blog-author { flex-direction: column; text-align: center; } }
.main { overflow-x: clip; }
/* Top bar "Follow us" label readable on the light bar */
.header-top .header-top-social span { color: var(--color-dark); }
/* Category intro: compact banner instead of a full-size image */
.ct-archive-intro img { width: 100%; max-height: 240px; object-fit: cover; }
