/* ═══════════════════════════════════════════
   AISB RESOURCES — Educational Site
   Blue #1d5fa6 | Ink #1a1f2e | Warm BG #fafaf8
   Fonts: Lora (headings) + Inter (body)
════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── RESET ── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;color:#374151;background:#fafaf8;font-size:16px;line-height:1.7}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}
::selection{background:rgba(29,95,166,.15);color:#1a1f2e}

/* ── TYPE ── */
h1,h2,h3,h4{font-family:'Lora',Georgia,serif;color:#1a1f2e;line-height:1.2}
h1{font-size:clamp(2rem,4.5vw,3rem);font-weight:700;letter-spacing:-.02em}
h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:700}
h3{font-size:1.2rem;font-weight:600}
h4{font-size:.85rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-family:'Inter',sans-serif;color:#6b7280}
p{color:#4b5563;line-height:1.75}

/* ── LAYOUT ── */
.wrap{max-width:1100px;margin:0 auto;padding:0 28px}
.wrap-narrow{max-width:740px;margin:0 auto;padding:0 28px}
.sec{padding:72px 0}
.sec-sm{padding:48px 0}

/* ── NAV ── */
.nav{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:100}
.nav-inner{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:0 auto;padding:0 28px;height:60px}
.nav-brand{display:flex;align-items:center;gap:10px}
.nav-tagline{font-family:'Lora',Georgia,serif;font-size:1rem;font-weight:600;color:#1a1f2e;flex:1;padding:0 32px}
.nav-brand-name{font-family:'Lora',serif;font-size:1.1rem;font-weight:700;color:#1a1f2e}
.nav-brand-badge{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:#e8f1fb;color:#1d5fa6;padding:3px 8px;border-radius:4px}
.nav-links{display:flex;align-items:center;gap:6px}
.nav-links a{font-size:14px;font-weight:500;color:#4b5563;padding:7px 13px;border-radius:6px;transition:all .15s}
.nav-links a:hover{color:#1d5fa6;background:#e8f1fb}
.nav-links .nav-cta{background:#1d5fa6;color:#fff;font-weight:600}
.nav-links .nav-cta:hover{background:#1753a0;color:#fff}

/* ── HERO ── */
.hero{background:#fff;border-bottom:1px solid #e5e7eb;padding:80px 0 72px}
.hero-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#1d5fa6;background:#e8f1fb;padding:5px 12px;border-radius:4px;margin-bottom:20px}
.hero h1{max-width:700px;margin-bottom:18px}
.hero-sub{font-size:1.15rem;max-width:580px;color:#4b5563;margin-bottom:32px;line-height:1.65}
.hero-meta{font-size:13px;color:#9ca3af;font-style:italic}

/* ── FEATURED ARTICLE ── */
.featured{background:#fafaf8;border-top:3px solid #1d5fa6}
.featured-label{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#1d5fa6;margin-bottom:16px}
.featured-card{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.featured-card .topic-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:4px;margin-bottom:14px;background:#f0fdf4;color:#166534}
.featured-card h2{margin-bottom:14px}
.featured-card p{margin-bottom:24px}
.featured-card .read-time{font-size:12px;color:#9ca3af;margin-top:8px}
.featured-img{background:linear-gradient(135deg,#e8f1fb 0%,#dbeafe 100%);border-radius:12px;height:300px;display:flex;align-items:center;justify-content:center}
.featured-img .img-icon{font-size:4rem;opacity:.4}

/* ── TOPICS GRID ── */
.topics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-top:36px}
.topic-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:28px 24px;transition:all .2s}
.topic-card:hover{border-color:#1d5fa6;box-shadow:0 4px 20px rgba(29,95,166,.1);transform:translateY(-2px)}
.topic-icon{font-size:1.8rem;margin-bottom:14px}
.topic-card h3{margin-bottom:8px;font-size:1.05rem}
.topic-card p{font-size:.9rem;color:#6b7280}
.topic-card .count{font-size:12px;color:#9ca3af;margin-top:12px;font-weight:500}

/* ── ARTICLE LIST ── */
.article-list{display:flex;flex-direction:column;gap:1px;background:#e5e7eb;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;margin-top:36px}
.article-item{background:#fff;padding:28px 32px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;transition:background .15s}
.article-item:hover{background:#f8fafc}
.article-item-meta{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.article-item h3{margin-bottom:8px;font-size:1.05rem;transition:color .15s}
.article-item:hover h3{color:#1d5fa6}
.article-item p{font-size:.9rem;color:#6b7280;line-height:1.55}
.article-arrow{color:#d1d5db;font-size:1.2rem;flex-shrink:0;transition:all .15s}
.article-item:hover .article-arrow{color:#1d5fa6;transform:translateX(3px)}

/* ── ARTICLE PAGE ── */
.article-hero{background:#fff;border-bottom:1px solid #e5e7eb;padding:56px 0 48px}
.article-hero .topic-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:4px;margin-bottom:16px;background:#f0fdf4;color:#166534}
.article-meta{display:flex;align-items:center;gap:16px;margin-top:20px;padding-top:20px;border-top:1px solid #e5e7eb}
.article-meta-item{font-size:13px;color:#6b7280}
.article-meta-item strong{color:#374151}

.article-body{padding:56px 0}
.article-body h2{font-size:1.5rem;margin:2.5rem 0 1rem}
.article-body h3{font-size:1.15rem;margin:2rem 0 .75rem}
.article-body p{margin-bottom:1.25rem;font-size:1.05rem;line-height:1.8}
.article-body ul,
.article-body ol{margin:1.25rem 0 1.25rem 1.5rem;list-style:disc}
.article-body li{margin-bottom:.5rem;color:#4b5563;line-height:1.7}
.article-body strong{color:#1a1f2e;font-weight:600}

.callout{background:#e8f1fb;border-left:4px solid #1d5fa6;border-radius:0 8px 8px 0;padding:20px 24px;margin:2rem 0}
.callout p{margin:0;font-size:.95rem}

.data-table{width:100%;border-collapse:collapse;margin:2rem 0;font-size:.95rem}
.data-table th{background:#1a1f2e;color:#fff;padding:12px 16px;text-align:left;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;letter-spacing:.03em}
.data-table td{padding:12px 16px;border-bottom:1px solid #e5e7eb;color:#374151}
.data-table tr:last-child td{border-bottom:none}
.data-table tr:nth-child(even) td{background:#f9fafb}
.data-table .highlight td{background:#fef3c7;font-weight:600;color:#1a1f2e}

/* ── TAGS ── */
.topic-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:4px}
.tag-bookkeeping{background:#f0fdf4;color:#166534}
.tag-ai{background:#eff6ff;color:#1d4ed8}
.tag-software{background:#fdf4ff;color:#7e22ce}
.tag-operations{background:#fff7ed;color:#9a3412}

/* ── NEWSLETTER/CTA STRIP ── */
.cta-strip{background:#1a1f2e;padding:60px 0;text-align:center}
.cta-strip h2{color:#fff;margin-bottom:12px;font-size:1.6rem}
.cta-strip p{color:#9ca3af;max-width:480px;margin:0 auto 28px;font-size:.95rem}
.cta-form{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.cta-form input{padding:12px 18px;border-radius:8px;border:1px solid #374151;background:#243044;color:#fff;font-size:15px;width:280px;font-family:'Inter',sans-serif}
.cta-form input::placeholder{color:#6b7280}
.cta-form button{padding:12px 24px;background:#1d5fa6;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;font-family:'Inter',sans-serif;transition:background .15s}
.cta-form button:hover{background:#1753a0}
.cta-note{font-size:12px;color:#6b7280;margin-top:12px}

/* ── FOOTER ── */
.footer{background:#f9fafb;border-top:1px solid #e5e7eb;padding:36px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer-brand{font-family:'Lora',serif;font-weight:700;color:#1a1f2e;font-size:.95rem}
.footer-note{font-size:13px;color:#9ca3af;text-align:center}
.footer-links{display:flex;gap:20px}
.footer-links a{font-size:13px;color:#6b7280;transition:color .15s}
.footer-links a:hover{color:#1d5fa6}

/* ── BREADCRUMB ── */
.breadcrumb{font-size:13px;color:#9ca3af;margin-bottom:16px}
.breadcrumb a{color:#1d5fa6}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{margin:0 6px}

/* ── RESPONSIVE ── */
@media(max-width:768px){
  .featured-card{grid-template-columns:1fr}
  .featured-img{height:200px}
  .footer-inner{flex-direction:column;text-align:center}
  .nav-links .nav-cta{display:none}
  .article-item{grid-template-columns:1fr}
  .article-arrow{display:none}
}
