/*
Theme Name: Ikram Rauhi Blog
Theme URI: https://ikramrauhi.com/
Author: Dr Ikram Rauhi
Description: WordPress blog theme inspired by the main ikramrauhi.com profile website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ikramrauhi-blog
*/

:root {
  --navy: #1f2a44;
  --accent: #3a7bd5;
  --light: #f4f7fb;
  --dark: #1a1a1a;
  --muted: #667085;
  --line: #e6edf6;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(31, 42, 68, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--light);
  color: var(--dark);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-family: Poppins, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle {
  flex-direction: column;
  gap: 5px;
}

.site-nav {
  display: none;
  position: absolute;
  inset: 60px 0 auto 0;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px 18px;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-nav a {
  display: block;
  color: #d4dae7;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--white);
}

.main-content {
  flex: 1;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 52px 0 44px;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.32;
}

.blog-hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -110px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(58, 123, 213, 0.26);
  filter: blur(70px);
}

.blog-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #b9c6da;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title,
.page-title,
.entry-title {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  color: inherit;
  line-height: 1.12;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4.2rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: #d4dae7;
  font-size: 0.95rem;
}

.script-line {
  margin: 12px 0 0;
  color: var(--accent);
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  line-height: 1.2;
}

.hero-profile {
  display: none;
}

.section {
  padding: 44px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
  text-align: center;
}

.section-heading h2,
.page-title {
  margin: 0;
  color: var(--navy);
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading span {
  display: inline-block;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.post-grid {
  display: grid;
  gap: 22px;
}

.post-card {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #eef2f7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31, 42, 68, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card-media {
  aspect-ratio: 16 / 9;
  background: #dce7f7;
}

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

.post-card-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.post-meta {
  color: #8a94a6;
  font-size: 0.78rem;
  font-weight: 700;
}

.post-card-title {
  margin: 8px 0 12px;
  color: var(--navy);
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.pagination {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
}

.pagination .current,
.pagination a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.entry-wrap {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 42px 0;
}

.entry-header {
  margin-bottom: 24px;
  text-align: center;
}

.entry-title {
  color: var(--navy);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
}

.entry-featured {
  overflow: hidden;
  margin: 24px 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.entry-featured img {
  width: 100%;
}

.entry-content {
  overflow: hidden;
  background: var(--white);
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 24px;
  color: #344054;
  font-size: 1rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.25;
}

.entry-content a {
  color: var(--accent);
  font-weight: 700;
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--light);
  color: var(--navy);
  font-weight: 600;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px;
}

.entry-footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.button-link,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  font-weight: 800;
}

.search-form {
  display: flex;
  gap: 10px;
  margin: 24px auto 0;
  max-width: 560px;
}

.search-field {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
}

.search-submit {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid #eef2f7;
  text-align: center;
}

.comments-area {
  padding-top: 0;
}

.comment-list {
  padding-left: 20px;
}

.comment-list .comment {
  margin: 18px 0;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.comment-form input[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding: 34px 0;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 900;
}

.footer-name {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.footer-name span {
  display: block;
  color: #aeb8c9;
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-copy,
.footer-list {
  color: #aeb8c9;
  font-size: 0.82rem;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-list a:hover {
  color: var(--white);
}

.footer-title {
  margin: 0 0 12px;
  font-family: Poppins, Inter, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.footer-social a {
  color: #aeb8c9;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(31, 42, 68, 0.82);
  color: #8e99ad;
  font-size: 0.72rem;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  text-align: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 76px;
    justify-content: center;
  }

  .brand,
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
  }

  .site-nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin-top: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
  }

  .site-nav a:hover::after,
  .site-nav .current-menu-item > a::after {
    width: 100%;
  }

  .blog-hero {
    padding: 82px 0 76px;
  }

  .blog-hero-grid {
    grid-template-columns: 1fr 280px;
  }

  .hero-profile {
    display: block;
    justify-self: end;
    width: 220px;
    overflow: hidden;
    border: 8px solid var(--white);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2,
  .page-title {
    font-size: 1.9rem;
  }

  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .entry-wrap {
    padding: 70px 0;
  }

  .entry-content {
    padding: 42px;
    font-size: 1.06rem;
  }

  .footer-grid {
    grid-template-columns: 1.25fr 1fr 0.8fr;
    gap: 46px;
    padding: 58px 0;
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
