/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 3.5rem;
  
  /* Colors */
  --primary-color: #2563EB;
  --primary-light: #60A5FA;
  --primary-dark: #1D4ED8;
  --title-color: #111827;
  --title-color-light: rgba(17, 24, 39, 0.85);
  --text-color: #4B5563;
  --text-light: #6B7280;
  --bg-color: #FFFFFF;
  --grid-line-color: #F3F4F6;
  
  /* Fonts */
  --body-font: 'Manrope', sans-serif;
  --code-font: 'Fira Code', monospace;
  --arabic-font: 'Amiri', serif;

  --font-bold: 700;
  --font-extra-bold: 800;
  --z-fixed: 100;
  --box-shadow: 0 8px 24px rgba(149, 157, 165, 0.08);
}

/*==================== BASE ====================*/
* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: linear-gradient(var(--grid-line-color) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--title-color); font-weight: var(--font-bold); }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/*==================== REUSABLE CLASSES ====================*/
.container { 
    max-width: 1100px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.grid { display: grid; gap: 1.5rem; }
.section { padding-block: 5rem 2rem; }

.section__title {
  font-size: 2rem; text-align: center; margin-bottom: 3rem;
  font-weight: 800; letter-spacing: -0.5px;
}

/*==================== HEADER & NAV ====================*/
.header {
  position: fixed; width: 100%; top: 0; left: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); z-index: var(--z-fixed);
  border-bottom: 1px solid var(--grid-line-color);
}

.header .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.nav { 
    height: var(--header-height); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.nav__logo {
    display: flex;
    align-items: center; 
    gap: 0.5rem; 
    text-decoration: none;
    flex-shrink: 0;
}

.nav__logo-img {
    width: 40px; 
    height: auto;
    transition: width 0.2s;
}

.nav__logo-name {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--title-color);
    white-space: nowrap;
    transition: font-size 0.2s;
}

.nav__logo-name .dot { color: var(--primary-color); }

/* Desktop menu (hidden on mobile) */
.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    color: var(--title-color);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav__link:hover,
.active-link { color: var(--primary-color); }

