/* ===== Global Styles ===== */
/* ===== General ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef8f9;
  color: #333;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: auto;
}

/* ===== Header ===== */
header {
  background: #2C6569;
  color: #fff;
  padding: 4px 0;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-logo {
  width: 55px;
  height: 55px;
  margin-top: 5px;
  object-fit: contain;
  border-radius: 100%;
}

.site-text {
  text-align: left;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
}

.site-tagline {
  margin: 0;
  color: #ffffff !important;
  font-weight: 500;
  text-shadow: 0 0 4px rgba(0,0,0,0.2);
  letter-spacing: 0.3px;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  padding-right: 10px;
}

.hamburger span {
  height: 3px;
  width: 20px;
  background: #fff;
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Category Bar (Large Screens) ===== */
.category-bar {
  background: transparent;
  padding: 0 10px;
  white-space: nowrap;
  margin-left: 150px;
  position: relative;
  z-index: 1000;
  flex: 1;
}

.category-bar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-bar ul li {
  margin-right: 20px;
}

.category-bar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 0;
  display: block;
  transition: all 0.3s ease;
}

.category-bar ul li a:hover {
  color: #ffd700;
  text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* ===== Drawer Menu (Mobile) ===== */
.drawer-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 10%;
  right: -60%;
  width: 60%;
  background: #2C6569;
  z-index: 1002;
  transition: right 0.35s ease;
  box-shadow: -2px 0 15px rgba(0,0,0,0.25);
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;

  height: auto;          /* ⭐ key */
  max-height: 90vh;      /* ⭐ limit */
  overflow-y: auto;      /* scroll only if needed */
  padding-top: 20px;
}


/* Style bullets properly */
.drawer-menu ul li a {
  color: #ffffff;
  font-size: 1.1rem;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.drawer-menu ul li a::before {
  font-size: 1rem;
  margin-right: 12px;
  opacity: 0.85;
}

/* Individual symbols */
.drawer-menu a.home::before { content: "◉"; color: #dfe6ed; }
.drawer-menu a.pakistan::before { content: "☪"; color: #6fd19c; }
.drawer-menu a.afghanistan::before { content: "✦"; color: #e6c57a; }
.drawer-menu a.india::before { content: "☀"; color: #f4b860; }
.drawer-menu a.islam::before { content: "☪"; color: #4dd6a0; }
.drawer-menu a.international::before { content: "🌐"; color: #9ac8ff; }
.drawer-menu a.tech::before { content: "⚙"; color: #cfd8dc; }
.drawer-menu a.health::before { content: "✚"; color: #f28b82; }

/* Hover effect — subtle */
.drawer-menu ul li a:hover {
  background: rgba(255,255,255,0.08);
  padding-left: 26px;
}



.drawer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-menu ul li {
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.drawer-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 15px 20px;
  display: block;
  transition: all 0.3s ease;
}

.drawer-menu ul li a:hover {
  background: rgba(255,255,255,0.1);
  padding-left: 25px;
}

/* Show drawer */
.drawer-menu.show {
  right: 0;
}

/* Overlay */
#drawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1001;
}

#drawerOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* Scrollbar styling */
.drawer-menu::-webkit-scrollbar {
  width: 6px;
}

.drawer-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Hide large screen menu */
  .category-bar {
    display: none !important;
  }

.site-title {
  font-size: 1.4rem;
  margin: 0;
}
}

/* ===== Layout ===== */
.main-grid {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: flex-start; /* ⭐ KEY FIX */
}

/* Smooth fade animation (if needed elsewhere) */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* ===== Main Article ===== */
.main-article {
  flex: 2;
  background: #fff;
  padding-left: 14px;
  padding-right:14px;
  padding-bottom:14px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.post-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #222;
  line-height: 1.25;   /* ideal for titles */
  margin: 0;           /* removes top & bottom gaps */
}


.post-meta {
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #333;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: fit-content;
  margin-bottom: 0px;
  
}

.post-meta .separator {
  color: #ffffff;
}

.post-date,
.post-views {
  font-weight: 500;
}

.post-date::before {
  content: "";
}

.post-views::before {
  content: "";
}


.post-description {
  line-height: 1.7;
  margin:10px 0;
}

.post-category a {
  color: inherit;          /* same color as normal text */
  text-decoration: none;   /* remove underline */
  font-weight: 500;        /* optional: slight emphasis */
}

.post-category a:hover {
  text-decoration: underline; /* optional hover effect */
}


/* ===== Article Images ===== */
.feature-image {
  width: 100%;
  max-width: 800px;     /* optional max width */
  height: 350px;        /* fixed height to prevent huge tall images */
  margin: 20px auto;
  border-radius: 10px;
  background-size: contain;   /* scales image fully inside container */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0; /* optional background */
}



/* Mobile screens */
@media (max-width: 800px) {
  .feature-image {
    width: 100%;
    height: auto;              /* 🔑 */
    aspect-ratio: 16 / 10;      /* mustateel */
    margin: 8px auto;
    border-radius: 10px;
    background-size: contain;
    background-position: center;
  }
}



/* ===== Sidebar ===== */
/* Sidebar container */
.sidebar {
  flex: 1;
  background: #fff;
  padding: 15px; /* reduced padding */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  overflow-y: auto;
}

/* Sidebar heading */
.sidebar-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #1a73e8;
  text-align: center;
}

/* Sidebar article block */
.sidebar-item {
  display: block;
  text-decoration: none;
  color: #333;
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 8px;
  transition: background 0.25s, transform 0.2s;
  direction: rtl;
  text-align: right;
}

/* Image (compact & clean) */
.sidebar-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0;
  padding: 0;
}

/* Title text */
.sidebar-item span {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 6px;          /* small space under image */
  direction: rtl;
  text-align: right;
}

/* Soft zebra stripes */
.sidebar-item:nth-child(odd) {
  background: #d9e3fe;
}

.sidebar-item:nth-child(even) {
  background: #e7fcd4;
}

/* Hover effect */
.sidebar-item:hover {
  background: #eaf2ff;
  transform: translateY(-2px);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 5px;
  background: #2C6569;
  color: #fff;
  margin-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .main-grid {
    flex-direction: column;
  }

  .sidebar {
    max-height: none;
  }
}

/* === Share Section === */
.share-title {
  text-align: center;
  font-size: 1rem;
  margin: 20px 0 5px;
  font-weight: bold;
  color: #545454;
}

/* Wrapper */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0;
}

/* Each button container */
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  gap: 10px; /* distance between circle and label */
}

/* Circle container */
.share-btn .icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* SVG icon inside circle */
.share-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Label */
.share-btn span {
  font-size: 0.9rem;
  color: #444;
  transition: color 0.3s ease;
  text-align: center;
}

/* Hover effect */
.share-btn:hover .icon-circle {
  transform: scale(1.1);
  box-shadow: 0 0 12px currentColor;
}

.share-btn:hover span {
  color: currentColor;
  font-weight: bold;
}

/* Brand colors */
.share-btn.facebook { color: #1877f2; }
.share-btn.whatsapp { color: #25d366; }
.share-btn.twitter  { color: #1da1f2; }
.share-btn.telegram { color: #0088cc; }

/* Click pulse */
.share-btn:active .icon-circle {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 600px) {
  .share-btn .icon-circle {
    width: 45px;
    height: 45px;
  }

  .share-btn svg {
    width: 24px;
    height: 24px;
  }

  .share-btn span {
    font-size: 0.85rem;
  }
}

/* ===== Sticky Footer Layout ===== */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  
}

main {
  flex: 1;
  margin-bottom: -10px;
}

/* ===== Footer Styling ===== */
footer {
  background: #2C6569;
  padding-top: 10px;
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25); /* subtle contrast glow */
  font-weight: 500;
}

/* Footer links */
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-links a:hover {
  color: #ffdd57; /* goldish hover effect */
  text-shadow: 0 0 6px rgba(255, 221, 87, 0.6);
}

/* Hide mobile cat bar on desktop */
#mobileCatBar {
  display: none;
}

@media (max-width: 768px) {

  /* Mobile bar container */
  #mobileCatBar {
    display: block;
    background: #a7f2f6;
    margin: 5px 0;
    padding: 8px 0;
    width: 100%;
    border-radius:10px;
    
  }

  #mobileCatBar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;                 /* Small spacing */
  }

  #mobileCatBar li {
    display: inline-block;
  }

  #mobileCatBar a {
    display: block;
    padding: 8px 16px;        /* SAME small button as before */
    background: #2C6569;      /* Darker blue button */
    color: #fff;
    text-decoration: none;
    font-size: 14px;          /* Compact size */
    border-radius: 5px;
    white-space: nowrap;
  }

  #mobileCatBar a:hover {
    background: #052c65;      /* Slightly darker on hover */
  }

  /* Hide top bar on mobile */
  #categoryBar {
    display: none;
  }
}

/* Desktop: top bar stays visible */
@media (min-width: 769px) {
  #categoryBar {
    display: block;
  }
}
