/*
Theme Name: Classy News Pro Child
Template: classy-news-pro-premium
Description: Child theme with design enhancements for research_article post type.
Version: 1.1
Author: Your Name
*/

body { font-family: 'Lora', serif; font-weight: 400; }
h1,h2,h3 { font-family: 'Lora', serif; font-weight: 700; }
em, i { font-family: 'Lora', serif; font-style: italic; }

body.post-type-archive-research_article h1,
body.single-research_article h1.entry-title {
  font-size: 2.2em;
  color: #003366;
  font-weight: 700;
}

body.single-research_article .entry-meta {
  font-style: italic;
  margin-bottom: 20px;
}

body.single-research_article .entry-content {
  line-height: 1.7;
  font-size: 1.1em;
}

body.post-type-archive-research_article article {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

body.post-type-archive-research_article article h2 a {
  color: #1a0dab;
  text-decoration: none;
}

body.post-type-archive-research_article article h2 a:hover {
  text-decoration: underline;
}

.research-hero-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 20px;
}

.research-disclaimer {
  background: #f9f9f9;
  border-left: 4px solid #003366;
  padding: 15px;
  margin: 30px 0;
  font-size: 0.9em;
  color: #555;
}

.logo-carousel-wrapper {
/*  padding: 20px 30px;*/

  background: #f9f9f9;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;

  max-width: 1500px;
/*  padding-left: 15px;
  padding-right: 15px;*/
  margin-inline: auto;
}
.logo-carousel-wrapper .swiper-container img {
  max-height: 75px;
  max-width: 165px;
  margin: 0 auto;
  display: inline-block;
}

/* Missing Tailwind grid utilities for sidebar layouts globally */
.col-span-2 { grid-column: span 2 / span 2; }
.gap-8 { gap: 2rem; }

/* Ensure large-screen grid overrides come after base utilities */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

.main-navigation a.menu-parent { cursor: default; }
.main-navigation .menu-item-has-children > a.menu-parent::after {
  content: "▾"; margin-left: .35em; font-size: .85em;
}

/* Global styles for Latest Insights sidebar are defined in assets/css/app.css */

/* Global utility classes like .grid, .grid-cols-1, .mx-auto are in assets/css/app.css */

/* Investment Primer dedicated layout */
.primer-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) {
  .primer-layout { grid-template-columns: 2fr 1fr; }
}

/* Custom Sidebar Styles for Recent Posts */
.widget-area {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;

  margin-top: 10px; /* Reduced top margin so sidebar sits higher on page load */
}

/* Override parent theme's sticky positioning to prevent overlap with navigation */
@media (min-width: 1024px) {
  .main-widget-section-wrap.secondary-right-position:not(.full-width) .secondary-widgets-area,
  .main-widget-section-wrap.secondary-left-position:not(.full-width) .secondary-widgets-area,
  .theme-wrap #secondary {
    position: sticky !important;
    top: 100px !important; /* Increase top spacing to prevent navigation overlap */
  }
}

