/*
Theme Name: Cypherhawk
Author: cypherhawk_research
Description: Cryptocurrency news, research, and analysis theme.
Version: 3.0
*/

/* --- GLOBAL PAGE FIX --- */
html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: #251e21;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* --- GENERAL --- */
body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
}

/* --- LINKS --- */
a {
  text-decoration: none;
  color: #ffce44;
  transition: color 0.3s ease;
}

a:hover {
  color: #d95da1;
}

/* --- HEADER --- */
header.site-header {
  background-color: #251e21;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 250px;
  width: auto;
}

/* --- WORDPRESS MENU --- */
.main-navigation {
  background-color: #251e21;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation a {
  color: #ffce44;
  font-weight: 700;
  font-size: 1.1rem;
}

.main-navigation a:hover {
  color: #4fb548;
}

@media (max-width: 768px) {
  .main-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* --- CONTENT SECTIONS --- */
section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 700;
}

h1 { color: #4fb548; }
h2 { color: #ffce44; }
h3 { color: #d95da1; }

p {
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* --- GRADIENT TEXT --- */
.gradient-title {
  background: linear-gradient(90deg, #d03331, #ffce44, #4fb548, #d95da1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === LATEST INSIGHTS GRID (Perfectly Responsive Across All Screens) === */
#insights {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
}

#insights h2 {
  text-align: center;
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #ff5555, #ffe97f, #55ff95, #b055ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive grid */
#insights div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}

/* Blog cards */
#insights article {
  background: #0b0b0b;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #d03331, #ffce44, #4fb548, #d95da1) 1;
  border-radius: 10px;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  min-height: 250px;
}

#insights article:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(255, 206, 68, 0.2);
}

#insights article h2 {
  color: #ffce44;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

#insights article p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* === RESPONSIVE BEHAVIOR === */
@media (max-width: 1024px) {
  #insights {
    padding: 3rem 1.5rem;
  }

  #insights div {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  #insights article {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  #insights div {
    grid-template-columns: 1fr;
  }

  #insights article {
    padding: 1.25rem;
    min-height: auto;
  }
}


/* --- BUTTONS --- */
button,
input[type='submit'] {
  background: linear-gradient(90deg, #d03331, #ffce44, #4fb548, #d95da1);
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

button:hover,
input[type='submit']:hover {
  opacity: 0.8;
}

/* --- SIGNUP FORM --- */
#wpforms-30 {
  text-align: center;
  background-color: #0b0a0a;
  padding: 80px 20px;
}

#wpforms-30 input[type="text"],
#wpforms-30 input[type="email"] {
  width: 100%;
  max-width: 400px;
  background: none;
  color: #fff;
  border: 2px solid transparent;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
}

#wpforms-30 input[name*="name"] { border-color: #d03331; }
#wpforms-30 input[name*="email"] { border-color: #4fb548; }

#wpforms-30 input[type="submit"] {
  background: linear-gradient(90deg, #d03331, #ffce44, #4fb548, #d95da1);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#wpforms-30 input[type="submit"]:hover {
  opacity: 0.8;
}

/* --- FOOTER --- */
footer {
  background-color: #251e21;
  color: #ffce44;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
  width: 100%;
}

footer img {
  height: 150px;
  width: auto;
}

footer p {
  font-size: 14px;
  color: #ffce44;
}

/* --- FIX HERO VIDEO CENTER CUTOFF --- */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  max-width: none !important;
  overflow: hidden;
}

.hero-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
}


