/* ===== InvestCompareTool.org - Global Styles ===== */
/* Prefix: ict- | Primary: #1a237e | Accent: #ffc107 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@400;500;600&display=swap');

/* ===== CSS Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.3; color: #1a237e; }
a { color: #1a237e; text-decoration: none; }
a:hover { color: #ffc107; }
img { max-width: 100%; height: auto; }

/* ===== Layout ===== */
.ict-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ict-flex { display: flex; gap: 30px; }
.ict-grid { display: grid; gap: 30px; }
.ict-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ict-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ict-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ict-section { padding: 60px 0; }
.ict-section-alt { background: #fff; }

/* ===== Header & Navigation ===== */
.ict-header {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ict-header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ict-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: #ffc107; }
.ict-logo span { color: #fff; font-weight: 400; font-size: 0.9rem; display: block; margin-top: -5px; }
.ict-nav { display: flex; gap: 30px; list-style: none; align-items: center; }
.ict-nav a { color: #fff; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.ict-nav a:hover { color: #ffc107; }
.ict-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.ict-hero {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 60%, #5c6bc0 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ict-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.ict-hero h1 { font-size: 3rem; color: #fff; margin-bottom: 15px; }
.ict-hero-subtitle { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto 30px; }
.ict-hero-cta {
  display: inline-block;
  background: #ffc107;
  color: #1a237e;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ict-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,193,7,0.4); color: #1a237e; }
.ict-hero-disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
  opacity: 0.7;
  font-style: italic;
}

/* ===== Tool Cards ===== */
.ict-tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  border: 1px solid #e8eaf6;
}
.ict-tool-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: #ffc107; }
.ict-tool-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1a237e, #3949ab);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.ict-tool-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #1a237e; }
.ict-tool-card p { color: #666; font-size: 0.9rem; line-height: 1.5; }
.ict-tool-card-tag {
  display: inline-block;
  background: #e8eaf6;
  color: #1a237e;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 10px;
  font-weight: 500;
}

/* ===== Buttons ===== */
.ict-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.ict-btn-primary { background: #1a237e; color: #fff; }
.ict-btn-primary:hover { background: #283593; color: #fff; }
.ict-btn-accent { background: #ffc107; color: #1a237e; }
.ict-btn-accent:hover { background: #ffb300; color: #1a237e; }
.ict-btn-outline { background: transparent; border: 2px solid #1a237e; color: #1a237e; }
.ict-btn-outline:hover { background: #1a237e; color: #fff; }

/* ===== Forms ===== */
.ict-form-group { margin-bottom: 20px; }
.ict-form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #1a237e; font-size: 0.9rem; }
.ict-form-group input,
.ict-form-group select,
.ict-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c5cae9;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.ict-form-group input:focus,
.ict-form-group select:focus,
.ict-form-group textarea:focus { outline: none; border-color: #1a237e; }
.ict-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== Calculator/Tool Results ===== */
.ict-result-box {
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
  border-left: 4px solid #ffc107;
}
.ict-result-box h4 { color: #1a237e; margin-bottom: 10px; }
.ict-result-number { font-size: 2rem; font-weight: 700; color: #1a237e; font-family: 'Playfair Display', serif; }
.ict-result-label { font-size: 0.85rem; color: #666; margin-top: 5px; }

/* ===== Charts ===== */
.ict-chart-container { position: relative; height: 300px; margin: 25px 0; }
canvas.ict-chart { width: 100% !important; height: 100% !important; }

/* ===== Tool Layout Variants ===== */
.ict-layout-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.ict-layout-dashboard { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.ict-layout-dashboard .ict-dash-main { grid-column: span 8; }
.ict-layout-dashboard .ict-dash-side { grid-column: span 4; }
.ict-layout-bigcard { max-width: 800px; margin: 0 auto; }
.ict-layout-accordion .ict-accordion-item { border: 1px solid #e8eaf6; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.ict-layout-accordion .ict-accordion-header { background: #f5f5f5; padding: 15px 20px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ict-layout-accordion .ict-accordion-header::after { content: '+'; font-size: 1.2rem; color: #1a237e; }
.ict-layout-accordion .ict-accordion-item.active .ict-accordion-header::after { content: '−'; }
.ict-layout-accordion .ict-accordion-body { padding: 20px; display: none; }
.ict-layout-accordion .ict-accordion-item.active .ict-accordion-body { display: block; }
.ict-layout-timeline { position: relative; padding-left: 30px; }
.ict-layout-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #c5cae9; }
.ict-timeline-item { position: relative; margin-bottom: 30px; padding-left: 25px; }
.ict-timeline-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #ffc107; border: 2px solid #1a237e; }
.ict-layout-searchlist .ict-search-bar { margin-bottom: 20px; }
.ict-layout-searchlist .ict-search-bar input { width: 100%; padding: 14px 20px; border: 1px solid #c5cae9; border-radius: 8px; font-size: 1rem; }

/* ===== Sticky Features Bar ===== */
.ict-sticky-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8eaf6;
}

/* ===== Article/Content Styles ===== */
.ict-article { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.ict-article h1 { font-size: 2.2rem; margin-bottom: 10px; }
.ict-article h2 { font-size: 1.5rem; margin: 30px 0 15px; color: #1a237e; border-bottom: 2px solid #ffc107; padding-bottom: 8px; }
.ict-article h3 { font-size: 1.2rem; margin: 25px 0 10px; }
.ict-article p { margin-bottom: 15px; line-height: 1.7; }
.ict-article ul, .ict-article ol { margin: 15px 0 15px 25px; }
.ict-article li { margin-bottom: 8px; }
.ict-article blockquote {
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin: 20px 0;
  background: #fff8e1;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.ict-article-meta { display: flex; gap: 20px; color: #666; font-size: 0.85rem; margin-bottom: 20px; flex-wrap: wrap; }
.ict-article-meta span { display: flex; align-items: center; gap: 5px; }

/* ===== Author Box ===== */
.ict-author-box {
  display: flex;
  gap: 20px;
  background: #e8eaf6;
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  align-items: flex-start;
}
.ict-author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a237e, #3949ab);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.ict-author-info h4 { color: #1a237e; margin-bottom: 5px; }
.ict-author-info p { font-size: 0.9rem; color: #555; line-height: 1.5; }

/* ===== Related Articles & Tools ===== */
.ict-related { margin: 40px 0; }
.ict-related h3 { font-size: 1.2rem; margin-bottom: 15px; color: #1a237e; }
.ict-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ict-related-card {
  background: #fff;
  border: 1px solid #e8eaf6;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s;
}
.ict-related-card:hover { border-color: #ffc107; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.ict-related-card h4 { font-size: 1rem; color: #1a237e; margin-bottom: 8px; }
.ict-related-card p { font-size: 0.85rem; color: #666; }
.ict-related-card a { color: inherit; }

/* ===== Blog Listing ===== */
.ict-blog-list { display: flex; flex-direction: column; gap: 25px; }
.ict-blog-card {
  display: flex;
  gap: 25px;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.2s;
  border: 1px solid #e8eaf6;
}
.ict-blog-card:hover { box-shadow: 0 6px 25px rgba(0,0,0,0.1); border-color: #c5cae9; }
.ict-blog-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ict-blog-card h3 a:hover { color: #1a237e; text-decoration: underline; }
.ict-blog-card-excerpt { color: #666; font-size: 0.9rem; line-height: 1.5; margin-bottom: 10px; }
.ict-blog-card-meta { display: flex; gap: 15px; font-size: 0.8rem; color: #888; flex-wrap: wrap; }
.ict-blog-card-tag { background: #e8eaf6; color: #1a237e; padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }

/* ===== Footer ===== */
.ict-footer {
  background: #1a237e;
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 60px;
}
.ict-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 30px; }
.ict-footer-col h4 { color: #ffc107; font-size: 1rem; margin-bottom: 15px; }
.ict-footer-col ul { list-style: none; }
.ict-footer-col li { margin-bottom: 8px; }
.ict-footer-col a { color: #c5cae9; font-size: 0.9rem; transition: color 0.2s; }
.ict-footer-col a:hover { color: #ffc107; }
.ict-footer-bottom {
  border-top: 1px solid #3949ab;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #c5cae9;
}
.ict-footer-bottom p { margin-bottom: 5px; }
.ict-disclaimer { font-style: italic; opacity: 0.8; }

/* ===== Breadcrumb ===== */
.ict-breadcrumb { background: #e8eaf6; padding: 12px 0; font-size: 0.85rem; }
.ict-breadcrumb a { color: #1a237e; }
.ict-breadcrumb span { color: #666; }

/* ===== Ad Slots ===== */
.ict-ad-slot {
  display: none;
  width: 100%;
  min-height: 120px;
  max-height: 150px;
  margin: 20px 0;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ict-ad-slot.has-content { display: flex; }
.ict-ad-slot iframe,
.ict-ad-slot img { max-height: 150px !important; width: 100%; }

/* ===== FAQ Accordion ===== */
.ict-faq-item { border-bottom: 1px solid #e8eaf6; }
.ict-faq-question {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a237e;
}
.ict-faq-question::after { content: '+'; font-size: 1.3rem; color: #ffc107; }
.ict-faq-item.active .ict-faq-question::after { content: '−'; }
.ict-faq-answer { padding: 0 0 18px; color: #555; line-height: 1.6; display: none; }
.ict-faq-item.active .ict-faq-answer { display: block; }

/* ===== Utility Classes ===== */
.ict-text-center { text-align: center; }
.ict-mt-1 { margin-top: 10px; }
.ict-mt-2 { margin-top: 20px; }
.ict-mt-3 { margin-top: 30px; }
.ict-mb-1 { margin-bottom: 10px; }
.ict-mb-2 { margin-bottom: 20px; }
.ict-mb-3 { margin-bottom: 30px; }
.ict-hidden { display: none !important; }
.ict-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ===== 404 Page ===== */
.ict-404 { text-align: center; padding: 80px 20px; }
.ict-404 h1 { font-size: 6rem; color: #ffc107; }
.ict-404 h2 { font-size: 1.5rem; margin-bottom: 20px; }
.ict-404-btns { display: flex; gap: 15px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .ict-grid-2, .ict-grid-3, .ict-grid-4 { grid-template-columns: 1fr; }
  .ict-flex { flex-direction: column; }
  .ict-hero h1 { font-size: 2rem; }
  .ict-hero-subtitle { font-size: 1rem; }
  .ict-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #1a237e; flex-direction: column; padding: 20px; gap: 15px; }
  .ict-nav.active { display: flex; }
  .ict-mobile-menu-btn { display: block; }
  .ict-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ict-related-grid { grid-template-columns: 1fr; }
  .ict-layout-sidebar { grid-template-columns: 1fr; }
  .ict-layout-dashboard .ict-dash-main,
  .ict-layout-dashboard .ict-dash-side { grid-column: span 12; }
  .ict-form-row { grid-template-columns: 1fr; }
  .ict-author-box { flex-direction: column; text-align: center; align-items: center; }
  .ict-blog-card { flex-direction: column; }
  .ict-tool-card { padding: 20px; }
  .ict-article { padding: 20px; }
  .ict-article h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .ict-footer-grid { grid-template-columns: 1fr; }
  .ict-hero { padding: 50px 0; }
  .ict-hero h1 { font-size: 1.6rem; }
  .ict-section { padding: 40px 0; }
}

/* ===== Whole Card Clickable ===== */
a.ict-article-card,
a.ict-tool-card,
a.ict-related-card,
a.ict-blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.ict-article-card *,
a.ict-tool-card *,
a.ict-related-card *,
a.ict-blog-card * {
  pointer-events: none;
}

/* ===== Inline Tool Cards ===== */
a.ict-inline-tool {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.ict-inline-tool * {
  pointer-events: none;
}

/* ===== Reset Button ===== */
.ict-reset-btn {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}
.ict-reset-btn:hover {
  background: #e0e0e0;
  color: #333;
}

/* ===== Ad Slot Height Standard ===== */
.ict-ad-slot {
  min-height: 120px;
  max-height: 250px;
  width: 100%;
}
.ict-ad-slot.has-content {
  display: flex;
}

/* === Post Template V3.0 CSS Injection for ict === */

.ict-post-header {
  margin-bottom: 24px;
}
.ict-post-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.ict-post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.ict-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ict-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ict-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.ict-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.ict-post-content p {
  margin-bottom: 1.2em;
}
.ict-post-content h2 {
  font-size: 1.6rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
}
.ict-post-content h3 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.ict-post-footer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .ict-post-footer {
    grid-template-columns: 1fr;
  }
}
.ict-related-articles h3,
.ict-recommended-tools h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.ict-related-list,
.ict-tool-rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ict-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ict-related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.ict-related-card * {
  pointer-events: none;
}
.ict-related-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #1a73e8;
}
.ict-related-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
.ict-author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 32px 0;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .ict-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.ict-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ict-author-info {
  flex: 1;
}
.ict-author-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.ict-author-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}
.ict-author-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 8px;
}
.ict-author-location {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}
.ict-author-bio-link {
  font-size: 0.9rem;
  color: #1a73e8;
  text-decoration: none;
}
.ict-author-bio-link:hover {
  text-decoration: underline;
}


/* ---- Navigation Container Fix ---- */
.ict-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--ict-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}


/* ---- Breadcrumb Align Fix ---- */
.ict-breadcrumb {
  max-width: var(--ict-max-width, 1200px);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}


/* ---- Mobile Menu Active Fix ---- */
@media (max-width: 768px) {
  .ict-nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .ict-nav-links.active {
    display: flex !important;
  }
  .ict-nav-links li {
    width: 100%;
    list-style: none;
  }
  .ict-nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
  }
  .ict-nav-links a:last-child {
    border-bottom: none;
  }
}


/* ---- Hamburger Button Fix ---- */
.ict-nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
@media (max-width: 768px) {
  .ict-nav-hamburger {
    display: block !important;
  }
}
