/* =====================================
   MOBILE HEADER – SIMPLE & CLEAN
   Logo | Search | Hamburger
===================================== */
@media (max-width: 768px){

  /* Header container */
  .blogger-navbar{
    position: fixed;
  }

  /* Hide desktop menu + subscribe + socials */
  .navbar-menu,
  .navbar-social,
  .subscribe-btn{
    display: none !important;
  }

  /* Logo stays left */
  .navbar-logo{
    flex: 1;
  }

  /* Search icon (top right) */
  .navbar-search{
    position: absolute;
    top: 50%;
    right: 56px;                /* space before hamburger */
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  /* Hamburger (far right) */
  .mobile-toggle{
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  /* Reduce header height */
  .blogger-navbar .container{
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ===============================
   MOBILE MENU PANEL (CLEAN + SIMPLE)
=============================== */

/* Panel closed by default */
.mobile-menu-panel{
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, .92);
  backdrop-filter: blur(14px);
  z-index: 9999;

  transform: translateX(100%);
  transition: transform .28s ease;

  visibility: hidden;
  pointer-events: none;
}

/* Panel open (supports any common toggle class) */
.mobile-menu-panel.is-open,
.mobile-menu-panel.active,
.mobile-menu-panel.open,
.mobile-menu-panel.show{
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Drawer container */
.mobile-menu-content{
  padding: 18px 16px 20px;
  max-width: 420px;
  margin-left: auto;
}

/* Close button header */
.mobile-menu-header{
  display:flex;
  justify-content:flex-end;
  padding: 12px 16px;
  position: relative;
}

.mobile-close{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position: relative;
  top: 20px; /* you said this looks good */
}

/* ===============================
   MOBILE MENU LINKS
=============================== */
.mobile-blogger-menu{
  list-style: none;
  padding: 0;
  margin: 6px 0 14px;
  display: grid;
  gap: 8px;
}

.mobile-blogger-menu li{ margin: 0; }

.mobile-blogger-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 15px;
  line-height: 1.2;
  transition: .18s ease;
}

.mobile-blogger-menu a:hover,
.mobile-blogger-menu a:focus{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
}

/* ===============================
   SOCIAL ICONS (BOTTOM, HORIZONTAL)
   uses template-parts/social-icons.php
=============================== */

/* Hide old text social block if still present */
.mobile-menu-content .mobile-social{
  display:none !important;
}

/* Show icons horizontal and centered */
.social-icons-inline{
  display:flex;
  align-items:center;
  gap:12px;
}

.mobile-menu-content .social-icons-inline{
  justify-content:center;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

/* Ensure the icon buttons look good */
.mobile-menu-content .social-icons-inline .social-icon{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color:#fff;
  transition: .2s ease;
}

.mobile-menu-content .social-icons-inline .social-icon:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}


/* Mobile: hide header social icons (icons only inside menu) */
@media (max-width: 768px){
  header#masthead .blogger-navbar .social-icons-inline{
    display: none !important;
  }
}



/* Force horizontal stats on mobile (no !important) */
@media (max-width: 767px) {

  /* ✅ correct wrapper: .blogger-hero-section */
  .blogger-hero-section .blogger-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    max-width: 420px;
    margin: 18px auto 0;
    gap: 14px;
    text-align: center;
  }

  .blogger-hero-section .blogger-stats .stat-item {
    flex: 1 1 0;
    margin: 0;
    text-align: center;
  }

  .blogger-hero-section .blogger-stats .stat-item + .stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    padding-left: 12px;
  }

  /* Optional: keep numbers nicely sized on mobile */
  .blogger-hero-section .blogger-stats .stat-number {
    font-size: 2rem;
    line-height: 1.1;
  }

  .blogger-hero-section .blogger-stats .stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.6px;
  }
}


@media (max-width: 768px){
  .single-post .sp-layout{
    display: flex;
    flex-direction: column;
  }
  .single-post .sp-article{ order: 1; }
  .single-post .sp-aside{ order: 2; }
}


