/* -----------------------------------------------------------
 🌟 Maharaj Final Premium Golden Setup for Blocksy Theme
----------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* बेसिक सेटअप */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* बेस कलर थीम */
body {
    background: linear-gradient(145deg, #e8ebf0, #dfe4ea) !important;
    color: #2c2e33 !important;
    font-family: 'Tiro Devanagari Hindi', 'Poppins', sans-serif !important;
}

/* शीर्षकांसाठी (golden effect) */
h1, h2, h3, h4 {
    color: #b88932 !important;
    text-shadow: 1px 1px 5px rgba(184,137,50,0.25);
    font-weight: 700 !important;
}

/* मुख्य लिंक आणि बटण */
a, .wp-block-button__link, button {
    background: #f7f8fa !important;
    color: #2f3136 !important;
    border: 1.5px solid #b88932 !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

a:hover, .wp-block-button__link:hover, button:hover {
    background: linear-gradient(135deg, #f4d47b, #dcb04a) !important;
    color: #2a1f04 !important;
    border-color: #b88932 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(184,137,50,0.3);
}

a:active {
    transform: scale(0.97) !important;
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2);
}

/* -------------------------------
   HEADER / LOGO / MENU ALIGN FIX
--------------------------------*/

.ct-header .ct-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    position: relative;
}

/* लोगो डावीकडे */
.ct-site-branding {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex: 0 0 auto !important;
}

.ct-site-branding img {
    max-height: 55px !important;
    margin-right: 25px !important;
}

/* मेनू उजवीकडे */
.ct-main-navigation {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex: 1 !important;
}

/* मेनू UL (inline items) */
.ct-main-navigation ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 1px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* मेनू बटणं */
.ct-main-navigation ul li {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
}

.ct-main-navigation ul li a {
    display: block !important;
    padding: 6px 12px !important;
    color: #2e3035 !important;
    background: #f9f9fb !important;
    border: 1.2px solid #b88932 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.ct-main-navigation ul li a:hover {
    background: linear-gradient(135deg, #f4d47b, #dcb04a) !important;
    color: #1e1503 !important;
    box-shadow: 10px 3px 8px rgba(184,137,50,0.3) !important;
}

/* Current active page highlight */
.ct-main-navigation ul li.current-menu-item a {
    background: #dcb04a !important;
    color: #fff !important;
}

/* ड्रॉपडाउन */
.ct-main-navigation ul ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    display: none !important;
    flex-direction: column !important;
    background: #fffbea !important;
    border: 1px solid #c9a740 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.ct-main-navigation ul li:hover > ul {
    display: flex !important;
}

/* मोबाईलवर लोगो वर आणि मेनू खाली */
@media (max-width: 768px) {
    .ct-header .ct-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }
    .ct-main-navigation ul {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .ct-main-navigation ul li a {
        font-size: 14px !important;
        padding: 5px 10px !important;
    }

    /* ✅ काळ बटण (dropdown arrow) नावासोबत एकाच लाईनमध्ये ठेवण्यासाठी */
    ul li.menu-item-has-children > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    ul li.menu-item-has-children > a::after {
        display: inline-block !important;
        vertical-align: middle !important;
        margin-top: 0 !important;
        transform: translateY(-1px) !important;
    }
}

/* ------------------------------
   HEADER BACKGROUND PREMIUM LOOK
------------------------------- */
header, .ct-header {
    background: linear-gradient(90deg, #f6f7f9, #e9ecef) !important;
    border-bottom: 2px solid #c4a04b !important;
    box-shadow: 0 0003px 8px rgba(184,137,50,0.15);
}

/* ड्रॉपडाऊन मेनू सुरुवातीला लपवा */
ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fffbea;
  border: 1px solid #c9a740;
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 5px 0;
  z-index: 100;
}

/* मुख्य मेनू एका ओळीत दिसण्यासाठी */
ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* मुख्य बटण */
ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1px;
  padding: 1px 1px;
  background: #f8f9fa;
  color: #2e3035;
  border: 1.4px solid #b88932;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.25s ease-in-out;
}

/* Hover effect */
ul li a:hover {
  background: linear-gradient(135deg, #f4d47b, #dcb04a);
  color: #1e1503;
  transform: translateY(-1px);
  box-shadow: 0px 3px 8px rgba(184,137,50,0.3);
}

/* ✅ Hover किंवा क्लिक केल्यावर उपमेनू नेमका खालीच उघडावा */
ul li {
  position: relative;
}

ul li:hover > ul,
ul li:focus-within > ul {
  display: block;
  top: 100%;
  left: 0;
}

/* उपमेनू आयटम स्टाईल */
ul li ul li a {
  display: block;
  padding: 8px 14px;
  background: transparent;
  color: #2a1f04;
  border: none;
  text-align: left;
  font-size: 15px;
}

/* उपमेनू Hover */
ul li ul li a:hover {
  background: linear-gradient(135deg, #f4d47b, #dcb04a);
  color: #fff;
}


/* ✅ पेजवरील सर्व बटणांसाठी सुरक्षित प्रीमियम लेआउट फिक्स */
a, .wp-block-button__link, button {
  display: inline-block !important;
  margin: 2px 2px !important;
  vertical-align: middle !important;
  float: none !important;
  clear: none !important;
}


/* 🧭 Force Layout Fix — Maharaj Final Verified Version */
.santo-container .sant-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
}



.santo-container .sant-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  line-height: 1.3em !important;
}
/* ✅ बटणाजवळील संत नावे साईज खाली वर मर्जीन कमी जास्त करता येते */
.santo-container .sant-name {
  font-size: 1.1em !important;
  font-weight: 700 !important;
  margin-bottom: 0px !important;
}

