/*======================================
Theme Name: Aadhya — Editorial News & Magazine
Theme URI:https://aadhya.elvarstudios.in/
Author: Elvar Studios
Author URI: https://elvarstudios.com/
Template: Divi
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
======================================*/

/* ===== NOTES ==================================================================
 *
 * Discover our premium Divi products: https://elvarstudios.com/
 *
 * =============================================================================== */

 /* Let Lenis control smoothing. */
  html.lenis,
  html.lenis body {
    scroll-behavior: auto !important;
  }



/* ==========================================
   DIVI MEGA MENU — SETTINGS
   ========================================== */

:root {
  --rm-panel-top: 90px;
  --rm-scroll-height: 340px;
  --rm-duration: 380ms;
  --rm-ease: cubic-bezier(.22, 1, .36, 1);
  --rm-active-bg: #f4f4f4;
  --rm-text: #191919;
}

/* Keep the hidden secondary section editable
   in the Visual Builder. */
.rm-panel {
  display: none !important;
}

body.et-fb .rm-panel {
  display: block !important;
}

/* ==========================================
   PRIMARY HEADER
   ========================================== */

.rm-header {
  background: #fff;
  padding: 0 !important;
  overflow: visible !important;
}

.rm-header-row.et_pb_row {
  width: 90%;
  max-width: 1440px;
  padding: 18px 0 !important;
  overflow: visible !important;
}

.rm-header .et_pb_column,
.rm-primary-menu.et_pb_menu {
  overflow: visible !important;
}

.rm-primary-menu.et_pb_menu {
  margin-bottom: 0 !important;
  background: transparent !important;
}

/* Added to the Theme Builder header by JS. */
.rm-header-host {
  position: relative;
  z-index: 100002 !important;
}



.rm-ready .rm-primary-menu .et_pb_menu__logo-wrap {
  flex: 0 0 auto;
  margin: 0 !important;
}

.rm-ready .rm-primary-menu .et_pb_menu__logo img {
  display: block;
  width: auto;
  max-height: 54px;
}




/* ==========================================
   ANIMATED HAMBURGER
   ========================================== */

.rm-toggle {
  appearance: none;
  flex: 0 0 44px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rm-text);
  cursor: pointer;
}

.rm-toggle-lines {
  position: relative;
  display: block;
  width: 25px;
  height: 20px;
}

.rm-toggle-lines > span {
  position: absolute;
  left: 0;
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition:
    top var(--rm-duration) var(--rm-ease),
    transform var(--rm-duration) var(--rm-ease),
    opacity 180ms ease,
    width var(--rm-duration) var(--rm-ease);
}

.rm-toggle-lines > span:nth-child(1) {
  top: 1px;
}

.rm-toggle-lines > span:nth-child(2) {
  top: 9px;
}

.rm-toggle-lines > span:nth-child(3) {
  top: 17px;
  width: 17px;
}

.rm-open .rm-toggle-lines > span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.rm-open .rm-toggle-lines > span:nth-child(2) {
  opacity: 0;
}

.rm-open .rm-toggle-lines > span:nth-child(3) {
  top: 9px;
  width: 25px;
  transform: rotate(-45deg);
}

/* ==========================================
   SECONDARY PANEL
   ========================================== */

.rm-ready .rm-panel {
  display: block !important;
  position: fixed !important;
  top: var(--rm-panel-top) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: calc(100dvh - var(--rm-panel-top));
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--rm-text);
  z-index: 100001 !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  clip-path: inset(0 0 100% 0);

  transition:
    opacity 220ms ease,
    transform var(--rm-duration) var(--rm-ease),
    clip-path var(--rm-duration) var(--rm-ease),
    visibility var(--rm-duration);
}

.rm-ready.rm-open .rm-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