/* Desktop safety: never show the mobile panel */
@media (min-width: 769px){
  .mobile-menu-panel{
    display: none !important;
  }
}

/* ===============================
   My Expertise
=============================== */

/* =========================
   MY EXPERTISE RESPONSIVE
========================= */

/* Large tablet / small laptop */
@media (max-width: 1199px) {
    .myexp-container {
        padding: 0 18px;
    }

    .expertise-top-row {
        grid-template-columns: 420px minmax(0, 1fr);
        gap: 28px;
    }

    .expertise-content-col {
        max-width: 420px;
    }

    .expertise-title {
        max-width: 420px;
        font-size: 52px;
        line-height: 0.96;
    }

    .expertise-text {
        max-width: 340px;
        font-size: 14px;
        line-height: 1.8;
    }

    .expertise-hero-media {
        max-width: 430px;
        min-height: 230px;
        padding: 0 40px 0 0px;
    }

    .expertise-hero-media.has-image img {
        max-width: 360px;
    }

    .expertise-card-grid {
        gap: 12px;
    }

    .expertise-card-item {
        min-height: 170px;
        padding: 16px 14px 14px;
    }

    .card-heading {
        font-size: 15px;
    }

    .card-copy {
        font-size: 11px;
        min-height: 44px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .expertise-panel {
        padding: 20px 16px 16px;
    }

    .expertise-top-row {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .expertise-content-col {
        max-width: 100%;
        margin-top: 1rem;
        padding-top: 2.5rem;
    }

    .expertise-title {
        max-width: 100%;
        font-size: 46px;
        line-height: 1;
        gap: 4px;
    }

    .title-line-1,
    .title-line-2 {
        white-space: normal;
    }

    .expertise-text {
        max-width: 520px;
        font-size: 14px;
        line-height: 1.8;
    }

    .expertise-visual-col {
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 0;
    }

    .expertise-hero-media {
        max-width: 100%;
        min-height: auto;
        justify-content: flex-start;
    }

    .expertise-hero-media.has-image img {
        max-width: 340px;
    }

    .expertise-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .expertise-card-item {
        min-height: 176px;
    }

    .expertise-bottom-bar {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        font-size: 12px;
        text-align: left;
        padding-top: 10px;
    }

    .bottom-divider {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .expertise-hero-section {
        padding: 14px 0 0;
    }

    .myexp-container {
        padding: 0 14px;
    }

    .expertise-panel {
        padding: 16px 14px 14px;
    }

    .expertise-kicker {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .expertise-title {
        font-size: 38px;
        line-height: 1.03;
        letter-spacing: -0.03em;
        margin-bottom: 14px;
    }

    .expertise-text {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.75;
    }

    .expertise-hero-media.has-image img {
        max-width: 280px;
    }

    .expertise-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 14px;
    }

    .expertise-card-item {
        min-height: auto;
        padding: 16px 14px 14px;
    }

    .card-icon-wrap {
        width: 42px;
        height: 42px;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .card-heading {
        font-size: 16px;
    }

    .card-copy {
        min-height: auto;
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .card-tag-list span {
        font-size: 10px;
        padding: 4px 8px;
    }

    .expertise-bottom-bar {
        gap: 8px;
        font-size: 12px;
    }

    .expertise-bottom-bar strong {
        font-size: 17px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .expertise-title {
        font-size: 32px;
    }

    .expertise-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .expertise-hero-media.has-image img {
        max-width: 235px;
    }

    .expertise-card-item {
        padding: 14px 12px 12px;
        border-radius: 10px;
    }

    .card-heading {
        font-size: 15px;
    }

    .card-copy {
        font-size: 11px;
    }

    .expertise-bottom-bar {
        font-size: 11px;
    }

    .expertise-bottom-bar strong {
        font-size: 16px;
    }
}


/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}


