/*text/css*/
/* RESET */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500; 600;700&family=Lora:wght@400&family=Montserrat:wght@600;700&display=swap');
:root {
  /* Primary Colors */
  --color-primary-blue: #34BCEA;   /* Blue */
  --color-medical-green: #34EABD; /* Green */
  --color-secondary-blue: #3461EA; /* pure blue */
  --color-secondary-light: #3586E9; /* pure blue */
  --color-voilet: #3E35E9;    /* Red */
  --color-blue-deep: #1560BC; 
  --color-accent: #e74c3c;    /* Red */
  --color-dark: #333333;      /* Dark grey / text */
  --color-light: #f5f5f5;     /* Light background */
  
  /* Neutral / Shades */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray: #888888;
  
  /* Transparent / Overlay */
  --color-overlay: rgba(0,0,0,0.5);
}
* { margin:0; padding:0; box-sizing: border-box; font-family:"Segoe UI",sans-serif; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
body { background:#f7f7f7; color:#333; font-size: 16px;}
body {font-family: "Poppins", sans-serif; }
html, body {  box-sizing: border-box; 
  overflow-x: hidden !important;
}
div[id^="google_ads_iframe_"],
div[class*="google-auto-placed"] {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body > div[class*="google-auto-placed"] {
  margin: 0 !important;
  padding: 0 !important;
}
/* Base styles for all headings */
h1, h2, h3, h4, h5, h6 {
    margin: 0.5em 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
    font-weight: bold;
    padding: 15px 10px;
    text-align: center;
}
* { box-sizing: border-box;
  /* outline: 1px solid red; temporary highlight */
}
/* Desktop (large screens) */
h1 { font-size: 1.8rem; color: var(--color-gray);}
h2 { font-size: 1.6rem; color: var(--color-blue-deep);}
h3 { font-size: 1.4rem; color: var(--color-voilet); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1.0rem; }
.text-box {background:#fff; font-family: "Poppins", sans-serif; border-radius:15px; padding: 15px; line-height: 2.0rem;}
.text-box ul li {margin-left: 20px;}
    .text-box p, 
    .text-box li, 
    .text-box strong, 
    .text-box a {
    font-size: 1.0rem;
    }
.text-box p{ text-align: justify; }
.page-ad {
  width: 100%;
  max-width: 380px; /* ya sidebar ke width ke barabar */
  overflow: hidden;
  box-sizing: border-box;
  padding:10px 0px;
  text-align: center;
  margin: auto;
}
  /* ==== SPLASH PRELOADER ==== */
  #splash {
    position: fixed;
    top:0; left:0; right:0; bottom: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0; /* dark red background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    color: goldenrod;
    transition: opacity 0.5s ease;
  }

  #splash.hide {
    opacity: 0;
    pointer-events: none;
  }

  #splash img {
    width: 120px;  /* logo size */
    margin-bottom: 20px;
    border-radius:50%;
    animation: logoPulse 1.2s ease-in-out infinite alternate;
  }

  @keyframes logoPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
  }

  #splash strong {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: goldenrod;
  }

  /* ==== TOP LOADER BAR ==== */
  #top-progress {
    position: fixed;
    top:0; left:0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,0,0,0.8), rgba(139,0,0,0.9));
    z-index: 100000;
    overflow: hidden;
  }

  .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #daa520, #ffdf70, #daa520);
    box-shadow: 0 0 6px rgba(218,165,32,0.6);
    animation: shine 1.2s linear infinite;
    background-size: 200% 100%;
    transition: width 0.4s ease-out;
  }

  @keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }

  /* ==== MAIN CONTENT ==== */
  #main-contents {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