/* --- PAGE-SPECIFIC FIX FOR CONTENT PAGES --- */
.page-template,
.page,
.site-main {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* --- SINGLE POST READABILITY --- */
.single-post-container {
  background-color: #f7f5f2;
  color: #222;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Nunito', sans-serif;
  line-height: 1.8;
}

.single-article {
  background: #ffffff;
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.single-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #ffce44;
  padding-bottom: 1rem;
}

.single-title {
  color: #251e21;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.single-meta {
  color: #777;
  font-size: 0.9rem;
}

.single-content {
  color: #222;
  font-size: 1.05rem;
}

.single-content h2,
.single-content h3 {
  color: #d03331;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.single-content a {
  color: #4fb548;
  text-decoration: underline;
}

.single-content a:hover {
  color: #d03331;
}

@media (max-width: 768px) {
  .single-article {
    padding: 2rem 1.5rem;
  }

  .single-title {
    font-size: 1.7rem;
  }
}
/* === SINGLE POST (LIGHT READING LAYOUT) === */
body.single-post {
  background: #f8f7f5 !important;
  color: #222 !important;
}

.single-post-main {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.single-post-wrapper {
  background: #ffffff;
  color: #222;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  padding: 3rem 2rem;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
}

.single-post-header {
  border-bottom: 2px solid #ffce44;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.single-post-title {
  font-size: 2.4rem;
  color: #251e21;
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.single-post-date {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #222;
}

.single-post-content h2,
.single-post-content h3 {
  color: #d03331;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.single-post-content a {
  color: #4fb548;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}

.single-post-content a:hover {
  color: #d03331;
}

@media (max-width: 768px) {
  .single-post-wrapper {
    padding: 2rem 1.25rem;
  }

  .single-post-title {
    font-size: 1.8rem;
  }
}


/* === LATEST INSIGHTS (LIGHT READING LAYOUT) === */
body.page-template-latest-insights {
  background: #f8f7f5 !important;
  color: #222 !important;
}

.latest-insights-main {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.latest-insights-wrapper {
  background: none;
  color: #222;
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
}

.latest-insights-header {
  text-align: center;
  margin-bottom: 3rem;
}

.latest-insights-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(90deg, #d03331, #ffce44, #4fb548, #d95da1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.latest-insights-description {
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}

.latest-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.latest-insight-card {
  background: #ffffff;
  border-top: 3px solid #ffce44;
  border-radius: 10px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.latest-insight-link {
  text-decoration: none;
  color: #251e21;
}

.latest-insight-link h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #251e21;
}

.latest-insight-link:hover h2 {
  color: #d03331;
}

.latest-insight-card p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.no-insights {
  text-align: center;
  color: #777;
  font-size: 1rem;
  padding-top: 2rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .latest-insights-title {
    font-size: 2rem;
  }
  .latest-insight-card {
    padding: 1.5rem;
  }
}



/* === CONTACT SECTION: Perfect Centering, No Fade === */
#contact.contact-section {
  background: #0b0b0b !important; /* solid black */
  color: #ffffff !important;
  text-align: center !important;

  /* Perfect centering */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 6rem 2rem !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 auto !important; /* centers horizontally */
  box-sizing: border-box;
}

/* Title styling */
#contact.contact-section h2 {
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(90deg, #ff5555, #ffe97f, #55ff95, #b055ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Paragraph & email link */
#contact.contact-section p {
  color: #ffffff !important;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
}

#contact.contact-section a {
  color: #4fb548 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#contact.contact-section a:hover {
  color: #ffe97f !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #contact.contact-section {
    padding: 4rem 1.5rem !important;
  }

  #contact.contact-section h2 {
    font-size: 1.8rem;
  }

  #contact.contact-section p {
    font-size: 1rem;
  }
}
/* === LATEST INSIGHTS PAGE LIGHT MODE OVERRIDE === */
body.page-template-latest-insights {
  background-color: #f8f7f5 !important;
  color: #222 !important;
}

body.page-template-latest-insights main.latest-insights-main {
  background-color: #f8f7f5 !important;
}

body.page-template-latest-insights .latest-insight-card {
  background: #ffffff;
  border-top: 3px solid #ffce44;
  border-radius: 10px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
}

body.page-template-latest-insights .latest-insight-link h2 {
  color: #251e21;
}

body.page-template-latest-insights .latest-insight-link:hover h2 {
  color: #d03331;
}

body.page-template-latest-insights .latest-insight-card p {
  color: #333;
}

/* === PAGINATION STYLING === */
.latest-pagination {
  text-align: center;
  margin-top: 3rem;
}

