/*
Theme Name: Timestore
Theme URI: https://timestore.uk
Author: Timestore Team
Author URI: https://timestore.uk
Description: Custom single-page theme for Timestore.uk — Forex & Technology resource hub with Apps, Blog, Courses and AI Chat sections.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timestore
*/

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --primary: #0a84ff;
      --primary-dark: #0066cc;
      --accent: #00d2ff;
      --bg: #f2f2f2;
      --white: #ffffff;
      --dark: #0d0d0d;
      --card-bg: #ffffff;
      --text: #1a1a1a;
      --muted: #666666;
      --border: #e5e5e5;
      --radius: 14px;
      --radius-sm: 8px;
      --shadow: 0 4px 20px rgba(0,0,0,.08);
      --shadow-hover: 0 8px 32px rgba(10,132,255,.18);
    }

    html { scroll-behavior: smooth; }
    body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; display: block; }

    /* ── PAGES ── */
    .page { display: none; }
    .page.active { display: block; }

    /* ── HEADER ── */
    header {
      background: var(--white);
      position: sticky; top: 0; z-index: 200;
      box-shadow: 0 1px 0 var(--border);
    }
    .header-inner {
      max-width: 1200px; margin: 0 auto;
      padding: 0 20px;
      display: flex; align-items: center; justify-content: space-between;
      height: 64px;
    }
    .logo {
      font-family: 'Poppins', sans-serif;
      font-weight: 800; font-size: 20px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.5px; cursor: pointer;
    }
    nav {
      display: flex; gap: 4px; align-items: center;
      max-width: 1200px; margin: 0 auto; padding: 0 20px; flex-wrap: wrap;
      border-top: 1px solid var(--border);
    }
    nav a {
      font-size: 13px; font-weight: 500;
      padding: 8px 12px; border-radius: var(--radius-sm);
      color: var(--muted); transition: all .2s;
      white-space: nowrap; cursor: pointer;
    }
    nav a:hover, nav a.active { color: var(--primary); background: rgba(10,132,255,.08); }
    .nav-toggle {
      display: none; background: none; border: none;
      font-size: 22px; cursor: pointer; padding: 4px; color: var(--text);
    }

    /* ── HERO ── */
    .hero {
      background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 50%, #16213e 100%);
      padding: 60px 20px; text-align: center;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(10,132,255,.25) 0%, transparent 70%);
    }
    .hero-content { position: relative; max-width: 700px; margin: 0 auto; }
    .hero-eyebrow {
      display: inline-block;
      background: rgba(10,132,255,.15);
      border: 1px solid rgba(10,132,255,.3);
      color: var(--accent);
      font-size: 12px; font-weight: 600;
      padding: 5px 14px; border-radius: 20px;
      letter-spacing: 1px; text-transform: uppercase;
      margin-bottom: 18px;
    }
    .hero h1 {
      font-family: 'Poppins', sans-serif;
      font-size: clamp(28px, 5vw, 48px);
      font-weight: 800; color: #fff;
      line-height: 1.2; margin-bottom: 14px;
    }
    .hero h1 span { color: var(--accent); }
    .hero p { color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
    .hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .btn {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 11px 22px; border-radius: 10px;
      font-size: 14px; font-weight: 600;
      transition: all .2s; cursor: pointer;
    }
    .btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(10,132,255,.4); }
    .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
    .btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; }
    .btn-ghost:hover { background: rgba(255,255,255,.14); }

    /* ── SOCIAL STRIP ── */
    .social-strip {
      background: var(--dark); padding: 10px 20px;
      display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    }
    .social-chip {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 6px 14px; border-radius: 20px;
      font-size: 12px; font-weight: 600; color: #fff;
      transition: opacity .2s;
    }
    .social-chip:hover { opacity: .8; }
    .chip-fb { background: #1877f2; }
    .chip-yt { background: #ff0000; }
    .chip-ai { background: linear-gradient(135deg, #7928ca, #ff0080); }

    /* ── ADSENSE WRAPPER ── */
    .ad-wrap {
      max-width: 1200px; margin: 0 auto;
      padding: 14px 20px;
      text-align: center;
    }
    .ad-label {
      font-size: 10px; color: var(--muted); text-transform: uppercase;
      letter-spacing: 1px; margin-bottom: 4px;
    }
    /* Placeholder visual for the ad (shows before AdSense loads) */
    .ad-placeholder {
      background: #f9f9f9;
      border: 1px dashed #ddd;
      border-radius: 8px;
      min-height: 90px;
      display: flex; align-items: center; justify-content: center;
      color: #bbb; font-size: 12px;
      overflow: hidden;
    }
    .ad-placeholder ins { display: block; width: 100%; }

    /* ── CONTAINER ── */
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

    /* ── SECTION ── */
    .section { padding: 48px 0; }
    .section-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 28px;
    }
    .section-title {
      font-family: 'Poppins', sans-serif;
      font-size: 20px; font-weight: 700; color: var(--dark);
      display: flex; align-items: center; gap: 8px;
    }
    .section-title::before {
      content: ''; width: 4px; height: 22px; background: var(--primary);
      border-radius: 3px; display: block;
    }
    .see-all {
      font-size: 13px; font-weight: 600; color: var(--primary);
      display: flex; align-items: center; gap: 4px; cursor: pointer;
    }
    .see-all:hover { text-decoration: underline; }

    /* ── APP GRID ── */
    .app-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 16px;
    }
    .app-card {
      background: var(--white); border-radius: var(--radius);
      padding: 18px 10px; text-align: center;
      box-shadow: var(--shadow); cursor: pointer;
      transition: all .25s; border: 1.5px solid transparent;
    }
    .app-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
    .app-icon {
      width: 56px; height: 56px; border-radius: 14px;
      margin: 0 auto 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 26px;
    }
    .app-card h4 { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.3; }

    .ic-blue { background: linear-gradient(135deg, #0a84ff, #00d2ff); }
    .ic-green { background: linear-gradient(135deg, #30d158, #25a244); }
    .ic-orange { background: linear-gradient(135deg, #ff9f0a, #ff6b00); }
    .ic-purple { background: linear-gradient(135deg, #bf5af2, #7928ca); }
    .ic-red { background: linear-gradient(135deg, #ff453a, #d70015); }
    .ic-teal { background: linear-gradient(135deg, #5ac8fa, #007aff); }
    .ic-pink { background: linear-gradient(135deg, #ff2d55, #ff6b6b); }
    .ic-gold { background: linear-gradient(135deg, #ffd60a, #ff9500); }
    .ic-dark { background: linear-gradient(135deg, #2c2c2e, #48484a); }
    .ic-indigo { background: linear-gradient(135deg, #5e5ce6, #3634a3); }

    /* ── BLOG ARTICLE CARD ── */
.blog-article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.blog-article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.blog-article-thumb {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px;
  flex-shrink: 0;
}
.blog-article-body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.blog-article-tag {
  display: inline-block;
  background: rgba(10,132,255,.1); color: var(--primary);
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
  width: fit-content;
}
.blog-article-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--dark);
  line-height: 1.45;
}
.blog-article-excerpt {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-article-meta {
  font-size: 11px; color: #aaa; font-weight: 500; margin-top: auto; padding-top: 4px;
  display: flex; align-items: center; gap: 6px;
}
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 16px;
    }

    /* ── BLOG GRID — article cards ── */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }
    /* Blog card in full list page */
    .blog-list-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }

    .load-more-wrap { text-align: center; margin-top: 32px; }
    .btn-load-more {
      background: var(--white); border: 2px solid var(--primary);
      color: var(--primary); padding: 12px 36px;
      border-radius: 10px; font-size: 14px; font-weight: 700;
      cursor: pointer; transition: all .2s;
    }
    .btn-load-more:hover { background: var(--primary); color: #fff; }

    /* ── CEO SECTION ── */
    .ceo-section {
      background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
      border-radius: var(--radius); padding: 40px;
      display: flex; align-items: center; gap: 32px;
      margin: 0 20px;
    }
    .ceo-avatar {
      width: 90px; height: 90px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      display: flex; align-items: center; justify-content: center;
      font-size: 36px; border: 3px solid rgba(255,255,255,.15);
    }
    .ceo-content h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 8px; }
    .ceo-content p { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
    .stars { color: #ffd60a; font-size: 16px; letter-spacing: 2px; }
    .ceo-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); margin-top: 4px; }
    .ceo-contact { margin-top: 10px; }
    .ceo-contact a {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(10,132,255,.2); border: 1px solid rgba(10,132,255,.3);
      color: var(--accent); padding: 7px 14px; border-radius: 8px;
      font-size: 13px; font-weight: 600;
    }
    .ceo-contact a:hover { background: rgba(10,132,255,.35); }

    /* ── FOOTER ── */
    footer { background: var(--dark); color: rgba(255,255,255,.6); margin-top: 60px; padding: 48px 20px 0; }
    .footer-grid {
      max-width: 1200px; margin: 0 auto;
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
      padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .footer-brand .logo-ft {
      font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text; margin-bottom: 12px;
    }
    .footer-brand p { font-size: 13px; line-height: 1.8; max-width: 260px; }
    .footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .8px; }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .2s; cursor: pointer; }
    .footer-col ul li a:hover { color: var(--accent); }
    .footer-social { display: flex; gap: 10px; margin-top: 18px; }
    .footer-social a {
      width: 36px; height: 36px; border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; transition: all .2s;
    }
    .footer-social a:hover { transform: translateY(-2px); }
    .fs-fb { background: #1877f2; }
    .fs-yt { background: #ff0000; }
    .fs-ai { background: linear-gradient(135deg, #7928ca, #ff0080); }
    .footer-bottom {
      max-width: 1200px; margin: 0 auto;
      padding: 18px 0; text-align: center; font-size: 12.5px;
      color: rgba(255,255,255,.3);
    }
    .footer-bottom a { color: var(--accent); }

    .divider { height: 1px; background: var(--border); margin: 0; }

    /* ── APP DETAIL MODAL ── */
    .modal-overlay {
      display: none; position: fixed; inset: 0; z-index: 999;
      background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
      align-items: center; justify-content: center; padding: 20px;
    }
    .modal-overlay.open { display: flex; }
    .modal-box {
      background: #fff; border-radius: 20px;
      width: 100%; max-width: 480px;
      box-shadow: 0 24px 64px rgba(0,0,0,.3);
      overflow: hidden; animation: modalIn .25s ease;
      max-height: 90vh; overflow-y: auto;
    }
    @keyframes modalIn {
      from { opacity: 0; transform: translateY(24px) scale(.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .modal-header {
      background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
      padding: 28px 24px 22px;
      display: flex; align-items: center; gap: 18px;
      position: relative;
    }
    .modal-close {
      position: absolute; top: 14px; right: 16px;
      background: rgba(255,255,255,.12); border: none;
      color: #fff; width: 30px; height: 30px; border-radius: 50%;
      font-size: 16px; cursor: pointer; display: flex;
      align-items: center; justify-content: center; transition: background .2s;
    }
    .modal-close:hover { background: rgba(255,255,255,.25); }
    .modal-app-icon {
      width: 72px; height: 72px; border-radius: 18px;
      display: flex; align-items: center; justify-content: center;
      font-size: 34px; flex-shrink: 0;
      box-shadow: 0 4px 16px rgba(0,0,0,.35);
    }
    .modal-app-name { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 800; color: #fff; }
    .modal-app-category { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; font-weight: 500; }
    .modal-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
    .modal-stars { color: #ffd60a; font-size: 13px; }
    .modal-rating-num { font-size: 12px; color: rgba(255,255,255,.55); }
    .modal-body { padding: 22px 24px; }
    .modal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
    .meta-chip {
      display: inline-flex; align-items: center; gap: 5px;
      background: rgba(10,132,255,.08); border: 1px solid rgba(10,132,255,.15);
      color: var(--primary); padding: 5px 12px; border-radius: 20px;
      font-size: 12px; font-weight: 600;
    }
    .modal-desc-title {
      font-family: 'Poppins', sans-serif;
      font-size: 13px; font-weight: 700; color: var(--dark);
      margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px;
    }
    .modal-desc { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
    .modal-screenshots {
      display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto;
      scrollbar-width: none;
    }
    .modal-screenshots::-webkit-scrollbar { display: none; }
    .screenshot-placeholder {
      flex-shrink: 0; width: 90px; height: 150px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center; font-size: 28px;
    }
    /* Ad inside modal */
    .modal-ad { padding: 0 24px 16px; }
    .modal-footer { padding: 0 24px 24px; display: flex; gap: 10px; }
    .btn-download {
      flex: 1; display: inline-flex; align-items: center; justify-content: center;
      gap: 8px; padding: 13px 20px; border-radius: 12px;
      background: var(--primary); color: #fff;
      font-size: 14px; font-weight: 700;
      box-shadow: 0 4px 16px rgba(10,132,255,.4);
      transition: all .2s; text-decoration: none; cursor: pointer; border: none;
    }
    .btn-download:hover { background: var(--primary-dark); transform: translateY(-1px); }
    .btn-download-outline {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 6px; padding: 13px 16px; border-radius: 12px;
      background: transparent; border: 2px solid var(--border);
      color: var(--muted); font-size: 13px; font-weight: 600;
      cursor: pointer; transition: all .2s;
    }
    .btn-download-outline:hover { border-color: var(--primary); color: var(--primary); }

    /* ── BLOG POST PAGE ── */
    #blogPage { background: var(--bg); min-height: 100vh; }
    .blog-post-hero {
      height: 280px; display: flex; align-items: center; justify-content: center;
      font-size: 80px; position: relative;
    }
    .blog-post-container { max-width: 780px; margin: 0 auto; padding: 32px 20px 60px; }
    .back-btn {
      display: inline-flex; align-items: center; gap: 6px;
      color: var(--primary); font-size: 14px; font-weight: 600;
      cursor: pointer; margin-bottom: 24px; padding: 8px 16px;
      background: rgba(10,132,255,.08); border-radius: 8px;
    }
    .back-btn:hover { background: rgba(10,132,255,.15); }
    .post-tag {
      display: inline-block;
      background: rgba(10,132,255,.1); color: var(--primary);
      font-size: 11px; font-weight: 700; padding: 4px 12px;
      border-radius: 20px; text-transform: uppercase;
      letter-spacing: .5px; margin-bottom: 14px;
    }
    .post-title {
      font-family: 'Poppins', sans-serif;
      font-size: clamp(22px, 4vw, 34px); font-weight: 800;
      color: var(--dark); line-height: 1.3; margin-bottom: 14px;
    }
    .post-meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
    .post-body {
      font-size: 15px; line-height: 1.9; color: var(--text);
    }
    .post-body p { margin-bottom: 18px; }
    .post-body h2 {
      font-family: 'Poppins', sans-serif;
      font-size: 20px; font-weight: 700; color: var(--dark);
      margin: 32px 0 14px;
    }
    .post-body ul { padding-left: 20px; margin-bottom: 18px; }
    .post-body ul li { margin-bottom: 8px; }

    /* ── ALL APPS PAGE ── */
    #appsPage { background: var(--bg); min-height: 100vh; }
    .apps-page-hero {
      background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
      padding: 48px 20px; text-align: center;
    }
    .apps-page-hero h1 {
      font-family: 'Poppins', sans-serif;
      font-size: clamp(24px, 4vw, 40px); font-weight: 800; color: #fff;
      margin-bottom: 8px;
    }
    .apps-page-hero p { color: rgba(255,255,255,.6); font-size: 14px; }
    .apps-all-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
      gap: 16px;
      padding: 32px 20px 60px;
      max-width: 1200px; margin: 0 auto;
    }

    /* ── APP DETAIL PAGE ── */
    #appDetailPage { background: var(--bg); min-height: 100vh; }
    .app-detail-hero {
      background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
      padding: 36px 20px 28px;
    }
    .app-detail-header {
      max-width: 780px; margin: 0 auto;
      display: flex; align-items: center; gap: 20px;
    }
    .app-detail-icon {
      width: 88px; height: 88px; border-radius: 22px;
      display: flex; align-items: center; justify-content: center;
      font-size: 40px; flex-shrink: 0;
      box-shadow: 0 8px 24px rgba(0,0,0,.4);
    }
    .app-detail-info h1 { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 800; color: #fff; }
    .app-detail-info .cat { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }
    .app-detail-info .rating { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
    .app-detail-info .rating span:first-child { color: #ffd60a; }
    .app-detail-info .rating span:last-child { font-size: 12px; color: rgba(255,255,255,.55); }
    .app-detail-container { max-width: 780px; margin: 0 auto; padding: 28px 20px 60px; }
    .app-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
    .app-detail-desc { font-size: 15px; line-height: 1.85; color: var(--text); margin-bottom: 28px; }
    .app-screenshots {
      display: flex; gap: 10px; overflow-x: auto; margin-bottom: 28px;
      scrollbar-width: none; padding-bottom: 4px;
    }
    .app-screenshots::-webkit-scrollbar { display: none; }
    .app-sc {
      flex-shrink: 0; width: 110px; height: 180px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 34px;
    }
    .btn-dl-big {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      width: 100%; padding: 16px; border-radius: 14px;
      background: var(--primary); color: #fff;
      font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700;
      box-shadow: 0 6px 24px rgba(10,132,255,.4);
      transition: all .2s; text-decoration: none; cursor: pointer;
    }
    .btn-dl-big:hover { background: var(--primary-dark); transform: translateY(-2px); }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 640px) {
      nav {
        display: none; flex-direction: column; width: 100%;
        background: var(--white); padding: 8px 0;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
      }
      nav.open { display: flex; }
      nav a { font-size: 13px; padding: 10px 16px; border-radius: 0; width: 100%; box-sizing: border-box; }
      nav a:hover, nav a.active { background: rgba(10,132,255,.08); }
      .nav-toggle { display: block; }
      .header-inner { flex-wrap: wrap; height: auto; padding: 0 16px; height: 56px; }
      .logo { flex: 1; text-align: left; }
      .hero { padding: 44px 20px; }
      .ceo-section { flex-direction: column; text-align: center; padding: 28px 20px; margin: 0 16px; }
      .footer-grid { grid-template-columns: 1fr; gap: 28px; }
      .app-grid { grid-template-columns: repeat(4, 1fr); }
      .apps-all-grid { grid-template-columns: repeat(4, 1fr); }
      .ai-grid { grid-template-columns: 1fr 1fr; }
      .blog-grid { grid-template-columns: 1fr; }
      .blog-list-grid { grid-template-columns: 1fr; }
      .app-detail-header { flex-direction: column; text-align: center; }
    }

/* Course card + AI chat bubble styles (originally inline) */
.course-card {
  background:#fff;border-radius:var(--radius);
  box-shadow:var(--shadow);cursor:pointer;
  overflow:hidden;transition:all .25s;
  border:1.5px solid transparent;
}
.course-card:hover { border-color:var(--primary);box-shadow:var(--shadow-hover);transform:translateY(-3px); }
.course-thumb {
  height:130px;display:flex;align-items:center;
  justify-content:center;font-size:52px;
}
.course-info { padding:18px; }
.course-tag {
  display:inline-block;
  background:rgba(10,132,255,.1);color:var(--primary);
  font-size:11px;font-weight:700;padding:3px 10px;
  border-radius:20px;text-transform:uppercase;
  letter-spacing:.5px;margin-bottom:10px;
}
.course-info h3 {
  font-family:'Poppins',sans-serif;font-size:15px;
  font-weight:700;color:var(--dark);margin-bottom:6px;line-height:1.4;
}
.course-info p { font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:10px; }
.course-meta { font-size:12px;color:var(--muted);font-weight:600; }

/* AI Chat bubbles */
.chat-user {
  align-self:flex-end;background:var(--primary);color:#fff;
  padding:12px 16px;border-radius:14px 14px 4px 14px;
  max-width:80%;font-size:14px;line-height:1.6;
}
.chat-ai {
  align-self:flex-start;background:#fff;color:var(--text);
  padding:14px 16px;border-radius:14px 14px 14px 4px;
  max-width:85%;font-size:14px;line-height:1.75;
  box-shadow:0 2px 12px rgba(0,0,0,.08);border:1px solid var(--border);
}
.chat-ai h2,.chat-ai h3 { font-family:'Poppins',sans-serif;font-size:15px;font-weight:700;margin:12px 0 6px; }
.chat-ai ul { padding-left:18px;margin:6px 0; }
.chat-ai ul li { margin-bottom:4px; }
.chat-ai pre { background:#1a1a2e;color:#00d2ff;padding:12px;border-radius:8px;font-size:12px;overflow-x:auto;margin:8px 0; }
.chat-thinking {
  align-self:flex-start;color:var(--muted);font-size:13px;
  padding:8px 14px;font-style:italic;
}

/* AI chat typing animation (originally inline) */
@keyframes skBounce { 0%,60%,100%{ transform:translateY(0); } 30%{ transform:translateY(-6px); } }

/* ── Real <a> links for cards (SEO fix: clicking now navigates to a real crawlable URL) ── */
a.app-card, a.blog-article-card, a.course-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
