/*
Theme Name: TipsMint
Theme URI: https://tipsmint.com
Author: TipsMint
Author URI: https://tipsmint.com
Description: A fast, SEO-optimised blogging theme for teachers. Built for Google AdSense approval. Clean, professional, fully responsive.
Version: 3.0
License: GNU General Public License v2 or later
Tags: blog, education, responsive, seo, adsense
Text Domain: tipsmint
*/

/* ===================== CSS VARIABLES ===================== */
:root {
  --navy:       #0f2044;
  --navy-mid:   #1a3a6e;
  --blue:       #1d5fc4;
  --blue-light: #e8f0fe;
  --gold:       #d97706;
  --gold-light: #fef3c7;
  --green:      #16a34a;
  --red:        #dc2626;
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-800:   #1f2937;
  --font-body:  'Source Sans 3', Georgia, serif;
  --font-head:  'Lora', Georgia, serif;
  --radius:     12px;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --max-w:      1140px;
  --trans:      0.2s ease;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.5em; }

/* ===================== SKIP LINK ===================== */
.tm-skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 9999;
  background: var(--navy); color: white; padding: 8px 16px;
  border-radius: 0 0 8px 8px; font-size: 14px; font-weight: 600;
  transition: top var(--trans);
}
.tm-skip-link:focus { top: 0; color: white; }

/* ===================== NAVIGATION ===================== */
.tm-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.tm-brand {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700;
  color: var(--navy); text-decoration: none;
  letter-spacing: -0.5px;
}
.tm-brand .dot { color: var(--blue); }

.tm-nav-links {
  display: flex; align-items: center; gap: 4px;
}
.tm-nav-links a {
  color: var(--gray-600);
  font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: all var(--trans);
  text-decoration: none;
}
.tm-nav-links a:hover,
.tm-nav-links a.active {
  color: var(--navy); background: var(--gray-100);
}

/* Hamburger */
.tm-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  flex-direction: column; gap: 5px;
}
.tm-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all var(--trans);
}

/* Mobile Menu */
.tm-mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 999;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 12px 0;
  flex-direction: column;
}
.tm-mobile-menu.open { display: flex; }
.tm-mobile-menu a {
  display: block; padding: 14px 24px;
  color: var(--gray-800); font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: background var(--trans);
}
.tm-mobile-menu a:last-child { border-bottom: none; }
.tm-mobile-menu a:hover { background: var(--gray-50); color: var(--navy); }

/* ===================== HERO ===================== */
.tm-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 60%, #1d5fc4 100%);
  padding: 80px 24px;
  position: relative; overflow: hidden;
}
.tm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.tm-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative;
}
.tm-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.15);
}
.tm-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700; line-height: 1.18;
  color: white; margin-bottom: 20px;
}
.tm-hero h1 span { color: #fbbf24; }
.tm-hero p {
  color: rgba(255,255,255,.8);
  font-size: 18px; line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}
.tm-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.tm-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fbbf24; color: var(--navy);
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent;
  transition: all var(--trans);
  box-shadow: 0 4px 16px rgba(251,191,36,.3);
}
.tm-btn-primary:hover {
  background: #f59e0b; color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,191,36,.4);
}
.tm-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: white;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; border: 2px solid rgba(255,255,255,.35);
  transition: all var(--trans);
}
.tm-btn-outline:hover {
  background: rgba(255,255,255,.1); color: white;
  border-color: rgba(255,255,255,.6);
}
.tm-hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.tm-hstat-num {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 700; color: #fbbf24; line-height: 1;
}
.tm-hstat-text {
  font-size: 12px; color: rgba(255,255,255,.6);
  font-weight: 500; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px;
}

