* {
    margin: 0%;
    padding: 0%;
}


html {
    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(to right, rgb(180, 184, 180), rgb(64, 61, 107));
    color: white;
    font-family: 'poppins', sans-serif;
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    /* background-color: rgb(22, 22, 149); */
    background-image: linear-gradient(to right, rgb(9, 9, 71), rgb(45, 23, 23));
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    color: rgb(136, 136, 236);
    /* text-decoration: underline; */
    display: inline-block;
    transform: translateY(-1px);
    transition: transform .15s;
}

#home 
{ 
  scroll-margin-top: 50px; 
}

header { /* or your nav selector */
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff; /* or your background */
}


.left {
    font-size: 1.5em;
    font-family: "Fjalla One", sans-serif;
}

.FirstSection {
    display: flex;
    justify-content: space-around;
    margin: 110px 0;
    align-items: center;
}

.FirstSection>div {
    width: 30%;
}

.LeftSection {
    font-size: 2.2rem;
}

.LeftSection .buttons {
    padding: 23px 0;
}

.LeftSection .buttons .btn {
    background: rgb(63, 63, 77);
    color: white;
    text-decoration: none;
    /* border: 3px solid white; */
    border-radius: 5px;
    font-size: 17px;
    cursor: pointer;
}

.github-btn {
    background-image: linear-gradient(to right, white, green);
    /* GitHub black */
    color: #ffffff;
    /* white text */
    padding: 4px 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    /* remove underline */
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.github-btn:hover {
    background-color: #7e8a94;
    /* slightly lighter on hover */
    transform: translateY(-2px);
    text-decoration: none;
}

.github-btn:active {
    transform: translateY(0);
}



/* --- HERO LAYERING (unchanged class names) --- */
.RightSection {
    position: relative;
    isolation: isolate;
    /* keeps z-index sane */
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    /* remove any green panel behind */
    overflow: visible;
}

.profile-pic {
    width: 300px;
    height: 350px;
    border-radius: 40%;
    object-fit: cover;
    border: 3px solid var(--first-color);
    box-shadow: 15px 14px 9px 16px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: block;
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}




.green {
    color: rgb(32, 32, 33)
}

#element {
    color: blueviolet;
}

main hr {
    border: 0;
    background-color: rgb(210, 171, 246);
    height: 1.2px;
    margin: 40px 80px;
}

.SecondSection {
    max-width: 80vw;
    margin: auto;
    height: 80vh;
}

.SecondSection h1 {
    font-size: 1.8rem;
    height: 10vh;
}

.text-gray {
    color: rgb(29, 25, 25);
}

.SecondSection .box {
    background: white;
    width: 130vh;
    height: 2px;
    display: flex;
    top: 44px;
    position: relative;
}

.SecondSection .vertical {
    width: 1px;
    height: 50px;
    background-color: white;
    margin: 0 125px;
}

/* Let scaled items spill outside the line */
.SecondSection .box {
    overflow: visible;
    /* add-only */
}

/* Smooth “magnifier” pop on hover */
.SecondSection .vertical-title,
.SecondSection .vertical-desc {
    color: black;
    transition: transform 180ms ease, filter 180ms ease;
    transform-origin: left center;
    /* scale from the left edge */
    will-change: transform;
    cursor: zoom-in;
    z-index: 1;
    /* ensure it can sit above neighbors */
    position: relative;
    /* already relative, this is safe */
}

.SecondSection .vertical-title:hover,
.SecondSection .vertical-desc:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    z-index: 3;
    /* bring to front when enlarged */
}

/* Avoid accidental zoom on touch devices */
@media (hover: none) {

    .SecondSection .vertical-title,
    .SecondSection .vertical-desc {
        cursor: default;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    .SecondSection .vertical-title,
    .SecondSection .vertical-desc {
        transition: none;
    }
}





.image-top {
    width: 35px;
    position: relative;
    top: -35px;
    left: -17px;
}

/* Enable zoom effect for the top icons too */
.SecondSection .image-top {
    transition: transform 180ms ease, filter 180ms ease;
    transform-origin: center;
    will-change: transform;
    cursor: zoom-in;
    z-index: 2;
    /* sit above the line when zoomed */
    position: relative;
    /* safe with your current positioning */
    display: block;
    /* avoids odd inline gaps */
}

.SecondSection .image-top:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    z-index: 4;
    /* above titles/desc while enlarged */
}