.latest-pagination a,
.latest-pagination span {
  color: #222;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 5px;
  margin: 0 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.latest-pagination a:hover {
  background: #ffce44;
  color: #000;
  border-color: #ffce44;
}

.latest-pagination .current {
  background: #ffce44;
  color: #000;
  border-color: #ffce44;
}

/* === CYHPERHAWK FULL-WIDTH RESPONSIVE TICKER (FINAL FIX) === */

#ticker-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: #0b0b0b;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  z-index: 10;
  padding: 0;
}

/* The inner container */
#cypherhawk-ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: clamp(40px, 3vw, 50px);
  width: 100%;
}

/* Scrolling animation */
#cypherhawk-ticker .ticker-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  white-space: nowrap;
  animation: scrollTicker 120s linear infinite;
  will-change: transform;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Ticker items */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #954b74;
  font-size: clamp(0.75rem, 1vw, 1rem);
  white-space: nowrap;
}

.ticker-item img {
  width: clamp(16px, 2vw, 20px);
  height: clamp(16px, 2vw, 20px);
  border-radius: 50%;
}

.ticker-item.positive span:last-child { color: #4fb548; }
.ticker-item.negative span:last-child { color: #d03331; }

/* === Layout reset for footer gap === */
body, html, footer {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Prevent the next section from creating a gap */
#features, .features-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Optional fade divider between hero and ticker */
#ticker-wrapper::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #0b0b0b);
}

/* === FIX: Prevent ticker from shifting page layout === */
#ticker-wrapper {
  position: relative;
  width: 100%;
  left: 0;
  margin-left: 0;
}

#cypherhawk-ticker {
  width: 100%;
  overflow: hidden;
}

/* === GLOBAL LINK COLOR SCHEME === */
a,
.main-navigation a {
  color: #4cb449 !important;   /* Default link color */
  transition: color 0.3s ease;
}

a:hover,
.main-navigation a:hover {
  color: #d85ea0 !important;   /* Hover color */
}

/* Optional: make menu text stand out a bit more */
.main-navigation a {
  font-weight: 700;
  text-transform: none;
}
/* === CYPHERHAWK — PURPLE BUTTONS WITH GREEN TEXT (FORCE OVERRIDE) === */

/* Global Buttons */
button,
input[type='submit'],
.wp-block-button__link,
.btn,
a.button,
a.wp-block-button__link {
  background: none !important;
  background-color: #c76299 !important;  /* Solid purple background */
  color: #4fb449 !important;              /* Green text */
  border: 2px solid #c76299 !important;
  font-weight: 700 !important;
  padding: 10px 25px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-align: center !important;
  text-decoration: none !important;
}

/* Hover: invert — green background / purple text */
button:hover,
input[type='submit']:hover,
.wp-block-button__link:hover,
.btn:hover,
a.button:hover,
a.wp-block-button__link:hover {
  background: none !important;
  background-color: #4fb449 !important;  /* Green background */
  color: #c76299 !important;              /* Purple text */
  border-color: #4fb449 !important;
}

/* === WPForms Integration === */
#wpforms-30 input[type="submit"] {
  background: none !important;
  background-color: #c76299 !important;  /* Purple background */
  color: #4fb449 !important;              /* Green text */
  border: 2px solid #c76299 !important;
  font-weight: 700 !important;
  padding: 10px 25px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#wpforms-30 input[type="submit"]:hover {
  background: none !important;
  background-color: #4fb449 !important;  /* Green background */
  color: #c76299 !important;              /* Purple text */
  border-color: #4fb449 !important;
}

/* --- Fix for About Page or Classic Editor Buttons --- */
a.more-link,
a.read-more,
a.custom-btn,
input[type="button"] {
  background: none !important;
  background-color: #c76299 !important;
  color: #4fb449 !important;
  border: 2px solid #c76299 !important;
  border-radius: 6px !important;
  padding: 10px 25px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}

a.more-link:hover,
a.read-more:hover,
a.custom-btn:hover,
input[type="button"]:hover {
  background-color: #4fb449 !important;
  color: #c76299 !important;
  border-color: #4fb449 !important;
}
/* === FINAL FIX: FORCE OVERRIDE ALL WORDPRESS BUTTONS (NO GRADIENT) === */

