
/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; color: #222; background: #fafbfc; }

/* Layout base to keep footer at bottom */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* Container */
.site-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: linear-gradient(180deg,#f5f7fb 0%, #eef3fb 100%); border-bottom: 1px solid #e6eef8; position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo img { height: 70px; width: auto; display: block; }

/* Nav */
.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a { color: #223249; text-decoration: none; font-weight: 600; padding: 8px 6px; border-radius: 6px; }
.main-nav a:hover { background: rgba(34,50,73,0.06); }
.main-nav a.active { color: #0b63c6; box-shadow: inset 0 -3px 0 0 #0b63c6; padding-bottom: 5px; }

/* Main content styles */
main { padding: 28px 0; }
.hero { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.hero .intro { flex: 1; }
.hero h1 { font-size: 34px; color: #12202b; margin-bottom: 6px; }
.hero p.lead { color: #475569; font-size: 16px; margin-bottom: 12px; }
.profile { width: 160px; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(17,24,39,0.06); }
.profile img { width: 100%; display: block; }

/* ====== Section and Card Styling ====== */
.section {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
  margin-bottom: 30px;
}

/* ====== Section Heading (Main Title) ====== */
.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a; /* Deep Navy Blue */
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

/* Subtle underline accent under headings */
.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ====== Grid Layout ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ====== Card Design ====== */
.card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* ====== Card Heading ====== */
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e40af; /* Professional Royal Blue */
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

/* ====== Card Description ====== */
.card p {
  color: #334155; /* Slate Gray */
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}


/* Buttons */
.btn { display: inline-block; padding: 8px 12px; border-radius: 6px; font-weight: 600; text-decoration: none; color: #fff; background: #0b63c6; }
.btn.secondary { background: #6b7280; }

/* Books buttons (Amazon - blue coming soon, Upcoming - grey disabled) */ 
.books-section {
  text-align: center; /* centers everything inside this section */
  padding: 40px 20px;
}
.btn.amazon { background: #0073e6; color: #fff; }
.btn.upcoming { background: #d1d5db; color: #374151; cursor: not-allowed; }

/* Footer */
.site-footer { background: #0b1220; color: #e6eef8; padding: 18px 0 16px 0; margin-top: 28px; border-top: 4px solid rgba(255,255,255,0.02); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Copyright */
.site-footer .copyright { font-size: 14px; color: #dfe8f7; font-weight: 600; }
.site-footer .heart { color: #ff4d6d; }

/* Social icons */
.socials { display: flex; gap: 14px; align-items: center; }
.social { font-size: 20px; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; }
.social.linkedin { color: #0A66C2; background: rgba(10,102,194,0.08); }
.social.github { color: #ffffff; background: rgba(255,255,255,0.06); }
.social.medium { color: #ffffff; background: rgba(255,255,255,0.06); }
.social.youtube { color: #FF0000; background: rgba(255,0,0,0.08); }
.social:hover { transform: translateY(-2px); opacity: 0.95; transition: 120ms ease; }

/* Responsive tweaks */
@media (max-width: 820px) {
  .hero { flex-direction: column; align-items: stretch; }
  .profile { width: 140px; margin: 0 auto; }
  .main-nav { flex-wrap: wrap; gap: 10px; }
}
/* CONTACT two-column layout (form left, details right) */
.contact-container {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* form column */
.contact-form {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* details column */
.contact-details {
  flex: 1 1 35%;
  min-width: 240px;
  color: #475569;
}

/* inputs */
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #dfe7f5;
  border-radius: 6px;
  font-size: 15px;
  width: 100%;
}

/* button */
.contact-form .btn {
  width: 180px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #0b63c6;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* small screens: stack */
@media (max-width: 780px) {
  .contact-container { flex-direction: column; }
  .contact-form, .contact-details { flex: 1 1 100%; }
}
.contact h3 {
  margin-top: 80px;      /* pushes it down */
  margin-bottom: 60px;   /* adds spacing below */
  text-align: center;    /* optional: centers the text */
}
.Hi! Iam Nisa {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-top: 50px;
}

#typed {
  background: linear-gradient(90deg, #007BFF, #FF4CCB); /* blue → pink */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

/* fallback for browsers that ignore background-clip */
#typed::before {
  content: attr(data-text);
  background: linear-gradient(90deg, #007BFF, #FF4CCB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  width: 100%;
  pointer-events: none;
}

.cursor {
  display: inline-block;
  color: #007BFF; /* cursor stays blue */
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Light gradient for About page heading (subtle & professional) */
.gradient-text-light {
  background: linear-gradient(90deg, #8ec9ff 0%, #ffc0dd 100%); /* light blue -> light pink */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-block;      /* important so gradient clips correctly */
  line-height: 1;
}

/* Optional: soft shimmer animation (use only if you want gentle movement) */
.gradient-text-light.shimmer {
  background-size: 200% 100%;
  animation: gradient-shimmer 5s linear infinite;
}

@keyframes gradient-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Navbar container */
.navbar {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
  background: transparent;
}

/* Default link style */
.navbar a {
  color: #444; /* light gray default */
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

/* Hover = blue glowing effect */
.navbar a:hover {
  color: #fff;
  text-shadow: 0 0 6px #007bff, 0 0 12px #007bff, 0 0 20px #007bff;
}

/* Active = pink glowing effect */
.navbar a.active {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 6px #ff0080, 0 0 12px #ff0080, 0 0 20px #ff0080;
}

/* Optional: glowing underline for active link */
.navbar a.active::after {
  content: '';
  display: block;
  margin: 4px auto 0;
  width: 60%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff0080, #ff4da6);
  box-shadow: 0 0 6px #ff0080, 0 0 12px #ff4da6;
}
/* Hide nav + show hamburger on small screens */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .navbar {
    display: none; /* hidden by default */
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    width: 100%;
    padding: 10px 0;
  }

  .navbar.show {
    display: flex; /* visible when active */
  }

  .menu-toggle {
    display: block; /* show hamburger */
  }

  .navbar a {
    margin: 8px 0;
    font-size: 16px;
  }
}
/* ------------------------
  Hamburger button (base)
   - 3 bars, hidden on desktop
-------------------------*/
.menu-toggle {
  display: none;               /* shown only on mobile via media query below */
  width: 36px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

/* bars inside hamburger */
.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #223249;   /* dark color for bars (adjust if you want white) */
  border-radius: 3px;
  transition: transform 0.30s ease, opacity 0.25s ease, background-color 0.25s;
}

/* tiny gap between bars */
.menu-toggle .bar + .bar {
  margin-top: 5px;
}

/* ------------------------
  Hamburger --> X animation
-------------------------*/
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ------------------------
  Mobile navbar slide-down (responsive)
  - Uses max-height transition so it animates smoothly
-------------------------*/
@media (max-width: 768px) {

  /* show hamburger on mobile */
  .menu-toggle {
    display: flex;
    flex-direction: column;
  }

  /* make header inner layout friendly for mobile */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  /* navbar becomes a vertical hidden block with max-height animation */
  .navbar {
    display: flex;               /* keep flex so items stack with flex-direction below */
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-height: 0;               /* hidden */
    overflow: hidden;
    padding: 0;                  /* removed until opened */
    transition: max-height 350ms ease, padding 350ms ease;
    background: transparent;     /* change to color if you want background when open */
  }

  /* visible state when toggled */
  .navbar.show {
    max-height: 600px;           /* large enough for your links; adjust if you have many links */
    padding: 10px 0;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef3fb 100%); /* slight white background while open (optional) */
    box-shadow: 0 8px 20px rgba(10,20,30,0.08);
  }

  /* nav links style on mobile (stacked) */
  .navbar a {
    display: block;
    padding: 10px 14px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: inherit; /* keep link color rules from your navbar CSS */
  }

  /* optional: slightly bigger clickable target for links */
  .navbar a:hover {
    background: rgba(11,99,198,0.06);
  }
}

/* Safety: when resizing back to desktop, ensure nav resets */
@media (min-width: 769px) {
  .navbar {
    max-height: none !important;
    padding: 0 !important;
    overflow: visible;
  }
  .menu-toggle { display: none; }
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cert-card {
  background: #f5f7fb;
  border: 1px solid #e6eef8;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.cert-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.cert-btn {
  display: inline-block;
  padding: 8px 15px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.cert-btn:hover {
  background: #0056b3;
}
.blog-post {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.8;
  color: #333;
}

.blog-post .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-post .post-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 1rem;
}

.blog-post .post-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.5rem;
}

.blog-post .post-image img {
  width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

.blog-post .post-content {
  margin-top: 1rem;
}

.blog-post .back-btn {
  margin-top: 2rem;
}

.blog-post .btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.blog-post .btn:hover {
  background: #1d4ed8;
}

.blog-post .social-share {
  margin-top: 2rem;
  font-size: 0.9rem;
}
.explore-btn {
  display: inline-block; /* allows padding and alignment */
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none; /* remove underline */
  border-radius: 8px;
  background: linear-gradient(135deg, #007BFF, #FF4CCB); /* gradient background for hover glow */
  color: transparent; /* text becomes transparent to show gradient */
  -webkit-background-clip: text; /* gradient visible on text in Webkit browsers */
  background-clip: text; /* standard background-clip for other browsers */
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-btn {
  display: inline-block; /* allows padding and alignment */
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none; /* remove underline */
  border-radius: 8px;
  color: transparent; /* text becomes transparent to show gradient */
  background: linear-gradient(135deg, #007BFF, #FF4CCB); /* gradient for text */
  -webkit-background-clip: text; /* show gradient on text in Webkit browsers */
  background-clip: text; /* standard browsers */
  text-align: center;
  transition: transform 0.3s ease;
}

.explore-btn:hover {
  transform: translateY(-2px); /* slight lift on hover */
}
.books-subheading {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px auto; /* 40px bottom space */
  line-height: 1.6;
}
.blog-card img.blog-thumb {
  width: 100%;
  max-height: 200px;   /* keeps it from getting too tall */
  object-fit: cover;   /* crops without distortion */
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Blog grid layout */
.grid.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Each blog card */
.card.blog-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.card.blog-card:hover {
  transform: translateY(-4px);
}

/* Blog Section */
.section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Page title */
.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Blog Card */
.blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover effect */
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Blog Title */
.blog-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Blog Excerpt */
.blog-excerpt {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

/* Blog Date */
.blog-date {
  font-size: 0.9rem;
  color: #999;
}
/* Blog post images */
.blog-card img {
  width: 100%;        /* Makes the image fit the card width */
  height: auto;       /* Maintains aspect ratio */
  border-radius: 8px; /* Optional: rounded corners */
  margin-bottom: 15px; /* Space below image */
  object-fit: cover;  /* Ensures it fills container nicely */
}
/* Blog Section */
.section {
  padding: 50px 20px;
  background-color: #f4f4f4; /* light gray background for entire section */
}

/* Page title */
.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Blog Card */
.blog-card {
  background-color: #ffffff;  /* white card */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Blog Card Hover effect */
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Image */
.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Blog Title */
.blog-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

/* Blog Excerpt */
.blog-excerpt {
  font-size: 1rem;
  color: #555;
  margin-bottom
.blog-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* Horizontal Research Grid */
.research-horizontal {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Full-width research card */
.research-card-horizontal {
  background: #f9fafb;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.research-card-horizontal .research-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.research-card-horizontal .research-desc {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #334155;
}

.research-card-horizontal .research-buttons {
  display: flex;
  gap: 12px;
}

.research-card-horizontal .research-buttons .btn.status {
  background: #facc15; /* yellow for status */
  cursor: default;
}

.research-card-horizontal .research-buttons .btn a {
  text-decoration: none;
  color: white;
}

/* Responsive for mobile */
@media screen and (max-width: 768px) {
  .research-card-horizontal {
    padding: 20px;
  }
  .research-card-horizontal .research-buttons {
    flex-direction: column;
    gap: 8px;
  }
}
.interaction-box {
  border-top: 1px solid #ddd;
  margin-top: 20px;
  padding-top: 10px;
}
.like-btn {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
.like-btn.liked {
  background-color: #ff4081;
}

.comments {
  margin-top: 15px;
}
.comment-input {
  width: 100%;
  padding: 6px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.comment-btn {
  margin-top: 6px;
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.comment-item {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 5px 8px;
  margin-top: 4px;
}

.comment-item {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 6px;
  border-left: 3px solid #007BFF;
}
.comment-item strong {
  color: #007BFF;
}
.comment-item small {
  color: #777;
  font-size: 0.8em;
}
/* Section Headings (h2) Gradient Hover */
.section h2 {
    font-size: 28px;
    text-align: center;
    color: #1e293b; /* default professional dark color */
    background: linear-gradient(90deg, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}
.section h2:hover {
    background: linear-gradient(90deg, #6366f1, #f472b6);
}

/* Subheadings (p inside section) */
.section p {
    color: #475569; /* professional gray */
    font-size: 16px;
    text-align: center;
}

/* Portfolio, Research, and Certification Titles */
.card h3,
.research-title,
.cert-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}
/* =======================
   Buttons: Solid Blue
======================= */
.btn,
.btn-explore,
.btn:link,
.btn-explore:link,
.btn:visited,
.btn-explore:visited {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;        /* remove underline */
  font-weight: bold;
  border-radius: 8px;
  color: #ffffff !important;           /* white text */
  background-color: #3b82f6 !important; /* solid professional blue */
  background-image: none !important;    /* remove any gradient */
  border: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn-explore:hover {
  background-color: #2563eb !important; /* darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn:active,
.btn-explore:active {
  background-color: #1d4ed8 !important; /* click state */
}

/* Center button wrapper */
.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* =======================
   Grid Card Titles: Alternating Professional Colors
======================= */
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

/* Alternate colors for cards (works across sections) */
.section .card:nth-child(6n+1) h3,
.latest-blogs .card:nth-child(6n+1) h3,
.books .card:nth-child(6n+1) h3 { color: #2563eb; } /* Blue */

.section .card:nth-child(6n+2) h3,
.latest-blogs .card:nth-child(6n+2) h3,
.books .card:nth-child(6n+2) h3 { color: #9333ea; } /* Purple */

.section .card:nth-child(6n+3) h3,
.latest-blogs .card:nth-child(6n+3) h3,
.books .card:nth-child(6n+3) h3 { color: #0ea5e9; } /* Teal */

.section .card:nth-child(6n+4) h3,
.latest-blogs .card:nth-child(6n+4) h3,
.books .card:nth-child(6n+4) h3 { color: #db2777; } /* Magenta */

.section .card:nth-child(6n+5) h3,
.latest-blogs .card:nth-child(6n+5) h3,
.books .card:nth-child(6n+5) h3 { color: #f59e0b; } /* Amber */

.section .card:nth-child(6n+6) h3,
.latest-blogs .card:nth-child(6n+6) h3,
.books .card:nth-child(6n+6) h3 { color: #10b981; } /* Green */

.card h3:hover {
  filter: brightness(1.2);
}

/* =======================
   Paragraphs inside cards
======================= */
.card p {
  color: #334155; /* dark professional text */
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
