/*
Theme Name: Sadhna Path Plus
Author: AI Agent
Description: Full-featured SPA WordPress Theme
Version: 1.1
*/

@font-face {
      font-family: 'HandwritingFont';
      src: url('fonts/Caveat.ttf') format('truetype');
      font-weight: 400 700;
      font-style: normal;
    }

    @font-face {
      font-family: 'ProtestRevolution';
      src: url('fonts/ProtestRevolution-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
    }

    @font-face {
      font-family: 'BrittanySignature';
      src: url('fonts/BrittanySignature.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
    }

    @font-face {
      font-family: 'ArchivoBlack';
      src: url('fonts/ArchivoBlack-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html,
    body {
      width: 100%;
      height: 100%;
      background-color: #be6e40;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       HERO
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .hero {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
      background: #c54108;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
    }


    .hero-content {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 60px;
    }

    /* Logo */
    .hero-logo {
      width: clamp(180px, 68vw, 360px);
    }

    /* Slogan */
    .hero-slogan {
      font-family: 'BrittanySignature';
      font-size: clamp(0.5rem, 2vw, 1rem);
      color: rgb(0, 0, 0);
      letter-spacing: 0.18em;
      text-align: center;
      animation: sloganFadeIn 1.4s ease 0.4s both;
    }

    @keyframes sloganFadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* â”€â”€ Bottom Menu â”€â”€ */
    .bottom-menu {
      position: fixed;
      bottom: clamp(8px, 1.8vh, 18px);
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      width: max-content;
      max-width: 96vw;
      transition: opacity 0.35s ease, transform 0.35s ease;
    }

    /* Hide menu when panel open */
    .bottom-menu.hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(24px);
    }

    .dynamic-menu-wrapper {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      row-gap: clamp(8px, 0vw, 8px);
      column-gap: clamp(16px, 4vw, 52px);
      margin-bottom: 0px;
    }

    .break-desktop { display: none; flex-basis: 100%; height: 0; margin: 0; padding: 0; }
    .break-mobile { display: none; flex-basis: 100%; height: 0; margin: 0; padding: 0; }

    @media (min-width: 768px) {
        .break-desktop { display: block; }
    }
    @media (max-width: 767px) {
        .break-mobile { display: block; }
    }

    .bottom-menu a {
      font-family: 'Noto Sans Devanagari', Arial, sans-serif;
      font-size: clamp(0.9rem, 1.98vw, 1.4rem);
      color: #ffffff;
      text-decoration: none;
      letter-spacing: 0.08em;
      white-space: nowrap;
      transition: opacity 0.2s, transform 0.2s;
      text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.55),
        0 4px 16px rgba(0, 0, 0, 0.30);
    }

    .bottom-menu a:hover {
      opacity: 0.7;
      transform: translateY(-2px);
    }

    .menu-comma {
      display: block;
      width: clamp(40px, 20vw, 60px);
      user-select: none;
      margin-bottom: 40px;
      filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
      transition: transform 0.2s ease, filter 0.2s ease;
      cursor: pointer;
      outline: none;
    }

    .menu-comma:hover {
      transform: translateY(-4px);
      filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }

    .menu-comma img {
      width: 100%;
      height: auto;
      display: block;
    }



    @media (min-width: 768px) {
      .bottom-menu {
        bottom: -12px;
      }
    }

    @media (max-width: 767px) {
      .hero-content {
        padding-top: 120px;
      }



      .bottom-menu a {
        font-size: clamp(0.945rem, 4.5vw, 1.215rem);
      }
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       SECTION PANELS
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .section-panel {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: clamp(16px, 5vw, 40px);
      padding-right: clamp(14px, 4vw, 32px);
      padding-left: clamp(14px, 4vw, 32px);
      overflow-y: auto;
      overflow-x: hidden;

      background-image: url('images/herojpg.png');
      background-size: cover;
      background-position: center center;
      background-attachment: fixed;

      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.3) transparent;

      transform: translateY(100%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.38s ease;
    }

    .section-panel::-webkit-scrollbar {
      width: 5px;
    }

    .section-panel::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.3);
      border-radius: 4px;
    }

    /* Dark overlay so cards are readable */
    .section-panel::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
    }

    .section-panel.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    /* Entrance animation for the card inside the panel */
    @keyframes cardSlideIn {
      from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .section-panel.active .panel-card {
      animation: cardSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
    }

    .section-panel.active .panel-logo {
      animation: cardSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    }

    /* Logo inside panel */
    .panel-logo {
      width: clamp(140px, 55vw, 280px);
      flex-shrink: 0;
      margin-bottom: clamp(10px, 2.5vh, 22px);
      filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
      top: 0;
      z-index: 5;
      cursor: pointer;
    }

    /* Card */
    .panel-card {
      background: #feddc4;
      border-radius: 0;
      width: clamp(280px, 94vw, 900px);
      display: flex;
      flex-direction: column;
      padding: clamp(14px, 4vw, 28px);
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    }

    /* Content wrapper */
    .panel-card-body {
      display: block;
    }

    /* Card header: title + back button */
    .panel-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .panel-title {
      font-family: 'Noto Sans Devanagari', Arial, sans-serif;
      font-size: 1.5rem;
      color: #111111;
      letter-spacing: 0.04em;
    }

    .panel-close-top {
      background: transparent;
      border: none;
      font-size: 2rem;
      line-height: 1;
      cursor: pointer;
      color: #64748b;
      padding: 0 5px;
      transition: color 0.2s ease, transform 0.2s ease;
      outline: none;
    }

    .panel-close-top:hover {
      color: #c54108;
      transform: scale(1.1);
    }

    /* Back button header placeholder */
    .panel-card-header-actions {
      display: flex;
    }

    /* Center bottom back button */
    .comma-back-container {
      display: flex;
      justify-content: center;
      z-index: 25;
    }

    .panel-back-comma {
      background: rgba(255, 255, 255, 0);
      border: none;
      padding: 12px 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s;
      border-radius: 4px;
    }

    .panel-back-comma img {
      width: clamp(20px, 4vw, 30px);
      filter: brightness(0) invert(1);
    }

    .panel-back-comma:hover {
      transform: scale(1.05);
    }

    /* Image inside card */
    .panel-img {
      width: 100%;
      border-radius: 10px;
      object-fit: cover;
      max-height: 240px;
      display: block;
      margin-bottom: 16px;
    }

    /* Body text */
    .panel-body {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.9rem;
      color: #1a1a1a;
      line-height: 1.5;
      letter-spacing: 0.01em;
    }

    .panel-body p+p {
      margin-top: 10px;
    }

    /* Responsive images inside post bodies */
    .panel-body img {
      max-width: 100% !important;
      height: auto !important;
      border-radius: 8px;
    }

    .panel-body figure {
      max-width: 100% !important;
      margin: 10px 0;
    }

    /* Responsive videos and embeds */
    .panel-body iframe,
    .panel-body video,
    .panel-body embed,
    .panel-body object {
      max-width: 100% !important;
      width: 100%;
      height: auto !important;
      aspect-ratio: 16 / 9;
      border-radius: 8px;
    }

    /* ═══════════════════════════════
       LANGUAGE TOGGLE
    ═══════════════════════════════ */

    /* By default, hide all Hindi content */
    .lang-hi {
      display: none;
    }

    /* When Hindi is active, hide English and show Hindi */
    body.lang-hi-active .lang-en {
      display: none;
    }

    body.lang-hi-active span.lang-hi {
      display: inline;
    }

    body.lang-hi-active div.lang-hi {
      display: block;
    }

    body.lang-hi-active li.lang-hi {
      display: list-item;
    }

    body.lang-hi-active img.lang-hi {
      display: block;
    }

    /* Hindi font for panel body when in Hindi mode */
    body.lang-hi-active .panel-body {
      font-family: 'Noto Sans Devanagari', Arial, sans-serif;
      line-height: 1.7;
    }

    /* Floating Action Pills Common Style */
    .action-pill {
      position: fixed;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.42);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 20px;
      padding: 4px 5px;
      gap: 2px;
      cursor: pointer;
      user-select: none;
      transition: background 0.2s, box-shadow 0.2s;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      text-decoration: none;
      width: max-content;
    }

    .action-pill:hover {
      background: rgba(0, 0, 0, 0.60);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    /* Position: Bottom-Left (Language) */
    #lang-toggle {
      bottom: 24px;
      left: 24px;
    }

    /* Position: Bottom-Right (Share/Location) */
    #share-location-btn {
      bottom: 24px;
      right: 24px;
    }

    .action-icon {
      padding: 4px 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.85);
      transition: color 0.2s ease;
    }

    .action-icon svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .action-pill:hover .action-icon {
      color: #ffffff;
    }

    .lang-btn {
      padding: 4px 10px;
      border-radius: 14px;
      color: rgba(255, 255, 255, 0.60);
      font-weight: 600;
      font-size: 0.72rem;
      font-family: Arial, Helvetica, sans-serif;
      letter-spacing: 0.05em;
      transition: all 0.2s ease;
      white-space: nowrap;
      line-height: 1.4;
    }

    .lang-btn.active {
      background: rgba(255, 255, 255, 0.20);
      color: #ffffff;
    }

    /* Hindi button uses Devanagari font */
    #btn-hi {
      font-family: 'Noto Sans Devanagari', Arial, sans-serif;
      font-size: 0.75rem;
    }