/* All buttons — global, WP core, Gutenberg, WPForms */
button,
input[type='submit'],
.wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
a.wp-block-button__link,
a.more-link,
a.read-more,
a.custom-btn,
input[type="button"],
.btn {
  background: none !important;
  background-color: #c76299 !important;  /* Solid purple background */
  color: #4fb449 !important;              /* Green text */
  border: 2px solid #c76299 !important;
  font-weight: 700 !important;
  padding: 10px 25px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-align: center !important;
  text-decoration: none !important;
  background-image: none !important; /* Removes any rainbow gradient */
  box-shadow: none !important;
}

/* Hover: invert — green background / purple text */
button:hover,
input[type='submit']:hover,
.wp-block-button__link:hover,
a.wp-block-button__link:hover,
a.more-link:hover,
a.read-more:hover,
a.custom-btn:hover,
input[type="button"]:hover,
.btn:hover {
  background: none !important;
  background-color: #4fb449 !important;  /* Green background */
  color: #c76299 !important;              /* Purple text */
  border-color: #4fb449 !important;
}

/* Special override for WordPress inline gradient buttons */
.wp-block-button__link.has-background {
  background: #c76299 !important;
  background-image: none !important;
  color: #4fb449 !important;
}
/* === WPForms Label Color — FORCE Brand Yellow === */
#wpforms-30 .wpforms-field label.wpforms-field-label,
#wpforms-30 .wpforms-field label,
#wpforms-30 .wpforms-field > label,
#wpforms-30 .wpforms-field-label,
#wpforms-form-30 .wpforms-field-label {
  color: #ffce44 !important; /* Force brand yellow */
  font-weight: 700 !important;
}

/* Required asterisk also yellow */
#wpforms-30 .wpforms-required-label {
  color: #ffce44 !important;
}

/* Optional: adjust field text & placeholder */
#wpforms-30 input,
#wpforms-30 textarea {
  color: #fff !important;
}

#wpforms-30 input::placeholder,
#wpforms-30 textarea::placeholder {
  color: #aaa !important;
  opacity: 0.8 !important;
}
/* === SINGLE BLOG POST LAYOUT FIX === */
.single-post .site-main,
.single-post article,
.single-post .entry-content {
  max-width: 900px;           /* Controls width of content */
  margin: 0 auto;             /* Centers it horizontally */
  background: #f9f9f7;        /* Keep light background for readability */
  color: #1a1a1a;             /* Dark text */
  padding: 3rem 2rem;         /* Breathing room around text */
  border-radius: 10px;        /* Smooth edges */
  box-shadow: 0 0 15px rgba(0,0,0,0.05); /* Gentle depth */
}

/* === Center titles and meta === */
.single-post h1.entry-title {
  text-align: center;
  margin-bottom: 1rem;
  color: #222;
}