/* Toggle button (hidden on desktop) */
.nav__toggle {
    display: none;
    align-items: center;
    gap: 0.3rem;
    color: var(--title-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}
.nav__toggle i {
    font-size: 1.5rem;
}
.nav__toggle-text {
    font-size: 1rem;
    text-transform: uppercase;
}

/* Close button (only visible inside mobile menu) */
.nav__close {
    display: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    transition: transform 0.3s;
}

.nav__close:hover {
    transform: rotate(90deg);
}

/* ---------- MOBILE STYLES (max-width: 767px) ---------- */
@media screen and (max-width: 767px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px);
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        padding: 5rem 2rem 2rem;
        z-index: 200;
        overflow-y: auto;
    }

    .show-menu {
        left: 0;
    }

    .nav__close {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-top: 1rem;
    }

    .nav__link {
        font-size: 1.3rem;
        white-space: normal;
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media screen and (max-width: 480px) {
    .nav__logo-img {
        width: 32px;
    }
    .nav__logo-name {
        font-size: 1.2rem;
    }
    .nav__toggle-text {
        font-size: 0.9rem;
    }
    .nav__toggle i {
        font-size: 1.3rem;
    }
}

/* ---------- EXTRA SMALL (max-width: 360px) ---------- */
@media screen and (max-width: 360px) {
    .nav__logo-img {
        width: 28px;
    }
    .nav__logo-name {
        font-size: 1rem;
    }
    .nav__toggle-text {
        font-size: 0.8rem;
    }
}

/*==================== HOME SECTION ====================*/
.home { 
    padding-top: 8rem;
    padding-bottom: 6rem; 
}

.home__container { 
    row-gap: 3rem; 
    position: relative; 
    z-index: 10; 
    max-width: 1100px; 
    margin-inline: auto; 
}

/* Floating Elements */
.floating-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

.float-item { 
    position: absolute; 
    font-family: var(--code-font); 
    font-weight: bold; 
    animation-duration: 8s; 
    animation-iteration-count: infinite; 
    animation-timing-function: ease-in-out;
}

.arabic-style {
    font-family: var(--arabic-font); 
    font-size: 1.6rem; 
    color: rgba(0, 0, 0, 0.9);
}

.code-style {
    font-size: 0.85rem; 
    color: rgba(37, 99, 235, 0.25);
}

/* Individual animations */
.p1 { top: 12%; left: 5%; animation-name: wobble; animation-duration: 10s; }
.p2 { top: 15%; right: 5%; animation-name: wobble; animation-duration: 12s; animation-delay: 1s; }
.p3 { bottom: 20%; left: 2%; animation-name: gentleFloat; animation-duration: 5s; animation-direction: alternate-reverse; } 
.p4 { bottom: 38%; right: 2%; animation-name: slideSide; animation-duration: 10s; }
.p6 { top: 8.5%; left: 35%; animation-name: wobble; animation-duration: 20s; }
.p7 { bottom: 2%; right: 35%; animation-name: slideSide; animation-duration: 10s; }

@keyframes gentleFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } }
@keyframes pulseZoom { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes wobble { 0% { transform: rotate(0deg); } 25% { transform: rotate(6deg); } 75% { transform: rotate(-6deg); } 100% { transform: rotate(0deg); } }
@keyframes slideSide { 0% { transform: translateX(0); } 100% { transform: translateX(20px); } }

/* Mobile adjustments for floating items */
@media screen and (max-width: 576px) {
    .float-item {
        font-size: 0.9rem;
    }
    .arabic-style {
        font-size: 1.2rem;
    }
    .p5 { font-size: 0.8rem; }
}

/* Home Content */
.home__content { text-align: center; }
.home__title { font-size: 3rem; margin-bottom: 1rem; line-height: 1.1; color: var(--title-color-light); }
.home__profession { font-size: 1.5rem; color: var(--text-color); margin-bottom: 1.5rem; }

/* Snake Button */
.button-group { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.btn-snake {
    position: relative; padding: 0.8rem 2rem; background: var(--bg-color); color: var(--primary-color);
    font-weight: 700; border-radius: 2rem; overflow: hidden; transition: 0.3s; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-snake::before { 
    content: ''; position: absolute; top: 50%; left: 50%; width: 150%; height: 300%; 
    background: conic-gradient(transparent, transparent, transparent, var(--primary-light)); 
    animation: rotateBorder 4s linear infinite; transform: translate(-50%, -50%); z-index: -2; 
}
.btn-snake::after { 
    content: ''; position: absolute; inset: 3px; background: var(--bg-color); 
    border-radius: inherit; z-index: -1; transition: 0.3s; 
}
@keyframes rotateBorder { 
    0% { transform: translate(-50%, -50%) rotate(0deg); } 
    100% { transform: translate(-50%, -50%) rotate(360deg); } 
}
.btn-snake:hover { color: var(--primary-dark); transform: translateY(-3px); }
.btn-snake:hover::after { background: #F0F7FF; }

/* Home Image */
.home__image-wrapper {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 280px; 
    aspect-ratio: 1 / 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .4s; 
}

.home__blob {
  width: 110%; height: 110%;
  background: linear-gradient(45deg, var(--primary-color), #60A5FA);
  position: absolute; z-index: -1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blobAnim 8s ease-in-out infinite alternate; opacity: 0.15;
}
@keyframes blobAnim {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.home__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  border: 3px solid var(--bg-color); 
  box-shadow: var(--box-shadow);
}

/* Mobile home adjustments */
@media screen and (max-width: 767px) {
    .home {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .home__container {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .home__title {
        font-size: 2rem;
    }
    
    .home__profession {
        font-size: 1.1rem;
    }
    
    .home__image-wrapper {
        max-width: 220px;
        order: 2;
        margin: 0 auto;
    }
    
    .home__content {
        order: 1;
    }
    
    .button-group {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-snake {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .home__title {
        font-size: 1.8rem;
    }
    
    .home__profession {
        font-size: 1rem;
    }
    
    .home__image-wrapper {
        max-width: 220px;
    }
}

@media screen and (max-width: 360px) {
    .home__title {
        font-size: 1.6rem;
    }
    
    .home__image-wrapper {
        max-width: 200px;
    }
}

.project-btn-small { padding: 0.6rem 1.5rem; font-size: 0.9rem; margin-top: auto; align-self: flex-start; }

/*==================== SKILLS ====================*/
.skills__section-title { 
    font-size: 1.2rem; 
    color: var(--primary-color); 
    margin-bottom: 1.5rem; 
    text-align: center; 
}
.skills__grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 1.5rem; 
    margin-bottom: 3rem; 
}
.skill-card {
    background: #fff; padding: 1rem; border-radius: 1rem; border: 1px solid var(--grid-line-color);
    box-shadow: var(--box-shadow); display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    width: 100px; transition: .3s;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.skill-card img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 0.5rem; }
.skill-card span { font-size: 0.8rem; font-weight: 600; }

/*==================== TIMELINE ====================*/
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::after { 
    content: ''; position: absolute; width: 2px; background: #E5E7EB; 
    top: 0; bottom: 0; left: 50%; margin-left: -1px; 
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; box-sizing: border-box; }
.timeline-item::after { 
    content: ''; position: absolute; width: 16px; height: 16px; right: -8px; 
    background: #fff; border: 4px solid var(--primary-color); top: 20px; border-radius: 50%; z-index: 1; 
}
.left { left: 0; } 
.right { left: 50%; } 
.right::after { left: -8px; }
.timeline-content { 
    padding: 1.5rem; background: #fff; border-radius: 1rem; 
    border: 1px solid var(--grid-line-color); box-shadow: var(--box-shadow); 
}
.timeline-year { color: var(--primary-color); font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.timeline-title { font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline-info { 
    font-size: 0.85rem; color: var(--text-color); 
    border-top: 1px dashed #eee; padding-top: 0.5rem; margin-top: 0.5rem;
}

@media screen and (max-width: 767px) { 
    .timeline::after { left: 31px; } 
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; } 
    .timeline-item::after { left: 23px; } 
    .right { left: 0; } 
}

/*==================== PROJECTS ====================*/
.projects__container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card {
    position: relative; background: var(--bg-color); border-radius: 1rem; overflow: hidden;
    z-index: 1; padding: 2px; display: flex; flex-direction: column; transition: .3s;
    filter: brightness(97%); 
}
.project-card::before { 
    content: ''; position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; 
    background: conic-gradient(transparent, transparent, transparent, var(--primary-light)); 
    animation: rotateBorder 4s linear infinite; transform: translate(-50%, -50%); z-index: -2; 
}
.project-card::after { 
    content: ''; position: absolute; inset: 2px; background: #fff; border-radius: 1rem; z-index: -1; 
}
.project-card:hover { transform: translateY(-5px); filter: brightness(100%); }
.project-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; background: #fff; position: relative; z-index: 2; }
.project-title { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--title-color); }
.project-desc { font-size: 0.95rem; color: var(--text-color); line-height: 1.6; margin-bottom: 1.5rem; flex: 1; }
.upload-soon { 
    display: flex; justify-content: center; align-items: center; background: #F9FAFB; 
    border: 2px dashed var(--text-light); color: var(--text-light); font-weight: 600; min-height: 250px; 
}

/*==================== CONTACT ====================*/
.contact__container { 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
    padding-bottom: 2rem;
}

.contact__text { 
    font-size: 1.2rem; 
    color: var(--title-color); 
    margin-bottom: 3rem; 
    font-weight: 600; 
}

.contact__info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 1.5rem; 
    justify-content: center; 
}

@media screen and (min-width: 768px) { 
    .contact__info-grid { 
        grid-template-columns: repeat(3, 1fr); 
        max-width: 700px; 
        margin: 0 auto; 
    } 
}

@media screen and (max-width: 767px) {
    .contact__info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact__text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .contact__info-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

.contact-snake-box { 
    position: relative; 
    background: var(--bg-color); 
    border-radius: 1rem; 
    overflow: hidden; 
    z-index: 1; 
    padding: 2px; 
    display: flex; 
    flex-direction: column; 
}

.contact-snake-box::before { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 200%; 
    height: 200%; 
    background: conic-gradient(transparent, transparent, transparent, var(--primary-light)); 
    animation: rotateBorder 4s linear infinite; 
    transform: translate(-50%, -50%); 
    z-index: -2; 
}

.contact-snake-box::after { 
    content: ''; 
    position: absolute; 
    inset: 2px; 
    background: #fff; 
    border-radius: 1rem; 
    z-index: -1; 
}

.contact-box-content { 
    position: relative; 
    z-index: 2; 
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.6rem; 
    height: 100%; 
}

.contact-icon { 
    font-size: 1.8rem; 
    color: var(--primary-color); 
    margin-bottom: 0.3rem; 
}

.contact-label { 
    font-weight: 700; 
    color: var(--title-color); 
    font-size: 0.95rem; 
}

.contact-value { 
    font-size: 0.85rem; 
    color: var(--text-color); 
    font-family: var(--code-font); 
    word-break: break-all; 
}

.contact-value:hover { 
    color: var(--primary-color); 
}

/*==================== FOOTER & SCROLL UP ====================*/
.footer { 
    background-color: transparent; 
    border-top: 1px solid var(--grid-line-color); 
    padding: 3rem 0 2rem; 
    margin-top: 0;
}

.footer__container { 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    text-align: center; 
}

.footer__title { 
    font-size: 1.5rem; 
    margin-bottom: 1.5rem; 
}

.footer__links { 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
    margin-bottom: 2rem; 
    flex-wrap: wrap; 
}

.footer__link { 
    color: var(--text-color); 
    font-size: 0.9rem; 
}

.footer__socials { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-bottom: 2rem; 
    flex-wrap: wrap; 
}

.footer__social-link { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: #fff; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: var(--title-color); 
    transition: .3s; 
    border: 1px solid #eee; 
}

.footer__social-link:hover { 
    background: var(--primary-color); 
    color: #fff; 
    border-color: var(--primary-color); 
}

.scrollup {
    position: fixed; 
    right: 1.5rem; 
    bottom: -30%; 
    background-color: transparent; 
    color: var(--title-color); 
    border: 2px solid var(--title-color); 
    border-radius: 4px; 
    padding: 0.4rem; 
    z-index: var(--z-fixed); 
    transition: .4s; 
    display: flex; 
    font-size: 1.8rem;
}

.scrollup:hover { 
    transform: translateY(-5px); 
    color: var(--primary-color); 
    border-color: var(--primary-color); 
}

.show-scroll { 
    bottom: 3rem; 
}

/*==================== RESPONSIVE DESKTOP ====================*/
@media screen and (min-width: 968px) {
  .home__container { 
      grid-template-columns: 1.2fr 0.8fr; 
      text-align: left; 
      align-items: center; 
  }
  
  .home__content { 
      text-align: left; 
  }
  
  .button-group { 
      justify-content: flex-start; 
  }
  
  .home__image-wrapper { 
      max-width: 450px; 
  }
}/* Updated */
/*==================== BLOG PAGE DESIGN ====================*/
.blog-layout {
    display: flex;
    max-width: 100%;
    min-height: 100vh;
}

/* Fixed & Glassmorphism Sidebar */
.blog-sidebar {
    background-color: rgba(235, 232, 232, 0.576);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--grid-line-color);
    padding: 3rem 2rem;
    position: fixed; 
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--bg-color);
    box-shadow: var(--box-shadow);
}

.sidebar-title {
    color: var(--title-color);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.sidebar-subtitle {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.sidebar-bio {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.sidebar-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--grid-line-color);
}

.sidebar-contact a {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.sidebar-contact a:hover {
    color: var(--primary-color);
}

.sidebar-nav {
    margin-bottom: 2rem;
}

.sidebar-nav a {
    color: var(--title-color);
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav a:hover {
    color: var(--primary-color);
}

.sidebar-socials {
    display: flex;
    gap: 1.2rem;
}

.sidebar-socials a {
    color: var(--title-color);
    font-size: 1.5rem;
    transition: 0.3s;
}

.sidebar-socials a:hover {
    color: var(--primary-color);
}

/* Right Wrapper (To prevent overlapping with fixed sidebar) */
.blog-right-wrapper {
    margin-left: 350px; 
    width: calc(100% - 350px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.blog-main-content {
    padding: 4rem 10%;
    flex-grow: 1; 
}

.blog-post-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--grid-line-color);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    transition: 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-post-title a {
    color: var(--title-color);
    font-size: 1.8rem;
    transition: 0.3s;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-date {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--code-font);
}

.blog-post-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Simple Footer Styling */
.blog-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--grid-line-color);
    background-color: transparent;
}

/* Mobile Responsive */
@media screen and (max-width: 968px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--grid-line-color);
        padding: 3rem 1.5rem;
        align-items: center;
        text-align: center;
    }
    .sidebar-contact {
        align-items: center;
    }
    .sidebar-socials {
        justify-content: center;
    }
    .blog-right-wrapper {
        margin-left: 0;
        width: 100%;
    }
    .blog-main-content {
        padding: 3rem 1.5rem;
    }
}
/* ===== POST CONTENT STYLING ===== */
.post-content pre {
    background: #1E1E2E;
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.2rem 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.post-content pre code {
    color: #CDD6F4;
    font-family: var(--code-font);
    font-size: 0.9rem;
    line-height: 1.7;
    background: none;
    padding: 0;
    border-radius: 0;
}

.post-content code {
    background: #EFF6FF;
    color: var(--primary-color);
    padding: 0.15rem 0.5rem;
    border-radius: 0.3rem;
    font-family: var(--code-font);
    font-size: 0.88rem;
    font-weight: 600;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.post-content table th {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
}

.post-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #DBEAFE;
    font-family: var(--code-font);
    font-size: 0.9rem;
}

.post-content table tr:nth-child(even) {
    background: #F8FAFF;
}

.post-content blockquote {
    background: #FFF7ED;
    border-left: 4px solid #F97316;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.5rem;
    margin: 1.2rem 0;
    color: #92400E;
    font-style: italic;
}

.post-content hr {
    border: none;
    border-top: 2px dashed #DBEAFE;
    margin: 2rem 0;
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.copy-btn:hover { background: var(--primary-dark); }

/* Day Card */
.day-card {
    border: 1.5px solid #DBEAFE;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #FAFCFF;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.day-card h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #DBEAFE;
}

/* Day Card Updated */
.day-card {
    background: #F8FAFF !important;
    border: 1.5px solid #DBEAFE;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}
