/* Quranic360 override stylesheet — loaded AFTER style.css (see header.php).
   WHY THIS FILE EXISTS (2026-11-30): the template's style.css has a CORRUPTED
   rule near its end — `.process-box:nth-child(even){(.266 0.496094 ...` — a broken
   SVG path with no property name and an unclosed block. That broken rule is in the
   DEVELOPER'S ORIGINAL CSS (verified in the original zip, not caused by our edits)
   and it SWALLOWS everything after it in style.css: every fix appended to the end
   of style.css (testimonial gap v1, v2, v3, v4) parsed as garbage inside that broken
   rule and NEVER applied in any browser. That is why the testimonial reviews stayed
   hidden and the gap fixes "failed" live even though the rules were in the file.
   RULE: never append fixes to style.css — put them here. This file parses clean. */

/* Testimonial slider #testiSlider5 ("What our client say") — gap + quote fixes.
   v4 approach (the one that works once the rules actually apply): switch the
   slider's autoHeight off (removed from the options in index.php) so the wrapper
   is a normal flex container, and give every card the same minimum height so the
   01/04 navigation sits the same short distance below the cards on every slide. */
.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}
#testi-sec .slider-controller{margin-top:20px}
#testiSlider5{height:auto !important}
#testiSlider5 .swiper-slide{height:auto !important}
#testiSlider5 .swiper-wrapper{align-items:flex-start !important}
#testiSlider5 .swiper-wrapper{height:auto !important}
#testi-sec .testi-grid.style2{min-height:410px}

/* Hero images — clean rectangle with slight rounding (was an arch/oval:
   border-radius:90px 90px 999px 999px). Same rule also edited in style.css;
   kept here so it applies even if style.css is ever re-broken. */
.hero-3 .hero-img>img{border-radius:16px}

/* Header (3 Dec 2026, Atif): top bar BACK TO BLACK — reverses 1 Dec white
   ("top bar ka colour white ya off white kr do"). Atif's choice is black
   (logo-gold was the alternative). Top utility strip (Islamabad / 24-7 /
   FAQ / Support / Sign In) is black with white text + gold icons. The logo
   bar (.menu-area) keeps its white base but gains the fee-box contour-lines
   pattern (lines_3.png, same as .price-card .box-shape and .blog-card), one
   subtle centred motif so the dark nav text stays readable. The gold phone
   icon + gold hamburger stay gold. */
