/*
Theme Name: Dot Ai
Theme URI: https://daic.ai
Author: Dot Ai Corp
Author URI: https://daic.ai
Description: Custom WordPress theme for the Dot Ai corporate website. Built with Tailwind CSS.
Version: 1.0.0
License: Proprietary
Text Domain: dot-ai
*/

/* ============================================ */
/* BASE STYLES                                  */
/* ============================================ */
* { box-sizing: border-box; }
body {
  font-family: 'Outfit', Avenir, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000;
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ============================================ */
/* NAVIGATION                                   */
/* ============================================ */
.nav-dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 220px; padding-top: 12px; z-index: 100; }
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown-inner { background: #171d21; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 0; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.nav-dropdown a { display: block; padding: 10px 20px; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 400; text-decoration: none; transition: color 0.2s, background 0.2s; }
.nav-dropdown a:hover { color: #ea4f0d; background: rgba(255,255,255,0.03); }

/* Mobile menu — slide-in from right */
.mobile-menu-panel { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateX(100%); transition: transform 0.3s ease; overflow: hidden; }
.mobile-menu-panel.open { transform: translateX(0); }
.mobile-menu-screen { position: absolute; inset: 0; overflow-y: auto; }
.mobile-submenu { transform: translateX(100%); transition: transform 0.3s ease; background: rgba(0,0,0,0.99); }
.mobile-submenu.open { transform: translateX(0); }
.mobile-nav-link { display: block; padding: 14px 0; color: rgba(255,255,255,0.8); font-size: 18px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none; text-align: left; background: none; border-top: none; border-left: none; border-right: none; transition: color 0.2s; cursor: pointer; }
.mobile-nav-link:hover { color: #ea4f0d; }
.mobile-sub-link { display: block; padding: 12px 0; color: rgba(255,255,255,0.65); font-size: 15px; font-weight: 400; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.2s; }
.mobile-sub-link:hover { color: #ea4f0d; }

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.hero-bg { position: relative; overflow: hidden; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.94) 0%,
      rgba(0,0,0,0.88) 15%,
      rgba(0,8,30,0.55) 40%,
      rgba(0,15,55,0.30) 58%,
      rgba(0,20,70,0.15) 72%,
      rgba(0,0,0,0.45) 88%,
      #000 100%
    );
  z-index: 1;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 140% 55% at 50% 92%, rgba(0,50,180,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 100% 35% at 50% 96%, rgba(0,71,255,0.10) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================ */
/* ANIMATIONS                                   */
/* ============================================ */
.fade-section { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* ============================================ */
/* TABS (How It Works)                          */
/* ============================================ */
.tab-btn { position: relative; color: rgba(255,255,255,0.5); transition: color 0.3s; cursor: pointer; padding-bottom: 12px; }
.tab-btn.active { color: #fff; }
.tab-btn::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #ea4f0d; transform: scaleX(0); transition: transform 0.3s; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; }
.tab-content.active { display: flex; }

/* ============================================ */
/* SOLUTION EXPANDABLE CARDS                    */
/* ============================================ */
.sol-card-trigger { transition: border-color 0.3s, background 0.3s; cursor: pointer; position: relative; }
.sol-card.active .sol-card-trigger { border-color: rgba(234,79,13,0.35); background: rgba(13,15,18,1); border-bottom-color: transparent; border-radius: 8px 8px 0 0; z-index: 3; }
.sol-card.active .sol-card-trigger::after { content: ''; position: absolute; bottom: -25px; left: -1px; right: -1px; height: 26px; background: rgba(13,15,18,1); border-left: 1px solid rgba(234,79,13,0.35); border-right: 1px solid rgba(234,79,13,0.35); z-index: 3; }
.sol-expand-panel { overflow: hidden; max-height: 0; transition: max-height 0.45s ease; }
.sol-expand-inner { background: rgba(13,15,18,1); border: 1px solid rgba(234,79,13,0.35); border-top: none; border-radius: 0 0 12px 12px; padding: 32px; margin-top: 24px; opacity: 0; transition: opacity 0.25s ease; position: relative; }
.sol-expand-panel.open .sol-expand-inner { opacity: 1; }
.sol-expand-close { position: absolute; top: 16px; right: 16px; color: rgba(255,255,255,0.4); cursor: pointer; transition: color 0.2s; z-index: 5; }
.sol-expand-close:hover { color: #ea4f0d; }

.expand-chevron { position: absolute; top: 24px; right: 24px; color: rgba(255,255,255,0.2); transition: color 0.3s, transform 0.3s; }
.sol-card:hover .expand-chevron { color: rgba(234,79,13,0.5); }
.sol-card.active .expand-chevron { transform: rotate(180deg); color: rgba(234,79,13,0.6); }

.sol-card.expand-up .expand-chevron { transform: rotate(180deg); }
.sol-card.expand-up.active .expand-chevron { transform: rotate(0deg); color: rgba(234,79,13,0.6); }

@media (min-width: 1024px) {
  .sol-card.expand-up.active .sol-card-trigger { border-bottom-color: rgba(234,79,13,0.35); border-top-color: transparent; border-radius: 0 0 8px 8px; }
  .sol-card.expand-up.active .sol-card-trigger::after { bottom: auto; top: -25px; }
  #sol-panel-2 { transition: max-height 0.45s ease, margin-top 0.45s ease; margin-top: 0; }
  #sol-panel-2.open { margin-top: 24px; }
  #sol-panel-2 .sol-expand-inner { border-top: 1px solid rgba(234,79,13,0.35); border-bottom: none; border-radius: 12px 12px 0 0; margin-top: 0; margin-bottom: 0; }
}

@media (max-width: 1023px) {
  .sol-card.active .sol-card-trigger::after { display: none; }
  .sol-card.active .sol-card-trigger { border-bottom-color: transparent; border-top-color: rgba(234,79,13,0.35); border-radius: 8px 8px 0 0; }
  .sol-card.expand-up .expand-chevron { transform: rotate(0deg); }
  .sol-card.expand-up.active .expand-chevron { transform: rotate(180deg); color: rgba(234,79,13,0.6); }
  .sol-expand-inner { margin-top: 0; margin-bottom: 0; }
  .sol-expand-panel.open { margin-top: -1.5rem; grid-column: 1 / -1; }
  #sol-panel-2 .sol-expand-inner { border-top: none; border-bottom: 1px solid rgba(234,79,13,0.35); border-radius: 0 0 12px 12px; }
}

/* ============================================ */
/* INDUSTRY VERTICAL TABS                       */
/* ============================================ */
.ind-tab-strip { display: flex; flex-direction: column; gap: 0; min-width: 280px; border-right: 1px solid rgba(255,255,255,0.06); }
.ind-tab-btn { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 24px; text-align: left; color: rgba(255,255,255,0.4); font-size: 15px; font-weight: 500; cursor: pointer; background: transparent; border: none; border-left: 3px solid transparent; transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.ind-tab-btn:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.02); }
.ind-tab-btn.active { color: #fff; border-left-color: #ea4f0d; background: rgba(234,79,13,0.04); }
.ind-tab-icon { flex-shrink: 0; color: rgba(255,255,255,0.25); transition: color 0.3s ease; }
.ind-tab-btn:hover .ind-tab-icon { color: rgba(255,255,255,0.5); }
.ind-tab-btn.active .ind-tab-icon { color: #ea4f0d; }
.ind-tab-content { display: none; opacity: 0; transform: translateY(8px); }
.ind-tab-content.active { display: block; animation: indFadeIn 0.35s ease forwards; }
@keyframes indFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ind-usecase-card { padding: 16px 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease; }
.ind-usecase-card:hover { border-color: rgba(234,79,13,0.2); background: rgba(255,255,255,0.03); transform: translateY(-2px); }
.ind-image-placeholder { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.ind-image-placeholder::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%); pointer-events: none; }
@media (max-width: 1023px) {
  .ind-tab-strip { flex-direction: row; min-width: unset; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0; }
  .ind-tab-strip::-webkit-scrollbar { display: none; }
  .ind-tab-btn { flex-shrink: 0; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 14px 16px; font-size: 13px; }
  .ind-tab-btn.active { border-bottom-color: #ea4f0d; border-left-color: transparent; }
}

/* ============================================ */
/* MISC COMPONENTS                              */
/* ============================================ */
.stat-num { font-variant-numeric: tabular-nums; }
.accent-line { height: 2px; background: linear-gradient(90deg, #ea4f0d 0%, #0047ff 100%); }

.news-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(234,79,13,0.15); }

/* ============================================ */
/* FOOTER — wp_nav_menu output styling          */
/* ============================================ */
.footer-link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link-list a {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link-list a:hover { color: #ea4f0d; }

/* Bottom-strip legal menu (footer_legal location) — overrides default list styling */
footer .flex.gap-6 ul,
footer .flex.gap-6 .menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1.5rem;
}
footer .flex.gap-6 ul a,
footer .flex.gap-6 .menu a {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}
footer .flex.gap-6 ul a:hover,
footer .flex.gap-6 .menu a:hover { color: rgba(255,255,255,0.6); }

/* ============================================ */
/* SOCIAL ICONS (footer)                        */
/* ============================================ */
/* Rendered by dotai_render_social_icons() in footer.php.
   Each icon is a 36×36 rounded square with the platform's SVG.
   On hover: orange tint + subtle lift.
   Visibility is controlled by ACF — leave the URL blank in
   Site Options → Social Media to hide an icon. */
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
.social-icon:hover {
  color: #ea4f0d;
  background: rgba(234,79,13,0.1);
  border-color: rgba(234,79,13,0.4);
  transform: translateY(-1px);
}

/* ============================================ */
/* RESOURCES PAGE — FILTER PILLS                */
/* ============================================ */
/* The horizontal row of category filters at the top of /resources/.
   "All" + one pill per WordPress category. Clicking a pill reloads
   the page with ?category=slug.
   The .is-active class is added by page-resources.php when the
   pill matches the current filter. */
.resource-pill {
  display: inline-flex; align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.resource-pill:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.resource-pill.is-active {
  color: #fff;
  background: rgba(234,79,13,0.15);
  border-color: rgba(234,79,13,0.55);
}

/* Tailwind CDN doesn't always include line-clamp utilities — define locally */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn-primary {
  background: #ea4f0d; color: #fff; padding: 14px 32px; border-radius: 4px; font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: #f88114; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent; color: #fff; padding: 13px 31px; border-radius: 4px; font-weight: 500; font-size: 15px;
  text-decoration: none; display: inline-block; transition: background 0.2s, border-color 0.2s;
  border: 1px solid rgba(255,255,255,0.3); letter-spacing: 0.02em;
}
.btn-secondary:hover { border-color: #ea4f0d; background: rgba(234,79,13,0.08); }

/* ============================================ */
/* GRAIN TEXTURE                                */
/* ============================================ */
.grain::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================ */
/* ROTATING WORD                                */
/* ============================================ */
#rotating-word {
  position: relative;
  vertical-align: baseline;
}
.rotating-word-inner {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rotating-word-inner.out {
  opacity: 0;
  transform: translateY(-30%);
}
.rotating-word-inner.in {
  opacity: 0;
  transform: translateY(30%);
}

/* ============================================ */
/* SEPARATOR                                    */
/* ============================================ */
.sep { border-top: 1px solid rgba(255,255,255,0.08); }

/* ============================================ */
/* ABOUT PAGE STYLES                            */
/* ============================================ */
.team-card { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.team-card img { transition: transform 0.6s ease; }
.team-card:hover img { transform: scale(1.05); }
.team-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
}
.team-card:hover .team-card-overlay { opacity: 1; }
.team-card-overlay ul { list-style: none; padding: 0; margin: 0; }
.team-card-overlay li {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.team-card-overlay li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ea4f0d;
}
.team-card-info { padding: 16px 4px 4px; }

.loc-card {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.loc-card:hover {
  border-color: rgba(234,79,13,0.2);
  background: rgba(255,255,255,0.03);
  transform: translateY(-3px);
}

.fact-item {
  border-left: 2px solid rgba(234,79,13,0.4);
  padding-left: 16px;
}

/* ========== Post Content (single.php) ========== */
.prose-dotai { color: rgba(255,255,255,0.6); font-size: 1.125rem; line-height: 1.8; font-weight: 300; }
.prose-dotai h2 { color: #fff; font-size: 1.75rem; font-weight: 600; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.prose-dotai h3 { color: #fff; font-size: 1.375rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.prose-dotai p { margin-bottom: 1.25rem; }
.prose-dotai a { color: #ea4f0d; text-decoration: underline; text-underline-offset: 3px; }
.prose-dotai a:hover { color: #f88114; }
.prose-dotai ul, .prose-dotai ol { margin: 1rem 0 1.5rem 1.5rem; }
.prose-dotai li { margin-bottom: 0.5rem; }
.prose-dotai blockquote { border-left: 3px solid #ea4f0d; padding-left: 1.25rem; margin: 2rem 0; font-style: italic; color: rgba(255,255,255,0.8); }
.prose-dotai img { border-radius: 0.5rem; margin: 2rem 0; max-width: 100%; height: auto; }
.prose-dotai strong { color: #fff; font-weight: 600; }

/* ========== Pagination (archive.php) ========== */
.page-numbers { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; align-items: center; justify-content: center; }
.page-numbers li { display: flex; }
.page-numbers a, .page-numbers span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.5rem; border-radius: 0.5rem; font-size: 0.875rem; transition: all 0.2s; color: rgba(255,255,255,0.4); }
.page-numbers a:hover { color: #ea4f0d; background: rgba(255,255,255,0.05); }
.page-numbers .current { color: #fff; background: rgba(234,79,13,0.15); border: 1px solid rgba(234,79,13,0.3); }

/* ============================================ */
/* GUTENBERG BLOCK STYLES (page.php)            */
/* Styles for WordPress block editor output     */
/* on the dark theme. These make blocks like    */
/* columns, buttons, tables, covers, and FAQ    */
/* accordions look good without custom code.    */
/* ============================================ */

/* --- Full-width / Wide alignment --- */
.page-content .alignwide { margin-left: -4rem; margin-right: -4rem; max-width: calc(100% + 8rem); }
.page-content .alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }
@media (max-width: 768px) {
  .page-content .alignwide { margin-left: -1.5rem; margin-right: -1.5rem; max-width: calc(100% + 3rem); }
}

/* --- Columns --- */
.prose-dotai .wp-block-columns { display: flex; gap: 2rem; margin: 2.5rem 0; }
.prose-dotai .wp-block-column { flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .prose-dotai .wp-block-columns { flex-direction: column; gap: 1.5rem; }
}

/* --- Buttons --- */
.prose-dotai .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
.prose-dotai .wp-block-button__link {
  display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform 0.2s, opacity 0.2s; cursor: pointer;
  background: #ea4f0d; color: #fff;
}
.prose-dotai .wp-block-button__link:hover { transform: translateY(-1px); opacity: 0.9; color: #fff; }
.prose-dotai .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; border: 2px solid rgba(255,255,255,0.3); color: #fff;
}
.prose-dotai .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #ea4f0d; color: #ea4f0d; }

/* --- Separator / Divider --- */
.prose-dotai .wp-block-separator { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 3rem 0; }
.prose-dotai .wp-block-separator.is-style-wide { width: 100%; }
.prose-dotai .wp-block-separator.is-style-dots { border: none; text-align: center; color: rgba(255,255,255,0.3); }
.prose-dotai .wp-block-separator.is-style-dots::before { content: "···"; font-size: 1.5rem; letter-spacing: 1rem; }

/* --- Cover block (full-width image + text overlay) --- */
.prose-dotai .wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; padding: 3rem 2rem; border-radius: 0.75rem; overflow: hidden; margin: 2.5rem 0; }
.prose-dotai .wp-block-cover__inner-container { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.prose-dotai .wp-block-cover__inner-container p { color: rgba(255,255,255,0.85); }

/* --- Group block (card-like container) --- */
.prose-dotai .wp-block-group { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem; padding: 2rem; margin: 2rem 0; }

/* --- Table --- */
.prose-dotai table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.prose-dotai th { text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid rgba(255,255,255,0.15); color: #fff; font-weight: 600; }
.prose-dotai td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); }
.prose-dotai tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Image block --- */
.prose-dotai .wp-block-image { margin: 2.5rem 0; }
.prose-dotai .wp-block-image img { border-radius: 0.75rem; }
.prose-dotai .wp-block-image figcaption { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.35); margin-top: 0.75rem; }

/* --- Gallery --- */
.prose-dotai .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.prose-dotai .wp-block-gallery .wp-block-image { margin: 0; }

/* --- Spacer --- */
.prose-dotai .wp-block-spacer { display: block; }

/* --- Embed / Video --- */
.prose-dotai .wp-block-embed { margin: 2.5rem 0; }
.prose-dotai .wp-block-embed__wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 0.75rem; }
.prose-dotai .wp-block-embed__wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ============================================ */
/* FAQ ACCORDION (details/summary)              */
/* Used by the FAQ block pattern.               */
/* Users can also add these manually in the     */
/* Custom HTML block in the editor.             */
/* ============================================ */
.prose-dotai details { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem; margin-bottom: 0.75rem; overflow: hidden; transition: border-color 0.2s; }
.prose-dotai details:hover { border-color: rgba(255,255,255,0.15); }
.prose-dotai details[open] { border-color: rgba(234,79,13,0.3); }
.prose-dotai details summary { padding: 1.25rem 1.5rem; font-size: 1.1rem; font-weight: 500; color: #fff; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.prose-dotai details summary::-webkit-details-marker { display: none; }
.prose-dotai details summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: rgba(255,255,255,0.4); transition: transform 0.2s, color 0.2s; }
.prose-dotai details[open] summary::after { content: "−"; color: #ea4f0d; }
.prose-dotai details > div,
.prose-dotai details > p { padding: 0 1.5rem 1.25rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.7; }

/* --- Section-style divider for patterns --- */
.dotai-pattern-section { padding: 4rem 0; }
.dotai-pattern-section + .dotai-pattern-section { border-top: 1px solid rgba(255,255,255,0.06); }
