
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #ffffff; 
  color: #0d1b2a; 
  line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
header {
  background-color: #ffffff; 
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b1d51; 
}

/* Navigation Links */
header .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header .nav-links li a {
  text-decoration: none;
  color: #0b1d51; 
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect */
header .nav-links li a:hover {
  color: #1e90ff; 
  transform: translateY(-2px); 
}


/* ===== THEME TOGGLE BUTTON ===== */
.theme-btn {
  background-color: var(--accent-color, #1e90ff);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-btn:hover {
  background-color: #0b1d51;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Adjust position for smaller screens */
@media screen and (max-width: 768px) {
  .theme-btn {
    margin-top: 1rem;
  }
}




/* ===== HERO SECTION ===== */
.hero {
  background-color: #ffffff; 
  padding: 6rem 2rem;
  display: flex;
  justify-content: center; 
  text-align: center; 
  position: relative;
  overflow: hidden;
}

/* Subtle background accent shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30,144,255,0.2), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0,123,255,0.15), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Hero Text Container */
.hero-content {
  max-width: 800px;
  z-index: 1; 
}

/* Headings and Paragraphs */
.hero-text h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #0b1d51;
  margin-bottom: 1rem;
  animation: fadeUp 1s ease forwards;
}

.hero-text h3 {
  font-size: 1.6rem;
  font-style: italic;
  color: #0b1d51;
  margin-bottom: 1rem;
  animation: fadeUp 1.2s ease forwards;
}

.hero-text p {
  font-size: 1.2rem;
  font-style: italic;
  color: #0b1d51;
  margin-bottom: 2rem;
  animation: fadeUp 1.4s ease forwards;
}

.hero-text .tagline {
  color: #1e90ff;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* Button Styling */
.hero-text .btn {
  display: inline-block;
  background-color: #1e90ff;
  color: #ffffff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-text .btn:hover {
  background-color: #0b1d51;
  transform: scale(1.05);
}


@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .hero-text h3 {
    font-size: 1.3rem;
  }

  .hero-text p,
  .hero-text .tagline {
    font-size: 1rem;
  }
}




/* ===== ABOUT ===== */
.about-content {
  display: flex;
  align-items: center;
  gap: 1.5rem; 
  padding: 3rem 0;
}

.about-text p {
  margin-bottom: 1rem;
}

/* ===== ABOUT TEXT STYLING ===== */
.about-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #0b1d51;
  font-style: italic;
  max-width: 600px;
}

.about-img img {
  width: 100%;
  max-width: 500px; 
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(30,58,138,0.1);
}



/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 4rem 0;
  text-align: center;
}

.projects h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1d51;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.project-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  max-width: 350px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0b1d51; 
}

.project-card p {
  font-style: italic; 
  margin-bottom: 0.5rem;
  color: #1e3a8a; 
}

.project-card .tech {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3b5b9b;
  margin-bottom: 1rem;
}

.project-card .btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #0b1d51; 
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-card .btn:hover {
  background-color: #1e90ff;
  transform: scale(1.05);
}

.writing-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.writing-img {
  flex: 1;
}

.writing-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(30,58,138,0.1);
}

.writing-text {
  flex: 1;
  font-style: italic;
  max-width: 62ch;
}


.writing-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.writing-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== FEATURED PROJECT ===== */
.featured-project {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2rem;
  margin: 2rem auto 3rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30,144,255,0.08), rgba(255,255,255,1));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.badge {
  display: inline-block;
  background: #0b1d51;
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.featured-title {
  font-size: 2rem;
  color: #0b1d51;
  margin-bottom: 0.8rem;
}

.featured-desc {
  color: #1e3a8a;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.featured-points {
  margin: 0 0 1rem 1.1rem;
  color: #0d1b2a;
}

.featured-points li {
  margin-bottom: 0.5rem;
}

.featured-tech {
  font-weight: 600;
  color: #1e90ff;
  margin-bottom: 1.2rem;
}

.featured-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid #0b1d51;
  color: #0b1d51 !important;
}

.btn-outline:hover {
  background: #0b1d51 !important;
  color: #fff !important;
}

.featured-right img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media screen and (max-width: 900px) {
  .featured-project {
    grid-template-columns: 1fr;
  }
  .featured-right img {
    max-height: 240px;
  }
}


/* ===== WRITING GRID CARDS ===== */
.writing-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  margin-top: 3rem;
  align-items: flex-start;
}


.writing-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.writing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.writing-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0b1d51; 
  margin-bottom: 0.8rem;
}

