* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background:  #ec7f37;  /*#b6cfe9; #EDE7DF*/;
  color: #2D2D2D;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: fadeIn 0.4s ease-in;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #FFC300; /* your yellow */
  z-index: 9999;
  transition: width 0.1s linear;
}

.article-body img {
  width: 600px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
}

.article-body .photo-credit {
  text-align: center;
  font-size: 0.75rem !important;
  line-height: 1.3;
  color: #777;
  margin-top: -15px !important;
  margin-bottom: 50px !important;
  font-style: italic;
}

body.dark .article-body .photo-credit {
  color: #aaa;
}

.article-body {
  max-width: 900px;
  margin: auto;
  padding: 20px 16px;
  background: #FFF8F2;
}

.article-body p:last-of-type {
  margin-bottom: 20px; /* reduce gap after article text */
}

.article-body h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 50px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  margin-bottom: 2em;
  margin-left: 50px;
  font-style: italic; 
  font-weight: lighter; 
  color: #294b73;
}

.article-body h3 {   
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em; 
    margin-block-end: 1em;
    margin-inline-start: 50px; 
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
  }

  .article-body p {
  font-size: 1.1rem;
  line-height: 1.8;  
  letter-spacing: 0.2px;
  margin-bottom: 1.6em;
  margin-left: 50px;  
  margin-right: 50px;
}




body.dark #progress-bar {
  background: #FFC300;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.container {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 60px 16px 20px;
  background: #FFF8F2; 
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding-bottom: 20px;
}

.content,
.posts {
  margin-bottom: 0;
  padding-bottom: 0;
}

.intro {
  margin: 30px 0;
  background-color: #FEDB00;/*#F7F48B; */
  padding: 10px;
  border-radius: 16px;
  background: #FEDB00;  /*#FFE066;*/ /*#FFE8A3;*/
  box-shadow: 0 8px 25px rgba(255, 200, 0, 0.15);
}

.intro img {
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.intro img:hover {
  transform: scale(1.02);
}

.intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a3a3a;
}

.srijana-post {
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #E7C6FF;
  background: #ffffff;
  transition: all 0.25s ease;
}

.srijana-post:hover {
  border-color: #CDB4DB;
  transform: translateY(-4px) scale(1.01);
}

.srijana-post h2 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.srijana-post h2 a {
  text-decoration: none;
  color: #222;
}

.srijana-post h2 a:hover {
  text-decoration: underline;
  color: #FFC300;
}

.srijana-post p:not(.post-meta) {
  font-size: 1.05rem;
}

.post-meta {
  font-size: 13px;
  color: #999;
}

.share-container {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.share-btn {
  width: 34px;
  height: 34px;
  border: 1px solid black;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  text-decoration: none;
}

.share-btn i {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-btn,
.share-btn:visited,
.share-btn:hover,
.share-btn:active {
  color: black;
}

.share-btn:hover {
  color: #fff;
  background: #FFC300;
}


.read-more {
  text-decoration: none;
  color: #222;
  font-size: 0.9rem;
}

body.dark .read-more {
  text-decoration: none;
  color: #FFC300;
  font-size: 0.9rem;
  text-decoration: none;
}

.container #theme-toggle {
  position: absolute;
  top: 15px;
  right: 16px;
}

#theme-toggle:hover {
  transform: rotate(15deg) scale(1.05);
}

.site-footer {
  border-top: 1px solid #E5E0D8;
  margin-top: 50px;
  padding: 20px 0;
  border-top: 2px solid #FFC300;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #F4EFEA; 
}

body.dark .site-footer {
  border-top: 1px solid #E5E0D8;
  margin-top: 50px;
  padding: 20px 0;
  border-top: 2px solid #FFC300;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #1e1e1e; 
}

.footer-social a {
  color: #555;
  margin: 0 6px;
  font-size: 18px;
  text-decoration: none;
}

.footer-social a:hover {
  color: #000;
}

.footer-copy {
  font-size: 0.75rem;
  color: #777;
}

body.dark .footer-social a {
  color: #AAA;
}

body.dark .footer-social a:hover {
  color: #FFC300;
}

body.dark .footer-copy {
  color: #777;
}

a {
  transition: color 0.2s ease;
  text-decoration: none;
}


body.dark .container {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 60px 16px 20px;
  background: #363333; 
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding-bottom: 40px;
}

body.dark .intro {
  background: #1E1E1E;
  /* border: 2px solid #FFC300; */
  color: #E0E0E0;
}

body.dark {
 background: #121212;
 color: #e0e0e0;
}

