/*
Theme Name: OMS Elearning 2025
Theme URI: http://localhost/OMS_Academy/wordpress/
Author: Shreya Agrawal
Description: Modern Custom Theme
Version: 1.0
*/

:root {
  /* Blue shades */
  --blue-darkest: #001223;
  --blue-darker: #00203d;
  --blue-dark: #003c71;
  --blue: #0070d3;
  --blue-light: #e7f4ff;
  --blue-background-light: #eaecf0;

  /* Yellow shades */
  --yellow-dark: #d4aa00;
  --yellow: #fed42b;

  /* Neutral tones */
  --off-white: #fff8db;
  --gray-darkest: #212121;
  --gray-dark: #3d3d3d;
  --gray-light: #d2d2d2;

  /* Utility colors (optional naming for clarity) */
  --text-primary: #212121;
  --text-secondary: #3d3d3d;
  --bg-yellow-light: #fff8db;
  --bg-light: #ffffff;
  --bg-dark: #001223;
}

:root {
  --font-body: "Montserrat", sans-serif;
  --font-heading: "Inter", sans-serif;
  --text-color: #111;
  --accent-color: #007bff;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: var(--font-heading);
}

.container {
  width: 85%;
}

/* ==== HEADER WRAPPER ==== */
.header-wrapper {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 20px;
  border-radius: 3rem;
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  max-width: 85%;
  width: 100%;
  height: 80px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Constrain WP's custom logo */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
}
.custom-logo {
  max-height: 60px;
  height: auto;
  width: auto;
}
@media (max-width: 767px) {
  .custom-logo-link {
    height: 32px;
  }
  .custom-logo {
    max-height: 32px;
  }
}

/* Optional image logo class (fallback) */
.logo {
  height: 40px;
}

/* Nav & buttons */
.nav-links {
  position: relative;
}
.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav > .nav-item > .nav-link {
  text-decoration: none;
  color: #000;
}
.nav-links a {
  text-decoration: none;
  color: #000;
  margin: 0 10px;
}
.icon-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  margin: 0 15px;
  cursor: pointer;
  padding: 0; /* remove default button padding */
}
.icon-btn:focus,
.icon-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Profile */
.rounded-circle-container {
  background: #e6e1e1;
  border-radius: 50%;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  margin-right: 15px;
}
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 240px;
  z-index: 100;
}
/* Keep dropdown open on hover for desktop only */
@media (hover: hover) and (pointer: fine) {
  .rounded-circle-container:hover .profile-dropdown,
  .rounded-circle-container .profile-dropdown:hover {
    display: block;
  }
}

/* Dropdown: sit below header & above content */
.header-wrapper,
.header-shell {
  overflow: visible;
}
.main-nav .dropdown-menu {
  z-index: 1051;
}
.main-nav .dropdown-menu[data-bs-popper] {
  margin-top: 16px;
}

/* Overlay: show same menu vertically */
.overlay-nav {
  min-width: 260px;
}
.overlay-list {
  margin: 0;
  padding: 0;
}
.overlay-list li {
  margin: 0 0 0.5rem 0;
}
.overlay-list a {
  text-decoration: none;
  color: #111;
  display: inline-block;
}
.overlay-list .sub-menu {
  display: block; /* children visible */
  margin-top: 0.25rem;
  padding-left: 1rem; /* indent children */
  list-style: none;
}
.overlay-list .sub-menu li {
  margin-bottom: 0.4rem;
}
.overlay-list > li > a {
  font-weight: 600;
}

