/* ============================================
   Today Global Market — Pages Stylesheet
   Covers: mega menu, content pages, FAQ,
   testimonials, sidebar, breadcrumbs
   ============================================ */

/* ─── Mega Menu & Dropdowns ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer;
  font: inherit; color: inherit; display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
}
.dd-arrow { font-size: 10px; transition: transform .2s; opacity: 0.7; }

/* Desktop dropdown panels */
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05);
  padding: 12px 0; min-width: 240px; z-index: 200;
}
.dropdown-menu::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff; border-top: 1px solid rgba(0,0,0,.05); border-left: 1px solid rgba(0,0,0,.05);
}
.dropdown-menu a {
  display: block; padding: 9px 20px; color: #333; text-decoration: none;
  font-size: 14px; font-weight: 500; transition: all .15s; border-left: 3px solid transparent;
}
.dropdown-menu a:hover { background: #f0f7ff; color: #1a56db; border-left-color: #1a56db; }
.dropdown-menu h4 {
  padding: 10px 20px 4px; margin: 0; font-size: 10px; text-transform: uppercase;
  color: #999; letter-spacing: 1px; font-weight: 700;
}
.dropdown-menu h4.mt-1 { margin-top: 4px; border-top: 1px solid #eee; padding-top: 12px; }

/* Mega menu (3-col) */
.mega-menu {
  min-width: 640px; display: none; padding: 20px 16px;
  grid-template-columns: 1fr 1fr 1fr; gap: 4px;
}
.mega-menu::before { left: 40%; }
.mega-col { padding: 0 4px; }
.mega-col + .mega-col { border-left: 1px solid #f0f0f0; }
.mega-col a { padding: 7px 12px; border-radius: 8px; border-left: none; font-size: 13.5px; }
.mega-col a:hover { border-left: none; background: #f0f7ff; }
.mega-col h4 { padding: 8px 12px 4px; font-size: 10px; }

/* Show on hover (desktop) */
@media (min-width: 961px) {
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:hover .mega-menu { display: grid; }
  .nav-dropdown:hover .dropdown-menu:not(.mega-menu) { display: block; }
  .nav-dropdown:hover .dd-arrow { transform: rotate(180deg); opacity: 1; }
}

/* Mobile dropdown — high contrast on dark bg */
@media (max-width: 960px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 16px; border-radius: 8px; }
  .dropdown-menu, .mega-menu {
    position: static; transform: none;
    box-shadow: none; border-radius: 10px;
    padding: 6px 0 6px 8px; margin: 4px 0 8px;
    min-width: auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .dropdown-menu::before { display: none; }
  .mega-menu { grid-template-columns: 1fr; }
  .mega-col + .mega-col { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 4px; }
  .dropdown-menu a {
    padding: 9px 14px; font-size: 14px;
    color: rgba(255,255,255,0.88); border-left: none; border-radius: 6px;
  }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .dropdown-menu h4 { color: rgba(201,150,43,0.8); font-size: 10px; letter-spacing: 1.5px; padding: 10px 14px 4px; }
  .nav-dropdown.open .dropdown-menu,
  .nav-dropdown.open .mega-menu { display: block !important; }
  .nav-dropdown.open .dd-arrow { transform: rotate(180deg); }
}

/* ─── Breadcrumb ─── */
.breadcrumb-bar { background: #f8f9fa; border-bottom: 1px solid #e9ecef; padding: 10px 0; }
.breadcrumb { font-size: 13px; color: #666; display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.breadcrumb a { color: #1a56db; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: #bbb; }
.breadcrumb .current { color: #333; font-weight: 500; }

/* ─── Page Hero ─── */
.page-hero {
  background: linear-gradient(135deg, #0B1D3A 0%, #1a3a5c 100%);
  color: #fff; padding: 48px 0 40px; text-align: center;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif; font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px; line-height: 1.2;
}
.page-hero .hero-sub {
  font-size: clamp(15px, 2vw, 18px); opacity: .85; max-width: 700px;
  margin: 0 auto; line-height: 1.6;
}

/* ─── Page Layout ─── */
.page-content-wrapper { padding: 40px 0 60px; }
.page-layout { display: grid; gap: 40px; }
.page-layout.has-sidebar { grid-template-columns: 1fr 320px; }
.page-layout.full-width { grid-template-columns: 1fr; max-width: 900px; }

@media (max-width: 960px) {
  .page-layout.has-sidebar { grid-template-columns: 1fr; }
}

/* ─── Content Blocks ─── */
.content-block { margin-bottom: 40px; }
.content-block h2 {
  font-family: 'DM Serif Display', serif; font-size: 26px;
  color: #0B1D3A; margin: 0 0 16px; line-height: 1.3;
}
.content-block h3 { font-size: 18px; color: #1a3a5c; margin: 20px 0 8px; }
.content-block p { color: #444; line-height: 1.8; margin-bottom: 14px; font-size: 15.5px; }
.content-block a { color: #1a56db; }
.content-block ul, .content-block ol { margin: 12px 0 16px 20px; color: #444; line-height: 1.8; }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.info-grid.four-col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .info-grid, .info-grid.four-col { grid-template-columns: 1fr; }
}
.info-card {
  background: #f8faff; border: 1px solid #e5ecf6; border-radius: 12px;
  padding: 24px; text-align: center;
}
.info-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.info-card h3 { font-size: 16px; margin: 0 0 8px; color: #0B1D3A; }
.info-card p { font-size: 14px; color: #555; margin: 0; line-height: 1.6; }

/* Stat Grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: linear-gradient(135deg, #0B1D3A, #1a3a5c); color: #fff;
  border-radius: 12px; padding: 24px; text-align: center;
}
.stat-number { font-family: 'DM Serif Display', serif; font-size: 32px; color: #E8B931; margin-bottom: 4px; }
.stat-card p { color: rgba(255,255,255,.8); font-size: 13px; margin: 0; }

/* Type List */
.type-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.type-item {
  background: #fff; border: 1px solid #e5ecf6; border-radius: 12px;
  padding: 20px 24px; border-left: 4px solid #E8B931;
}
.type-item h3 { margin: 0 0 6px; font-size: 17px; color: #0B1D3A; }
.type-item p { margin: 0; font-size: 14.5px; color: #555; line-height: 1.7; }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.check-item {
  padding: 12px 16px; background: #f8faff; border-radius: 8px;
  font-size: 14.5px; color: #333; line-height: 1.6; border: 1px solid #e5ecf6;
}

/* Steps List */
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.steps-list li {
  position: relative; padding: 16px 16px 16px 52px; margin-bottom: 12px;
  background: #f8faff; border-radius: 10px; border: 1px solid #e5ecf6;
  font-size: 14.5px; line-height: 1.7; color: #444;
}
.steps-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 28px; height: 28px; background: #0B1D3A; color: #E8B931;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

/* Content Table */
.content-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.content-table th, .content-table td { padding: 10px 14px; border: 1px solid #e5ecf6; text-align: left; }
.content-table th { background: #0B1D3A; color: #fff; font-weight: 600; font-size: 13px; }
.content-table tr:nth-child(even) { background: #f8faff; }
.content-table td { color: #444; }

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #f59e0b; border-radius: 12px; padding: 24px; margin: 20px 0;
}
.highlight-box h3 { color: #92400e; margin: 0 0 8px; }
.highlight-box p { color: #78350f; margin: 0; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #93c5fd;
  border-radius: 12px; padding: 24px; margin: 24px 0; text-align: center;
}
.cta-box h3 { color: #1e40af; margin: 0 0 8px; }
.cta-box p { color: #1e3a5f; margin: 0; }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons { padding: 20px; border-radius: 12px; }
.pros { background: #f0fdf4; border: 1px solid #86efac; }
.cons { background: #fef2f2; border: 1px solid #fca5a5; }
.pros h3, .cons h3 { margin: 0 0 12px; font-size: 16px; }
.pros ul, .cons ul { margin: 0; padding-left: 16px; font-size: 14px; line-height: 2; }

/* Myth/Fact */
.myth-fact { background: #f8faff; border-radius: 12px; padding: 20px; margin-bottom: 16px; border: 1px solid #e5ecf6; }
.myth { color: #dc2626; margin-bottom: 8px; font-size: 14.5px; }
.fact { color: #16a34a; font-size: 14.5px; }

/* Timeline */
.timeline-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.timeline-item {
  padding: 20px 24px; background: #fff; border: 1px solid #e5ecf6;
  border-radius: 12px; border-left: 4px solid #1a56db;
}
.timeline-item h3 { margin: 0 0 8px; color: #1a56db; font-size: 16px; }
.timeline-item p { margin: 0; font-size: 14.5px; color: #555; line-height: 1.7; }

/* Approach List (Why Choose Us) */
.approach-list { display: flex; flex-direction: column; gap: 24px; margin: 24px 0; }
.approach-item { display: flex; gap: 20px; align-items: flex-start; }
.approach-number {
  min-width: 48px; height: 48px; background: #E8B931; color: #0B1D3A;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.approach-content h3 { margin: 0 0 6px; color: #0B1D3A; }
.approach-content p { margin: 0; color: #555; font-size: 14.5px; line-height: 1.7; }

/* Page CTA Section */
.page-cta-section { margin-top: 32px; }
.page-cta-box {
  background: linear-gradient(135deg, #0B1D3A 0%, #1a3a5c 100%);
  color: #fff; border-radius: 16px; padding: 40px; text-align: center;
}
.page-cta-box h2 { color: #E8B931; margin: 0 0 12px; font-family: 'DM Serif Display', serif; }
.page-cta-box p { color: rgba(255,255,255,.85); margin: 0 0 20px; font-size: 16px; }
.page-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Sidebar ─── */
.page-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: #fff; border: 1px solid #e5ecf6; border-radius: 12px; padding: 20px;
}
.sidebar-widget h3 { font-size: 16px; color: #0B1D3A; margin: 0 0 10px; }
.sidebar-widget p { font-size: 14px; color: #555; margin-bottom: 12px; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-bottom: 1px solid #f0f0f0; }
.sidebar-links li:last-child { border: none; }
.sidebar-links a {
  display: block; padding: 8px 0; color: #1a56db; text-decoration: none; font-size: 14px;
}
.sidebar-links a:hover { color: #E8B931; }
.sidebar-cta-widget { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.sidebar-testimonial { font-style: italic; font-size: 14px; color: #555; line-height: 1.6; }
.sidebar-testimonial strong { display: block; margin-top: 8px; font-style: normal; color: #333; }
.content-ad { margin: 24px 0; text-align: center; }

/* ─── Related Pages ─── */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: #f8faff; border: 1px solid #e5ecf6;
  border-radius: 10px; text-decoration: none; transition: all .2s;
}
.related-card:hover { border-color: #1a56db; background: #eff6ff; }
.related-title { font-size: 14px; color: #333; font-weight: 500; }
.related-arrow { color: #1a56db; font-size: 18px; }

/* ─── FAQ ─── */
.faq-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.faq-filter-btn {
  background: #f0f0f0; border: none; padding: 8px 16px; border-radius: 20px;
  font-size: 13px; cursor: pointer; transition: all .2s; font-weight: 500;
}
.faq-filter-btn.active, .faq-filter-btn:hover { background: #0B1D3A; color: #fff; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid #e5ecf6; border-radius: 10px; overflow: hidden; }
.faq-question {
  width: 100%; background: #f8faff; border: none; padding: 16px 20px;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-size: 15px; font-weight: 500; color: #333;
  transition: background .2s;
}
.faq-question:hover { background: #eff6ff; }
.faq-toggle { font-size: 20px; color: #1a56db; transition: transform .2s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 20px 16px; color: #555; font-size: 14.5px; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-item.open .faq-question { background: #eff6ff; color: #1a56db; }

/* ─── Testimonials ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: #fff; border: 1px solid #e5ecf6; border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.testimonial-card.featured { border-color: #E8B931; background: #fffdf5; }
.testimonial-stars { font-size: 16px; }
.testimonial-text { color: #444; font-size: 15px; line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; gap: 12px; align-items: center; }
.testimonial-avatar {
  width: 40px; height: 40px; background: #0B1D3A; color: #E8B931;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial-meta { display: block; font-size: 13px; color: #888; }
.testimonial-service {
  display: inline-block; font-size: 11px; background: #eff6ff; color: #1a56db;
  padding: 2px 8px; border-radius: 4px; margin-top: 4px;
}

/* ─── News Tabs ─── */
.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.news-tab {
  padding: 8px 16px; border-radius: 20px; font-size: 13px; text-decoration: none;
  color: #555; background: #f0f0f0; font-weight: 500; transition: all .2s;
}
.news-tab.active, .news-tab:hover { background: #0B1D3A; color: #fff; }

/* ─── Blog Grid ─── */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff; border: 1px solid #e5ecf6; border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.blog-card a { text-decoration: none; }
.blog-card-body { padding: 20px; }
.blog-cat {
  display: inline-block; font-size: 11px; font-weight: 600; color: #1a56db;
  background: #eff6ff; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}
.blog-card h3 { font-size: 17px; color: #0B1D3A; margin: 0 0 8px; line-height: 1.4; }
.blog-card p { font-size: 14px; color: #666; margin: 0 0 12px; line-height: 1.6; }
.blog-meta { font-size: 12px; color: #999; display: flex; gap: 16px; }

/* Empty State */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h3 { color: #555; margin-bottom: 8px; }
.empty-state p { color: #888; margin-bottom: 20px; }

/* ─── Consultation Form ─── */
.consultation-form { background: #f8faff; border: 1px solid #e5ecf6; border-radius: 14px; padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 0; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; }
.req { color: #dc2626; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: border-color .2s;
  box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: #1a56db; box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
textarea.form-input { resize: vertical; }
.form-note { text-align: center; font-size: 13px; color: #888; margin-top: 12px; }
.form-msg { text-align: center; padding: 12px; border-radius: 8px; margin-top: 12px; font-size: 14px; }
.form-msg.success { background: #f0fdf4; color: #16a34a; }
.form-msg.error { background: #fef2f2; color: #dc2626; }
.form-group + .form-group { margin-top: 0; }
.consultation-form .form-group { margin-bottom: 16px; }

/* Legal content */
.legal-content h2 { font-size: 20px; margin-top: 28px; }
.legal-content ul { margin: 8px 0 16px 20px; }
.legal-content li { margin-bottom: 4px; }

/* ─── Utility ─── */
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-outline {
  background: transparent; border: 2px solid #0B1D3A; color: #0B1D3A;
  padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600;
  display: inline-block; transition: all .2s;
}
.btn-outline:hover { background: #0B1D3A; color: #fff; }
.sidebar-subscribe { display: flex; flex-direction: column; gap: 8px; }
.mt-1 { margin-top: 16px; }