.writing-card p {
  font-style: italic;
  color: #1e3a8a; 
  margin-bottom: 1rem;
}

.writing-card .btn {
  align-self: flex-start;
  background-color: #0b1d51;
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.writing-card .btn:hover {
  background-color: #1e90ff; 
  transform: scale(1.05);
}


/* ===== TECH STACK SECTION ===== */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; 
  margin-top: 1.5rem;
}

.skills-list span {
  background-color: #e0e7ff; 
  color: #0b1d51;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: default;
}

.skills-list span:hover {
  transform: translateY(-2px);
  background-color: #1e90ff; 
  color: #ffffff;
}

/* Tech Section Heading */
.skills h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1d51; 
  text-align: center;
  margin-bottom: 2rem;
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills-list span {
  animation: fadeInUp 0.6s ease forwards;
}


/* ===== CONTACT TEXT STYLING ===== */
.contact h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #0b1d51; 
  margin-bottom: 1.5rem;
}

.contact p {
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic; 
  color: #0d1b2a;
  margin-bottom: 1rem;
  line-height: 1.7;
}


.contact p:first-of-type {
  font-weight: 500;
  color: #1e3a8a; 
}


/* ===== CONTACT ICONS ===== */
.contact-links {
  list-style: none;
  display: flex;
  gap: 1rem; 
  justify-content: center; 
  margin-top: 1rem;
  padding: 0;
}

.contact-links li {
  display: inline-block;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;  
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-links a img {
  width: 60%; 
  height: auto;
}

.contact-links a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background-color: #1e90ff; 
}

.contact-links a:hover img {
  filter: brightness(0) invert(1); 
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 600px) {
  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: #ffffff; 
  padding: 2rem 0;
  border-top: 1px solid #e0e7ff; 
  color: #0b1d51; 
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; 
}

.footer-content p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Social Icons */
.footer .social-icons {
  display: flex;
  gap: 1rem;
}

.footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.footer .social-icons a img {
  width: 60%;
  height: auto;
}

.footer .social-icons a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background-color: #1e90ff;
}

.footer .social-icons a:hover img {
  filter: brightness(0) invert(1);
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}


/* ===== DARK MODE ===== */
body.dark-mode {
  background-color: #0b0c10;
  color: #f1f1f1;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #111;
  color: #eee;
}

body.dark-mode .theme-btn {
  background-color: #ffd700;
  color: #111;
}


/* ===============================
   PROJECT BUTTON FIX (Live Demo + GitHub)
   Add at bottom — do not remove anything above
================================ */

/* If your buttons are inside .featured-links (Featured Project) */
.featured-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* If your buttons are inside .project-links (regular project cards) */
.project-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Make BOTH buttons the same pill style */
.featured-links .btn,
.project-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Ensure outline button matches pill look perfectly */
.featured-links .btn.btn-outline,
.project-links .btn.btn-outline {
  border-radius: 999px;
}

/* Optional: on small screens stack nicely */
@media screen and (max-width: 480px) {
  .featured-links,
  .project-links {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-links .btn,
  .project-links .btn {
    width: 100%;
  }
}


/* ===== PROJECT CARD BUTTON ROW (fixes blue link issue) ===== */
.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* make sure project links never look like default links */
.project-links a {
  text-decoration: none;
}

/* ensure both buttons look consistent */
.project-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  text-align: center;
}

/* if anything overrides outline button inside cards, force it */
.project-card .btn.btn-outline {
  background: transparent !important;
  border: 2px solid #0b1d51 !important;
  color: #0b1d51 !important;
}

.project-card .btn.btn-outline:hover {
  background: #0b1d51 !important;
  color: #ffffff !important;
}


/* FORCE Live Demo + GitHub to be buttons in project cards */
.project-card .project-links a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 50px !important;
  background-color: #0b1d51 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.project-card .project-links a.btn:hover {
  background-color: #1e90ff !important;
  transform: scale(1.05) !important;
}

.project-card .project-links a.btn.btn-outline {
  background: transparent !important;
  border: 2px solid #0b1d51 !important;
  color: #0b1d51 !important;
}

.project-card .project-links a.btn.btn-outline:hover {
  background: #0b1d51 !important;
  color: #fff !important;
}


/* ===============================
   FIX: make BOTH Live Demo + GitHub show as pill buttons
   Works anywhere .project-links exists (featured + normal cards)
================================ */

.project-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* kill default link look */
.project-links a {
  text-decoration: none !important;
}