/* Overlay (hamburger panel) */
.overlay-menu {
  max-width: 85%;
  margin: 5px auto 0;
  background: #fff;
  padding: 2rem;
  display: none;
  flex-direction: column;
  border-radius: 30px;
  animation: fadeIn 0.5s ease-in-out;
}
.overlay-menu.show {
  display: flex;
}
.overlay-content {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.overlay-section {
  flex: 1 1 250px;
  margin-bottom: 2rem;
}
.overlay-section h6 {
  font-weight: bold;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cart sidebar + backdrop */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 2050;
  padding: 1.5rem;
  transition: right 0.4s ease-in-out;
}
.cart-sidebar.show {
  right: 0;
}
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1049;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cart-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 767px) {
  .main-nav {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .nav-links > * {
    margin-left: 10px;
  }
}

/* Use grid: contact column + groups */
.overlay-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr; 
  gap: 2.5rem 3rem;
}
.overlay-sections {
  display: contents;
} /* allow groups to occupy the grid */
@media (max-width: 991px) {
  .overlay-content {
    grid-template-columns: 1fr;
  }
}

/* Group headings + inline links */
.overlay-group h6 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.overlay-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}
.overlay-inline li {
  margin: 0;
}
.overlay-inline a {
  text-decoration: none;
  color: #111;
}


/*========== Blog Archive Style ============*/
.container {
        width: 95% !important;
      }
      .blog-section {
        background-color: var(--bg-light);
      }

      /* Main Blog Card */
      .blog-main-card {
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;
        border-radius: 1.5rem;
      }

      .blog-main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }

      .blog-main-card:hover .blog-main-img {
        transform: scale(1.1);
      }

      .blog-overlay {
        background: linear-gradient(
          to top,
          rgba(0, 0, 0, 0.8),
          rgba(0, 0, 0, 0)
        );
        z-index: 2;
        border-bottom-left-radius: 1.5rem;
        border-bottom-right-radius: 1.5rem;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
      }

      /* Blog Title Hover Effects */
      .blog-title {
        transition: all 0.3s ease;
        cursor: pointer;
      }

      .blog-title:hover {
        text-decoration: none;
        color: var(--blue);
      }

      /* Featured Blog Items */
      .featured-blog {
        border-bottom: 1px solid var(--gray-light);
        padding-bottom: 10px;
        margin-bottom: 20px;
      }

      .featured-thumb {
        width: 90px;
        height: 60px;
        object-fit: cover;
        border-radius: 1rem;
        flex-shrink: 0;
      }

      .recent-post-card {
        background-color: #fff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #eee;
         box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
      }


      .post-image-wrapper {
        overflow: hidden;
        height: 200px;
      }

      .post-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
      }

      .recent-post-card:hover .post-image {
        transform: scale(1.08);
      }

      .post-title {
        transition: color 0.3s ease;
        cursor: pointer;
      }

      .post-title:hover {
        color: var(--blue);
        text-decoration: underline;
      }

      .author-thumb {
        width: 24px;
        height: 24px;
        object-fit: cover;
      }

      iconify-icon {
        vertical-align: middle;
        font-size: 16px;
        color: var(--text-secondary);
      }

      /*Pagination*/
.pagination-container {
  text-align: center;
  margin-bottom: 8rem !important;
}

/* Remove default Bootstrap border + background */
.page-link {
  border: none !important;
 
  box-shadow: none;
  outline: none;
  color: var(--gray-dark);
  font-weight: 500;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

/* Active page - yellow circle */
.page-number.active {
  background-color: var(--off-white) !important;
  color: var(--blue-dark) !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-weight: bold;
}

/* Normal pages - round hover */
.page-number {
    color: var(--text-secondary) !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
}

.page-number:hover {
  background-color: var(--blue-light) !important;
  color: var(--blue) !important;
  text-decoration: none;
}

/* Previous / Next links */
.custom-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-dark) !important;
  padding: 6px 12px;
}

.custom-nav-link:hover {
  color: var(--blue-dark);
  text-decoration: none;
}

/*Explore Section*/
   .resources-section {
  background-color: var(--blue-background-light);
}

.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.resource-icon {
  font-size: 32px;
  color: #facc15; /* Tailwind-style yellow */
}

.btn-primary-dark {
  background-color: var(--blue-dark) !important;
  color: #ffffff !important;
  border-radius: 100px !important;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-primary-dark:hover {
  background-color: var(--blue-darker) !important;
}