/*
Theme Name: Astana-e-Quadeeriya
Theme URI: https://quadeeriya.com
Author: Astana-e-Quadeeriya
Description: A ready-made theme for the Astana-e-Quadeeriya shrine website (Halkatta Sharif, Wadi), with bilingual English/Urdu content, teal & white styling, and shrine photography built in. Activate and the Home, About and Contact pages are created automatically.
Version: 1.2
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astana-quadeeriya
*/

:root{
  --teal-dark:#0a4d54;
  --teal:#0e7c86;
  --teal-light:#13a3af;
  --teal-pale:#eaf6f7;
  --gold:#c9a227;
  --ink:#1c2b2c;
  --muted:#5a6b6c;
  --white:#ffffff;
  --border:#dcebec;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Poppins', -apple-system, Segoe UI, Arial, sans-serif;
  color:var(--ink);
  background-color:#eef4f1 !important;
  background-image: radial-gradient(rgba(11, 49, 33, 0.06) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
  line-height:1.7;
}
img{max-width:100%;display:block;}
a{color:var(--teal);text-decoration:none;}
a:hover{color:var(--teal-dark);}
.urdu{
  font-family:'Noto Nastaliq Urdu','Jameel Noori Nastaleeq',serif;
  direction:rtl;
  text-align:right;
  line-height:2.2;
  color:var(--ink);
}
.container{max-width:1120px;margin:0 auto;padding:0 24px;}

/* ---------- Full-Width Premium Spread Header ---------- */
.site-header{
  background:#ffffff !important;
  border-bottom:1px solid #dcebec !important;
  position:sticky !important;top:0 !important;
  z-index:1000 !important;
  box-shadow:0 4px 15px rgba(10, 77, 84, 0.08) !important;
  width:100% !important;
}
.header-inner{
  display:flex !important;align-items:center !important;
  justify-content:space-between !important;
  max-width:100% !important;margin:0 !important;
  padding:12px 35px !important;width:100% !important;
}
.site-branding{
  display:flex !important;align-items:center !important;
  gap:14px !important;flex-shrink:0 !important;
}
.site-branding img, 
.custom-logo, 
.site-header img,
.site-branding .logo-mark-img{
  width:52px !important;height:52px !important;
  min-width:52px !important;min-height:52px !important;
  max-width:52px !important;max-height:52px !important;
  object-fit:cover !important;border-radius:50% !important;
  border:2px solid var(--gold) !important;
  box-shadow:0 3px 8px rgba(10,77,84,0.2) !important;
  display:block !important;flex-shrink:0 !important;
}
.site-branding .site-title,
.site-branding .site-title a{
  font-size:16.5px !important;font-weight:700 !important;
  color:var(--teal-dark) !important;line-height:1.2 !important;
  white-space:nowrap !important;margin:0 !important;
  text-decoration:none !important;
}
.site-branding .site-title small,
.site-description{
  display:block !important;font-size:11.5px !important;
  font-weight:400 !important;color:var(--muted) !important;
  white-space:nowrap !important;margin:2px 0 0 0 !important;
}

/* ---------- Pill-Shaped Deep Green & Gold Menu Buttons ---------- */
.main-navigation, .main-nav{
  display:flex !important;align-items:center !important;
}
.main-navigation ul, .main-nav ul{
  display:flex !important;align-items:center !important;
  justify-content:flex-end !important;gap:10px !important;
  list-style:none !important;margin:0 !important;padding:0 !important;
  flex-wrap:nowrap !important;
}
.main-navigation ul li a, .main-nav a{
  font-size:13.5px !important;font-weight:700 !important;
  color:#ffffff !important;background:#0b3121 !important;
  padding:10px 18px !important;border-radius:30px !important;
  border:1.5px solid #c9a227 !important;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition:all 0.25s ease !important;text-decoration:none !important;
  display:inline-block !important;white-space:nowrap !important;
  letter-spacing:0.3px !important;
}
.main-navigation ul li a:hover, .main-nav a:hover{
  background:#114c32 !important;color:#f6e58d !important;
  border-color:#f6e58d !important;transform:translateY(-2px) !important;
  box-shadow:0 6px 18px rgba(11, 49, 33, 0.3) !important;
}
.nav-toggle{display:none;background:none;border:none;font-size:26px;color:var(--teal-dark);cursor:pointer;}

/* ---------- Hero ---------- */
.hero{
  position:relative;color:var(--white);overflow:hidden;
  padding:110px 24px 90px;text-align:center;
}
.hero-slideshow{position:absolute;inset:0;z-index:0;}
.hero-slide{
  position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;animation:heroFade 25s infinite;
}
.hero-slide:nth-child(1){animation-delay:0s;}
.hero-slide:nth-child(2){animation-delay:5s;}
.hero-slide:nth-child(3){animation-delay:10s;}
.hero-slide:nth-child(4){animation-delay:15s;}
.hero-slide:nth-child(5){animation-delay:20s;}
@keyframes heroFade{
  0%{opacity:0;transform:scale(1);}
  4%{opacity:1;}
  16%{opacity:1;transform:scale(1.09);}
  20%{opacity:0;transform:scale(1.09);}
  100%{opacity:0;}
}
.hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(10,77,84,.38), rgba(10,77,84,.58));
}
.hero > .container{position:relative;z-index:2;}
.hero .eyebrow{
  letter-spacing:2px;text-transform:uppercase;font-size:13px;
  color:var(--gold);font-weight:600;margin-bottom:14px;
  animation:fadeDown .7s ease both;text-shadow:0 2px 8px rgba(0,0,0,.55);
}
.hero h1{font-size:44px;margin:0 0 6px;font-weight:700;animation:fadeUp .8s ease .1s both;text-shadow:0 2px 14px rgba(0,0,0,.5);}
.hero h1 .urdu-line{display:block;font-family:'Noto Nastaliq Urdu',serif;font-size:32px;margin-top:6px;direction:rtl;}
.hero p{max-width:680px;margin:20px auto 0;font-size:17px;color:#f5fbfb;animation:fadeUp .8s ease .25s both;text-shadow:0 2px 10px rgba(0,0,0,.55);}
.hero p.urdu{max-width:680px;margin:14px auto 0;font-size:18px;color:#f5fbfb;text-shadow:0 2px 10px rgba(0,0,0,.55);}
.hero-cta{margin-top:34px;display:flex;gap:14px;justify-content:center;flex-wrap:wrap;animation:fadeUp .8s ease .4s both;}
@keyframes fadeUp{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:translateY(0);}}
@keyframes fadeDown{from{opacity:0;transform:translateY(-14px);}to{opacity:1;transform:translateY(0);}}
.btn{
  display:inline-block;padding:13px 28px;border-radius:30px;
  font-weight:600;font-size:15px;transition:transform .22s ease, box-shadow .22s ease, background .2s;
}
.btn-primary{background:var(--gold);color:var(--teal-dark);}
.btn-primary:hover{background:#dbb635;color:var(--teal-dark);transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.18);}
.btn-outline{border:1.5px solid rgba(255,255,255,.6);color:var(--white);}
.btn-outline:hover{background:rgba(255,255,255,.12);color:var(--white);transform:translateY(-3px);}

/* ---------- Sections ---------- */
section{padding:70px 0;}
.section-alt{background:var(--teal-pale);}
.section-head{text-align:center;max-width:720px;margin:0 auto 44px;}
.section-head .kicker{
  color:var(--teal);text-transform:uppercase;letter-spacing:2px;
  font-size:12px;font-weight:700;
}
.section-head h2{font-size:30px;margin:8px 0 0;color:var(--teal-dark);}

.lang-block{
  background:var(--white);border:1px solid var(--border);border-radius:14px;
  padding:32px 36px;margin-bottom:22px;box-shadow:0 2px 10px rgba(10,77,84,.04);
}
.lang-block h3{margin-top:0;color:var(--teal-dark);}
.lang-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
@media (max-width:800px){.lang-grid{grid-template-columns:1fr;}}
.history-image{border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(10,77,84,.12);height:100%;min-height:280px;}
.history-image img{width:100%;height:100%;object-fit:cover;display:block;}

<!-- APP INSTALL BANNER -->
<div class="astana-app-banner">
 
<img src="https://quadeeriya.com/wp-content/uploads/2026/09/mobile-banner.png"
alt="Install Astana-e-Quadeeriya App"
style="width:100%;border-radius:20px;display:block;">
 
<div class="v>
 
</div>

/* ---------- Our Spiritual Home ---------- */
.spiritual-home-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:32px;align-items:center;}
@media (max-width:800px){.spiritual-home-grid{grid-template-columns:1fr;}}
.spiritual-home-image{border-radius:18px;overflow:hidden;box-shadow:0 12px 30px rgba(10,77,84,.15);}
.spiritual-home-image img{width:100%;height:100%;min-height:360px;object-fit:cover;display:block;}
.spiritual-home-text .lang-block{margin-bottom:0;}

/* ========================================================== */
/* OPTION 1: ROYAL OCTAGONAL ARCH GALLERY & HIDDEN CAPTIONS   */
/* ========================================================== */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media (max-width:800px){.gallery-grid{grid-template-columns:1fr;}}
.gallery-grid--wide{grid-template-columns:repeat(4,1fr);}
@media (max-width:900px){.gallery-grid--wide{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.gallery-grid--wide{grid-template-columns:1fr;}}

.gallery-grid figure,
.gallery-grid div.stagger-item,
.gallery-grid .gallery-item {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #0b3121 !important;
    border: 2px solid #c5a059 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin: 0 !important;
}

.gallery-grid img {
    height: 250px !important;
    width: 100% !important;
    object-fit: cover !important;
    clip-path: polygon(15% 0%, 85% 0%, 100% 15%, 100% 100%, 0% 100%, 0% 15%) !important;
    transition: transform 0.6s ease, filter 0.4s ease !important;
    display: block !important;
    cursor: pointer !important;
}

.gallery-grid figure:hover,
.gallery-grid div.stagger-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: #f6e58d !important;
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.4), 0 0 20px rgba(246, 229, 141, 0.3) !important;
}

