/* ===================================== */
/* ✅ GLOBAL BASE */
/* ===================================== */

body {
  font-family: 'Inter', sans-serif;
  background: #f1f5f9;
  color: #111827;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}


/* ===================================== */
/* ✅ LAYOUT */
/* ===================================== */

.page-wrapper {
  display: flex;
  width: 100%;
  padding: 20px;
  gap: 24px;
  box-sizing: border-box;
}

.content-area {
  flex: 1;
  min-width: 0;
}

.sidebar-area {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}


/* ===================================== */
/* ✅ HERO SECTION */
/* ===================================== */

.hero-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
}

.hero-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 16px;
}

.hero-image {
  width: 260px;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
}

.hero-content h2 {
  margin: 0 0 8px;
}

.hero-content h2 a {
  color: #1d84d8;
  text-decoration: none;
  font-weight: 600;
}

.hero-content h2 a:hover {
  text-decoration: underline;
}


/* ===================================== */
/* ✅ GRID */
/* ===================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.post-card {
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  font-size: 12px;
  color: #6b7280;
}


/* ===================================== */
/* ✅ SIDEBAR */
/* ===================================== */

.sidebar-inner .widget {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}

.sidebar-inner h2,
.sidebar-inner h3 {
  font-size: 14px;
  margin-bottom: 6px;
}


/* ===================================== */
/* ✅ HEADER CLEANUP */
/* ===================================== */

.page-title,
.entry-header {
  display: none;
}