/* Hero Card */
.tm-hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 32px;
}
.tm-hcard-title {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700; color: white;
  margin-bottom: 20px;
}
.tm-hero-topics {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tm-topic-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: white;
  padding: 8px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; border: 1px solid rgba(255,255,255,.2);
  transition: all var(--trans);
}
.tm-topic-pill:hover { background: rgba(255,255,255,.22); color: white; }
.tm-hcard-btn {
  display: block; text-align: center;
  background: #fbbf24; color: var(--navy);
  padding: 13px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--trans);
}
.tm-hcard-btn:hover { background: #f59e0b; color: var(--navy); }

/* ===================== AD AREAS ===================== */
.tm-ad-wrap {
  max-width: 1000px; margin: 0 auto;
  padding: 24px;
}
.tm-ad-banner {
  min-height: 90px;
  background: var(--gray-50);
  border: 1px dashed var(--gray-200);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 12px;
}

/* ===================== SECTIONS ===================== */
.tm-section { padding: 72px 24px; }
.tm-section-inner { max-width: var(--max-w); margin: 0 auto; }
.tm-section-tag {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  padding: 4px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.tm-section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700; color: var(--navy);
  line-height: 1.25; margin-bottom: 14px;
}
.tm-section-sub {
  color: var(--gray-600); font-size: 17px;
  max-width: 560px; margin-bottom: 48px;
}

/* ===================== FEATURES GRID ===================== */
.tm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tm-feature-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px;
  transition: all var(--trans);
}
.tm-feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.tm-feature-icon { font-size: 32px; margin-bottom: 14px; }
.tm-feature-title {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}
.tm-feature-text { color: var(--gray-600); font-size: 14px; line-height: 1.65; }

