/*
 Theme Name:  Akash Storage Blog
 Theme URI:   https://akashwarehouse.com
 Author:      Akash Storage & Distribution Services Pvt Ltd
 Description: Custom WordPress theme matching the Akash Storage & Distribution Services website.
 Version:     1.0.0
 Text Domain: akash-storage
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:         #07122e;
  --ink-mid:     #0f2050;
  --orange:      #e21f2f;
  --orange-dark: #b1232e;
  --white:       #ffffff;
  --surface:     #f8fafc;
  --surface-2:   #f1f5f9;
  --border:      #e2e8f0;
  --border-dark: #cbd5e1;
  --muted:       #64748b;
  --text:        #0f172a;
  --text-soft:   #334155;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.12);
  --r-sm:        8px;
  --r:           14px;
  --t:           .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.heading {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.heading span { color: var(--orange); }
.subheading {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 580px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-dark);
}
.btn-outline-dark:hover { background: var(--surface-2); color: var(--ink); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.07); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 64px; width: auto; object-fit: contain; }
.nav-logo-text { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  transition: color var(--t), background var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); background: var(--surface-2); }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  transition: color var(--t), background var(--t);
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--ink); background: var(--surface-2); }
.nav-dropdown-toggle .dd-arrow { font-size: 10px; transition: transform var(--t); color: var(--muted); }
.nav-dropdown:hover .dd-arrow,
.nav-dropdown.open  .dd-arrow { transform: rotate(180deg); color: var(--orange); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open  .nav-dropdown-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background var(--t), color var(--t);
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-dropdown-menu a i { width: 18px; text-align: center; color: var(--orange); font-size: 13px; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.nav-dropdown-menu .dd-all { font-weight: 700; color: var(--orange) !important; }
.nav-dropdown-menu .dd-all:hover { background: rgba(226,31,47,.06) !important; }

/* CTA button in nav */
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(226,31,47,.35);
  transition: background var(--t), transform var(--t) !important;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border-radius: 7px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 16px 28px 28px;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mob-cta {
  background: var(--orange);
  color: var(--white) !important;
  text-align: center;
  padding: 13px !important;
  border-radius: 8px;
  margin-top: 14px;
  font-weight: 700;
  border: none;
}

/* =============================================
   BLOG HERO / PAGE HERO
   ============================================= */
.blog-hero {
  background: #07122e !important;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  display: block;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(226,31,47,.12) 0%, transparent 70%);
}
.blog-hero .container { position: relative; }

/* Breadcrumb — shared across blog-hero and post-hero */
.blog-hero .post-breadcrumb { margin-bottom: 24px; }

.blog-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226,31,47,.15);
  color: #ff8a8a;
  border: 1px solid rgba(226,31,47,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 540px;
}

/* =============================================
   BLOG POST GRID (index / archive)
   ============================================= */
.blog-section { padding: 72px 0 100px; background: var(--surface); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-thumb-placeholder i { font-size: 40px; color: rgba(255,255,255,.15); }

.blog-card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }

.blog-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.blog-card-cat {
  background: rgba(226,31,47,.07);
  color: var(--orange);
  border: 1px solid rgba(226,31,47,.15);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color var(--t);
}
.blog-card:hover .blog-card-title { color: var(--orange); }

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-card-meta i { color: var(--orange); font-size: 11px; }

.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 16px;
  transition: gap var(--t);
}
.blog-card:hover .blog-card-read { gap: 10px; }

/* Pagination — paginate_links outputs .page-numbers on each element */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 52px;
}
/* Target every link/span WordPress emits */
.blog-pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-soft);
  transition: all var(--t);
  text-decoration: none;
}
.blog-pagination a.page-numbers:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.blog-pagination .page-numbers.current {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
/* Prev / Next arrows — slightly wider */
.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers {
  width: auto;
  padding: 0 14px;
  font-size: 12px;
}

/* =============================================
   SINGLE POST HERO
   ============================================= */
.post-hero {
  background: #07122e !important;
  margin-top: 80px;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  display: block;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(226,31,47,.10) 0%, transparent 70%);
  pointer-events: none;
}
.post-hero-inner {
  position: relative;
  max-width: 800px;
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
}
.post-breadcrumb a {
  color: rgba(255,255,255,.55);
  transition: color var(--t);
}
.post-breadcrumb a:hover { color: var(--orange); }
.post-breadcrumb i {
  font-size: 9px;
  color: rgba(255,255,255,.25);
}
.post-breadcrumb span {
  color: rgba(255,255,255,.75);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.post-cat {
  background: rgba(226,31,47,.18);
  color: #ff9999;
  border: 1px solid rgba(226,31,47,.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: background var(--t);
}
.post-cat:hover { background: rgba(226,31,47,.35); color: #fff; }

.post-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.4px;
  margin-bottom: 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.post-meta i { color: var(--orange); margin-right: 5px; }

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-wrap {
  padding: 80px 0 100px;
  background: var(--white);
}
.single-post-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* Featured image */
.post-featured-img {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}
.post-featured-img img { width: 100%; object-fit: cover; }

/* Post content */
.post-content {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
}
.post-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 40px 0 16px; }
.post-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.post-content p  { margin-bottom: 22px; }
.post-content ul,
.post-content ol { padding-left: 24px; margin-bottom: 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a  { color: var(--orange); text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-soft);
}
.post-content img { border-radius: 10px; margin: 28px 0; }
.post-content strong { color: var(--ink); font-weight: 700; }

/* Tags */
.post-tags { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.post-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-soft);
  transition: all var(--t);
}
.post-tag:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-recent li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent a { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; transition: color var(--t); }
.sidebar-recent a:hover { color: var(--orange); }
.sidebar-recent .date { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: block; }
.sidebar-cats li { padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a { font-size: 13.5px; color: var(--text-soft); transition: color var(--t); }
.sidebar-cats a:hover { color: var(--orange); }
.sidebar-cats .count { background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 1px 9px; font-size: 11px; font-weight: 700; color: var(--muted); }

/* Sidebar CTA */
.sidebar-cta {
  background: var(--ink);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.sidebar-cta h3 { font-size: 16px; font-weight: 800; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.sidebar-cta p  { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 20px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* =============================================
   RELATED POSTS
   ============================================= */
.related-posts { padding: 60px 0 80px; background: var(--surface); }
.related-posts-header { margin-bottom: 32px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #060e22; padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 52px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand img { height: 40px; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.4); line-height: 1.75; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: background var(--t), color var(--t);
}
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-col h4 { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,.45); transition: color var(--t); display: inline-flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-col ul li a i { font-size: 9px; color: var(--orange); }
.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-ci { display: flex; gap: 12px; align-items: flex-start; }
.footer-ci i { color: var(--orange); font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.footer-ci a, .footer-ci span { font-size: 13.5px; color: rgba(255,255,255,.45); transition: color var(--t); line-height: 1.55; }
.footer-ci a:hover { color: var(--orange); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.25);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .single-post-inner { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
