/*
Theme Name: My Dreams Blog
Theme URI: https://mydreamstechnology.in/blog/
Description: Astra child theme for the My Dreams Technology resource blog.
Author: My Dreams Technology
Template: astra
Version: 1.4.1
Text Domain: mydreams-blog
*/

:root {
  --mdt-navy: #071a3b;
  --mdt-navy-2: #0b326e;
  --mdt-blue: #0866e9;
  --mdt-cyan: #09c6e8;
  --mdt-ink: #0e2242;
  --mdt-muted: #65748b;
  --mdt-line: #dfe8f3;
  --mdt-bg: #f2f7fc;
  --mdt-white: #ffffff;
}

body {
  color: var(--mdt-ink);
  background: var(--mdt-bg);
}

/* Astra opens a flex-based content container around child templates. These
 * custom blog templates contain full-width stacked sections, so reset that
 * parent only on blog views. */
body.home #content.site-content > .ast-container,
body.blog #content.site-content > .ast-container,
body.single-post #content.site-content > .ast-container,
body.category #content.site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

body.home #content.site-content,
body.blog #content.site-content,
body.single-post #content.site-content,
body.category #content.site-content {
  display: block;
}

/* Replace Astra's standard header on custom blog templates. */
body.home #masthead,
body.blog #masthead,
body.single-post #masthead,
body.category #masthead {
  display: none;
}

body.home .site-footer,
body.blog .site-footer,
body.single-post .site-footer,
body.category .site-footer {
  display: none;
}

.mdt-site-header {
  position: relative;
  z-index: 30;
  width: 100%;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--mdt-line);
  box-shadow: 0 8px 30px rgba(7, 35, 72, .06);
}

.mdt-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.mdt-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.mdt-logo img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 235px;
  object-fit: contain;
}

.mdt-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.mdt-main-nav a {
  color: #263750;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.mdt-main-nav a:hover,
.mdt-main-nav a.is-current { color: var(--mdt-blue); }

.mdt-menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--mdt-line);
  border-radius: 10px;
  color: var(--mdt-navy);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mdt-category-bar {
  position: relative;
  z-index: 5;
  background: var(--mdt-white);
  border-top: 1px solid var(--mdt-line);
  border-bottom: 1px solid var(--mdt-line);
  box-shadow: 0 5px 18px rgba(8, 39, 80, .05);
  width: 100%;
}

.mdt-category-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mdt-category-inner::-webkit-scrollbar { display: none; }

.mdt-category-inner a {
  flex: 0 0 auto;
  padding: 15px 15px;
  color: #34445d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.mdt-category-inner a:hover,
.mdt-category-inner a.is-active {
  color: var(--mdt-blue);
  border-bottom-color: var(--mdt-cyan);
}

.mdt-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 20px 76px;
  color: var(--mdt-white);
  text-align: center;
  background:
    radial-gradient(circle at 14% 26%, rgba(0, 190, 255, .25), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(18, 226, 194, .18), transparent 30%),
    linear-gradient(125deg, #06142e 0%, #092b62 55%, #075888 100%);
  width: 100%;
}

.mdt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to right, transparent, #000, transparent);
}

.mdt-hero-content {
  position: relative;
  z-index: 2;
  width: min(850px, 100%);
  margin: 0 auto;
}

.mdt-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #9beeff;
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mdt-hero h1 {
  margin: 0;
  color: var(--mdt-white);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.mdt-hero h1 span {
  color: var(--mdt-cyan);
}

.mdt-hero p {
  max-width: 720px;
  margin: 20px auto 28px;
  color: #c9d9ed;
  font-size: 17px;
}

.mdt-search {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  padding: 6px;
  border-radius: 15px;
  background: var(--mdt-white);
  box-shadow: 0 20px 55px rgba(0,0,0,.25);
}

.mdt-search input[type='search'] {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.mdt-search button {
  min-width: 110px;
  border: 0;
  border-radius: 10px;
  color: var(--mdt-white);
  background: linear-gradient(135deg, var(--mdt-blue), #1555c9);
  font-weight: 800;
  cursor: pointer;
}

.mdt-posts-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 90px;
}

.mdt-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.mdt-section-title h2 {
  margin: 0;
  color: var(--mdt-ink);
  font-size: 36px;
  letter-spacing: -.03em;
}

.mdt-section-title p { margin: 0; color: var(--mdt-muted); }

.mdt-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}

.mdt-card {
  overflow: hidden;
  background: var(--mdt-white);
  border: 1px solid var(--mdt-line);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(7, 35, 72, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.mdt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(7, 35, 72, .14);
}

.mdt-card-image {
  position: relative;
  display: block;
  height: 215px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mdt-navy), var(--mdt-blue));
}

