/*
Theme Name: Top Rankings TH
Theme URI: https://example.com/theme15
Description: Top 10 Rankings review/comparison site theme inspired by outlookindia.com ranking sites.
Version: 1.0
Author: ThemeDev
Text Domain: top-rankings-th
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Prompt', sans-serif; background: #ffffff; color: #333; line-height: 1.6; }
a { color: #1a237e; text-decoration: none; transition: color 0.3s; }
a:hover { color: #f9a825; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header { background: #1a237e; padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header-top { background: #0d1259; padding: 8px 0; font-size: 0.8rem; color: rgba(255,255,255,0.7); text-align: center; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; max-width: 1200px; margin: 0 auto; }
.site-logo { font-size: 1.4rem; font-weight: 700; color: #fff; }
.site-logo span { color: #f9a825; }
.main-nav ul { display: flex; list-style: none; gap: 5px; }
.main-nav a { color: #fff; font-size: 0.85rem; font-weight: 500; padding: 8px 14px; border-radius: 5px; transition: all 0.3s; }
.main-nav a:hover { background: #f9a825; color: #1a237e; }
.nav-toggle { display: none; background: none; border: 2px solid #f9a825; color: #f9a825; padding: 8px 12px; border-radius: 5px; cursor: pointer; font-size: 1.2rem; }
.hero-ranking { background: linear-gradient(135deg, #1a237e, #283593); padding: 60px 0; text-align: center; color: #fff; }
.hero-ranking h1 { font-size: 2.2rem; margin-bottom: 15px; }
.hero-ranking h1 span { color: #f9a825; }
.hero-ranking p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.trust-badges { display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 30px; font-size: 0.85rem; }
.ranking-section { padding: 50px 0; }
.ranking-section h2 { font-size: 1.8rem; text-align: center; margin-bottom: 40px; color: #1a237e; }
.ranking-card { display: flex; align-items: center; gap: 25px; padding: 25px; margin-bottom: 20px; border-radius: 12px; border: 1px solid #e0e0e0; transition: all 0.3s; position: relative; }
.ranking-card:nth-child(odd) { background: #f5f5f5; }
.ranking-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.rank-number { flex-shrink: 0; width: 50px; height: 50px; background: #1a237e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; }
.ranking-card:nth-child(1) .rank-number { background: #f9a825; color: #1a237e; }
.ranking-card:nth-child(2) .rank-number { background: #9e9e9e; }
.ranking-card:nth-child(3) .rank-number { background: #bf8040; }
.rank-content { flex: 1; }
.rank-content h3 { font-size: 1.2rem; margin-bottom: 5px; color: #1a237e; }
.rank-stars { color: #f9a825; font-size: 1.1rem; margin-bottom: 8px; }
.rank-features { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 10px; }
.rank-feature { font-size: 0.8rem; background: #e8f5e9; color: #2e7d32; padding: 4px 10px; border-radius: 12px; }
.rank-pros { font-size: 0.85rem; color: #555; }
.rank-cta { flex-shrink: 0; }
.btn-signup { display: inline-block; padding: 12px 28px; background: #2e7d32; color: #fff; font-weight: 600; border-radius: 8px; font-size: 0.9rem; transition: all 0.3s; }
.btn-signup:hover { background: #1b5e20; transform: scale(1.05); color: #fff; }
.recommendation-badge { position: absolute; top: -10px; right: 20px; background: #2e7d32; color: #fff; font-size: 0.7rem; padding: 4px 12px; border-radius: 12px; font-weight: 600; }
.comparison-table { padding: 50px 0; background: #f5f5f5; }
.comparison-table h2 { text-align: center; font-size: 1.8rem; margin-bottom: 30px; color: #1a237e; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.table-wrap th { background: #1a237e; color: #fff; padding: 15px; text-align: center; font-size: 0.85rem; }
.table-wrap td { padding: 15px; text-align: center; border-bottom: 1px solid #eee; font-size: 0.85rem; }
.table-wrap tr:hover { background: #f5f5f5; }
.check-yes { color: #2e7d32; font-weight: 700; }
.check-no { color: #c62828; }
.faq-section { padding: 50px 0; }
.faq-section h2 { text-align: center; font-size: 1.8rem; margin-bottom: 30px; color: #1a237e; }
.faq-item { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 18px 25px; background: #fff; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.faq-question:hover { background: #f5f5f5; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.3s; background: #fafafa; }
.faq-item.active .faq-answer { max-height: 200px; padding: 18px 25px; }
.latest-news { padding: 60px 0; }
.latest-news h2 { text-align: center; font-size: 1.8rem; margin-bottom: 40px; color: #1a237e; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e0e0e0; transition: transform 0.3s, box-shadow 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.news-thumb { width: 100%; height: 180px; background: #f5f5f5; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; }
.news-body h3 { font-size: 1rem; margin-bottom: 8px; color: #1a237e; }
.news-body h3 a { color: #1a237e; }
.news-body h3 a:hover { color: #f9a825; }
.news-date { font-size: 0.8rem; color: #888; margin-bottom: 8px; }
.news-excerpt { font-size: 0.85rem; color: #666; }
.site-footer { background: #1a237e; color: #fff; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h3 { color: #f9a825; margin-bottom: 15px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: #f9a825; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.85rem; opacity: 0.7; }
.page-header { padding: 40px 0; text-align: center; background: #f5f5f5; border-bottom: 3px solid #f9a825; margin-bottom: 40px; }
.page-header h1 { font-size: 2rem; color: #1a237e; }
.posts-list { padding: 40px 0; }
.post-item { display: flex; gap: 25px; background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid #e0e0e0; transition: all 0.3s; }
.post-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.post-item-thumb { flex-shrink: 0; width: 200px; height: 140px; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.post-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item-content h2 { font-size: 1.1rem; margin-bottom: 8px; }
.post-item-content h2 a { color: #1a237e; }
.post-item-content h2 a:hover { color: #f9a825; }
.post-item-meta { font-size: 0.8rem; color: #888; margin-bottom: 10px; }
.post-item-excerpt { font-size: 0.9rem; color: #666; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.pagination a, .pagination span { display: inline-block; padding: 10px 16px; background: #f5f5f5; border-radius: 8px; color: #333; border: 1px solid #e0e0e0; }
.pagination .current { background: #1a237e; color: #fff; border-color: #1a237e; }
.single-post { padding: 40px 0; max-width: 800px; margin: 0 auto; }
.single-post .post-title { font-size: 2rem; margin-bottom: 15px; color: #1a237e; }
.single-post .post-meta { color: #888; font-size: 0.9rem; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f9a825; }
.single-post .featured-image { width: 100%; height: 400px; border-radius: 12px; overflow: hidden; margin-bottom: 30px; }
.single-post .featured-image img { width: 100%; height: 100%; object-fit: cover; }
.single-post .post-content { font-size: 1rem; line-height: 1.9; color: #444; }
.single-post .post-content p { margin-bottom: 20px; }
.single-post .post-content h2, .single-post .post-content h3 { color: #1a237e; margin: 30px 0 15px; }
.post-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 25px; border-top: 1px solid #e0e0e0; }
.post-nav a { padding: 10px 20px; background: #f5f5f5; border-radius: 8px; color: #1a237e; border: 1px solid #e0e0e0; }
.post-nav a:hover { background: #1a237e; color: #fff; }
.related-posts { margin-top: 50px; }
.related-posts h3 { font-size: 1.5rem; margin-bottom: 25px; color: #1a237e; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; width: 100%; padding-top: 15px; }
  .main-nav.active ul { display: flex; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ranking-card { flex-direction: column; text-align: center; }
  .rank-features { justify-content: center; }
  .post-item { flex-direction: column; }
  .post-item-thumb { width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .trust-badges { flex-direction: column; align-items: center; }
  .table-wrap { margin: 0 -20px; }
}