/* ===================== BLOG GRID ===================== */
.tm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tm-post-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--trans);
}
.tm-post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue);
}
.tm-post-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.tm-post-thumb-img img {
  width: 100%; height: 180px; object-fit: cover;
}
.bg1 { background: linear-gradient(135deg,#dbeafe,#bfdbfe); }
.bg2 { background: linear-gradient(135deg,#d1fae5,#a7f3d0); }
.bg3 { background: linear-gradient(135deg,#fef3c7,#fde68a); }
.bg4 { background: linear-gradient(135deg,#fce7f3,#fbcfe8); }
.bg5 { background: linear-gradient(135deg,#ede9fe,#ddd6fe); }
.bg6 { background: linear-gradient(135deg,#e0f2fe,#bae6fd); }

.tm-post-body { padding: 20px; }
.tm-post-cat {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  padding: 3px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 10px;
  text-decoration: none;
}
.tm-post-title {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px; line-height: 1.4;
}
.tm-post-title a { color: var(--navy); text-decoration: none; }
.tm-post-title a:hover { color: var(--blue); }
.tm-post-excerpt { color: var(--gray-600); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.tm-post-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--gray-400);
}
.tm-read-more {
  color: var(--blue); font-weight: 600; font-size: 13px;
  text-decoration: none;
}
.tm-read-more:hover { color: var(--navy); }

/* ===================== TOOLS PROMO (now: Blog CTA) ===================== */
.tm-tools-promo {
  background: linear-gradient(135deg, var(--navy) 0%, #1d5fc4 100%);
  padding: 80px 24px;
}
.tm-tools-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.tm-tools-tag { background: rgba(255,255,255,.15); color: white; }
.tm-tools-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; color: white; line-height: 1.2;
  margin-bottom: 16px;
}
.tm-tools-title em { color: #fbbf24; font-style: normal; }
.tm-tools-text {
  color: rgba(255,255,255,.75); font-size: 17px;
  line-height: 1.7; margin-bottom: 24px;
}
.tm-tool-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.tm-tool-list li {
  color: rgba(255,255,255,.85);
  padding-left: 26px; position: relative; font-size: 15px;
}
.tm-tool-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: #4ade80; font-weight: 700;
}

/* ===================== BREADCRUMB ===================== */
.tm-breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px;
  font-size: 13px; color: var(--gray-600);
}
.tm-breadcrumb-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.tm-breadcrumb a { color: var(--blue); text-decoration: none; }
.tm-breadcrumb a:hover { text-decoration: underline; }
.tm-breadcrumb span[aria-current="page"] { color: var(--gray-800); font-weight: 600; }

/* ===================== SINGLE POST ===================== */
.tm-page-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 48px 24px 72px;
}
.tm-post-header { margin-bottom: 32px; }
.tm-post-cat-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.tm-post-header h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700; color: var(--navy); line-height: 1.25;
  margin-bottom: 16px;
}
.tm-post-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--gray-600);
}
.tm-post-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.tm-post-featured-img img { width: 100%; height: auto; }

/* Article content styling */
.tm-post-content {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.8; color: var(--gray-800);
}
.tm-post-content h2 {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700;
  color: var(--navy); margin: 40px 0 16px;
  line-height: 1.3;
}
.tm-post-content h3 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: var(--navy); margin: 32px 0 12px;
}
.tm-post-content h4 {
  font-size: 17px; font-weight: 700;
  color: var(--navy); margin: 24px 0 10px;
}
.tm-post-content p { margin-bottom: 20px; }
.tm-post-content ul, .tm-post-content ol {
  margin: 16px 0 20px 24px;
}
.tm-post-content li { margin-bottom: 8px; }
.tm-post-content a { color: var(--blue); text-decoration: underline; }
.tm-post-content a:hover { color: var(--navy); }
.tm-post-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  margin: 28px 0; padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-family: var(--font-head);
  font-style: italic; font-size: 18px; color: var(--navy);
}
.tm-post-content img {
  border-radius: var(--radius);
  margin: 28px 0; max-width: 100%;
}
.tm-post-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px;
}
.tm-post-content th {
  background: var(--navy); color: white;
  padding: 12px 16px; text-align: left; font-weight: 600;
}
.tm-post-content td {
  padding: 10px 16px; border-bottom: 1px solid var(--gray-200);
}
.tm-post-content tr:nth-child(even) td { background: var(--gray-50); }
.tm-post-content code {
  background: var(--gray-100); color: var(--red);
  padding: 2px 6px; border-radius: 4px; font-size: 0.9em;
}
.tm-post-content pre {
  background: var(--gray-800); color: #e2e8f0;
  padding: 24px; border-radius: 12px;
  overflow-x: auto; margin: 24px 0; font-size: 14px;
}

/* Tags */
.tm-post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-tag {
  display: inline-block;
  background: var(--gray-100); color: var(--gray-600);
  padding: 5px 12px; border-radius: 100px;
  font-size: 13px; text-decoration: none;
  transition: all var(--trans);
}
.tm-tag:hover { background: var(--blue-light); color: var(--blue); }

/* Author Box */
.tm-author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px;
  margin-top: 40px;
}
.tm-author-avatar img { border-radius: 50%; }
.tm-author-name {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.tm-author-bio { color: var(--gray-600); font-size: 14px; line-height: 1.6; }

/* ===================== BLOG ARCHIVE ===================== */
.tm-blog-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 64px 24px; text-align: center; color: white;
}
.tm-blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; margin-bottom: 12px;
}
.tm-blog-hero p { color: rgba(255,255,255,.75); font-size: 17px; }
.tm-blog-wrap {
  max-width: var(--max-w); margin: 0 auto;
  padding: 48px 24px 72px;
}

/* Pagination */
.tm-pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px; flex-wrap: wrap;
}
.tm-pagination a, .tm-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--gray-200);
  color: var(--gray-600); text-decoration: none;
  transition: all var(--trans);
}
.tm-pagination a:hover { background: var(--blue); color: white; border-color: var(--blue); }
.tm-pagination .current { background: var(--navy); color: white; border-color: var(--navy); }

