/* =============================================
   WP Typing Test – SEO Post Styling (Full Version)
   Colourful tables with bold underlined caption & gradient header
   ============================================= */

/* Google Fonts (optional) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap');

/* Base Article Wrapper */
.wptt-seo-article {
    font-family: 'Noto Sans', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d2d2d;
    max-width: 860px;
}

/* Headings – Colourful gradient underlines */
.wptt-seo-article h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    padding-bottom: 12px;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #e63946, #f4a261, #2a9d8f) 1;
}

.wptt-seo-article h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #16213e;
    margin-top: 2.4rem;
    margin-bottom: 0.8rem;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border-left: 5px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

.wptt-seo-article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    padding-left: 14px;
    border-left: 3px solid #f4a261;
}

/* Paragraphs */
.wptt-seo-article p {
    margin-bottom: 1.2rem;
    color: #374151;
}
.wptt-seo-article strong {
    color: #1e3a5f;
    font-weight: 600;
}

/* ===== INFO BOXES ===== */
.wptt-info-box {
    display: block;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 1.6rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.wptt-info-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.wptt-info-box strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.wptt-info-box p {
    margin-bottom: 0;
    font-size: 0.97rem;
}
.wptt-info-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    color: #1e3a8a;
}
.wptt-info-blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.wptt-info-blue strong { color: #1d4ed8; }

.wptt-info-yellow {
    background: linear-gradient(135deg, #fffbeb, #fef9c3);
    border: 1px solid #fcd34d;
    color: #78350f;
}
.wptt-info-yellow::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.wptt-info-yellow strong { color: #b45309; }

.wptt-info-green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    color: #14532d;
}
.wptt-info-green::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.wptt-info-green strong { color: #15803d; }

/* ===== TABLES – Colourful header + bold underlined caption ===== */
.wptt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-size: 0.95rem;
}

/* Table Caption – Bold, Underlined, Colourful */
.wptt-table caption {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    color: #1e466e;
    background: linear-gradient(120deg, #eef2ff, #ffffff);
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    text-align: left;
    caption-side: top;
}

/* Table Header – Colourful Gradient */
.wptt-table thead tr {
    background: linear-gradient(135deg, #1d4e89, #3b82f6, #8b5cf6);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.wptt-table thead th {
    padding: 14px 16px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

/* Table Body – Striped rows */
.wptt-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}
.wptt-table tbody td {
    padding: 11px 16px;
    color: #374151;
    vertical-align: top;
}
.wptt-table-striped tbody tr:nth-child(odd) td {
    background-color: #f8faff;
}
.wptt-table-striped tbody tr:nth-child(even) td {
    background-color: #ffffff;
}
.wptt-table tbody tr:hover td {
    background-color: #e0e7ff;
}
.wptt-table tbody td:first-child {
    font-weight: 600;
    color: #1e3a5f;
}

/* ===== STYLED LISTS ===== */
.wptt-styled-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0;
}
.wptt-styled-list li {
    position: relative;
    padding: 12px 16px 12px 48px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    font-size: 0.97rem;
    color: #374151;
    transition: border-left-color 0.2s, box-shadow 0.2s;
}
.wptt-styled-list li:hover {
    border-left-color: #f4a261;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wptt-styled-list li::before {
    content: '✦';
    position: absolute;
    left: 16px;
    top: 12px;
    color: #3b82f6;
    font-size: 1rem;
}

/* ===== CTA BOX ===== */
.wptt-cta-box {
    margin: 2.4rem 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%);
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}
.wptt-cta-box::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.wptt-cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 12px;
    border: none !important;
    padding: 0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.wptt-cta-box p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ===== SHORTCODE NOTE ===== */
.wptt-shortcode-note {
    text-align: center;
    font-size: 0.92rem;
    color: #6b7280;
    font-style: italic;
    margin-top: -0.4rem;
    margin-bottom: 1.8rem;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
}

/* ===== BLOCKQUOTE ===== */
.wptt-seo-article blockquote {
    margin: 1.8rem 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, #faf5ff, #eff6ff);
    border-left: 5px solid #7c3aed;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #4c1d95;
    font-size: 1.05rem;
}

/* ===== RESPONSIVE (Mobile) ===== */
@media (max-width: 768px) {
    .wptt-seo-article h1 { font-size: 1.5rem; }
    .wptt-seo-article h2 { font-size: 1.2rem; padding: 8px 12px; }
    .wptt-seo-article h3 { font-size: 1.05rem; }
    .wptt-info-box { padding: 14px 16px; }
    .wptt-cta-box { padding: 20px 18px; }
    .wptt-cta-box h3 { font-size: 1.2rem; }
    .wptt-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .wptt-styled-list li { padding: 10px 12px 10px 40px; }
}
@media (max-width: 480px) {
    .wptt-seo-article { font-size: 0.97rem; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .wptt-info-box, .wptt-cta-box {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    .wptt-seo-article h2 { background: none !important; color: #000 !important; }
    .wptt-cta-box h3, .wptt-cta-box p { color: #000 !important; }
}
/* Container */
.wp-block-latest-posts {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  padding: 16px;
  background-color: #fdfdfd;
}

/* Post Item */
.wp-block-latest-posts li {
  list-style: none;
  margin-bottom: 18px;
  padding: 16px;
  background: #fff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  transition: 0.25s ease;
}

.wp-block-latest-posts li:hover {
  background: #f1f5f9;
}

/* Title */
.wp-block-latest-posts a {
  display: block;
  color: #2563eb;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.wp-block-latest-posts a:hover {
  color: #d13a7a;
  text-decoration: underline;
}

/* Featured Image */
.wp-block-latest-posts .wp-block-latest-posts__featured-image {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.wp-block-latest-posts .wp-block-latest-posts__featured-image img:hover {
  transform: scale(1.04);
}

/* Excerpt */
.wp-block-latest-posts .wp-block-latest-posts__excerpt {
  font-size: 14px;
  color: #444;
  margin-top: 8px;
  line-height: 1.5;
}

/* Date */
.wp-block-latest-posts .wp-block-latest-posts__post-date {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  font-style: italic;
}

/* Author */
.wp-block-latest-posts .wp-block-latest-posts__author {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .wp-block-latest-posts {
    padding: 10px;
  }
  .wp-block-latest-posts li {
    padding: 12px;
  }
  .wp-block-latest-posts a {
    font-size: 15px;
  }
  .wp-block-latest-posts .wp-block-latest-posts__excerpt {
    font-size: 13px;
  }
}

/* Very Small Mobile */
@media (max-width: 480px) {
  .wp-block-latest-posts .wp-block-latest-posts__featured-image img {
    width: 70px;
    height: 55px;
  }
  .wp-block-latest-posts a {
    font-size: 14px;
  }
  .wp-block-latest-posts .wp-block-latest-posts__excerpt {
    font-size: 12px;
  }
}