/* base button look (Live Demo) */
.project-links a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  background: #0b1d51 !important;
  color: #fff !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  border: 2px solid #0b1d51 !important;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-links a.btn:hover {
  background: #1e90ff !important;
  border-color: #1e90ff !important;
  transform: scale(1.05) !important;
}

/* outline button look (GitHub) */
.project-links a.btn.btn-outline {
  background: transparent !important;
  color: #0b1d51 !important;
  border: 2px solid #0b1d51 !important;
}

.project-links a.btn.btn-outline:hover {
  background: #0b1d51 !important;
  color: #fff !important;
  transform: scale(1.05) !important;
}


.series-card {
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.08);
}

.series-tag {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: -6px;
}

.series-section {
  margin-top: 3rem;
  padding-top: 1rem;
}

.series-head h2 {
  margin-bottom: 0.25rem;
}

.series-sub {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.series-entry {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
}

.series-entry h4 {
  margin: 0 0 6px;
}

.series-date {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ===== Naughty Nectar Series page ===== */
.nns-body {
  background: #050505;
  color: rgba(255, 255, 255, 0.92);
}

/* MAIN WRAPPER — give it more breathing room */
.nns-wrap {
  max-width: 960px;              /* was 860px */
  margin: 0 auto;
  padding: 36px 22px 100px;      /* more vertical space */
}

/* TOP BAR */
.nns-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.nns-back {
  text-decoration: none;
  font-weight: 700;
  opacity: 0.8;
}

.nns-back:hover {
  opacity: 1;
}

/* HEADER — keep it airy */
.nns-header {
  padding: 24px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.nns-title {
  font-size: 2.2rem;
  margin: 0 0 10px;
}

.nns-sub {
  margin: 0;
  opacity: 0.75;
  max-width: 60ch;              /* allow longer breath */
  line-height: 1.6;
}

/* LIST — THIS IS IMPORTANT */
.nns-list {
  display: flex;
  flex-direction: column;
  gap: 28px;                    /* more separation */
}

/* ENTRY — make it feel like a “world”, not a card */
.nns-entry {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px 26px;           /* more internal space */
  background: rgba(255, 255, 255, 0.035);
}

/* ENTRY HEADER */
.nns-entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.nns-entry-title {
  font-size: 1.25rem;
  margin: 0;
}

.nns-entry-date {
  font-size: 0.85rem;
  opacity: 0.65;
  white-space: nowrap;
}

/* MAIN TEXT — DO NOT CONSTRAIN */
.nns-entry-text {
  max-width: 70ch;              /* KEY: prevents “short boxed” look */
}

.nns-entry-text p {
  margin: 0 0 16px;
  line-height: 1.75;
}

/* DIVIDER */
.nns-divider {
  text-align: center;
  opacity: 0.7;
  letter-spacing: 0.15em;
  margin: 28px 0;
}

/* STATES */
.muted {
  opacity: 0.65;
}

.nns-locked {
  opacity: 0.8;
}
@media (max-width: 900px) {
  .writing-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.writing-content{
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.writing-img{
  flex: 1;
}

.writing-img img{
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(30,58,138,0.1);
}

.writing-text{
  flex: 1;
  max-width: 62ch;
}

.writing-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 0;
}

@media (max-width: 900px){
  .writing-content{
    flex-direction: column;
  }
  .writing-grid{
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .writing-text{
    max-width: 100%;
  }
}
/* ===== WRITING DROPDOWN (clean reveal) ===== */
.writing-drop{
  margin-top: 14px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #0b1d51;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.writing-drop:hover{
  opacity: 0.85;
  transform: translateY(-1px);
}

.drop-arrow{
  display: inline-block;
  transition: transform 0.25s ease;
}

/* hidden by default */
.writing-drop-area{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
}

/* open state */
.writing-drop-area.open{
  max-height: 1400px; /* big enough for your cards */
  opacity: 1;
  transform: translateY(0);
}

.writing-drop.open .drop-arrow{
  transform: rotate(180deg);
}
/* ===== Writing Drop Button ===== */
.writing-toggle {
  margin-top: 1.2rem;
  background: none;
  border: none;
  padding: 0;
  font-style: italic;
  font-size: 1rem;
  color: #1e3a8a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.writing-toggle:hover {
  text-decoration: underline;
}

.writing-toggle .chevron {
  transition: transform 0.3s ease;
}

/* rotate arrow when open */
.writing-toggle.open .chevron {
  transform: rotate(180deg);
}

/* ===== Drop Area ===== */
.writing-drop {
  margin-top: 1.5rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

/* when opened */
.writing-drop.open {
  max-height: 1200px; /* enough space for cards */
}
/* ===== Writing Drop Interaction ===== */

/* button look */
.glimpse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-style: italic;
  color: #0b1d51;
  background: #f2f4f8;
  border-radius: 999px;
  cursor: pointer;
  width: fit-content;
  transition: background 0.3s ease;
}

.glimpse-btn:hover {
  background: #e6e9f2;
}

/* arrow animation */
.glimpse-btn span {
  transition: transform 0.3s ease;
}

/* hide cards initially */
.writing-grid {
  display: none;
  margin-top: 2.5rem;
}

/* when open */
.writing.open .writing-grid {
  display: grid;
}

/* rotate arrow */
.writing.open .glimpse-btn span {
  transform: rotate(180deg);
}
.glimpse-btn {
  margin-top: 18px;
  background: #e9eef7;
  border: 0;
  padding: 12px 18px;
  border-radius: 999px;
  font-style: italic;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.writing-drop {
  margin-top: 18px;
  display: none;
}

section.writing.open .writing-drop {
  display: block;
}
/* Button look */
.glimpse-btn{
  border: none;
  background: #eef2ff;
  color: #0b1d51;
  padding: 12px 18px;
  border-radius: 999px;
  font-style: italic;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

/* Drop hidden by default */
.writing-drop{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s ease, opacity .3s ease;
}

/* When section is open, show drop */
.writing.open .writing-drop{
  max-height: 2000px;
  opacity: 1;
  margin-top: 24px;
}

/* Arrow rotates */
.writing.open .glimpse-arrow{
  display: inline-block;
  transform: rotate(180deg);
  transition: transform .2s ease;
}
.glimpse-arrow{
  display:inline-block;
  transition: transform .2s ease;
}
.glimpse-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;

  background: #e9edf5;
  color: #0b1d51;
  font-style: italic;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glimpse-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11, 29, 81, 0.08);
}

.glimpse-btn:active {
  transform: scale(0.99);
}

.glimpse-arrow {
  font-style: normal;
  opacity: 0.75;
}
/* ===== Writing Hub (writing.html) ===== */
.writing-hub {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0 90px;
}

.writing-hub-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}

.writing-hub-head .nns-title {
  margin: 0 0 8px;
}

.writing-hub-head .nns-sub {
  margin: 0;
  max-width: 65ch;
}

.writing-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.writing-hub-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(11, 29, 81, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.writing-hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.writing-hub-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0b1d51;
}

.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.12);
  color: #0b1d51;
  border: 1px solid rgba(30, 144, 255, 0.2);
  white-space: nowrap;
}

.chip-soon {
  opacity: 0.75;
}

.writing-hub-card .btn {
  margin-top: 8px;
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 900px) {
  .writing-hub-top {
    grid-template-columns: 1fr;
  }
  .writing-hub-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== STORY BLOG (BadGirlsBible vibe) ===== */
.story-blog {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 18px 90px;
}

.story-blog-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.blog-back {
  text-decoration: none;
  font-weight: 700;
  color: #0b1d51;
  opacity: 0.8;
}

.blog-back:hover {
  opacity: 1;
}

.blog-brand {
  flex: 1;
}

.blog-title {
  font-size: 2.2rem;
  margin: 0 0 4px;
  color: #0b1d51;
  font-weight: 800;
}

.blog-tagline {
  margin: 0;
  font-style: italic;
  color: #1e3a8a;
  opacity: 0.85;
}

.story-blog-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 29, 81, 0.08);
}

.story-item {
  padding: 4px 0 18px;
  border-bottom: 1px solid rgba(11, 29, 81, 0.08);
}

.story-title {
  font-size: 1.7rem;
  margin: 0 0 10px;
  color: #0b1d51;
  font-weight: 800;
}

.story-excerpt {
  margin: 0 0 12px;
  color: #0d1b2a;
  font-style: italic;
  line-height: 1.85;
  max-width: 70ch;
}

.story-link {
  display: inline-block;
  text-decoration: none;
  color: #1e90ff;
  font-weight: 700;
}

.story-link:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 700px) {
  .blog-title { font-size: 1.9rem; }
  .story-title { font-size: 1.45rem; }
}



/* ===== Content Warning Modal ===== */
.cw-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.cw-overlay.open{ display: flex; }

.cw-modal{
  width: min(520px, 95vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

.cw-title{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.cw-text{
  margin: 0 0 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.cw-check{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.cw-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cw-btn{
  border: 1px solid rgba(0,0,0,0.12);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.cw-btn--ghost{ background: #fff; }
.cw-btn--solid{ background: #111; color: #fff; border-color: #111; }