/* ===================== SEARCH ===================== */
.tm-search-hero {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  padding: 48px 24px; text-align: center;
}
.tm-search-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 36px);
  color: var(--navy); margin-bottom: 8px;
}
.tm-search-form {
  max-width: 500px; margin: 24px auto 0;
  display: flex; gap: 12px;
}
.tm-search-form input {
  flex: 1; padding: 12px 16px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-size: 15px; font-family: var(--font-body);
  transition: border-color var(--trans);
  outline: none;
}
.tm-search-form input:focus { border-color: var(--blue); }
.tm-search-form button {
  background: var(--navy); color: white;
  border: none; border-radius: 10px;
  padding: 12px 24px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background var(--trans);
}
.tm-search-form button:hover { background: var(--blue); }

/* ===================== 404 PAGE ===================== */
.tm-404-wrap {
  max-width: 600px; margin: 80px auto;
  padding: 0 24px; text-align: center;
}
.tm-404-num {
  font-family: var(--font-head);
  font-size: 100px; font-weight: 700;
  color: var(--blue-light); line-height: 1;
}
.tm-404-wrap h1 {
  font-family: var(--font-head);
  font-size: 32px; color: var(--navy);
  margin-bottom: 12px;
}
.tm-404-wrap p { color: var(--gray-600); font-size: 17px; margin-bottom: 32px; }

/* ===================== ABOUT PAGE ===================== */
.tm-about-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 72px 24px; text-align: center; color: white;
}
.tm-about-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; margin-bottom: 12px;
}
.tm-about-hero p { color: rgba(255,255,255,.75); font-size: 17px; }
.tm-about-section {
  max-width: 780px; margin: 0 auto;
  padding: 56px 24px 72px;
  font-size: 17px; line-height: 1.8;
}
.tm-about-section h2 {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700;
  color: var(--navy); margin-bottom: 16px;
}
.tm-about-section p { color: var(--gray-800); margin-bottom: 16px; }
.tm-about-section ul {
  color: var(--gray-700); margin-bottom: 20px;
}
.tm-about-section ul li { margin-bottom: 8px; }
.tm-divider { border: none; border-top: 1px solid var(--gray-200); margin: 40px 0; }
.tm-contact-info { background: var(--gray-50); border-radius: var(--radius); padding: 24px; }

/* ===================== CONTACT PAGE ===================== */
.tm-contact-wrap {
  max-width: var(--max-w); margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
}
.tm-contact-info-box h2 {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.tm-contact-info-box p { color: var(--gray-600); font-size: 15px; margin-bottom: 24px; }
.tm-ci-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.tm-ci-icon {
  font-size: 24px; width: 44px; height: 44px;
  background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tm-ci-label { font-size: 12px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.tm-ci-value { color: var(--gray-800); font-size: 15px; font-weight: 500; }
.tm-contact-form-box h3 {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--navy); margin-bottom: 20px;
}
.tm-cf-group { margin-bottom: 18px; }
.tm-cf-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--gray-800); margin-bottom: 6px;
}
.tm-cf-group input,
.tm-cf-group select,
.tm-cf-group textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-size: 15px; font-family: var(--font-body);
  color: var(--gray-800); background: white;
  transition: border-color var(--trans); outline: none;
}
.tm-cf-group input:focus,
.tm-cf-group select:focus,
.tm-cf-group textarea:focus { border-color: var(--blue); }
.tm-cf-group textarea { height: 140px; resize: vertical; }
.tm-cf-submit {
  width: 100%; padding: 14px;
  background: var(--navy); color: white;
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background var(--trans);
  font-family: var(--font-body);
}
.tm-cf-submit:hover { background: var(--blue); }
.tm-cf-note { font-size: 12px; color: var(--gray-400); margin-top: 12px; text-align: center; }