.widget_recent_posts .widget-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-item {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 16px;
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.recent-post-link:hover {
  transform: translateX(4px);
}

.recent-post-thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.recent-post-link:hover .recent-post-image {
  transform: scale(1.05);
}

.recent-post-content {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.recent-post-date {
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .widget-area {
    margin-top: 32px;
  }
}

/* Custom Header Layout Styles */
.custom-header-layout {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 !important;
  background: none !important;
}

.header-logo-section {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-buttons-section {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.header-btn-login {
  background-color: #f0f0f0;
  color: #1c2634;
  border-color: #d1d5db;
}

.header-btn-login:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
  transform: translateY(-2px);
}

.header-btn-demo {
  background-color: #1c2634;
  color: white;
  border-color: #1c2634;
}

.header-btn-demo:hover {
  background-color: #111827;
  border-color: #111827;
  transform: translateY(-2px);
  color: white;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
  .custom-header-layout {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .header-buttons-section {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .header-btn {
    width: 100%;
    text-align: center;
  }
}


/* Partner with us */
/* --- Custom Color Variables --- */
:root {
    --primary-dark: #424242;
    --primary-blue-dark: #0964A0;
    --primary-blue-light: #1C98D4;
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --white: #ffffff;
}

/* --- Base & Global Styles --- */
body {
    background-color: var(--gray-50);
    color: var(--primary-dark);
    font-family: 'Inter', sans-serif;
}

.text-primary-dark { color: var(--primary-dark); }
.text-primary-blue-dark { color: var(--primary-blue-dark); }
.text-primary-blue-light { color: var(--primary-blue-light); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-white { color: var(--white); }

.bg-primary-blue-dark { background-color: var(--primary-blue-dark); }
.bg-primary-blue-light { background-color: var(--primary-blue-light); }
.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-200 { background-color: var(--gray-200); }

.border { border-width: 1px; }
.border-gray-200 { border-color: var(--gray-200); }

.gradient-text {
    background: linear-gradient(90deg, var(--primary-blue-light), var(--primary-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Layout & Container --- */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }
.max-w-5xl { max-width: 64rem; }
.w-full { width: 100%; }

/* --- Flexbox & Grid --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-y-6 { row-gap: 1.5rem; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-3 { margin-left: 0.75rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* --- Typography --- */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.hover\:underline:hover { text-decoration: underline; }
.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;
}

/* --- Sizing --- */
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.h-2\.5 { height: 0.625rem; }

/* --- Effects & Transitions --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* --- Component-Specific Styles --- */
.etf-header { position: sticky; top: 0; z-index: 50; }
.hover\:bg-primary-blue-light:hover { background-color: var(--primary-blue-light); }
.hover\:text-primary-blue-light:hover { color: var(--primary-blue-light); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.icon-wrapper { background-color: #e8f4fa; /* Light tint of #1C98D4 */ display: inline-flex; align-items: center; justify-content: center; }
.icon-svg { color: var(--primary-blue-dark); }
.info-card { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.info-card:hover { 
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-0.25rem);
}
.sponsor-logo { 
    filter: grayscale(100%);
    transition: filter 300ms;
}
.sponsor-logo:hover { filter: grayscale(0%); }

.contact-section { background-color: var(--primary-blue-dark); }
.contact-section-subtext { color: #a9d5ec; /* Light tint of blue */ }

.form-input {
    color: var(--primary-dark);
    border-radius: 0.375rem;
    border: 1px solid transparent;
    placeholder-color: var(--gray-500);
}
.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--white);
    box-shadow: 0 0 0 2px var(--white);
}
.form-button {
    border: 1px solid transparent;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    font-weight: 600;
    color: var(--primary-blue-dark);
    background-color: var(--white);
}
.form-button:hover { background-color: #f0f9ff; /* A very light blue */ }

hr { border-top-width: 1px; }

/* --- Responsive Styles --- */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:justify-between { justify-content: space-between; }
    .md\:mb-0 { margin-bottom: 0; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:items-center { align-items: center; }
    .lg\:justify-between { justify-content: space-between; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:mt-0 { margin-top: 0; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:my-8 { margin-top: 2rem; margin-bottom: 2rem; }
}

@media (min-width: 640px) {
    .sm\:mx-auto { margin-left: auto; margin-right: auto; }
    .sm\:gap-6 { gap: 1.5rem; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* END partner with us */



/* ETF Market Coverage (moved from inline) */
.etf-page-container {
  font-family: 'Inter', sans-serif;
  background-color: var(--gray-50);
  color: var(--primary-dark);
  line-height: 1.6;
}

/* Card helpers */
.bg-gray-50-card { background-color: var(--gray-50); }
.transition-shadow { transition: box-shadow 0.3s ease-in-out; }
.hover\:shadow-xl:hover { 
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Alias to match template usage */
.bg-primary-blue { background-color: var(--primary-blue-dark); }

/* Icons scoped to ETF page */
.etf-page-container .icon {
  width: 3rem;
  height: 3rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--primary-blue-dark);
  margin-bottom: 1rem;
}
/* Ensure line width matches Partner page icons */
.etf-page-container .icon path,
.etf-page-container .icon line,
.etf-page-container .icon polyline,
.etf-page-container .icon polygon,
.etf-page-container .icon circle,
.etf-page-container .icon rect,
.etf-page-container .icon ellipse {
  stroke-width: 2;
}

/* Tabs component */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--gray-600);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.tab-active {
  border-color: var(--primary-blue-dark);
  color: var(--primary-blue-dark);
  background-color: #eef6fc;
}




/* Optional: slight header darken on hover for visual feedback */


/* Sponsor Channel button styles live in assets/css/app.css */

.carouselTicker__list {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

/* Fallback: hide comments meta across cards with high specificity */
body .entry-meta .post-comment { display: none !important; }