.santo-container .sant-info {
  font-size: 0.85em !important;
	color: #ff6600 !important; /* नारिंगी */

}



/* ✅ मोबाइलवर सुद्धा एकाच लाईनमध्ये राहील */
@media (max-width: 768px) {
  .santo-container .sant-card {
    flex-direction: row !important;
    align-items: center !important;
  }
}


/* ====== Quick safe fixes to stop header overlap ====== */
/* 1) थोडी छोटी लोगो size — safe reduce */
.ct-site-branding img {
  max-height: 52px !important;    /* जर 55px -> 52px करून पहा */
  width: auto !important;
  margin-right: 14px !important;  /* लोगो व मेनूमध्ये अंतर कमी/वाढवू शकता */
}

/* 2) header मध्ये घटकांमध्ये थोडे gap (controls spacing) */
.ct-header .ct-container {
  gap: 12px !important;           /* space between logo and menu */
  align-items: center !important;
}

/* 3) मेनू बटणांतील horizontal padding थोडी कमी */
.ct-main-navigation ul li a {
  padding: 6px 10px !important;   /* जर आवडले नाही तर 6px 8px करा */
}

/* 4) मेनूला shrink करायला परवानगी देणे (flex) */
.ct-main-navigation {
  display: flex !important;
  flex: 1 1 auto !important;      /* allow it to shrink/grow */
  min-width: 0 !important;        /* important to allow children to shrink */
}

/* 5) मेनूतील आयटम्ससाठी overflow handling — नाव न कापता wrap करण्यासाठी */
.ct-main-navigation ul {
  flex-wrap: nowrap !important;   /* primary behavior */
  overflow: hidden !important;
}

/* 6) जर मेनू इतर बाजूस दबत असेल तर mini-breakpoint: wrap */
@media (max-width: 980px) {
  .ct-header .ct-container {
    flex-wrap: wrap !important;   /* small screens: allow logo+menu stack */
  }
  .ct-main-navigation {
    justify-content: center !important;
    width: 100% !important;
    order: 2 !important;
  }
  .ct-site-branding { order: 1 !important; width: auto !important; }
}

/* 7) जर title/filename overlay होत असेल तर ensure high z-index for menu */
.ct-main-navigation, .ct-site-branding {
  z-index: 50 !important;
}





/* ==========================================================
🌟 Maharaj Supreme Edition — Stackable + HTML Buttons Unified Fix
========================================================== */

/* 🔸 ग्रुपचे सामान्य लेआउट */
.stk-block-button-group,
.wp-block-stackable-button-group,
.button-group {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 12px auto !important;
  text-align: center !important;
}

/* 🔸 बटण स्टाइल — HTML आणि Stackable दोन्हीवर लागू */
.stk-button,
.stk-block-button a,
.stk-block-icon-button a,
.wp-block-stackable-button a,
.button-group a,
[class*="stk-"] a.stk-button {
  display: inline-block !important;
  background: linear-gradient(135deg, #fdf4ce, #e8cf75) !important;
  color: #5a3a00 !important;
  font-weight: 600 !important;
  border: 1.6px solid #c79a2b !important;
  border-radius: 14px !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif !important;
  box-shadow: 0 0 8px rgba(199,154,43,0.3) !important;
  transition: all 0.25s ease-in-out !important;
  cursor: pointer !important;
}

/* 🔸 Hover effect */
.stk-button:hover,
.wp-block-stackable-button a:hover,
.button-group a:hover,
[class*="stk-"] a.stk-button:hover {
  background: linear-gradient(135deg, #ffeeb0, #f3d34c) !important;
  color: #000 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 0 12px rgba(255,215,64,0.6) !important;
}

/* 🔸 प्रत्येक बटणाला natural width (डेस्कटॉप) */
.stk-block-button,
.wp-block-stackable-button,
.button-group a {
  flex: 0 1 auto !important;
}

/* 🔸 मोबाईलवर एका खाली एक */
@media (max-width: 768px) {
  .stk-block-button-group,
  .wp-block-stackable-button-group,
  .button-group {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .stk-block-button,
  .wp-block-stackable-button,
  .button-group a {
    width: 90% !important;
    text-align: center !important;
  }
}