body.dark .intro p {
  color: #D6D6D6;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.home-header a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #6a1b9a;
}

body.dark .home-header h1 {
  color: #efe5e5;
  letter-spacing: -0.5px;
  text-decoration: none;
  margin: 0;              /* remove default top/bottom margin */
  line-height: 1;         /* remove extra vertical spacing */
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dark .home-header a {
  color: #FFC300;
  letter-spacing: -0.5px;
  text-decoration: none;
}

body.dark .home-sidebar h1  {
  color: #F6BE00;
  text-decoration: none;
}

.home-sidebar h1 {
  color: #484741;
  text-decoration: none;

}




.home-header h1 {
  margin: 0;              /* remove default top/bottom margin */
  line-height: 1;         /* remove extra vertical spacing */
  display: flex;
  align-items: center;
  gap: 10px;    /* aligns text vertically */
}

body.dark .srijana-post {
  background: #1e1e1e;
  border-color: #444;
  border: 2px solid #2E2E2E;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark .srijana-post h2 a {
  color: #EDEDED;
}

body.dark .srijana-post h2 a:hover {
  color: #FFC300; 
}

body.dark .srijana-post:hover {
  border-color: #FFC300;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 195, 0, 0.15);
}

body.dark .srijana-post p {
  color: #D6D6D6;
}

body.dark .share-btn {
  background: #2A2A2A;   
  color: #EDEDED;        
  border: 1px solid #444;
}

body.dark .share-btn:hover {
  background: #FFC300;
  color: #000;
}

body.dark .post-meta {
  color: #9A9A9A;
}


#theme-toggle {
  background: #EEE;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
   position: fixed;
  top: 15px;
  right: 16px;
  z-index: 1000;
}

body.dark #theme-toggle {
  background: #2A2A2A;
  color: #fff;
}
.back-link {
  display: inline-block;
  margin: 10px 0 20px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
}

.back-link:hover {
  color: #000;
  transform: translateX(-3px);
}

.page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px;
}

.article-end {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
  margin-bottom: 10px;
  flex-direction: column;
  gap: 10px;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  margin-top: 80px;
}


.article-end a,
.article-end .end-text {
  
  text-decoration: none
}


body.dark .article-end a {
  text-decoration: none;
  color: #FFC300;
}


.article-end .end-text {
  letter-spacing: 2px;
  color: #777;
  margin: 5px 0;
}

body.dark .article-end .end-text {
  letter-spacing: 2px;
  color: #FFC300;
  margin: 5px 0;
}

body.dark .article-body {
  background: #363333;
}

body.dark .article-body p,
body.dark .article-body h1,
body.dark .article-body h2,
body.dark .article-body h3,
body.dark .article-body li {
  color: #E0E0E0;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px auto;   /* centers block horizontally */
  width: fit-content; 
}

.pagination-container a {
  padding: 2px 5px;
  background: #eee;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  font-weight: 300;
}

.pagination-container a:hover {
  background: #ddd;
}

.pagination-container a.active-page {
  background: #e74c3c;
  color: white;
}

.search-container {
  position: relative;
  width: 260px;
  display: flex;
  align-items: center;
}

.search-container input {
  width: 320px;
  max-width: 90%;
  padding: 10px 14px;

  border: 1px solid #ddd;
  border-radius: 6px;

  font-size: 15px;
  font-family: inherit;

  background: #fff;
  color: #333;

  outline: none;
  transition: all 0.2s ease;
}

#searchInput {
  width: 30%;
  height: 38px;           /* FIXED HEIGHT = consistent alignment */
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
  box-sizing: border-box;
}

.search-container input:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-top: 40px;
  margin-left: 50px;
}

.search-container {
  position: relative;
  width: 260px;
}

#searchInput {
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: var(--bg-color, #fff);
  border: 1px solid #ddd;
  border-radius: 10px;
  display: none;
  z-index: 999;
}

.search-results a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: inherit;
}

.search-results a:hover {
  background: #f2f2f2;
}

.beehiiv-embed {
width: 400px;
height: 47px;
margin: 0;
border-radius: 0px 0px 0px 0px !important; 
background-color: transparent; 
box-shadow: 0 0 #0000; 
max-width: 100%;
}
               
.subscribe-section {
  text-align: center;
  margin: 10px 0 10px 0; /* reduce top gap */
  padding-top: 10px;
  padding-bottom: 0;
  border-top: 1px solid #ddd;
  height: 60px;
}

.subscribe-section h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.subscribe-section p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.subscribe-box {
  display: flex;
  justify-content: center;
  height: 140px;
}