.mdt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.mdt-card:hover .mdt-card-image img { transform: scale(1.035); }

.mdt-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.95);
  font-size: 48px;
}

.mdt-card-body { padding: 24px; }

.mdt-card-category {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--mdt-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mdt-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.mdt-card h2 a { color: var(--mdt-ink); text-decoration: none; }
.mdt-card h2 a:hover { color: var(--mdt-blue); }

.mdt-card-meta {
  margin-bottom: 13px;
  color: #8290a4;
  font-size: 12px;
}

.mdt-card-excerpt { color: var(--mdt-muted); font-size: 14px; }

.mdt-read-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--mdt-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mdt-pagination { margin-top: 44px; text-align: center; }
.mdt-pagination .nav-links { display: inline-flex; gap: 8px; }
.mdt-pagination .page-numbers { padding: 9px 14px; border-radius: 9px; background: #fff; border: 1px solid var(--mdt-line); }
.mdt-pagination .current { color: #fff; background: var(--mdt-blue); border-color: var(--mdt-blue); }

.mdt-article-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 55px auto 80px;
}

.mdt-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 30px;
}

.mdt-article {
  overflow: hidden;
  padding: 50px 60px;
  border: 1px solid var(--mdt-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(7,35,72,.08);
}

.mdt-article-column { min-width: 0; }

.mdt-article-category {
  display: inline-flex;
  padding: 6px 11px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--mdt-blue);
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 800;
}

.mdt-article h1 {
  margin: 0 0 15px;
  color: var(--mdt-ink);
  font-size: clamp(36px, 5vw, 55px);
  line-height: 1.13;
  letter-spacing: -.04em;
}

.mdt-article-meta { margin-bottom: 30px; color: #78869b; font-size: 13px; }

.mdt-article-featured {
  margin: 0 -60px 40px;
}

.mdt-article-featured img { width: 100%; max-height: 510px; object-fit: cover; }

.mdt-article-content { color: #263a59; font-size: 17px; line-height: 1.85; }
.mdt-article-content h2 { margin-top: 42px; color: var(--mdt-ink); font-size: 31px; line-height: 1.25; }
.mdt-article-content h3 { margin-top: 30px; color: var(--mdt-ink); font-size: 23px; }
.mdt-article-content ul, .mdt-article-content ol { padding-left: 24px; }

.mdt-related { margin-top: 45px; }
.mdt-related h2 { margin-bottom: 22px; color: var(--mdt-ink); font-size: 30px; }
.mdt-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mdt-related-card { padding: 22px; border: 1px solid var(--mdt-line); border-radius: 15px; background: #fff; }
.mdt-related-card h3 { margin: 8px 0 0; font-size: 17px; line-height: 1.35; }
.mdt-related-card a { color: var(--mdt-ink); text-decoration: none; }
.mdt-related-card a:hover { color: var(--mdt-blue); }

.mdt-sidebar {
  display: grid;
  gap: 22px;
}

.mdt-sidebar-box {
  padding: 24px;
  border: 1px solid var(--mdt-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,35,72,.06);
}

.mdt-sidebar-box h2 {
  margin: 0 0 17px;
  color: var(--mdt-ink);
  font-size: 20px;
}

.mdt-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdt-sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
}

.mdt-sidebar-list li:first-child { padding-top: 0; }
.mdt-sidebar-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.mdt-sidebar-list a { color: #334660; font-size: 14px; font-weight: 700; text-decoration: none; }
.mdt-sidebar-list a:hover { color: var(--mdt-blue); }
.mdt-sidebar-list small { display: block; margin-top: 3px; color: #8794a7; }

.mdt-sidebar-search {
  display: flex;
  overflow: hidden;
  border: 1px solid #ccd8e7;
  border-radius: 10px;
}

.mdt-sidebar-search input {
  min-width: 0;
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 0;
  outline: 0;
}

.mdt-sidebar-search button {
  border: 0;
  padding: 0 13px;
  color: #fff;
  background: var(--mdt-blue);
  cursor: pointer;
}

.mdt-sidebar-cta {
  color: #fff;
  background: linear-gradient(145deg, var(--mdt-navy), var(--mdt-navy-2));
}

.mdt-sidebar-cta h2 { color: #fff; }
.mdt-sidebar-cta p { color: #bed0e7; font-size: 14px; }
.mdt-sidebar-cta a {
  display: inline-flex;
  padding: 10px 15px;
  border-radius: 9px;
  color: var(--mdt-navy);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mdt-comments {
  margin-top: 30px;
  padding: 34px;
  border: 1px solid var(--mdt-line);
  border-radius: 18px;
  background: #fff;
}

.mdt-comments .comments-title,
.mdt-comments .comment-reply-title { margin-top: 0; color: var(--mdt-ink); font-size: 26px; }
.mdt-comments .comment-list { margin: 0 0 30px; padding: 0; list-style: none; }
.mdt-comments .comment-body { margin-bottom: 16px; padding: 20px; border-radius: 12px; background: var(--mdt-bg); }
.mdt-comments label { display: block; margin-bottom: 6px; color: #3b4c64; font-size: 13px; font-weight: 700; }
.mdt-comments textarea,
.mdt-comments input[type='text'],
.mdt-comments input[type='email'],
.mdt-comments input[type='url'] {
  width: 100%;
  border: 1px solid #cad6e5;
  border-radius: 10px;
  background: #fff;
}
.mdt-comments textarea { min-height: 145px; }
.mdt-comments .submit { border: 0; border-radius: 10px; color: #fff; background: var(--mdt-blue); font-weight: 800; }

.mdt-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 65px 20px 22px;
  color: #aebfd5;
  background: #06162f;
}

.mdt-footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 45px;
}

.mdt-footer-logo img {
  width: 235px;
  height: auto;
  filter: brightness(0) invert(1);
}

.mdt-footer p { max-width: 340px; font-size: 13px; }
.mdt-footer h2 { margin: 4px 0 16px; color: #fff; font-size: 15px; }
.mdt-footer a { display: block; margin: 9px 0; color: #aebfd5; font-size: 13px; text-decoration: none; }
.mdt-footer a:hover { color: #fff; }

.mdt-footer-bottom {
  width: min(1180px, 100%);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .mdt-header-inner { min-height: 72px; }
  .mdt-logo img { height: 46px; max-width: 205px; }
  .mdt-menu-toggle { display: inline-grid; place-items: center; }
  .mdt-main-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--mdt-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(7,35,72,.16);
  }
  .mdt-main-nav.is-open { display: flex; flex-direction: column; }
  .mdt-main-nav a { padding: 7px 4px; }
  .mdt-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdt-related-grid { grid-template-columns: 1fr 1fr; }
  .mdt-single-layout { grid-template-columns: 1fr; }
  .mdt-sidebar { grid-template-columns: 1fr 1fr; }
  .mdt-sidebar-cta { grid-column: span 2; }
  .mdt-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .mdt-header-inner { width: calc(100% - 28px); }
  .mdt-logo img { height: 42px; max-width: 190px; }
  .mdt-category-inner { width: calc(100% - 20px); }
  .mdt-category-inner a { padding: 13px 11px; font-size: 12px; }
  .mdt-hero { padding: 60px 17px 56px; }
  .mdt-hero h1 { font-size: 39px; }
  .mdt-hero p { font-size: 14px; }
  .mdt-search input[type='search'] { font-size: 13px; }
  .mdt-search button { min-width: 84px; }
  .mdt-posts-section { width: calc(100% - 28px); padding: 50px 0 65px; }
  .mdt-section-title { align-items: start; flex-direction: column; }
  .mdt-section-title h2 { font-size: 30px; }
  .mdt-post-grid, .mdt-related-grid { grid-template-columns: 1fr; }
  .mdt-article-wrap { width: calc(100% - 24px); margin-top: 28px; }
  .mdt-article { padding: 32px 22px; }
  .mdt-article h1 { font-size: 35px; }
  .mdt-article-featured { margin: 0 -22px 30px; }
  .mdt-article-content { font-size: 16px; }
  .mdt-article-content h2 { font-size: 26px; }
  .mdt-sidebar { grid-template-columns: 1fr; }
  .mdt-sidebar-cta { grid-column: auto; }
  .mdt-comments { padding: 24px 20px; }
  .mdt-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mdt-footer-bottom { flex-direction: column; }
}