.mg-headwidget {
  padding: 2px 0;
  font-size: 11px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

/* ✅ REMOVE BULLET FROM TOP DATE BAR */
.mg-headwidget ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.mg-headwidget li {
  list-style: none !important;
}
.mg-nav-widget-area-back {
  padding: 10px 0;
}

.navbar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-title {
  font-size: 20px;
  margin: 0;
  word-break: break-word;
}

.site-description {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.navbar {
  padding: 4px 0;
}


/* REMOVE ICON CLUTTER */
.navbar .fa,
.navbar .fas,
.menu .homebtn {
  display: none !important;
}
/* ✅ REMOVE FIRST TWO HOME ICON ITEMS */
.navbar-nav li.home {
  display: none !important;
}

/* ===================================== */
/* ✅ TAG / FILTER STRIP */
/* ===================================== */

.mg-tpt-txnlst {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-tpt-txnlst ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-tpt-txnlst ul li a {
  padding: 4px 10px;
  background: #e2e8f0;
  font-size: 11px;
  border-radius: 4px;
  text-decoration: none;
}

.mg-tpt-txnlst ul li a:hover {
  background: #2563eb;
  color: #fff;
}


/* ===================================== */
/* ✅ SEARCH */
/* ===================================== */

.navbar-search {
  margin-left: 20px;
}

.search-input {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  width: 180px;
}

.search-input:focus {
  border-color: #2563eb;
  width: 220px;
}

/* ===================================== */
/* ✅ FORCE TRUE 2-COLUMN GRID */
/* ===================================== */

.mg-footer-widget-area .row {
  display: flex;
  flex-wrap: nowrap;              /* ✅ CRITICAL — prevents drop */
  justify-content: space-between;
  align-items: flex-start;
}

/* ✅ LEFT COLUMN */
.mg-footer-widget-area .col-md-8 {
  flex: 0 0 65%;                 /* ✅ fix width */
  max-width: 65%;
}

/* ✅ RIGHT COLUMN */
.mg-footer-widget-area .col-md-4 {
  flex: 0 0 35%;                 /* ✅ fix width */
  max-width: 35%;

  display: flex;
  justify-content: flex-end;     /* right aligned */
  align-items: flex-start;       /* top aligned */
}

/* ===================================== */
/* ✅ BRAND BLOCK */
/* ===================================== */

.footer-brand {
  text-align: right;
  margin: 0;
  padding: 0;
  max-width: 260px;
}

/* ✅ CLEAN INTERNAL SPACING */
.footer-brand img {
  display: block;
  margin-bottom: 6px;
}

.footer-brand h3 {
  margin: 4px 0 2px;
  font-size: 16px;
}

.footer-tagline {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* ===================================== */
/* ✅ LEFT COLUMN (Find Us) */
/* ===================================== */

.mg-footer-widget-area .col-md-8 {
  text-align: left;                 /* ✅ keep vertical stack */
}

/* ✅ TEXT: vertical stack */
.mg-footer-widget-area p {
  margin: 0;
  line-height: 1.2;
  font-size: 12px;
  color: #374151;
}

/* ✅ small separation */
.mg-footer-widget-area p + p {
  margin-top: 2px;
}

/* ✅ labels inline */
.mg-footer-widget-area p strong {
  display: inline;
  font-weight: 600;
  color: #111827;
  margin-right: 4px;
}

/* ===================================== */
/* ✅ RIGHT COLUMN — NO ABSOLUTE (SAFE FIX) */
/* ===================================== */

.mg-footer-widget-area .col-md-4 {
  display: flex;
  justify-content: flex-end;   /* right aligned */
  align-items: flex-start;     /* ✅ same latitude */
}

/* ✅ KEEP NORMAL FLOW */
.footer-brand {
  text-align: right;
  margin: 0;
  padding: 0;
  max-width: 260px;

  display: block;   /* ✅ NOT FLEX, NOT ABSOLUTE */
}

/* ✅ CLEAN INTERNAL SPACING */
.footer-brand img {
  display: block;
  margin: 0 0 6px 0;
}

.footer-brand h3 {
  margin: 4px 0 2px;
  font-size: 16px;
}

.footer-tagline {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* ===================================== */
/* ✅ COPYRIGHT */
/* ===================================== */

.mg-footer-copyright {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 6px 20px;
}

.mg-footer-copyright .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mg-footer-copyright p {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
}

/* ===================================== */
/* ✅ ABOUT PAGE */
/* ===================================== */

.page-id-15 aside.sidebar-area {
  display: none;
}

.page-id-15 .content-area {
  width: 100%;
}

.page-id-15 .entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-id-15 .content-area,
.page-id-15 article {
  background: transparent;
}

.page-id-15 .container-fluid.missed-section.mg-posts-sec-inner {
  background-color: #eee;
}


/* ===================================== */
/* ✅ MOBILE */
/* ===================================== */

@media (max-width: 768px) {

  .page-wrapper {
    flex-direction: column;
    padding: 12px;
  }

  .navbar-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    flex-direction: column;
  }

  .sidebar-area {
    width: 100%;
    position: relative;
  }

  .search-input {
    width: 100%;
  }

  .mg-footer-widget-area .row,
  .mg-footer-copyright .row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ===================================== */
/* ✅ CLEAN MOBILE NAV (NO TOGGLE, NO JS) */
/* ===================================== */

@media (max-width: 768px) {

  /* ✅ SHOW NAVBAR */
  .navbar {
    display: block !important;
  }

  /* ✅ ALWAYS SHOW MENU */
  .navbar-collapse {
    display: block !important;
    width: 100%;
  }

  /* ✅ STACK MENU VERTICALLY */
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  /* ✅ MENU ITEMS */
  .navbar-nav li {
    width: 100%;
    text-align: center;
    margin: 6px 0;
  }

  .navbar-nav li a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  /* ✅ REMOVE BROKEN HAMBURGER */
  .navbar-toggler {
    display: none !important;
  }

}

/* ===================================== */
/* ✅ MOBILE FOOTER FIX */
/* ===================================== */

@media (max-width: 768px) {

  /* ✅ Stack columns vertically */
  .mg-footer-widget-area .row {
    flex-direction: column !important;
    align-items: center !important;
  }

  /* ✅ Full width columns */
  .mg-footer-widget-area .col-md-8,
  .mg-footer-widget-area .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* ✅ LEFT TEXT CENTERED */
  .mg-footer-widget-area .col-md-8 {
    text-align: center;
  }

  /* ✅ LOGO BLOCK BELOW FIND US */
  .mg-footer-widget-area .col-md-4 {
    justify-content: center !important;
    margin-top: 20px;
  }

  /* ✅ CENTER BRAND CONTENT */
  .footer-brand {
    text-align: center !important;
    align-items: center !important;
  }

  /* ✅ FIX LOGO SIZE */
  .footer-brand img {
    max-width: 200px;
    height: auto;
    margin: 0 auto 10px;
  }

}

/* ===================================== */
/* ✅ FIX DROPDOWN (DESKTOP) */
/* ===================================== */

/* Hide submenu initially */
.navbar-nav ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #233a6c; /* match your menu color */
  min-width: 220px;
  z-index: 9999;
  padding: 8px 0;
}

/* Show on hover */
.navbar-nav li:hover > ul.sub-menu {
  display: block;
}

/* Parent position fix */
.navbar-nav li {
  position: relative;
}

/* Style submenu items */
.navbar-nav ul.sub-menu li {
  text-align: left;
  padding: 6px 16px;
}

.navbar-nav ul.sub-menu li a {
  color: #4ea3ff;
  display: block;
  text-decoration: none;
}

.navbar-nav ul.sub-menu li a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ===================================== */
/* ✅ FINAL MENU FIX (NO CONFLICT) */
/* ===================================== */

@media (min-width: 769px) {

  .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .navbar-nav > li {
    position: relative;
  }

  /* LEVEL 1 */
  .navbar-nav ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #233a6c;
    min-width: 240px;
    padding: 8px 0;
    z-index: 9999;
  }

  /* SHOW LEVEL 1 */
  .navbar-nav li:hover > ul.sub-menu {
    display: block;
  }

  /* LEVEL 2 */
  .navbar-nav ul.sub-menu ul.sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
  }

  /* SHOW LEVEL 2 */
  .navbar-nav ul.sub-menu li:hover > ul.sub-menu {
    display: block;
  }

  /* TEXT FIX */
  .navbar-nav ul.sub-menu li a {
    white-space: nowrap;
    padding: 8px 16px;
  }
}

/* ===================================== */
/* ✅ DOWNLOAD SECTION */
/* ===================================== */

.research-paper h2 {
  margin-bottom: 15px;
}

/* DOWNLOAD LINK */
.download-link {
  display: inline-block;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.download-link:hover {
  background: #1d4ed8;
}

/* FORM WRAPPER */
.download-form-wrapper {
  margin-top: 12px;
  background: #fff;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* FORM */
.download-form {
  margin-top: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.download-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 14px;
}

.download-form button {
  width: 100%;
  padding: 10px;
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.download-form button:hover {
  background-color: #1d4ed8;
}


.featured-image-caption {
  display: block;
  color: #444 !important;
  background-color: #eee !important; /* add this */
  font-size: 14px;
  font-style: italic;
  padding: 8px;
  margin-top: 4px;
}
