@font-face {
    font-family: 'Cairo';
    src: url('../../resources/fonts/cairo-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../../resources/fonts/cairo-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Nastaliq Urdu';
    src: url('../../resources/fonts/noto-nastaliq-urdu-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

/* noto-nastaliq-urdu-regular - arabic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 400;
  src: url('../../resources/fonts/noto-nastaliq-urdu-v23-arabic_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-nastaliq-urdu-700 - arabic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 700;
  src: url('../../resources/fonts/noto-nastaliq-urdu-v23-arabic_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --brand: #4a7fa5;
  --brand-dark: #2e5f80;
  --brand-deeper: #1c3f57;
  --brand-light: #d6e8f4;
  --brand-pale: #edf4f9;
  --gold: #c8a84b;
  --gold-light: #f5e9c8;
  --text-main: #1a2a35;
  --text-muted: #5a7a8a;
  --bg: #f4f8fb;
  --white: #ffffff;
  --radius: 14px;
  --font-urdu: 'Noto Nastaliq Urdu', 'Cairo', serif;
  --font-ui: 'Cairo', sans-serif;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  width: 100%;
}

.wrap {
  font-family: var(--font-urdu);
  direction: rtl;
  background: var(--bg);
  color: var(--text-main);
  width: 100%;
  min-height: 600px;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--brand-deeper);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-circle svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-urdu);
  letter-spacing: 0;
}

.brand-sub {
  color: var(--gold);
  font-size: 10px;
  font-family: var(--font-ui);
  display: block;
  line-height: 1;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-urdu);
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 5px 14px;
  gap: 8px;
}

.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-urdu);
  font-size: 13px;
  width: 140px;
}

.nav-search input::placeholder { color: rgba(255,255,255,0.5); }

.nav-search svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }

@media (max-width: 768px){

  .navbar{
    padding: 0 14px;
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links{
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 6px;
  }

  .nav-links a{
    font-size: 13px;
    padding: 5px 10px;
  }

  .nav-search{
    width: 100%;
    justify-content: space-between;
  }

  .nav-search input{
    width: 100%;
  }
}








/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--brand-deeper) 0%, var(--brand-dark) 50%, var(--brand) 100%);
  position: relative;
  padding: 72px 40px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: 
    radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, #fff 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, #fff 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 50px 50px;
}

.hero-ornament {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 28px;
  border-radius: 2px;
  position: relative;
}

.hero-ornament::before,
.hero-ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-ornament::before { right: -14px; }
.hero-ornament::after { left: -14px; }

.hero h1 {
  font-family: var(--font-urdu);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 2;
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
}

.hero-search-box {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
  gap: 10px;
}

.hero-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-urdu);
  font-size: 15px;
  color: var(--text-main);
  background: transparent;
  direction: rtl;
}

.hero-search-box input::placeholder { color: #aaa; }

.search-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 22px;
  font-family: var(--font-urdu);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.search-btn:hover { background: var(--brand-dark); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid #e0ecf4;
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  padding: 18px 40px;
  text-align: center;
  border-left: 1px solid #e0ecf4;
}

.stat-item:last-child { border-left: none; }

.stat-num {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-urdu);
}


@media (max-width: 768px){

  .hero{
    padding: 45px 16px 55px;
  }

  .hero h1{
    font-size: 24px;
    line-height: 2;
  }

  .hero p{
    font-size: 14px;
    line-height: 2.2;
  }

  .hero-search-box{
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
  }

  .search-btn{
    width: 100%;
  }
}








@media (max-width: 768px){

  .stats-bar{
    flex-wrap: wrap;
  }

  .stat-item{
    flex: 1 1 50%;
    padding: 14px;
  }
}





/* ── TOPICS ── */
.section { padding: 48px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-line {
  height: 3px;
  width: 40px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-urdu);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.topic-card {
  background: var(--white);
  border: 1.5px solid var(--brand-light);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.topic-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(74,127,165,0.15);
  transform: translateY(-2px);
}

.topic-card:hover::before { transform: scaleX(1); }

.topic-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
}

.topic-name {
  font-family: var(--font-urdu);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.topic-count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-top: 4px;
}

/* ── POSTS ── */
.posts-section {
  background: var(--white);
  padding: 48px 40px;
  border-top: 1px solid #e0ecf4;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.post-card {
  background: var(--white);
  border: 1px solid #d8eaf4;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(74,127,165,0.14);
  transform: translateY(-3px);
  border-color: var(--brand-light);
}

.post-img {
  height: 140px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-img-accent {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(74,127,165,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.post-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-urdu);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}

.post-body {
  padding: 18px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-family: var(--font-urdu);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 10px;
}

.post-excerpt {
  font-family: var(--font-urdu);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2;
  flex: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef4f8;
}

.post-date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.read-more {
  background: var(--brand-pale);
  color: var(--brand-dark);
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-urdu);
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}

.read-more:hover {
  background: var(--brand);
  color: #fff;
}



@media (max-width: 900px){
  .topics-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .topics-grid{
    grid-template-columns: 1fr;
  }
}


@media (max-width: 900px){
  .posts-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px){
  .posts-grid{
    grid-template-columns: 1fr;
  }

  .post-footer{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ── FOOTER ── */
.footer {
  background: var(--brand-deeper);
  color: rgba(255,255,255,0.7);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--gold);
}

.footer-brand {
  font-family: var(--font-urdu);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.footer-sub {
  font-family: var(--font-urdu);
  font-size: 12px;
  color: var(--gold);
  margin-top: 4px;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 13px;
}





/* ─────────────────────────────
   SMALL HERO
───────────────────────────── */

.small-hero{
  padding: 60px 40px;
}

/* ─────────────────────────────
   ADMIN MAIN BUTTON
───────────────────────────── */

.admin-main-btn{
  display: inline-block;
  margin-top: 10px;

  background: var(--gold);
  color: #fff;

  text-decoration: none;

  padding: 10px 24px;

  border-radius: 30px;

  font-family: var(--font-urdu);
  font-size: 14px;
  font-weight: 700;

  transition: all 0.25s;
}

.admin-main-btn:hover{
  background: #b18f32;
  transform: translateY(-2px);
}

/* ─────────────────────────────
   POST IMAGE
───────────────────────────── */

.post-cover{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-placeholder{
  width: 70px;
  height: 70px;

  border-radius: 50%;

  background: rgba(74,127,165,0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;
}

/* ─────────────────────────────
   POST TITLE LINK
───────────────────────────── */

.post-title a{
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-title a:hover{
  color: var(--brand);
}

/* ─────────────────────────────
   ADMIN ACTIONS
───────────────────────────── */

.admin-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-btn,
.delete-btn{
  text-decoration: none;

  font-family: var(--font-ui);

  font-size: 12px;
  font-weight: 700;

  padding: 5px 12px;

  border-radius: 20px;

  transition: all 0.2s;
}

/* EDIT */

.edit-btn{
  background: #e7f3fb;
  color: var(--brand-dark);
}

.edit-btn:hover{
  background: var(--brand);
  color: #fff;
}

/* DELETE */

.delete-btn{
  background: #fdeaea;
  color: #c0392b;
}

.delete-btn:hover{
  background: #d63031;
  color: #fff;
}

/* ─────────────────────────────
   MOBILE
───────────────────────────── */

@media(max-width:900px){

  .posts-grid{
    grid-template-columns: repeat(2,1fr);
  }

}

@media(max-width:700px){

  .posts-grid{
    grid-template-columns: 1fr;
  }

  .hero{
    padding: 50px 20px 60px;
  }

  .posts-section,
  .section{
    padding: 36px 20px;
  }

  .post-footer{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}








/* =========================
   ARTICLE PAGE (REFINED)
========================= */

.article-layout{
  padding: 70px 0;
  background: var(--bg);
}

/* WRAPPER (more premium book style) */
.article-wrapper{
  background: #fff;

  border-radius: 30px;

  padding: 70px 65px;

  box-shadow: 0 18px 60px rgba(0,0,0,0.08);

  max-width: 980px;
  margin: auto;

  border: 1px solid rgba(74,127,165,0.08);

  position: relative;
}

/* subtle top accent line (premium touch) */
.article-wrapper::before{
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;

  background: linear-gradient(
    90deg,
    var(--gold),
    var(--brand),
    var(--gold)
  );

  border-radius: 30px 30px 0 0;
}

/* BREADCRUMB */
.article-breadcrumb{
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 28px;

  color: var(--text-muted);
  font-size: 14px;
}

.article-breadcrumb a{
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.article-breadcrumb a:hover{
  color: var(--brand);
}

/* TITLE (more balanced than previous) */
.article-title{
  font-size: 44px;
  line-height: 2.2;

  color: var(--brand-deeper);

  margin-bottom: 18px;

  font-family: var(--font-urdu);
}

/* META */
.article-meta{
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--text-muted);

  margin-bottom: 35px;

  font-size: 14px;
}

/* IMAGE (more elegant) */
.article-image{
  width: 100%;
  border-radius: 22px;

  margin-bottom: 35px;

  max-height: 500px;
  object-fit: cover;

  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* TAGS (softer + cleaner) */
.article-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 40px;
}

.tag-chip{
  background: var(--brand-pale);
  color: var(--brand-deeper);

  padding: 8px 16px;
  border-radius: 30px;

  font-size: 13px;

  border: 1px solid rgba(74,127,165,0.15);
}

/* =========================
   CONTENT (IMPORTANT PART)
========================= */

.article-content{
  font-size: 22px;
  line-height: 2.9;

  color: var(--text-main);

  font-family: var(--font-urdu);

  direction: rtl;
}

/* paragraphs spacing improved */
.article-content p{
  margin-bottom: 30px;
}

/* HEADINGS */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4{
  color: var(--brand-deeper);

  margin: 55px 0 25px;

  line-height: 2.3;

  position: relative;
}

/* subtle underline effect */
.article-content h2::after{
  content: '';
  display: block;

  width: 60px;
  height: 3px;

  background: var(--gold);

  margin-top: 10px;
  border-radius: 2px;
}

/* BLOCKQUOTE (your “box style” improved) */
.article-content blockquote{
  background: linear-gradient(
    135deg,
    var(--brand-pale),
    #ffffff
  );

  border-right: 5px solid var(--gold);

  padding: 28px;

  border-radius: 18px;

  margin: 45px 0;

  color: var(--brand-deeper);

  font-size: 20px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* IMAGES */
.article-content img{
  max-width: 100%;
  border-radius: 18px;

  margin: 35px 0;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* LINKS */
.article-content a{
  color: var(--brand);
  text-decoration: underline;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .article-wrapper{
    padding: 35px 20px;
    border-radius: 20px;
  }

  .article-title{
    font-size: 30px;
  }

  .article-content{
    font-size: 19px;
    line-height: 2.5;
  }
}

@media (max-width: 768px){

  .article-layout{
    padding: 30px 12px;
  }

  .article-wrapper{
    padding: 25px 16px;
    border-radius: 18px;
  }

  .article-title{
    font-size: 26px;
    line-height: 2.2;
  }

  .article-content{
    font-size: 18px;
    line-height: 2.4;
  }

  .article-meta{
    flex-wrap: wrap;
  }
}













/* =========================
   SEARCH PAGE (HOME STYLE MATCH)
========================= */

.search-page{
  background: var(--bg);
}

/* FILTER SECTION */
.search-filter-section{
  padding: 40px 40px;
}

/* FORM BOX */
.search-box-wrapper{
  max-width: 900px;
  margin: auto;

  background: #fff;

  border-radius: var(--radius);

  padding: 30px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.06);

  border: 1px solid rgba(74,127,165,0.08);
}

/* FORM */
.search-form{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: end;
}

/* INPUT GROUP */
.search-group label{
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.search-group input,
.search-group select{
  width: 100%;
  padding: 12px 14px;

  border-radius: 12px;
  border: 1px solid #d8eaf4;

  font-family: var(--font-urdu);

  outline: none;
}

/* BUTTON */
.search-btn-main{
  background: var(--brand);
  color: #fff;

  border: none;

  padding: 12px 20px;

  border-radius: 14px;

  font-family: var(--font-urdu);
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s;
}

.search-btn-main:hover{
  background: var(--brand-dark);
}

/* EMPTY STATE */
.empty-state{
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

/* MOBILE */
@media(max-width:900px){

  .search-form{
    grid-template-columns: 1fr;
  }

  .search-filter-section{
    padding: 20px;
  }

}

@media (max-width: 900px){

  .search-form{
    grid-template-columns: 1fr;
  }

  .search-box-wrapper{
    padding: 20px;
  }
}





/* =========================
   CREATE POST PAGE (HOME STYLE)
========================= */

.create-post-page{
  background: var(--bg);
}

.create-section{
  padding: 40px;
}

.create-box{
  max-width: 950px;
  margin: auto;

  background: #fff;
  padding: 35px;

  border-radius: var(--radius);

  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* FORM */
.form-group{
  margin-bottom: 20px;
}

.form-group label{
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.form-group input,
.form-group textarea{
  width: 100%;
  padding: 12px;

  border: 1px solid #d8eaf4;
  border-radius: 12px;

  font-family: var(--font-urdu);
}

/* TABS */
.editor-tabs{
  display:flex;
  gap:10px;
  margin-bottom:15px;
}

.tab-btn{
  padding:8px 16px;
  border:none;
  border-radius:20px;
  cursor:pointer;
  background:var(--brand-pale);
  color:var(--brand-dark);
}

.tab-btn.active{
  background:var(--brand);
  color:#fff;
}


@media (max-width: 768px){

  .create-box{
    padding: 20px;
  }

  .editor-tabs{
    flex-direction: column;
  }

  .tab-btn{
    width: 100%;
  }

  .form-group input,
  .form-group textarea{
    font-size: 14px;
  }
}

























/* =========================================================
   NEW MOBILE HEADER
========================================================= */

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* SEARCH + MENU BUTTONS */

.search-toggle,
.menu-toggle{

  width:42px;
  height:42px;

  border:none;
  outline:none;

  border-radius:12px;

  background:
  rgba(255,255,255,0.12);

  color:#fff;

  cursor:pointer;

  transition:0.25s;
}

.search-toggle:hover,
.menu-toggle:hover{

  background:
  rgba(255,255,255,0.22);
}

/* HIDE MENU BUTTON ON DESKTOP */

.menu-toggle{
  display:none;
}

/* SEARCH OVERLAY */

.search-overlay{

  position:fixed;

  inset:0;

  background:
  rgba(0,0,0,0.65);

  backdrop-filter:blur(8px);

  z-index:3000;

  opacity:0;
  visibility:hidden;

  transition:0.3s;

  display:flex;
  align-items:flex-start;
  justify-content:center;

  padding-top:100px;
}

.search-overlay.active{

  opacity:1;
  visibility:visible;
}

/* SEARCH BOX */

.search-box{

  width:min(92%,700px);

  background:#fff;

  border-radius:22px;

  padding:14px;

  display:flex;
  align-items:center;

  gap:12px;

  box-shadow:
  0 20px 60px rgba(0,0,0,0.2);
}

.search-box input{

  flex:1;

  border:none;
  outline:none;

  background:none;

  font-size:18px;

  font-family:var(--font-urdu);

  color:var(--text-main);
}

/* SEARCH BUTTON */

.search-submit{

  border:none;

  background:var(--brand);

  color:#fff;

  padding:12px 22px;

  border-radius:14px;

  cursor:pointer;

  font-family:var(--font-urdu);
}

/* MOBILE */

@media(max-width:900px){
    
  .brand-sub{
      display: none;
  }

  /* HIDE OLD SEARCH */

  .nav-search{
    display:none;
  }

  /* SHOW MENU BUTTON */

  .menu-toggle{
    display:block;
  }

  /* MOBILE MENU */

  .nav-links{

    position:fixed;

    top:72px;
    right:-100%;

    width:290px;
    height:calc(100vh - 72px);

    background:
    linear-gradient(
      180deg,
      var(--brand-deeper),
      #173448
    );

    flex-direction:column;

    align-items:flex-start;

    padding:25px;

    gap:8px;

    transition:0.35s;

    z-index:2000;
  }

  .nav-links.active{
    right:0;
  }

  .nav-links li{
    width:100%;
  }

  .nav-links a{

    display:block;

    width:100%;

    padding:14px 16px;

    border-radius:14px;
  }

}

@media(max-width:600px){

  .navbar{
    padding:0 14px;
  }

  .search-box{
    flex-direction:column;
  }

  .search-submit{
    width:100%;
  }

}