.gallery-grid figure:hover img,
.gallery-grid div.stagger-item:hover img {
    transform: scale(1.08) !important;
}

/* Light Sweep Beam Animation on Hover */
.gallery-grid figure::after,
.gallery-grid div.stagger-item::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(246, 229, 141, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    transform: rotate(35deg) translateY(-100%) !important;
    pointer-events: none !important;
    transition: transform 0.7s ease !important;
}

.gallery-grid figure:hover::after,
.gallery-grid div.stagger-item:hover::after {
    transform: rotate(35deg) translateY(100%) !important;
}

.gallery-grid figcaption,
.gallery-grid figure figcaption {
    display: none !important;
}

/* Lightbox Modal Styles */
.astana-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 49, 33, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}
.astana-lightbox-modal.active {
    opacity: 1;
}
.astana-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border: 3px solid #c5a059;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.astana-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    clip-path: none !important;
}
.astana-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0b3121;
    color: #f6e58d;
    border: 2px solid #c5a059;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100000;
    transition: background 0.2s;
}
.astana-lightbox-close:hover {
    background: #c5a059;
    color: #0b3121;
}

.quote-box{
  background:var(--teal-dark);color:var(--white);border-radius:16px;
  padding:44px;text-align:center;
}
.quote-box .arabic{font-size:24px;margin-bottom:14px;}
.quote-box p{color:#dff0f0;max-width:640px;margin:0 auto;}
.quote-box cite{display:block;margin-top:14px;color:var(--gold);font-style:normal;font-size:13px;}

.cta-band{
  background:linear-gradient(135deg,var(--teal),var(--teal-dark));
  color:var(--white);text-align:center;padding:60px 24px;border-radius:0;
}
.cta-band h2{margin:0 0 10px;font-size:26px;}
.cta-band p{color:#dff0f0;margin:0 0 24px;}

/* ---------- Page ---------- */
.page-content{padding:60px 0;}
.info-card{
  background:var(--teal-pale);border-radius:14px;padding:28px;margin-top:30px;
}
.info-card h3{margin-top:0;color:var(--teal-dark);}
.info-list{list-style:none;padding:0;margin:0;}
.info-list li{padding:10px 0;border-bottom:1px solid var(--border);display:flex;gap:10px;}
.info-list li:last-child{border-bottom:none;}
.info-list strong{color:var(--teal-dark);min-width:90px;display:inline-block;}

/* ---------- Books ---------- */
.book-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:10px;}
@media (max-width:1000px){.book-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.book-grid{grid-template-columns:1fr;}}
.book-card{
  background:var(--white);border:1px solid var(--border);border-radius:14px;
  overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 2px 10px rgba(10,77,84,.05);transition:transform .25s ease, box-shadow .25s ease;
}
.book-card:hover{transform:translateY(-6px);box-shadow:0 16px 30px rgba(10,77,84,.14);}
.book-cover{height:160px;overflow:hidden;}
.book-cover img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.book-card:hover .book-cover img{transform:scale(1.06);}
.book-info{padding:20px;display:flex;flex-direction:column;flex:1;}
.book-lang{
  align-self:flex-start;background:var(--teal-pale);color:var(--teal-dark);
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;
  padding:4px 10px;border-radius:20px;margin-bottom:10px;
}
.book-info h3{margin:0 0 4px;font-size:17px;color:var(--teal-dark);}
.book-title-ur{margin:0 0 8px;font-size:15px;}
.book-info p{font-size:13.5px;color:var(--muted);flex:1;}
.btn-download{
  background:var(--teal);color:var(--white);text-align:center;margin-top:10px;
  padding:11px 20px;font-size:14px;border-radius:30px;
}
.btn-download:hover{background:var(--teal-dark);color:var(--white);}
.mini-cta{text-align:center;margin-top:36px;}

/* ---------- Ayat / Hadith duo ---------- */
.duo-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
@media (max-width:800px){.duo-grid{grid-template-columns:1fr;}}
.duo-grid .quote-box{height:100%;}

/* ---------- Footer ---------- */
.site-footer{background:var(--teal-dark);color:#cfe6e6;padding:50px 0 20px;margin-top:0;}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px;}
@media (max-width:800px){.footer-grid{grid-template-columns:1fr;}}
.footer-grid h4{color:var(--white);margin-top:0;font-size:15px;}
.footer-grid p, .footer-grid a{color:#bfdcdc;font-size:14px;}
.footer-grid ul{list-style:none;padding:0;margin:0;}
.footer-grid li{margin-bottom:8px;}
.footer-bottom{
  text-align:center;border-top:1px solid rgba(255,255,255,.12);
  margin-top:36px;padding-top:20px;font-size:13px;color:#9fc4c4;
}

/* ---------- Floating WhatsApp button ---------- */
.astana-whatsapp-float{
  position:fixed;bottom:24px;right:24px;z-index:999;
  width:58px;height:58px;border-radius:50%;
  background:#25D366;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  animation:astana-wa-pulse 2.4s infinite;
}
.astana-whatsapp-float svg{width:30px;height:30px;fill:#fff;}
.astana-whatsapp-float:hover{background:#1ebc59;}
@keyframes astana-wa-pulse{
  0%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 0 rgba(37,211,102,.6);}
  70%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 14px rgba(37,211,102,0);}
  100%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 0 rgba(37,211,102,0);}
}

/* ========================================================== */
/* AUTOMATIC UNIFIED ISLAMIC HERITAGE BANNER FOR ALL PAGES    */
/* ========================================================== */

body:not(.home) .entry-title,
body:not(.home) .page-hero {
    position: relative !important;
    width: 100% !important;
    max-width: 1120px !important;
    margin: 30px auto 20px !important;
    padding: 35px 20px !important;
    
    background: linear-gradient(135deg, #0b3121 0%, #1a4d2e 60%, #0b3121 100%) !important;
    border: 2px solid #c5a059 !important;
    border-radius: 14px !important;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(10,77,84,0.12) !important;
    transition: all 0.4s ease !important;
}

body:not(.home) .entry-title:hover,
body:not(.home) .page-hero:hover {
    box-shadow: 0 12px 35px rgba(197, 160, 89, 0.35) !important;
    border-color: #f6e58d !important;
    background: linear-gradient(135deg, #0e3d29 0%, #225e39 60%, #0e3d29 100%) !important;
}

body:not(.home) .entry-title,
body:not(.home) .page-hero h1 {
    color: #f8edc5 !important;
    font-family: Georgia, serif !important;
    font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
    margin: 0 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    border-bottom: none !important;
}

body:not(.home) .page-hero p.urdu {
    display: none !important;
}

@media (max-width: 768px) {
    body:not(.home) .entry-title,
    body:not(.home) .page-hero {
        margin: 15px 12px !important;
        padding: 25px 15px !important;
    }
}

.page-hero {
    clip-path: none !important;
    border-radius: 14px !important;
    border: 2px solid #c5a059 !important;
    background: linear-gradient(135deg, #0b3121 0%, #1a4d2e 60%, #0b3121 100%) !important;
}

/* ========================================================== */
/* HIDE URDU TEXT ACROSS ALL HOMEPAGE HERO SLIDES             */
/* ========================================================== */
.hero p.urdu,
.hero h1 .urdu-line,
.hero .urdu {
    display: none !important;
}
.hero p[dir="rtl"],
.hero .urdu,
.hero span.urdu,
.hero div.urdu {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
}

/* ========================================================== */
/* EMERALD GREEN & GOLD SHINING FAQ STYLING                   */
/* ========================================================== */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}
.faq-item {
    background: #0b3121 !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(10, 77, 84, 0.1) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-q {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 20px 24px !important;
    text-align: left !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #f6e58d !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: #f6e58d !important;
    box-shadow: 0 6px 25px rgba(197, 160, 89, 0.3) !important;
    transform: translateY(-2px);
}
.faq-q:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(246, 229, 141, 0.6);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
    color: #e2e8f0 !important;
    background: rgba(8, 36, 24, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-item.open .faq-a {
    padding-top: 10px;
    padding-bottom: 20px;
}
.faq-q .plus {
    font-size: 1.4rem;
    font-weight: 400;
    color: #c5a059;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-q .plus {
    transform: rotate(45deg);
    color: #f6e58d;
}

/* ========================================================== */
/* ANIMATED EMERALD-GREEN BANNERS FOR SECTIONS & GOLDEN CARDS */
/* ========================================================== */
section.section-alt:has(.islamic-pillars-grid),
section.section-alt:has(.duo-grid) {
    position: relative;
    background: linear-gradient(135deg, #0b3121 0%, #114c32 50%, #082418 100%) !important;
    border-top: 2px solid #c5a059 !important;
    border-bottom: 2px solid #c5a059 !important;
    overflow: hidden;
}

section.section-alt:has(.islamic-pillars-grid)::after,
section.section-alt:has(.duo-grid)::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
    animation: lightRaySweep 6s ease-in-out infinite;
}

@keyframes lightRaySweep {
    0% { transform: translateY(-100%) rotate(30deg); }
    100% { transform: translateY(100%) rotate(30deg); }
}

section.section-alt:has(.islamic-pillars-grid) .section-head h2,
section.section-alt:has(.duo-grid) .section-head h2 {
    color: #ffffff !important;
}

section.section-alt:has(.islamic-pillars-grid) .section-head .kicker,
section.section-alt:has(.duo-grid) .section-head .kicker {
    color: #f6e58d !important;
}

/* Golden Shining Cards Styling for Five Pillars - Fully Forced Override */
.pillars {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 18px !important;
    margin-top: 10px !important;
}
@media (max-width: 900px) {
    .pillars {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
.section-alt .pillars .pillar, 
.section-alt .pillars .islamic-pillar-card,
section .pillars .pillar,
section .pillars .islamic-pillar-card,
.pillars .pillar,
.pillars .islamic-pillar-card,
.pillar, 
.islamic-pillar-card {
    background: linear-gradient(135deg, #0b3121 0%, #165338 100%) !important;
    background-color: #0b3121 !important;
    border: 2px solid #c5a059 !important;
    border-top: 4px solid #c5a059 !important;
    border-radius: 14px !important;
    padding: 24px 16px !important;
    text-align: center !important;
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2) !important;
    transition: all 0.3s ease !important;
}

.pillar:hover, 
.islamic-pillar-card:hover {
    transform: translateY(-6px) !important;
    border-color: #f6e58d !important;
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5), inset 0 0 20px rgba(246, 229, 141, 0.3) !important;
    background: linear-gradient(135deg, #0f422c 0%, #1e6b49 100%) !important;
    background-color: #0f422c !important;
    color: #ffffff !important;
}

.pillar::before,
.islamic-pillar-card::before {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    right: -10px !important;
    width: 90px !important;
    height: 90px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="%23c5a059" opacity="0.1"><path d="M50 0L61 35H98L68 57L79 92L50 71L21 92L32 57L2 35H39Z"/></svg>') !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
}

.pillar .icon,
.islamic-pillar-card .icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: rgba(197, 160, 89, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px !important;
    color: #f6e58d !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    border: 1px solid #c5a059 !important;
    transition: all 0.3s ease !important;
}

.pillar:hover .icon,
.islamic-pillar-card:hover .icon {
    transform: scale(1.12) rotate(-6deg) !important;
    background: #c5a059 !important;
    color: #0b3121 !important;
    box-shadow: 0 0 10px rgba(246, 229, 141, 0.8) !important;
}

.pillar h4,
.islamic-pillar-card h4 {
    margin: 8px 0 4px !important;
    font-size: 15px !important;
    color: #f6e58d !important;
}

.pillar p,
.islamic-pillar-card p {
    font-size: 13px !important;
    color: #e2e8f0 !important;
    margin: 0 !important;
}

section.section-alt:has(.duo-grid) .quote-box {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    backdrop-filter: blur(8px);
    color: #ffffff !important;
}

section.section-alt:has(.duo-grid) .quote-box p {
    color: #e2e8f0 !important;
}

section.section-alt:has(.duo-grid) .quote-box cite {
    color: #f6e58d !important;
}