.header-layout1 .menu-area{background-color:#fff!important;background-image:url(../img/shape/lines_3.png);background-repeat:no-repeat;background-position:center;background-size:360px auto}
.header-layout1 .menu-area:before,.header-layout1 .menu-area:after{display:none}
.header-layout1 .header-logo{background:#fff;border-radius:12px;padding:6px 10px}
.header-layout1.style-black .main-menu a{color:#010101!important}
.header-layout1.style-black .header-call{color:#010101!important}
.header-layout1 .header-top{background-color:#010101!important;--body-color:#fff!important}
.header-layout1 .header-top .header-links li,.header-layout1 .header-top .header-links a{color:#fff!important}
/* Hero CLS (1 Dec 2026, WS9): app.min.css sets generic .swiper-wrapper{height:155px},
   so before deferred Swiper JS runs the hero is a 155px sliver and the About
   section sits inside the mobile viewport; autoHeight then grows the wrapper to
   the slide height (~660-721px) and About plunges ~500px (~0.4 CLS). height:auto
   makes the pre-JS height the slide height, ~equal to the post-JS height.
   Slides are in-flow (fade only changes opacity, no position:absolute), so the
   wrapper cannot collapse. Same pattern already live for #testiSlider5 above. */
#heroSlide3 .swiper-wrapper{height:auto!important}
/* Breadcrumb arrow (1 Dec 2026): style.css draws it with font-weight:500, which
   resolves to the Regular icon face — the same face the FAQ chevron used, and no
   Regular-weight icon has ever been seen rendering on this site. Force the Solid
   face (900, proven on the page) like the FAQ chevron. Colour stays inherited. */
.breadcumb-menu li:after{font-weight:900!important}
/* Header FA icons pop in late (FA CSS is non-blocking); reserve their slot so
   the top-bar links don't shift when the glyphs arrive. */
.header-layout1 .header-top .header-links li>i{display:inline-block;min-width:14px;text-align:center}

.header-layout1 .header-top .header-links li>i{color:#D7AD05!important}

/* FAQ accordion chevron — 1 Dec 03:42 PKT: style.css draws the chevron white
   (.accordion-card .accordion-button:after{color:#fff}) for the theme's gold
   cards, but header.php's inline style restyles the cards white with black
   text, so the white chevron was invisible (white-on-white).
   1 Dec 04:05 PKT: the black colour alone did NOT make it appear (verified
   live with the versioned stylesheet). Root cause: style.css sets
   font-weight:500, which resolves to the Regular face — and no Regular-weight
   icon has ever been seen rendering on this site (all confirmed icons are
   Solid 900 or Brands). So force the Solid face (900, proven on the page:
   top-bar icons, spinner, menu chevron) as well as the black colour. */
.accordion-card .accordion-button:after{color:#010101!important;font-weight:900!important}

/* Hero — keep the picture's bottom level with the buttons. The picture is a
   child of .hero-inner (position:relative on desktop), so bottom:48px puts
   its bottom level with the buttons, which sit 48px above .hero-inner's
   bottom (the padding-bottom added below). Desktop only — below 991px the
   picture is already in-flow under the text. */
@media(min-width:992px){
.hero-3 .hero-inner{position:relative}
.hero-3 .hero-img{bottom:48px!important}
}
/* Hero premium spacing — Atif 1 Dec 18:21 PKT (screenshot): a ~294px empty
   cream band above the pill. MEASURED root cause (1 Dec 18:47 PKT, live
   boxes: panel 222-1153, slide 244-1153, pill 516): style.css
   .hero-style3{margin:190px 0} puts 190px above the pill (inside, after the
   82px padding-top) and 190px below the buttons (collapsed out through the
   slide's bottom). Kill the margin and use balanced 48px padding instead,
   so the panel hugs the content. Pill margin-top:0 keeps the pill tight
   under the 48px padding. */
.hero-3 .hero-style3{margin:0!important}
.hero-3 .hero-inner{padding-top:48px!important;padding-bottom:48px!important}
.hero-3 .sub-title{margin-top:0!important}
/* Hero spacing — Atif 1 Dec 01:09 PKT (screenshot, red line): the slide box
   sits tucked right under the black bar; move it DOWN below the line so the
   black bar and the slide read as two separate blocks. Colour stays
   white/off-white (the cream above is an off-white).
   ROOT CAUSE (found 1 Dec 01:23 PKT): the template PULLS the hero 83px under
   the header on purpose — style.css .header-layout1{margin:0 auto -83px auto}.
   A 28px margin-top alone only cut the 82px overlap to 54px (measured live).
   So the -83px pull-up is neutralised here, and the 28px margin-top below
   then gives a true 28px clear gap under the bar at every width. */
.header-layout1{margin-bottom:0!important}
.hero-3{margin-top:28px!important}
/* Hero background — remove the white dotted hero_bg_3.png image so the
   cream #FAF6EC shows (the image covers the cream otherwise). The cream
   background-color on every layer below is the second half of this fix. */
.hero-3{background-image:none!important}
.hero-3,.hero-3 .swiper,.hero-3 .swiper-wrapper,.hero-3 .swiper-slide,.hero-3 .hero-inner{background-color:#FAF6EC!important}
/* Hero picture size — Atif 1 Dec 01:15 PKT: make the picture a bit bigger,
   there is plenty of space. Desktop only (min-width 1400px); below that the
   template's smaller sizes stay so the picture never crowds the text. */
@media(min-width:1400px){.hero-3 .hero-img{max-width:700px!important}}

/* Course/article cards — the contour-lines pattern (lines_3.png) INSIDE the
   boxes, like the fee pricing cards have it (.price-card .box-shape). The
   page background behind the boxes is plain (see header.php body rule), so
   the lines live only inside the cards now — a soft watermark behind the
   title/text, sized so the text stays readable.
   NOTE: the pattern must sit on .blog-content, not only on .blog-card —
   .blog-content has its own solid background which covers the card-level
   image in the text area. */
.blog-card{background-color:#fff;background-image:url(../img/shape/lines_3.png);background-repeat:no-repeat;background-position:center 62%;background-size:230px auto}
.blog-card .blog-content{background-color:#fff;background-image:url(../img/shape/lines_3.png);background-repeat:no-repeat;background-position:center 55%;background-size:210px auto}

/* Course cards (homepage "Our Courses" grid) — equal height in each row.
   The last card (Learn Arabic Grammar Online) was taller because its title
   wraps to two lines. The Bootstrap columns already stretch; the card itself
   must fill its column, with the text block growing so the Book/Call buttons
   sit at the same bottom line on every card. Scoped to .filter-item so blog
   cards elsewhere are untouched. */
.filter-item .blog-card{display:flex;flex-direction:column;height:100%}
.filter-item .blog-card .blog-content{flex:1}

/* Surah reader — Full page (continuous colour-coded Tajweed) view, 1 Dec 2026.
   Safety net for the same rules in surah_reader.php's own <style> block:
   in full-page mode the Tajweed legend stays visible whatever script is
   picked, and the verse-by-verse cards stay hidden. */
.surah-wrap[data-view="fullpage"] .tj-legend{display:block}
.surah-wrap[data-view="fullpage"] #ayahList{display:none}

/* WS5 speed (1 Dec 2026) — CLS guards for the width/height attributes added
   in this patch: keep the browser's reserved box at the image's true ratio
   even where template CSS sets a display width. Hero images are 1920x1280
   (shown at most 700px wide); the header/footer logo is square. */
.hero-3 .hero-img>img{aspect-ratio:1920/1280;height:auto}
.header-logo img,.mobile-logo img,.about-logo img{aspect-ratio:1/1;height:auto}

/* Header menu + bar (3 Dec 2026, Atif screenshot): the white bar was too
   short, the phone number had dropped below the logo, and the menu names
   were too light/small.
   ROOT CAUSE of the phone drop: the 1 Dec rule gave the menu items 24px side
   margins at >=1400px, so logo + menu + phone no longer fit on one row and
   the phone column wrapped under the logo. 24px margins are gone — 12px at
   >=1400px, 6px below that (the inline <style> in header.php).
   Menu names: bolder (700) and bigger — 18px at >=1400px, 17px at 992-1399px
   (base theme is 16px/500). Scoped to top-level links only (>ul>li>a) so the
   dropdown sub-menu links stay at 16px. Bar: 14px top/bottom padding so the
   white bar reads taller. The phone stays in its right-hand column (no HTML
   change needed — it was already there, it had just wrapped). */
.header-layout1 .menu-area{padding-top:14px!important;padding-bottom:14px!important}
@media(min-width:1400px){.header-layout1 .main-menu>ul>li>a{font-size:18px!important;font-weight:700!important}.header-layout1 .main-menu>ul>li{margin:0 12px!important}}
@media(min-width:992px) and (max-width:1399px){.header-layout1 .main-menu>ul>li>a{font-size:17px!important;font-weight:700!important}}

/* Price-card buttons (country + fee pages): never overflow the card.
   .th-btn has min-width:170px, which is wider than a narrow price-card's
   content box, so the button stuck out past the card's sides. */
.price-card .th-btn{min-width:0;width:100%;padding-left:12px;padding-right:12px;box-sizing:border-box;white-space:nowrap}

/* Homepage heading hierarchy (3 Dec 2026): the stat counters are numbers,
   not headings. Keep their exact h2/h4 rendering after the tag change:
   .box-number already sets size/weight/margins; only the heading element
   contributed font-family + line-height. Same for the 500+ counter, where
   .customer-box .box-title already sets size/margins. */
.counter-card-wrap .box-number{font-family:var(--title-font);line-height:1.2}
@media(max-width:1199px){.counter-card-wrap .box-number{line-height:1.3}}
.customer-box .box-title{font-family:var(--title-font)}

/* Footer social icons: brand colours + even alignment (Atif, 3 Dec 2026) */
/* Footer social + dropdown — 3 Dec 2026: theme beats the plain selectors
   (.footer-layout4 .th-social a:not(:hover) 0,3,1 beats .th-social a.social-fb
   0,2,1; .widget_nav_menu li 0,1,1 beats .footer-extra 0,1,0), so the footer
   rules are prefixed + !important. Deploy 56 proved the rename works but
   these two rules lost on specificity. */
.th-social{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.th-social a{display:inline-flex;align-items:center;justify-content:center;margin-right:0;line-height:1}
.footer-layout4 .th-social a.social-fb{background:#1877F2!important;color:#fff!important}
.footer-layout4 .th-social a.social-ig{background:#E1306C!important;color:#fff!important}
.footer-layout4 .th-social a.social-yt{background:#FF0000!important;color:#fff!important}
.footer-layout4 .th-social a.social-li{background:#0A66C2!important;color:#fff!important}
.footer-layout4 .th-social a.social-fb:hover,.footer-layout4 .th-social a.social-ig:hover,.footer-layout4 .th-social a.social-yt:hover,.footer-layout4 .th-social a.social-li:hover{background:#D7AD05!important;color:#fff!important}

/* Footer country list: 2 links per row (Atif, 3 Dec 2026) */
.footer-widget .footer-2col{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
.footer-widget .footer-2col a{width:auto}
.footer-widget .footer-2col .footer-more{grid-column:1 / -1}

/* Footer "More" dropdowns (Atif, 3 Dec 2026) */
.widget_nav_menu li.footer-extra{display:none!important}
.widget_nav_menu li.footer-extra.open{display:list-item!important}
.footer-extra.footer-divider{border-top:1px solid rgba(255,255,255,.25);margin:10px 0;padding:0}
.footer-extra a.ext-link::after{content:" \2197";font-size:12px}
.footer-more-btn{display:block;width:max-content;padding:0 0 0 16px;margin-bottom:16px;background:none;border:0;cursor:pointer;font-size:16px;font-weight:400;font-family:var(--body-font);color:#fff;text-align:left;position:relative}
.footer-more-btn::before{content:'\f061';font-family:var(--icon-font);font-weight:600;position:absolute;left:0;top:50%;transform:translateY(-50%);color:#D7AD05}
.footer-more-btn .footer-caret{margin-left:6px}

/* Footer contact icons — equal size, true centering, clean email lines (Deploy 57) */
.th-widget-contact .info-box{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.th-widget-contact .info-box:last-child{margin-bottom:0}
.th-widget-contact .info-box .box-icon{width:44px;height:44px;min-width:44px;flex-shrink:0;line-height:1;font-size:20px;border:1px solid rgba(255,255,255,0.5);color:#D7AD05;border-radius:10px;margin-right:0;display:flex;align-items:center;justify-content:center}
.th-widget-contact .info-box .box-text{margin:0;align-self:center;line-height:1.6}
.th-widget-contact .info-box .box-text .box-link{display:block}

/* --- Footer legal link boxes (Atif, 3 Dec 2026, screenshot) ---
   Terms + Privacy now have their own prominent boxes in the empty footer
   space (Terms below More Countries, Privacy below More Links), moved out
   of the Useful Links list. */
.footer-legal-box{display:block;margin-top:18px;padding:12px 14px;border:1px solid rgba(255,255,255,.45);border-radius:10px;color:#fff!important;text-align:center;font-size:16px;font-weight:600;text-decoration:none}
.footer-legal-box:hover{border-color:#D7AD05;color:#D7AD05!important}

/* --- Privacy / Terms pages readable text (Atif, 3 Dec 2026) ---
   The legal pages' body text was too small; make it clearly readable. */
.legal-page p,.legal-page li{font-size:18px!important;line-height:1.9!important}
.legal-page h3{font-size:23px!important}
.legal-page h4{font-size:21px!important}