.subscribe-box iframe {
  width: 100%;
  max-width: 500px;
  height: 150px;
  border: none;
  overflow: hidden;
}

/* Dark mode fix */
body.dark .subscribe-section p {
  color: #aaa;
}

body.dark .subscribe-section {
  border-top: 1px solid #333;
}


.border{
    position:absolute;
    inset:18px;
    border:2px solid #9fb6cf;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.bottom-section{
    text-align:left;
    font-family:Arial, sans-serif;
    font-size:12px;
    padding-left: 35px;
    margin-top: 30px;
}

h1{
    margin-top:0px;
    font-size:30px;
    line-height:1.05;
    font-weight:400;
    text-align:center;
    color:#294b73;
}


/* =========================================================
   HOMEPAGE HERO LAYOUT
   Left: photo + introduction
   Right: search + subscribe + book reviews
   ========================================================= */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.9fr);
  gap: 42px;
  align-items: start;
  margin: 0px 0 0px;
  padding: 10px;
  background: #FEDB00;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(255, 200, 0, 0.15);
}

.home-hero-sub {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 1.4fr);
  gap: 32px;
  align-items: start;
  margin: 0px 0 0px;
  padding: 10px;
  background: #fff7ee;
  border-radius: 0px;
  /* box-shadow: 0 8px 25px rgba(255, 200, 0, 0.15); */
}


/* The yellow background now belongs to the whole two-column hero. */
.home-hero .intro {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Image and paragraph have exactly the same left-column width. */
.home-hero .intro img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 22px;
}

.home-hero .intro p {
  width: 100%;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a3a3a;
}

/* Right-hand column */
.home-sidebar {
  min-width: 0;
  padding: 0px 14px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.home-sidebar p{
  font-size: 14px;
}

.sidebar-block {
  width: 100%;
}

.sidebar-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #2D2D2D;
}

/* Search */
.search-block .search-container {
  width: 100%;
  position: relative;
}

.search-block #searchInput {
  width: 100%;
  max-width: none;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid;
  border-color: #000000;
  background: rgba(255,255,255,0.92);
  font-family: inherit;
  font-size: 14px;
}

.search-block #searchInput:focus {
  border-color: #2D2D2D;
  box-shadow: 0 0 0 2px rgba(45,45,45,0.08);
}

/* Search dropdown */
.search-block .search-results {
  top: calc(100% + 7px);
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  overflow: hidden;
}

/* Subscribe */
.subscribe-block {
  padding-top: 2px;
}

.subscribe-box {
  display: block;
  width: 100%;
  height: 70px;
}

.subscribe-block .beehiiv-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 70px;
  border: 0;
}

/* Book Reviews */
.book-review-block {
  padding-top: 2px;
}

.book-review-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(45,45,45,0.25);
  border-radius: 12px;
  color: #2D2D2D;
  background: rgba(255,255,255,0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.book-review-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.62);
  color: #2D2D2D;
}

.book-review-icon {
  font-size: 24px;
  flex: 0 0 auto;
}

.book-review-link strong,
.book-review-link small {
  display: block;
}

.book-review-link strong {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.book-review-link small {
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.75;
}

/* Dark mode */
body.dark .home-hero {
  background: #1E1E1E;
  border: 2px solid #FFC300;
}

body.dark .home-hero .intro p,
body.dark .home-hero .sidebar-block h3 {
  color: #E0E0E0;
}

body.dark .search-block #searchInput {
  background: #2A2A2A;
  color: #EDEDED;
  border-color: #555;
}

body.dark .search-block #searchInput::placeholder {
  color: #AAA;
}

body.dark .search-block .search-results {
  background: #2A2A2A;
  border-color: #444;
}

body.dark .book-review-link {
  color: #EDEDED;
  background: #2A2A2A;
  border-color: #555;
}

body.dark .book-review-link:hover {
  background: #333;
  color: #FFC300;
}

/* =========================================
   TABLET & MOBILE
   ========================================= */

@media (max-width: 768px) {

  /* Home hero */
  .home-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
  }

  .home-sidebar {
    padding: 0 4px 15px;
    gap: 24px;
  }

  /* .home-hero .intro img {
    aspect-ratio: 4 / 3;
  } */

  /* Main container */
  .container {
    padding: 50px 14px;
  }

  /* Article */
  .article-body h1 {
    font-size: 1.6rem;
  }

  .article-body p {
    margin-left: 0px;
    margin-right: 0px;
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 480px) {

  .home-hero {
    padding: 8px;
    border-radius: 14px;
  }

  .home-hero .intro p {
    font-size: 1rem;
  }
}