/* Optional: if the zoom gets clipped, keep this */
.SecondSection .box {
    overflow: visible;
}

/* No hover on touch devices */
@media (hover: none) {
    .SecondSection .image-top {
        cursor: default;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .SecondSection .image-top {
        transition: none;
    }
}


.vertical-title {
    position: relative;
    top: 20px;
    width: 132px;
    left: -57px;
}

.vertical-desc {
    position: relative;
    top: 34px;
    width: 150px;
    left: -58px;
    font-size: 12px;
    color: green;
}

/* ==================== PROJECTS ==================== */

.projects {
  max-width: 1100px;
  margin: 40px auto;   
  border-top: 1px solid rgb(224, 153, 153);   
  padding: 0 16px 40px;   
}

.projects h1{
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  margin-bottom: 24px;
  text-align:center;
}

.project{
  display:flex;
  align-items:center;
  gap:1.25rem;
  padding:1rem;
  border-top:1px solid rgba(255,255,255,.2);
  background-image:linear-gradient(to right, #555, #333);
  flex-wrap:nowrap;
  margin-bottom:32px;
  border-radius:12px;
  overflow:hidden;
}

.row-reverse{ flex-direction: row-reverse; }

.project-image img{
  width:100%;
  max-width:52rem;
  height:auto;
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:16px;
  display:block;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}

.project-info{
  flex:1 1 420px;
  min-width:260px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.project-info .text{
  font-size:clamp(1.2rem, 1rem + 1vw, 1.6rem);
  line-height:1.25;
  font-weight:600;
}
.project-info p{
  font-size:clamp(.95rem, .9rem + .4vw, 1.05rem);
  line-height:1.6;
  color:#e9f1ee;
}

.project-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.project-tags span{
  font-size:.78rem;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
}

.lm-btn{
  display:inline-block;
  padding:.6rem 1rem;
  border-radius:10px;
  background:linear-gradient(90deg,#7aa2ff,#5e8bff);
  color:#fff;
  text-decoration:none;
  transition:transform .2s, filter .2s;
  width:max-content;
}
.lm-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
}
.lm-btn:focus-visible{
  outline:3px solid #fff;
  outline-offset:2px;
}

/* Responsive tweaks */
@media (min-width:600px) and (max-width:1024px){
  .project{ flex-wrap:wrap; }
  .project-image img{ max-width:520px; }
  .project-info{ flex:1 1 320px; min-width:280px; }
}

@media (max-width:599px){
  .project{ flex-direction:column; gap:.75rem; }
  .row-reverse{ flex-direction:column; }
}


/* ===================== CERTIFICATIONS ===================== */
.certs{
  max-width: 1100px;
  text-align: center;
  border-top: 1px solid rgb(224, 153, 153);  
  margin: 80px auto;
  padding: 8px 16px 32px;
}
.certs h1{
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  margin-bottom: 6px;
}
.certs-subtitle{
  opacity: .9;
  color: #e9f0ff;
  margin-bottom: 18px;
}

.certs-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cert-card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 16px 14px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-rows: auto auto;
  grid-column-gap: 12px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.cert-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
  grid-row: span 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

.cert-body{
  min-width: 0; /* allow text to wrap safely */
}
.cert-title{
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.cert-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: .9rem;
  opacity: .9;
  color: #e7ffee;
}

.cert-tags{
  grid-column: 1 / -2;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cert-tags span{
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.cert-verify{
  justify-self: end;
  align-self: start;
  text-decoration: none;
  font-size: .9rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #7aa2ff, #5e8bff);
  color: #fff;
  border: 0;
  transition: filter .2s ease, transform .2s ease;
}
.cert-verify:hover{ filter: brightness(1.05); transform: translateY(-1px); }

/* Mobile tweaks */
@media (max-width: 599px){
  .cert-card{
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
  }
  .cert-verify{
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 10px;
  }
}

/* Tablet polish (works with your tablet rules) */
@media (min-width:600px) and (max-width:1024px){
  .certs{ max-width: 95vw; }
}

/* ===================== CONTACT ===================== */
.contact {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 0 16px;
  color: #fff; /* ensures readability on dark backgrounds */
}

.contact h1 {
  font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.2rem);
  margin-bottom: 20px;
  position: relative;
}

.contact h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #5e8bff; /* underline accent only */
  margin: 6px auto 0;
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  color: #fff;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5e8bff;
  box-shadow: 0 0 0 3px rgba(94, 139, 255, 0.25);
}

.contact-form button {
  align-self: flex-end;
  background: linear-gradient(90deg, #7aa2ff, #5e8bff);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Responsive tweaks */
@media (max-width:599px) {
  .contact-form button {
    align-self: center;
    width: 100%;
  }
}
/* Reusable heading underline for all main sections */
.projects h1::after,
.certs h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #5e8bff;  /* same color as Contact underline */
  margin: 6px auto 0;   /* centers under the text */
  border-radius: 2px;
}


/* Fade-in underline animation */
@keyframes underlineSlide {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.projects h1::after,
.certs h1::after,
.contact h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #5e8bff;
  margin: 6px auto 0;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: all 0.5s ease;
}

/* active animation class triggered by ScrollReveal */
.revealed h1::after {
  animation: underlineSlide 0.8s forwards ease-in-out;
}



/* ===================== FOOTER ===================== */

footer {
    background-color: rgb(12 12 77);
    height: 50px;
}

.footer {
    display: flex;
    justify-content: space-between;
}

.footer>div {
    width: 200px;
}

.footer ul {
    list-style: none;
}

.footer-rights {
    text-align: center;
    position: relative;
    top: 10px;
}

@media screen and (max-width: 1240px) {
    nav {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .FirstSection {
        flex-direction: column-reverse;
        text-align: center;

    }

    .FirstSection .LeftSection {
        align-items: center;
    }

}
@media screen and (max-width: 570px) {
    nav ul {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
}
}

/* ============ TABLET: switch timeline to a 2-column grid design ============ */
@media (min-width:600px) and (max-width:1024px){

  .SecondSection{
    max-width:95vw;
    margin:auto;
    padding:32px 8px;
    height:auto;
  }

  /* Turn the timeline into a 2-column card grid on tablet */
  .SecondSection .box{
    display:grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 28px 28px;

    width:100% !important;     /* override old 130vh */
    height:auto;
    background:transparent !important;
    overflow:visible;
    padding: 8px 4px;
    position:relative;
  }

  /* remove the desktop horizontal rail for tablet */
  .SecondSection .box::before{ display:none; }

  /* Each item becomes a card with a small timeline accent on the left */
  .SecondSection .vertical{
    position:relative !important;
    width:auto !important;
    height:auto !important;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius:16px;
    padding:20px 16px 16px 56px;     /* space for icon/rail on left */
    box-shadow: 0 6px 22px rgba(0,0,0,.18);
    backdrop-filter: blur(2px);
  }

  /* round “node” and thin rail inside each card */
  .SecondSection .vertical::before{
    content:"";
    position:absolute;
    left:22px; top:22px;
    width:10px; height:10px;
    background:#fff; border-radius:50%;
    box-shadow: 0 0 0 6px rgba(255,255,255,.18);
  }
  .SecondSection .vertical::after{
    content:"";
    position:absolute;
    left:27px; top:40px; bottom:16px;
    width:2px; background: rgba(255,255,255,.55);
  }

  /* Stop desktop absolute positioning on tablet */
  .SecondSection .image-top{
    position:absolute; top:16px; left:16px;
    width:28px; height:28px; object-fit:contain;
    transform:none !important; z-index:1;
  }
  .SecondSection .vertical-title,
  .SecondSection .vertical-desc{
    position:static !important;
    top:auto; left:auto; transform:none !important;
    width:100% !important; text-align:left;
  }

  .SecondSection .vertical-title{
    margin:2px 0 6px;
    font-size:clamp(1rem, .95rem + .2vw, 1.1rem);
    color:#ffffff;
  }
  .SecondSection .vertical-desc{
    font-size:clamp(.9rem, .85rem + .2vw, 1rem);
    color:#e3f6e3;
  }

  /* Disable big zooms that caused collisions */
  .SecondSection .vertical-title:hover,
  .SecondSection .vertical-desc:hover,
  .SecondSection .image-top:hover{
    transform:none !important;
    filter:none !important;
    cursor:default;
  }

  /* Projects: tidy two-column wrap on tablet */
  .project{
    flex-wrap:wrap;
    gap:16px;
    padding:16px;
  }
  .project-image img{
    width:100%;
    max-width:520px;
    height:auto;
    border-radius:16px;
  }
  .project-info{
    flex:1 1 320px; min-width:280px;
  }
}

/* ============ MOBILE: switch timeline to a clean VERTICAL design ============ */
@media (max-width: 599px) {
  /* Section shell */
  .SecondSection{
    max-width: 100%;
    padding: 1.75rem 1rem;
    height: auto;
  }

  /* Turn the horizontal line into a vertical timeline at the left */
  .SecondSection .box{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    overflow: visible;
    padding-left: 34px;  /* room for the vertical line */

    /* draw the vertical line */
  }
  .SecondSection .box::before{
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 16px;
    width: 2px; background: #fff;
  }

  /* Each item becomes a block on the vertical line */
  .SecondSection .vertical{
    position: relative;
    width: auto; height: auto;
    background: none;
    padding: 14px 0 26px;  /* vertical spacing between items */
    margin: 0;
  }

  
  .SecondSection .vertical::before{
    content: "";
    position: absolute;
    left: 12px; top: 18px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #fff;
  }

  .image-top{
    position: relative;
    top: 0; left: 0; transform: none;
    width: 34px; height: 34px; object-fit: contain;
    margin-left: 10px; /* nudged right of the line */
    margin-bottom: 6px;
  }

  .vertical-title{
    position: relative;
    top: 0; left: 0; transform: none;
    width: auto;
    margin-left: 10px;   /* aligns with the icon */
    text-align: left;
    font-weight: 600;
    font-size: clamp(1rem, .95rem + .8vw, 1.15rem);
    color: #fff;
  }
  .vertical-desc{
    position: relative;
    top: 0; left: 0; transform: none;
    width: auto;
    margin-left: 10px;
    text-align: left;
    font-size: clamp(.9rem, .85rem + .6vw, 1rem);
    color: #e9f1ee;
  }

  /* Keep your hover polish without shifting layout */
  .SecondSection .vertical:hover .vertical-title,
  .SecondSection .vertical:hover .vertical-desc,
  .SecondSection .vertical:hover .image-top{
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
  }

  /* Projects: stack image then text */
  .project{
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
  }
  .project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

  .row-reverse{ flex-direction: column; } /* keep order sensible */

  .project-image img{
    width: 10%;
    height: auto;
    border-radius: 14px;
  }
  .project-info{
    width: 100%;
    min-width: 0;
  }
  .project-info .text{
    font-size: clamp(1.05rem, 1rem + 2vw, 1.35rem);
  }
}
/* ===================== BLOG SECTION =====================  */
.BlogSection{
  min-height: calc(100vh - 80px); 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.BlogSection h1{ font-size: 2.5rem; }
.BlogSection p{ font-size: 1.2rem; opacity: .9; }


/* ===== FIX PROJECT IMAGE SIZE & RATIO ===== */
.project-image {
  width: 100%;
  height: 220px;          /* adjust height if needed */
  overflow: hidden;
  border-radius: 12px;
}

.project-image img {
  width: 50%;
  height: 100%;
  object-fit: cover;      /* keeps image ratio */
  object-position: center;
  display: block;
}


.project {
  display: flex;
  flex-direction: column !important;
  gap: 0 !important;
}

.project-image {
  width: 100% !important;
  height: 220px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}


.project-info {
  width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  padding: 20px;
}

/* ===== MOBILE ADJUSTMENT ===== */
@media (max-width: 768px) {
  .project-image {
    height: 180px;
  }

  .profile-pic {
    width: 200px;
    height: 200px;
  }
}

/* ========== BLOG PAGE ========== */

.BlogSection {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px 60px;
}

.blog-heading {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.blog-subtitle {
  text-align: center;
  color: #c0c3d6;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #15161c;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, background 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.7);
  border-color: rgba(111, 140, 255, 0.7);
  background: radial-gradient(circle at top left, #22243a, #111218);
}

.blog-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-title {
  font-size: 1.25rem;
  line-height: 1.25;
}

.blog-excerpt {
  color: #d0d2e5;
  font-size: 0.95rem;
  line-height: 1.4;
  flex: 1;
}

.blog-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #f7f7f8;
  color: #11121a;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.blog-btn:hover {
  background: #dde1ff;
  transform: translateY(-1px);
}

/* Mobile spacing */
@media (max-width: 600px) {
  .BlogSection {
    margin-top: 60px;
    padding-inline: 16px;
  }

  .blog-thumb img {
    height: 190px;
  }
}

/* ===== SINGLE BLOG PAGE – FINAL FIX ===== */

.blog-page {
  max-width: 900px;
  margin: 120px auto 80px;      /* below navbar + centered */
  padding: 0 20px;
}

.blog-article {
  background: rgba(5, 5, 12, 0.96);
  border-radius: 24px;
  padding: 24px 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
}

/* Header area – remove weird top gap */
.blog-header {
  margin: 0;
  padding: 0 0 12px;
}

.blog-header > * {
  margin-top: 0;
  margin-bottom: 8px;
}

.blog-tag {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9aa0d0;
}

.blog-meta {
  color: #9fa3c4;
  font-size: 0.85rem;
}

/* HERO IMAGE – stop sticking + cap height */
.blog-hero {
  margin: 16px 0 0;
  padding: 0;
  overflow: hidden;
  position: static !important;
}

.blog-hero img {
  width: 100%;
  max-height: 360px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  position: static !important;
  top: auto !important;
}

/* INLINE IMAGES – smaller + aligned */
.blog-inline-image {
  margin: 16px 0;
  padding: 0;
  overflow: hidden;
}

.blog-inline-image img {
  width: 100%;
  max-height: 260px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Body text */
.blog-body {
  margin-top: 26px;
}

.blog-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #e3e4f0;
  font-size: 1rem;
}

.blog-body ul {
  margin: 0 0 1rem 1.2rem;
  padding-left: 0.8rem;
  color: #e3e4f0;
  line-height: 1.6;
}

.blog-body h2 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.7rem;
}

.blog-note {
  border-left: 3px solid #6f8cff;
  padding-left: 10px;
}

.blog-back-link {
  display: inline-block;
  margin-top: 18px;
  color: #6f8cff;
  text-decoration: none;
  font-weight: 500;
}

.blog-back-link:hover {
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .blog-page {
    margin: 100px auto 60px;
    padding: 0 14px;
  }

  .blog-article {
    padding: 20px 16px 24px;
  }

  .blog-header h1 {
    font-size: 1.6rem;
  }

  .blog-hero img {
    max-height: 260px;
  }
}

/* ========= BLOG LIST PAGE (cards) ========= */

.blogs-page {
  max-width: 1200px;
  margin: 120px auto 80px;   /* below navbar + centered */
  padding: 0 24px;
  text-align: center;
}

.blogs-page h1 {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.blogs-subtitle {
  color: #c3c6e5;
  font-size: 0.95rem;
}

/* Grid of cards */
.blogs-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* Individual blog card */
.blog-card {
  background: rgba(7, 7, 16, 0.96);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
  border-color: rgba(129, 140, 248, 0.6);
}

/* Image at top of card */
.blog-card-image-link {
  display: block;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.03);
}

/* Card content */
.blog-card-body {
  padding: 18px 18px 20px;
}

.blog-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9aa0d0;
  margin-bottom: 6px;
}

.blog-card-title {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.blog-card-title a {
  color: #ffffff;
  text-decoration: none;
}

.blog-card-title a:hover {
  text-decoration: underline;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: #a3a7c9;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #e3e4f0;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Read more link */
.blog-card-link {
  font-size: 0.9rem;
  color: #6f8cff;
  text-decoration: none;
  font-weight: 500;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .blogs-page {
    margin: 96px auto 60px;
    padding: 0 16px;
  }

  .blog-card-image {
    height: 190px;
  }
}

/* ===================== modifying the certification section ===================== */ 
.certs-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

/* Tablet */
@media (max-width: 1100px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 700px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}

