/* ==========================================================================
   Anoy Howlader — Personal Portfolio, Published Books & Creative Hub
   Theme: Clean Solid Matte Dark Mode (Almost Plain Colors, No Heavy Gradients)
   Font: Montserrat (+ Hind Siliguri for Bengali)
   ========================================================================== */

:root {
  --bg-base: #0a0c10;
  --bg-surface: #11151d;
  --bg-elevated: #171c26;
  --bg-glass: rgba(10, 12, 16, 0.92);

  --border-subtle: #1f2633;
  --border-hover: #384459;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #8b98a9;

  /* Almost Plain Solid Cool Slate/Blue Accent — No Heavy Gradients */
  --accent-solid: #60a5fa;
  --accent-solid-hover: #93c5fd;
  --accent-btn-bg: #e2e8f0;
  --accent-btn-text: #0a0c10;
  --accent-danger: #f43f5e;

  --shadow-lg: 0 18px 42px -12px rgba(0, 0, 0, 0.75);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-btn: 10px;
  --radius-full: 9999px;

  --font-main: 'Montserrat', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.22s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: var(--font-main);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Header (Clean Brand Title with No Subtitle Text Underneath)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.brand-name {
  color: #cbd5e1; /* Refined grayish, whitish & light blueish slate tone */
  font-weight: 800;
  white-space: nowrap;
  transition: var(--transition);
}

.brand-logo:hover .brand-name {
  color: #93c5fd; /* Soft light blueish highlight on hover */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.48rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-radius: var(--radius-btn);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.3rem;
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.92rem;
  font-size: 0.76rem;
}

.admin-trigger-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.admin-trigger-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.admin-trigger-btn.logged-in {
  background: var(--bg-elevated);
  border-color: var(--accent-solid);
  color: var(--accent-solid);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section (Clean Plain Colors, Monochrome Portrait)
   ========================================================================== */
.hero-section {
  padding: 135px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.35rem, 4.6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-title .gradient-span {
  color: #ffffff;
}

.hero-roles {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent-solid);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Monochrome Dark Studio Portrait Frame — Solid Matte Border */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 385px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #050608;
  position: relative;
}

.portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.08);
  transition: transform 0.45s ease;
}

.portrait-frame:hover .portrait-inner img {
  transform: scale(1.02);
}

/* ==========================================================================
   Section Scaffolding
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-alt {
  background: #0d1017;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-solid);
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-size: clamp(1.7rem, 2.9vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 0.94rem;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Published Books Showcase Grid
   ========================================================================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.85rem;
}

.book-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.book-card-top {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.book-cover-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 5 / 7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.04);
  transition: transform 0.35s ease;
}

.book-card:hover .book-cover-wrap img {
  transform: scale(1.03);
}

.book-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.book-genre-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.book-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.book-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.book-price-tag {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.price-bdt-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.68rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid rgba(96, 165, 250, 0.38);
  font-size: 1.04rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

.price-usd-muted {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.book-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.book-specs-row span {
  background: var(--bg-elevated);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.book-short-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

.book-actions .btn {
  flex: 1;
  min-width: 130px;
}

/* ==========================================================================
   Filter Bar & Portfolio / Writings / Projects Grid
   ========================================================================== */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tab-btn {
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  border-color: var(--accent-btn-bg);
}

.search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 340px;
}

.search-box input {
  width: 100%;
  padding: 0.58rem 1rem 0.58rem 2.35rem;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--border-hover);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.post-thumb {
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  position: relative;
  background: #080a0f;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.04);
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.03);
}

.post-cat-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(10, 12, 16, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.post-gallery-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(10, 12, 16, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.post-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.post-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

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

.post-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.tag-chip {
  font-size: 0.69rem;
  font-weight: 600;
  padding: 0.18rem 0.58rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.post-footer .btn {
  flex: 1 1 auto;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  padding: 0.5rem 0.78rem;
}

/* ==========================================================================
   Extra Images Gallery inside Post / Project Description Modal
   ========================================================================== */
.detail-gallery-section {
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.detail-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #06080c;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  position: relative;
}

.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
  transition: transform 0.3s ease;
}

.detail-gallery-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Achievements & About Section
   ========================================================================== */
.about-achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.about-photo-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.about-photo-row img {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
  border: 1px solid var(--border-hover);
}

.skills-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}

.skill-box h4 {
  font-size: 0.78rem;
  color: var(--accent-solid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-pills span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.24rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.timeline-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-solid);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(3px);
  border-color: var(--border-hover);
}

.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
}

.timeline-org {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-solid);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Contact & Be A Patron Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-card, .patron-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  font-size: 0.83rem;
  font-weight: 700;
}

.social-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

/* ==========================================================================
   Dedicated Detail Modal (Book Description Page & Post Reader)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 6, 9, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-danger);
  border-color: var(--accent-danger);
}

.book-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.25rem;
  align-items: start;
}

.book-detail-cover {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.book-excerpt-box {
  margin: 1.5rem 0;
  padding: 1.2rem 1.45rem;
  border-left: 3px solid var(--accent-solid);
  background: var(--bg-base);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-primary);
}

.prose-content {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  white-space: pre-line;
}

.prose-content h3 {
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
  font-size: 1.16rem;
}

/* ==========================================================================
   Private Admin Dashboard Drawer / Modal
   ========================================================================== */
.admin-panel-window {
  max-width: 1120px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  padding: 0.66rem 0.92rem;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-solid);
}

textarea.form-control {
  min-height: 105px;
  resize: vertical;
}

.admin-module-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}

.admin-module-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-solid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  padding: 0.88rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: var(--transition);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer (Full Section Menu + Clean Copyright, No Extra Tagline)
   ========================================================================== */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: #06080b;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.15rem;
  list-style: none;
}

.footer-nav-menu a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.footer-nav-menu a:hover {
  color: var(--text-primary);
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Responsive Design (Mobile & Tablet Friendly)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-achievements-grid,
  .contact-grid,
  .book-detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .portrait-frame {
    max-width: 285px;
  }

  .book-detail-cover {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #0a0c10;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.45rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .books-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .book-card-top {
    grid-template-columns: 110px 1fr;
  }

  .hero-section {
    padding-top: 108px;
  }

  .modal-window {
    padding: 1.35rem;
  }
}