/* Three editable native Divi columns. */
.rm-ready .rm-panel-row.et_pb_row {
  display: grid !important;
  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1fr)
    minmax(0, 2fr);
  gap: clamp(24px, 3.5vw, 64px);
  align-items: start;
  width: 90%;
  max-width: 1440px;
  padding: 30px 0 !important;
}

/* Remove the Row clearfix from the CSS grid. */
.rm-ready .rm-panel-row.et_pb_row::after {
  display: none;
}

.rm-ready .rm-panel-row > .et_pb_column {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

/* ==========================================
   LEFT CATEGORY MENU — NATIVE DIVI CLASSES
   ========================================== */

.rm-ready .rm-tabs.et_pb_menu {
  background: transparent !important;
}

.rm-ready .rm-tabs .et_pb_menu__menu {
  display: block !important;
  width: 100%;
}

.rm-ready .rm-tabs .et_mobile_nav_menu {
  display: none !important;
}

.rm-ready .rm-tabs .et_pb_menu__wrap {
  justify-content: flex-start !important;
}

.rm-ready .rm-tabs .et-menu-nav {
  display: block !important;
  width: 100%;
}

.rm-ready .rm-tabs .et-menu {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.rm-ready .rm-tabs .et-menu > li {
  display: block !important;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
}

.rm-ready .rm-tabs .et-menu > li > a {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 9px 12px !important;
  color: var(--rm-text) !important;
  font-size: clamp(22px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  opacity: 1 !important;
  transition: background 180ms ease;
}

.rm-ready .rm-tabs .et-menu > li.rm-active > a,
.rm-ready .rm-tabs .et-menu > li > a:hover {
  background: var(--rm-active-bg);
}

/* ==========================================
   MIDDLE CONTENT AND SCROLLBAR
   ========================================== */

.rm-ready .rm-panes {
  min-width: 0;
  min-height: var(--rm-scroll-height);
}

.rm-ready .rm-pane {
  width: 100%;
  max-height: var(--rm-scroll-height);
  margin: 0 !important;
  padding-right: 18px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #999 #ededed;
}

.rm-ready .rm-pane[hidden] {
  display: none !important;
}

.rm-ready .rm-pane::-webkit-scrollbar {
  width: 5px;
}

.rm-ready .rm-pane::-webkit-scrollbar-track {
  background: #ededed;
}

.rm-ready .rm-pane::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

.rm-ready .rm-pane.rm-enter {
  animation: rm-content-in 240ms var(--rm-ease) both;
}

@keyframes rm-content-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional Text-module link-list styling. */
.rm-panel .rm-link-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rm-panel .rm-link-list li {
  margin: 0;
  padding: 0;
}

.rm-panel .rm-link-list a {
  display: block;
  padding: 9px 0;
  color: var(--rm-text);
  font-size: 20px;
  line-height: 1.4;
}

.rm-panel .rm-link-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================
   FOOTER AND OVERLAY
   ========================================== */

.rm-ready .rm-panel-footer.et_pb_row {
  width: 90%;
  max-width: 1440px;
  padding: 18px 0 !important;
  border-top: 1px solid #eee;
}

.rm-overlay {
  position: fixed;
  top: var(--rm-panel-top);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.40);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--rm-duration) ease,
    visibility var(--rm-duration);
}

.rm-open .rm-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Keep page width stable when page scrolling locks. */
html.rm-ready {
  scrollbar-gutter: stable;
}

html.rm-open,
html.rm-open body {
  overflow: hidden !important;
}

.rm-toggle:focus-visible,
.rm-tabs a:focus-visible,
.rm-panel a:focus-visible {
  outline: 2px solid #191919;
  outline-offset: 4px;
}

/* ==========================================
   TABLET / MOBILE
   ========================================== */

@media (max-width: 980px) {
  :root {
    --rm-scroll-height: 260px;
  }

  .rm-ready .rm-primary-menu .et_pb_menu_inner_container {
    column-gap: 12px;
  }

  /* Use our custom hamburger on mobile.
     Put all essential navigation in its panel. */
  .rm-ready .rm-primary-menu .et_pb_menu__menu,
  .rm-ready .rm-primary-menu .et_mobile_nav_menu {
    display: none !important;
  }

  .rm-ready .rm-panel-row.et_pb_row {
    grid-template-columns:
      minmax(0, 0.8fr)
      minmax(0, 1.2fr);
    gap: 26px 18px;
  }

  .rm-ready .rm-posts-column {
    grid-column: 1 / -1;
  }

  .rm-ready .rm-tabs .et-menu > li > a {
    font-size: 22px;
    padding: 8px !important;
  }

  .rm-panel .rm-link-list a {
    font-size: 18px;
  }
}

@media (max-width: 479px) {
  .rm-ready .rm-tabs .et-menu > li > a {
    font-size: 19px;
    letter-spacing: -0.4px;
  }

  .rm-panel .rm-link-list a {
    font-size: 16px;
  }

  .rm-ready .rm-pane {
    padding-right: 10px;
  }

  .rm-ready .rm-primary-menu .et_pb_menu__logo img {
    max-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-toggle-lines > span,
  .rm-panel,
  .rm-overlay {
    transition: none !important;
  }

  .rm-pane.rm-enter {
    animation: none !important;
  }
}
  
/* Match and center the primary and secondary content rows */
.rm-header .rm-header-row.et_pb_row,
.rm-ready .rm-panel .rm-panel-row.et_pb_row,
.rm-ready .rm-panel .rm-panel-footer.et_pb_row {
  width: 90% !important;
  max-width: 1440px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  box-sizing: border-box;
}





/* =====================================================
   DIVI GROUP → FEATURED IMAGE DISTORTION
   The script adds these helper classes automatically.
===================================================== */

/* Position an overlay inside the native image wrapper. */
.blog-glitch-group .d5-glitch-host {
  position: relative;
}

/* Temporary distortion layer. */
.blog-glitch-group .d5-glitch-canvas {
  position: absolute;
  display: block;
  z-index: 3;

  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;

  pointer-events: none !important;
}

/* Respect the visitor's motion preference. */
@media (prefers-reduced-motion: reduce) {
  .blog-glitch-group .d5-glitch-canvas {
    display: none !important;
  }
}




/* ==================================================
   AADHYA DYNAMIC GREETING
================================================== */

.aadhya-greeting .aadhya-greeting-content {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


/* SVG wrapper */
.aadhya-greeting-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}


/* SVG size */
.aadhya-greeting-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}


/* Greeting text inherits everything from Divi */
.aadhya-greeting-text {
    font: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}


/* Mobile */
@media (max-width: 767px) {

    .aadhya-greeting .aadhya-greeting-content {
        gap: 6px;
    }

    .aadhya-greeting-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

}


/* =====================================================
   AADHYA - SIMPLE WEATHER
===================================================== */

.aadhya-weather {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-family: inherit;
    color: inherit;
}


/* Icon */
.aadhya-weather__icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;
}

.aadhya-weather__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* Content */
.aadhya-weather__content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}


/* City */
.aadhya-weather__city {
    
    font-family: Rethink Sans;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
    opacity: .65;
}


/* Main weather row */
.aadhya-weather__main {
    display: flex;
    align-items: baseline;
    gap: 7px;
}


/* Temperature */
.aadhya-weather__temp {
   font-family: Rethink Sans;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.6px;
    Color: #1a1a1a;
}


/* Condition */
.aadhya-weather__condition {
   font-family: Rethink Sans;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    opacity: .7;
}


/* Loading */
.aadhya-weather-loading {
    font-size: 12px;
    opacity: .6;
}


/* Mobile */
@media (max-width: 767px) {

    .aadhya-weather {
        gap: 8px;
    }

    .aadhya-weather__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .aadhya-weather__temp {
        font-size: 21px;
    }

    .aadhya-weather__city,
    .aadhya-weather__condition {
        font-size: 11px;
    }

}