/* ===================== POLICY PAGES ===================== */
.tm-policy-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 64px 24px; text-align: center; color: white;
}
.tm-policy-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700; margin-bottom: 10px;
}
.tm-policy-hero p { color: rgba(255,255,255,.65); font-size: 14px; }
.tm-policy-body {
  max-width: 780px; margin: 0 auto;
  padding: 56px 24px 72px;
  font-size: 16px; line-height: 1.8; color: var(--gray-800);
}
.tm-policy-body h2 {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--navy); margin: 36px 0 12px;
}
.tm-policy-body p { margin-bottom: 14px; }
.tm-policy-body ul { margin-bottom: 16px; }
.tm-policy-body li { margin-bottom: 6px; }
.tm-policy-body a { color: var(--blue); }

/* ===================== FOOTER ===================== */
.tm-footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 56px 24px 24px;
}
.tm-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.tm-footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.tm-footer-brand {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700; color: white; margin-bottom: 12px;
}
.tm-footer-brand .dot { color: #fbbf24; }
.tm-footer-desc { font-size: 14px; line-height: 1.7; }
.tm-footer-col h4 {
  font-size: 13px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: .7px; margin-bottom: 16px;
}
.tm-footer-col ul { list-style: none; padding: 0; }
.tm-footer-col li { margin-bottom: 8px; }
.tm-footer-col a {
  color: rgba(255,255,255,.6); font-size: 14px;
  text-decoration: none; transition: color var(--trans);
}
.tm-footer-col a:hover { color: white; }
.tm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
.tm-footer-legal { display: flex; gap: 20px; }
.tm-footer-legal a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; }
.tm-footer-legal a:hover { color: white; }

/* ===================== RESPONSIVE — TABLET ===================== */
@media (max-width: 1024px) {
  .tm-hero-inner,
  .tm-tools-inner { grid-template-columns: 1fr; gap: 40px; }
  .tm-hero-card { max-width: 480px; }
  .tm-features-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tm-contact-wrap { grid-template-columns: 1fr; }
}

/* ===================== RESPONSIVE — MOBILE ===================== */
@media (max-width: 640px) {
  .tm-nav-links { display: none; }
  .tm-hamburger { display: flex; }

  .tm-hero { padding: 48px 20px; }
  .tm-hero h1 { font-size: 30px; }
  .tm-hero p { font-size: 16px; }
  .tm-hero-btns { flex-direction: column; gap: 10px; }
  .tm-btn-primary, .tm-btn-outline { justify-content: center; }
  .tm-hero-stats { gap: 20px; }
  .tm-hstat-num { font-size: 22px; }

  .tm-section { padding: 48px 20px; }
  .tm-features-grid { grid-template-columns: 1fr; gap: 16px; }
  .tm-blog-grid { grid-template-columns: 1fr; gap: 20px; }
  
  .tm-tools-promo { padding: 48px 20px; }
  .tm-tools-inner { grid-template-columns: 1fr; gap: 32px; }

  .tm-page-wrap { padding: 32px 20px 56px; }
  .tm-post-header h1 { font-size: 24px; }
  .tm-post-content { font-size: 16px; }

  .tm-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .tm-footer-bottom { flex-direction: column; text-align: center; }
  .tm-footer-legal { justify-content: center; }

  .tm-about-section { font-size: 16px; }
  .tm-blog-hero { padding: 40px 20px; }
  .tm-blog-wrap { padding: 32px 20px 56px; }
  
  .tm-author-box { flex-direction: column; }
  
  .tm-search-form { flex-direction: column; }

  .tm-pagination a, .tm-pagination span { width: 36px; height: 36px; font-size: 13px; }
}

/* ===================== PRINT ===================== */
@media print {
  .tm-nav, .tm-mobile-menu, .tm-hamburger, .tm-footer,
  .tm-ad-wrap, .tm-ad-banner, .tm-hero-btns,
  .tm-tools-promo { display: none !important; }
  body { font-size: 12pt; color: black; }
  .tm-post-content h2, .tm-post-content h3 { color: black; }
  a { color: black; text-decoration: underline; }
}

/* ===================== ACCESSIBILITY ===================== */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