/* SCROLL PROGRESS BAR */
.scrollBack { position:fixed; top:0; left:0; height:3px; width:100%; background: linear-gradient(to right, #f0f0f0, red 80%, #f0f0f0 ); z-index:9990;}
#scrollBar { position:fixed; top:0; left:0; height:3px; width:0%; background:gold; z-index:9999; transition: width 0.25s ease-out; }

/* HEADER & NAVBAR */
header { position:fixed; top:3px; left:0; width:100%; background:#222; color:white; z-index:999; box-shadow:0 2px 5px rgba(0,0,0,0.3);}
.navbar { width:90%; margin:auto; display:flex; justify-content:space-between; align-items:center; padding:10px 0; }
.logo { display:flex; align-items:center; gap:10px; }
.logo img { width:40px; height:40px; border-radius:50%; }
.logo strong { font-size:20px; color:goldenrod; }
/*style for li */


.page-link {display:flex; flex-direction: column; gap: 10px; list-style:none;}
.page-link li { background: #F0F0F0; padding: 10px 12px;}
.page-link li a {text-decoration:none; font-size: 1.0rem; color: #3A6F43; font-weight:600;}
.page-link li a:hover {color: goldenrod;} 
/* NAV MENU */
nav ul { display:flex; list-style:none; gap:10px; flex-direction: row; justify-content:space-between;}
nav ul li {}
nav ul li a { color:white; text-decoration:none; padding:6px 12px; border-radius:4px; font-size: 0.9rem; font-weight:500; transition:0.3s; font-family: Arial Narrow;}
nav ul li a:hover { background:goldenrod; color:black; }

/* MOBILE MENU BUTTON */
.menu-toggle { display:none; flex-direction:column; justify-content:center; cursor:pointer; }
.menu-toggle span { background:white; height:3px; width:25px; margin:4px 0; border-radius:2px; }

/* TOP AD SPACE */
.top-ad { margin-top:75px; background:#e3e3e3; border:2px dashed #ccc; width:100%; color:#777; }

/* MAIN LAYOUT */
.main-container { width:90%; margin:30px auto 50px; display:flex; gap:20px; align-items: stretch; flex-direction: row;}
.blog-section { flex:2; display:flex; flex-direction:column; gap:20px; background:#fff;}
.blog-card { background:white; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.1); overflow:hidden; transition:transform 0.3s ease; }
.blog-card:hover { transform:translateY(-5px); }
.blog-picture-cover { background:white; border-radius:15px; box-shadow:0 2px 5px rgba(0,0,0,0.1); overflow:hidden; transition:transform 0.3s ease; }
.blog-picture-cover:hover { transform:translateY(-5px); }
.picture {
   display:flex;
   position: relative;
   width: 100%;
   height:0;
   padding-top: 33.3%;
   background:#E7F2EF;
   margin:0.1rem auto;
   box-sizing:border-box;
   border-radius: 15px;
   box-shadow:2px 5px 3px #ddd;
   transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.picture img {
   position:absolute;
   width:100%;
   max-height:100%;
   padding-top: 0px;
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
   object-fit:cover;
   border-radius: 15px;
}
.picture img:hover {
  transform: scaleY(1.05); /* sirf height me expand */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
picture {
    display:flex;
   position: relative;
   width: 100%;
   height:0;
   padding-top: 36.3%;
   background:#E7F2EF;
   margin:0.1rem auto;
   box-sizing:border-box;
   border-radius: 15px;
   box-shadow:2px 5px 3px #ddd;
   transition: transform 0.5s ease, box-shadow 0.5s ease;
} 
picture img {
   position:absolute;
   width:100%;
   max-height:100%;
   padding-top: 0px;
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
   object-fit:cover;
   border-radius: 15px;
}
picture img:hover {
  transform: scaleY(1.05); /* sirf height me expand */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
/* Desktop ad */
.top-ad .desktop {
    display: block;
    background-color: #f2f2f2; /* optional, placeholder color */
    width:90%;
    margin: 5px auto;
}

/* Mobile ad hidden by default */
.top-ad .mobile {
    display: none;
}

sup.custom-img {
    display: inline-block;       /* allow width & height */
    width: 35px;                 /* fixed width */
    height: 15px;                 /* fixed height */
    background-image: url('https://www.atpeducation.com/images/new.gif'); /* replace with your image */
    background-size: cover;      /* cover entire area */
    background-repeat: no-repeat;
     vertical-align: 15px;      /* maintain sup alignment */
    margin-left: 2px;            /* optional spacing */
}
/* CLS-safe ad slot */
.ad-slot {
  width: 100%;
  max-width: 300px;       /* adjust for sidebar */
  min-height: 300px;      /* fixed height to prevent CLS */
  margin: 0 auto;         /* center in content */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.sidebar .ad-slot {
  max-width: 100%;         /* for responsive sidebar */
  min-height: 300px;       /* same fixed height */
}

.sidebar-div {
    position: relative; /* base container */
}

/*.ad-container {*/
/*    width: 100%;*/
    /* Normal flow styling */
/*}*/
.ad-space { max-width:380px; height:auto; margin: 10px auto; background:#fff; border:thin dashed #ccc; display:flex; align-items:center; justify-content:center; font-size:14px; color:#e3e3e3; }
.ad-container {max-width:380px; height:auto; margin: 10px auto; background:#fff; text-align :center;}
.ad-fixed {
    position: fixed;
    text-align:center;
    margin: 10px auto;
    padding: auto;
    top: 60px; /* distance from top when fixed */
    max-width: 380px; /* keep same width as container */
}
.ad-show {font-size: 10px; font-weight: bold; text-align: left; padding: 10px 0 0 10px;}
.blog-card img { width:100%; height:300px; object-fit:cover; }
.blog-card-content { padding:15px; }
.blog-card-content h3 { font-size:20px; margin-bottom:8px; }
.blog-card-content p { font-size:15px; color:#555; margin-bottom:10px; }
.meta { font-size:14px; color:#888; display:flex; justify-content:space-between;}
.meta span {padding: 15px 10px;}
/* SIDEBAR */
.sidebar { flex:1; display:flex; flex-direction:column; gap:20px; background:#fff;}
.sidebar-card { background:white; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.1); padding:15px; }
.sidebar-card h4 { margin-bottom:10px; border-bottom:2px solid gold; padding-bottom:5px; }
.sidebar-card ul { list-style:none; }
.sidebar-card ul li { margin:5px 0; padding:10px 5px; background: #CBDCEB;}
.sidebar-card ul li a { text-decoration:none; color:#333; transition:0.3s; font-size: 1.0rem; font-weight: 500;}
.sidebar-card ul li a:hover { color:goldenrod; }

/* QUICK ACCESS parent*/
.quick-access { background:#fff; width:90%; margin:50px auto 20px; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.1); padding:20px; }
.quick-access h3 { text-align:center; margin-bottom:15px; }
/*child div*/
.quick-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.quick-links a { text-decoration:none; background:gold; color:#000; padding:6px 12px; border-radius:4px; font-weight:500; transition:0.3s; }
.quick-links a:hover { background:#000; color:gold; }

/* FOOTER */
footer { background:#111; color:white; text-align:center; padding:25px 10px; margin-top:30px; }
footer p { font-size:14px; color:#bbb; }
footer a { color:gold; text-decoration:none; }
footer a:hover { text-decoration:underline; }
/*All buttons */
.read-more-btn {
    display: inline-block;
    padding: 8px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height:18px;
    text-decoration: none;
    border-radius: 30px; /* rounded pill */
    background: linear-gradient(45deg, #ff6ec4, #7873f5); /* bright gradient */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ff6ec4, #7873f5);;
    /* background: linear-gradient(45deg, #ff87d1, #8a7ff5); slightly lighter on hover */
}

/*Styles for blog POST ITEMS*/

.latest-posts { margin-top:20px;}

/*}*/
.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center; /* center individual items horizontally */
    align-items: start;    /* top align in row */
}

.post-card {
    width: 250px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border: 1px solid #f0f0f0;
}

.post-title {
    font-size: 1.0rem;
    margin: 0 0 8px;
    padding:0;
        display: -webkit-box;
    -webkit-line-clamp: 2; /* 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1rem;
    height: cal(1.1rem * 2);
}

.post-title a {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #2563eb; /* nice blue hover */
}

.post-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.post-description {
    flex: 1;
    font-size: 1rem;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 12px;
}

.read-more {
    align-self: flex-start;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .post-thumb img {
        height: 150px;
    }
}

/* Container */
.feed-card{
  width: 340px;
  height: 80px;
  display: flex;
  gap: 10px;
  padding: 5px;
  box-sizing: border-box;
  align-items: center;
  background: #A7AAE1;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Thumbnail (left) */
.feed-list-container {display:flex; justify-content:space-around; gap: 20px; align-items: center; flex-wrap:wrap;}
.feed-card .thumb{
  display: block;
  width: 64px;             /* image box */
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  text-decoration: none;
}

.feed-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* ensures nice crop */
  display: block;
}

/* Meta (right) */
.feed-card .meta-box{
  flex: 1 1 auto;
  min-width: 0;            /* allow ellipsis */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background:#f0f0f0;
  padding:8px;
  border-radius:8px;
}

/* Title row: title + date */
.title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.title{
  margin: 0;
  padding:0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 60px);
}

/* Date */
.date{
  font-size: 11px;
  color: #6b7280;
  margin-left: 6px;
  flex: 0 0 auto;
}

/* Description: clamp to max 2 lines (but card is short) */
.desc{
  margin: 0;
  font-size: 12px;
  color: #374151;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.15em * 2); /* keep visual height consistent */
}
/* blog comments item */
  :root{ --accent:#c78f00; --muted:#666; font-family:system-ui,Arial; }
  /*body{ background:#f5f6f8; padding:20px; display:flex; justify-content:center; }*/
  .card{ width:100%; max-width:900px; background:#fff; padding:18px; border-radius:8px; box-shadow:0 6px 20px rgba(10,10,20,0.05); }
  .row{ display:flex; gap:10px; margin-bottom:10px; }
  input, textarea{ width:100%; padding:10px; border:1px solid #e5e7eb; border-radius:6px; font-size:14px; }
  textarea{ min-height:90px; resize:vertical; }
  button{ background:var(--accent); color:#000; border:none; padding:10px 14px; border-radius:6px; cursor:pointer; font-weight:700;}
  .muted{ color:var(--muted); font-size:13px;}
  .comments{ margin-top:18px; }
  .comment{ border:1px solid #f0f0f0; padding:12px; border-radius:8px; margin-bottom:10px; background:#fff;}
  .meta{ display:flex; justify-content:space-between; gap:8px; align-items:center; background: var(--color-blue-deep); font-size:13px; color:var(--color-white); margin-bottom:8px; padding:0px 20px;}
  .actions button{ background:none; border:none; color:var(--accent); cursor:pointer; font-weight:700; margin-left:8px; }
  .children{ margin-left:16px; margin-top:10px; }
  /* responsive table for admin view (optional) */
  .table-wrap{ overflow-x:auto; margin-top:18px; }
  table{ width:100%; border-collapse:collapse; min-width:720px; }
  th,td{ padding:10px; border-bottom:1px solid #f3f3f3; text-align:left; }
  th{ background:#fafafa; font-weight:700; }
  /*herarchy links */
  /* Basic reset for breadcrumb */
.breadcrumb { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 15px;
  background:#f0f0f0;
  padding: 5px;

}
 .breadcrumb li:first-child {
    margin-left:15px;   
 }
.breadcrumb li + li::before {
  content: "❯";
  padding: 0 6px;
  color: #999;
}

.breadcrumb a {
  text-decoration: none;
  color: #0b5cff;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li.active {
  color: #C82909;
  font-weight: 600;
  text-decoration: underline;
}

/*CSS FOR FAQ SECTION */
.faq-container {
  width: 100%;
  max-width: 100%;
  margin: 40px 0;             /* side margin hata diya */
  padding: 20px;              /* andar ka spacing */
  background: #fff;
  border-radius: 0;           /* corners straight for full-width */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.faq-container h2 {
  text-align: center;
  color: #1f2937;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  background: #f9fafb;
  border: none;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1.1rem;
}

.faq-question:hover {
  background: #f3f4f6;
}

.faq-answer {
  display: none;
  padding: 12px 20px;
  color: #374151;
  line-height: 1.6;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  display: block;
}

/* When container is too small, collapse middle items — simple approach */
@media (max-width: 640px) {
  .breadcrumb ol {
    flex-wrap: nowrap;
    gap: 0;
  }

  /* hide middle items and show ellipsis pseudo-item */
  .breadcrumb li {
    min-width: 0;
  }

  /* hide all items except first two and last one */
  .breadcrumb li:nth-child(n+3):nth-child(-n+5) { /* hide items 3..5 (adjust if you have more) */
    display: none;
  }

  /* insert an ellipsis between second and last */
  .breadcrumb ol::after {
    content: "…";
    padding: 0 6px;
    color: #666;
    display: inline-block;
    vertical-align: middle;
  }
}

/* Optional: keyboard focus visible */
.breadcrumb a:focus-visible {
  box-shadow: 0 0 0 3px rgba(11,92,255,0.15);
  border-radius: 6px;
}

/* Small helper for long names — show ellipsis */
.breadcrumb li span,
.breadcrumb a span {
  display: inline-block;
  max-width: 180px; /* adjust as needed */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
/* MEDIA QUERIES */
/*@media (max-width:1024px) { .navbar { flex-wrap:wrap; } }*/

@media screen and (max-width: 980px) {
    .menu-toggle { display:flex; }
   #nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #333;
    flex-direction: row;
    display: none;
    gap: 5px;
  }
  nav ul {flex-wrap: wrap; gap:5px; padding: 10px 0px;}
  nav ul li a { padding:10px;}
  .main-container {
      width: 100%;
    display: flex; /* confirm parent is flex */
  }
  .blog-section {
    flex: 2.5;
  }
  .sidebar {
    flex: 1.5;
  }
  .ad-fixed {position: statics;}
  .top-ad .desktop {display: none;}
  .top-ad .mobile {display: block;}
  picture img, .picture img, img {max-width: 100%;}
  
}
@media (max-width: 767px) {

  .main-container {
    width:100%;
    gap:0; /* ya minimal gap 5px */
    padding:0 10px; /* optional for spacing */
  }
  .main-container {
        flex-direction: column; /* stack vertically */
    }

  .main-container {
    flex:1; /* content expands to push footer down */
  }
    .blog-section, .sidebar {
        flex: none;
        width: 100%;
    }
  body {
    display:flex;
    flex-direction:column;
    min-height:100vh; /* ensures body takes full screen height */
    font-size:1.1rem;
  }
  .top-ad .desktop {
        display: none;
    }
    .top-ad .mobile {
        display: block;
        min-height: 250px;
        background-color: #e0e0e0; /* optional, placeholder color */
    }
  .text-box {background:#fff; font-family: "Poppins", sans-serif; border-radius:15px; line-height: 2.0rem;}
.text-box ul li {margin-left: 20px;}
    .text-box p, 
    .text-box li, 
    .text-box strong, 
    .text-box a {
    font-size: 1.1rem;
    }
.text-box p{ text-align: justify; }
  .post-card {
    box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* reduce spread */
  }
  footer {
    margin-top:0; /* remove extra top margin on small screens */
    padding:15px 10px; /* adjust padding if needed */
  }
  .sidebar, .quick-access {width:100%;}
  
    picture img, .picture img, img {max-width: 100%;}
  .menu-toggle { display:flex; }
  #nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #333;
    flex-direction: column;
    display: none;
    gap: 5px;
  }
  nav ul {flex-direction:column; width:100%; background:#333; text-align:center; gap:5px;}
  nav ul li { border: 1px solid #fafafa;}
  nav ul li a { display:block; padding:10px; text-align: left;}
}

  @media (max-width:767px){ 
      .row{ flex-direction:column; } 
      table{ min-width:100%; } 
      
  }
  
  /* Small responsive tweak (if container shrinks) BLOG ITEMS */
@media (max-width: 360px){
  .feed-card{ width:100%; height:84px; }
  .feed-card .thumb{ width:68px; height:68px; flex:0 0 68px; }
}

/* Tablet (medium screens) */
@media (max-width: 980px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.25rem; }
    h6 { font-size: 1rem; }
}

/* Mobile (small screens) */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}
