/*
Theme Name: Akadymic
Theme URI: https://akadymic.com/
Author: AGT India
Author URI: https://www.agtindia.com/
Developer: Praveen Maddy
Developer URI: https://madportfolio.netlify.app/
Description: A modern, advanced WordPress theme with clean architecture, CSS variables, and strong block editor support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: advanced-theme
Tags: full-site-editing, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/*
 * Add this below your existing theme header comment block
 * (the /* Theme Name: ... *\/ comment WordPress requires at the
 * top of style.css) — do not remove that header or WP will not
 * recognize the theme.
 *
 * All CSS custom properties (--variables) have been replaced with
 * their literal values below, as requested.
 */


* {
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #23261f;
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem; 
  background: #ffffff;
  border-bottom: 1px solid #e6e6e1;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-title {
  margin: 0;
  
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-title a {
  color: #23261f;
  text-decoration: none;
  transition: all 0.25s ease;
}

.site-title a:hover {
  color: #565f4f;
}

.site-description {
  margin: 0;
  font-size: 0.8rem;
  color: #9a9c92;
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */

.main-navigation {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #f7f7f4;
  border: 1px solid #e6e6e1;
  border-radius: 10px;
  color: #23261f;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.menu-toggle:hover {
  background: #565f4f;
  border-color: #565f4f;
  color: #fff;
}

.navbar_nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-item {
  display: flex;
}

.nav_link {
  display: inline-flex;
  align-items: center;
  color: #23261f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}


/* Mobile nav */
@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
  }

  .navbar_nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e6e6e1;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 30, 20, 0.05);
    padding: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"] + .navbar_nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav_link {
    text-align: center;
    border-radius: 10px;
  }
}

/* ==========================================================================
   Primary Menu
   ========================================================================== */

#primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-menu .menu-item {
  position: relative;
}

#primary-menu .nav_link {
  cursor: pointer;
}

#primary-menu .text-link {
  display: inline-flex;
  align-items: center;
}

#primary-menu .box_menu {
  display: inline-block;
}

/* Active / current page state */

#primary-menu .menu-item.current-menu-item > .nav_link,
#primary-menu .menu-item.active > .nav_link {
  color: #000;
}

/* Small caret on items that have a dropdown / mega menu */

#primary-menu .menu-item-has-children > .nav_link .box_menu::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}



/* ==========================================================================
   Dropdown / Mega Menu
   ========================================================================== */

#primary-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: var(--space-sm, 0.875rem);
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid #e6e6e1;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(30, 30, 20, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#primary-menu .menu-item:hover > .sub-menu,
#primary-menu .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Full-width mega menu variant */

#primary-menu .menu-item.dropdown_full > .sub-menu.megamenu_submenu {
  left: 50%;
  right: auto;
  min-width: 320px;
  max-width: 640px;
  transform: translate(-50%, -8px);
}

#primary-menu .menu-item.dropdown_full:hover > .sub-menu.megamenu_submenu,
#primary-menu .menu-item.dropdown_full:focus-within > .sub-menu.megamenu_submenu {
  transform: translate(-50%, 0);
}

/* Content injected inside the mega menu panel (e.g. Elementor widgets) */

#primary-menu .sub-menu .elementor {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #6b6d64;
}

#primary-menu .sub-menu .elementor p {
  margin: 0;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

@media (max-width: 780px) {
  #primary-menu.mobile_navbar_nav {
    width: 100%;
  }

  #primary-menu .menu-item {
    width: 100%;
  }

  #primary-menu .nav_link {
    width: 100%;
    justify-content: center;
  }

  /* On mobile, dropdowns expand inline instead of floating */
  #primary-menu .sub-menu,
  #primary-menu .menu-item.dropdown_full > .sub-menu.megamenu_submenu {
    position: static;
    left: auto;
    max-width: none;
    min-width: 0;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
    box-shadow: none;
    display: none;
  }

  #primary-menu .menu-item.active > .sub-menu,
  #primary-menu .menu-item:focus-within > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   Breadcrumb / Page Title Bar
   ========================================================================== */

.breadcrumbs-div {
  background: #565f4f;
  padding: 3.5rem 1.5rem 2.75rem;
  text-align: center;
}

.auto-container {
  max-width: 1200px;
  margin: 0 auto;
}

.text_center {
  text-align: center;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col-lg-12 {
  width: 100%;
}

.page_title {
  
  font-size: 50px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.breadcrumbs-div .auto-container {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs-div .page_title {
  font-size: 50px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.breadcrumbs-div .breadcrumb {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 auto;
  padding: 0;
}

.breadcrumbs-div .breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumbs-div .breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs-div .breadcrumb li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs-div .breadcrumb li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumbs-div .breadcrumb li.active span {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Container for Archive Pages
   ========================================================================== */

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: static;
}

/* ==========================================================================
   Post Article Card
   ========================================================================== */

article[id^="post-"] {
  max-width: 760px;
  background: #ffffff;
  border: 1px solid #e6e6e1;
  border-radius: 16px;
  padding: 2.5rem 2.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(30, 30, 20, 0.04);
  transition: all 0.25s ease;
}

article[id^="post-"]:hover {
  box-shadow: 0 4px 16px rgba(30, 30, 20, 0.05);
  transform: translateY(-2px);
}

/* Optional: category label — include if your template outputs one
   e.g. <span class="post-category">Uncategorized</span> */
.post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9c92;
  margin-bottom: 0.875rem;
}

/* Optional: post title — include if your template outputs one
   e.g. <h2 class="entry-title"> */
.entry-title {
  
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.875rem;
  color: #23261f;
}

.entry-title a {
  color: #23261f;
  text-decoration: none;
}

.entry-content {
  color: #6b6d64;
}

.wp-block-paragraph {
  font-size: 1rem;
  line-height: 1.8;
  color: #6b6d64;
}

/* Optional: footer row — include if your template outputs one
   e.g. <div class="entry-footer"><a class="read-more">Read More</a><span class="author">Decoria</span></div> */
.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e6e1;
  font-size: 0.9rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #23261f;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.read-more:hover {
  color: #565f4f;
  gap: 0.6rem;
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6b6d64;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 600px) {
  .site-header {
    padding: 1rem 1.5rem;
  }

  .breadcrumbs-div {
    padding: 2.5rem 1.5rem;
  }

  article[id^="post-"] {
    padding: 1.5rem;
  }
}

.page-template{
    position: static;
}