.single-post .entry-meta {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ffce44; /* Brand yellow divider */
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* === Adjust body typography === */
.single-post .entry-content p {
  line-height: 1.7;
  color: #333;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
  color: #c76299; /* Purple brand for section headers */
  margin-top: 2rem;
}

/* === Mobile-friendly layout === */
@media (max-width: 768px) {
  .single-post .site-main,
  .single-post article,
  .single-post .entry-content {
    padding: 2rem 1rem;
  }
}
/* === Cypherhawk Menu Brand Colors === */

/* Sight — Brand Red */
.menu-item a[href*="sight"],
.menu-item a[href*="sight"] {
  color: #d03331 !important;
}

/* Join — Brand Yellow */
.menu-item a[href*="signup"],
.menu-item a[href*="join"] {
  color: #ffce44 !important;
}

/* About — Brand Green */
.menu-item a[href*="about"] {
  color: #4fb548 !important;
}

/* Terms — Brand Purple */
.menu-item a[href*="terms"],
.menu-item a[href*="disclaimer"]{
  color: #c76299 !important;
}

/* Subtle hover polish */
.main-navigation a:hover {
  opacity: 0.8;
  text-shadow: 0 0 6px currentColor;
  transition: all 0.3s ease;
}
/* === COMPACT HEADER WITH LARGE LOGO === */
header.site-header {
  background-color: #251e21;
  padding: 0 40px !important;  /* Remove top/bottom padding, keep side padding */
  height: 120px !important;    /* Adjust total bar height */
  display: flex;
  align-items: center;         /* Center logo + nav vertically */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

/* Keep logo big but vertically centered */
.logo img {
  height: 250px !important;
  width: auto;
  display: block;
  margin: -60px 0 -60px 0; /* Pull it up/down to overlap header boundaries */
}

/* Tighten menu vertical spacing */
.main-navigation {
  padding: 0 !important;
  margin: 0 !important;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
}
/* === Fix logo overflow in header === */
.site-header {
  overflow: hidden; /* keeps tall logo inside the header area */
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 2rem; /* smaller padding since width is good */
}

/* Control logo size and spacing */
.logo img {
  height: 250px;
  width: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

/* Optional: vertically center the navigation */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Keep menu aligned with logo */
.main-navigation {
  margin-top: 0;
  display: flex;
  align-items: center;
}
/* === HEADER CONTAINER FLEX FIX === */
.header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important; /* logo left, menu right */
  width: 100% !important;
  padding: 0.5rem 2rem !important;
}

/* === LOGO AREA === */
.logo {
  flex: 0 0 auto !important;
}

/* === NAV AREA === */
.main-navigation {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: flex-end !important; /* pushes menu to right */
  align-items: center !important;
  margin-left: auto !important;
}

/* === UL FIX — ENSURE INLINE MENU === */
.main-navigation ul {
  display: flex !important;
  gap: 2rem; /* adjust spacing between items */
  list-style: none;
  margin: 0;
  padding: 0;
}


/* HAMBURGER BASE */
.hamburger {
    width: 40px !important;
    height: 34px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-right: 15px;
}

/* Lines */
.hamburger .line {
    height: 4px !important;
    width: 100% !important;
    border-radius: 5px !important;
    display: block !important;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Colors */
.hamburger .red {
    background: #ef4444 !important;
}

.hamburger .yellow {
    background: #facc15 !important;
}

.hamburger .green {
    background: #22c55e !important;
}

.hamburger .purple {
    background: #a855f7 !important;
}

/* ICON → X ANIMATION */
.hamburger.is-active .red {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.is-active .purple {
    transform: translateY(-10px) rotate(-45deg);
}

.hamburger.is-active .yellow,
.hamburger.is-active .green {
    opacity: 0;
}
@media (min-width: 781px) {
    .hamburger {
        display: none !important;
    }
    .site-header .main-navigation {
        /* display: block !important; */
        max-height: none !important;
        overflow: visible !important;
        position: static !important;
    }
    .cta-sidebar {
        height: 100% !important;
    }
}
@media (max-width: 780px) {

    /* header first row: logo + hamburger */
    .site-header .header-container {
        flex-wrap: wrap;
    }

    .site-header .logo {
        order: 1;
    }

    .site-header .hamburger {
        order: 2;
        margin-left: auto;
    }

    /* nav row header er niche full width */
    .site-header .main-navigation {
        order: 3;
        width: 100% !important;

        /* theme jodi hide kore thake, sob clear korchi */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        clip: auto !important;
        transform: none !important;

        /* dropdown animation */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.35s ease !important;
    }

    /* open state: slide down */
    .site-header .main-navigation.is-open {
        max-height: 600px !important;
        /* jodi menu boro hoye jay, dorkar hole 1000px kore nao */
    }

    /* ul ke visible & vertical banai */
    #primary-menu {
        display: block !important;
        margin: 8px 0 0 0 !important;
        padding: 0 !important;
        list-style: none !important;

        position: static !important;
        clip: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    #primary-menu li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header.site-header {
        overflow: visible !important;
        padding: 0px !important;
    }

    .header-container {
        padding: 0.5rem 0rem !important;
    }

    .logo img {
        height: 112px !important;
    }

    #hamburger-btn:hover {
        background: transparent !important;
    }

    .logo a img {
        padding-left: 15px;
    }
}