/*
Theme Name: Ilham-e-Quran Academy
Author: Ilham-e-Quran Academy
Description: Responsive blue, gold and white academy theme. Install the accompanying Ilham-e-Quran Core plugin and run its setup wizard.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ilhamequran
*/

/* Accessible course and location dropdowns */
.primary-menu{display:flex;align-items:center;gap:20px;list-style:none;padding:0;margin:0}
.primary-menu li{position:relative;list-style:none;margin:0}
.primary-menu>li{display:flex;align-items:center;gap:3px}
.submenu-toggle{background:transparent;border:0;color:var(--navy);padding:6px;cursor:pointer;border-radius:4px;line-height:1}
.submenu-toggle[aria-expanded="true"]{background:var(--pale)}
.primary-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:230px;max-height:65vh;overflow:auto;padding:10px;margin:0;background:#fff;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:10px;box-shadow:0 12px 30px #082d6226}
.primary-menu li.submenu-open>.sub-menu{display:block}
.primary-menu .sub-menu a{display:block;padding:8px 12px;border-radius:5px;white-space:nowrap}
.primary-menu .sub-menu a:hover{background:var(--pale)}
.primary-menu .sub-menu li:has(>a[href$="/pakistan/"]),.primary-menu .sub-menu li:has(>a[href$="/uae/"]){border-bottom:1px solid var(--line);font-weight:700}
@media(max-width:1100px){.primary-menu{flex-direction:column;align-items:stretch;gap:4px;width:100%}.primary-menu>li{flex-wrap:wrap;justify-content:space-between}.primary-menu>li>a{flex:1}.primary-menu .sub-menu{position:static;flex-basis:100%;width:100%;max-height:none;box-shadow:none;margin:4px 0 8px;padding:6px 10px}.submenu-toggle{padding:12px}.nav .primary-menu .sub-menu a{padding:8px 12px}}

:root{--navy:#082d62;--blue:#124aa3;--gold:#b98a32;--ink:#20324b;--muted:#53647c;--pale:#f0f6fd;--line:#dce5ef;--white:#fff;--radius:18px;--shadow:0 15px 40px #12345a0c}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;color:var(--ink);background:white;font:16px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}h1,h2,h3,.brand-name{font-family:Georgia,"Times New Roman",serif;color:var(--navy);line-height:1.15;letter-spacing:-.035em}h1{font-size:clamp(2.65rem,5vw,4.45rem);margin:16px 0 24px}h2{font-size:clamp(2rem,3.4vw,3.1rem);margin:12px 0 22px}h3{font-size:1.6rem;margin:16px 0 12px}p{margin:0 0 18px}a{color:var(--blue);text-underline-offset:4px}img{display:block;width:100%;height:auto}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:5px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--gold)}.wrap{width:min(1160px,calc(100% - 48px));margin:auto}.section{padding:84px 0}.pale{background:var(--pale)}.eyebrow{font:700 12px/1.5 system-ui,sans-serif;color:#946814;letter-spacing:.15em;text-transform:uppercase}.center{text-align:center}.lead{font-size:1.12rem;color:var(--muted);max-width:660px}.center .lead{margin-inline:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 23px;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:#fff;text-decoration:none;font-weight:650;line-height:1.5;cursor:pointer;transition:background .2s,transform .2s}.btn:hover{background:var(--navy);transform:translateY(-1px)}.btn.outline{color:var(--navy);background:transparent;border-color:var(--gold)}.btn.outline:hover{background:#fff}.btn.gold{background:#e7c47f;color:#172a42;border-color:#e7c47f}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.skip-link{position:absolute;left:10px;top:-80px;background:white;z-index:100;padding:10px}.skip-link:focus{top:10px}.site-header{position:sticky;top:0;z-index:30;background:#fffffff5;border-bottom:1px solid #e5ebf3;backdrop-filter:blur(12px)}.header-inner{min-height:88px;display:flex;align-items:center;gap:24px;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;text-decoration:none}.brand svg{width:48px;height:42px;flex-shrink:0}.brand-name{display:block;font-size:1.6rem;font-weight:700}.brand-sub{display:block;font-size:10px;letter-spacing:.4em;color:var(--navy);margin-top:5px}.nav{display:flex;gap:25px;align-items:center}.nav a{font-size:14px;font-weight:600;text-decoration:none;color:var(--ink)}.nav a:hover,.nav a[aria-current="page"]{color:var(--blue);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px}.header-cta{font-size:13px;padding:11px 17px}.menu-toggle{display:none;border:1px solid var(--line);background:#fff;padding:8px 14px;border-radius:7px;color:var(--navy)}.hero{background:linear-gradient(110deg,#f2f7fd,#fff7e8);position:relative;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.04fr 1fr;gap:52px;align-items:center;min-height:620px;padding-block:58px}.hero .lead{max-width:510px}.hero-figure{position:relative;margin:0}.hero-figure img{height:450px;object-fit:cover;object-position:67% center;border-radius:160px 160px 18px 18px;box-shadow:var(--shadow);border:6px solid #fff}.demo-badge{position:absolute;left:-24px;top:28px;width:136px;height:136px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--navy);border:3px solid #d9b56e;color:#fff;text-align:center;box-shadow:0 8px 18px #10254820;font-size:12px;line-height:1.5}.demo-badge strong{font:700 28px/1.2 Georgia,serif;color:white;display:block;margin-bottom:5px}.hero-note{font-size:13px;color:var(--muted);margin-top:17px}.trust-strip{border-bottom:1px solid var(--line);background:white}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;padding:27px 0}.trust-item{display:flex;align-items:center;gap:13px}.icon{width:44px;height:44px;border-radius:50%;background:#fff0d4;color:#8b5f12;display:grid;place-items:center;font:700 22px Georgia,serif;flex-shrink:0}.trust-item strong{display:block;font-size:14px;color:var(--navy)}.trust-item span{display:block;font-size:12px;color:var(--muted)}.grid{display:grid;gap:24px}.grid.three{grid-template-columns:repeat(3,1fr)}.grid.two{grid-template-columns:repeat(2,1fr)}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:30px;box-shadow:var(--shadow);height:100%}.card p{color:var(--muted)}.card .tag{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#956c22}.card .icon{width:54px;height:54px;margin-bottom:22px}.card a.more{font-weight:650;text-decoration:none;font-size:14px}.card a.more:hover{text-decoration:underline}.card ul{padding-left:20px;color:var(--muted)}.split{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center}.teacher-panel{padding:44px;background:linear-gradient(145deg,#082d62,#205ba6);border-radius:var(--radius);color:white;position:relative;overflow:hidden}.teacher-panel:after{content:"";width:170px;height:170px;border:1px solid #d8ba7850;border-radius:50%;position:absolute;right:-60px;bottom:-70px}.teacher-panel h3{color:white;font-size:2.4rem;margin-top:30px}.teacher-panel .eyebrow{color:#e7c47f}.teacher-panel p{color:#dae6fa}.teacher-panel svg{width:76px;height:76px;color:#e7c47f}.teacher-panel .small{font-size:13px;margin:20px 0 0}.checks{list-style:none;padding:0;margin:25px 0}.checks li{padding:9px 0 9px 29px;position:relative}.checks li:before{content:"✓";position:absolute;left:0;color:#946814;font-weight:700}.step-number{width:55px;height:55px;background:#e9f1fc;border:1px solid #d2e0f4;border-radius:50%;display:grid;place-items:center;color:var(--navy);font:28px Georgia,serif;margin-bottom:22px}.step{padding:8px 20px}.booking-section{background:var(--navy);color:white}.booking-section h2{color:white}.booking-section .eyebrow{color:#e7c47f}.booking-section .lead{color:#d4e2f7}.booking-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:64px;align-items:start}.form-card{background:white;border-radius:var(--radius);padding:32px;color:var(--ink)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-weight:600;font-size:13px}.field input,.field select,.field textarea{width:100%;border:1px solid #cbd7e5;background:#fafcff;border-radius:7px;padding:10px 12px;color:var(--ink);min-width:0}.field textarea{min-height:90px;resize:vertical}.field.full{grid-column:1/-1}.consent{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:var(--muted);margin:18px 0}.consent input{margin-top:5px}.form-card .btn{width:100%}.form-note{font-size:12px;color:var(--muted);margin:13px 0 0}.honey{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.notice{border:1px solid #8bafdb;background:#edf5ff;border-radius:9px;padding:15px;margin:0 0 18px}.notice.error{border-color:#c65757;background:#fff3f3}.page-hero{background:linear-gradient(110deg,#eff5fd,#fff9ef);padding:60px 0}.page-hero h1{font-size:clamp(2.5rem,4.6vw,3.6rem);max-width:820px}.breadcrumb{font-size:12px;color:var(--muted);margin-bottom:20px}.breadcrumb a{text-decoration:none}.prose{max-width:820px;margin:auto}.prose h2{font-size:2rem;margin-top:38px}.prose h3{font-size:1.4rem;margin-top:28px}.prose li{margin-bottom:9px}.prose ul,.prose ol{padding-left:24px}.prose a{overflow-wrap:anywhere}.faq{max-width:850px;margin:auto}.faq details{border-bottom:1px solid var(--line);padding:21px 0}.faq summary{font-weight:650;color:var(--navy);cursor:pointer}.faq details p{margin:14px 0 0;color:var(--muted)}.package-count{font:700 43px/1.2 Georgia,serif;color:var(--navy);margin:18px 0 7px}.package-count small{font:14px system-ui,sans-serif;color:var(--muted)}.price{font-size:1.15rem;font-weight:700;color:var(--blue);padding:15px 0;border-top:1px solid var(--line);margin-top:20px}.country-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.pill{border:1px solid #ccd9ec;border-radius:99px;padding:6px 16px;color:var(--navy);font-size:13px;background:white}.info-box{background:#f7faff;border:1px solid var(--line);padding:26px;border-radius:14px;margin:28px 0}.site-footer{background:#f6f8fc;padding:48px 0 22px;border-top:1px solid var(--line)}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:50px}.footer-grid p{max-width:330px;font-size:13px;color:var(--muted);margin-top:18px}.footer-links{display:flex;flex-direction:column;gap:8px}.footer-links a{color:var(--muted);font-size:13px;text-decoration:none}.footer-links a:hover{text-decoration:underline}.footer-grid strong{font-size:13px;color:var(--navy);display:block;margin-bottom:12px}.footer-bottom{border-top:1px solid var(--line);margin-top:35px;padding-top:20px;font-size:12px;display:flex;justify-content:space-between;gap:20px;color:var(--muted)}.floating-whatsapp{position:fixed;bottom:22px;right:22px;background:#167541;color:white;border-radius:99px;padding:10px 18px;font-size:13px;text-decoration:none;box-shadow:0 6px 25px #0002;z-index:25}.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.post-list time{font-size:12px;color:var(--muted)}.post-list h2{font-size:1.7rem}.post-list h2 a{text-decoration:none}.pagination{margin-top:36px}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.wp-block-image img{border-radius:12px}.alignwide{max-width:1100px}.alignfull{width:100%}.empty-state{padding:40px;text-align:center;background:var(--pale);border-radius:var(--radius)}
@media(min-width:783px){.admin-bar .site-header{top:32px}}@media(max-width:1000px){.nav{gap:15px}.header-inner{gap:14px}.brand-name{font-size:1.4rem}.header-cta{padding:10px 12px;font-size:12px}.hero-grid{gap:30px}.hero-figure img{height:410px}.split,.booking-grid{gap:35px}.trust-grid{gap:14px}.trust-item{gap:8px}.trust-item .icon{width:35px;height:35px}.trust-item strong{font-size:12px}.grid.three{gap:16px}.card{padding:24px}}
@media(max-width:800px){.wrap{width:calc(100% - 36px)}.section{padding:58px 0}.header-inner{min-height:76px;flex-wrap:wrap;padding-block:13px}.menu-toggle{display:block}.header-cta{display:none}.nav{display:none;flex-direction:column;width:100%;align-items:stretch;padding:10px 0 5px}.nav.open{display:flex}.nav a{padding:6px}.hero-grid{grid-template-columns:1fr;gap:36px;padding-block:45px}.hero h1{max-width:650px}.hero-figure{max-width:580px;width:100%;margin:auto}.hero-figure img{height:360px;border-radius:100px 100px 16px 16px}.demo-badge{left:12px;top:15px;width:112px;height:112px}.demo-badge strong{font-size:24px}.trust-grid{grid-template-columns:1fr 1fr;gap:20px}.trust-item strong{font-size:14px}.grid.three,.post-list{grid-template-columns:1fr}.grid.two,.split,.booking-grid{grid-template-columns:1fr}.teacher-panel{padding:32px}.step{padding:12px 0}.footer-grid{grid-template-columns:1fr 1fr;gap:32px}.footer-grid>div:first-child{grid-column:1/-1}.page-hero{padding:43px 0}.footer-bottom{flex-direction:column;gap:8px}.form-card{padding:24px}.card h3{margin-top:12px}.booking-grid{gap:30px}}
@media(max-width:440px){.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.hero-figure img{height:310px}.hero h1{font-size:2.55rem}.brand-name{font-size:1.3rem}.brand svg{width:38px}.brand-sub{font-size:9px}.actions .btn{width:100%}.trust-item{align-items:flex-start}.floating-whatsapp{right:14px;bottom:14px;font-size:12px}.demo-badge{width:100px;height:100px;font-size:11px}.footer-grid{gap:24px}.form-card{padding:20px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.custom-logo-link{display:block;width:250px;max-width:100%;flex-shrink:0}.custom-logo{display:block;width:100%;height:auto}

/* Responsive layout improvements */
.grid>*,.split>*,.hero-grid>*,.booking-grid>*,.footer-grid>*,.form-grid>*,.trust-grid>*{min-width:0}
main h1,main h2,main h3,main p,main li,.footer-links a,.footer-grid p,.notice,.breadcrumb{overflow-wrap:break-word}
.footer-links a,.footer-grid a[href^="mailto:"],main a[href^="mailto:"]{overflow-wrap:anywhere}
img,video,iframe{max-width:100%}
.btn{white-space:normal;text-align:center;min-height:44px}
.field input,.field select,.field textarea{font-size:16px;min-height:46px}
.consent input{flex:0 0 auto}
.menu-toggle,.submenu-toggle{min-width:44px;min-height:44px}
.primary-menu .sub-menu a{min-height:44px;white-space:normal}
.site-header .primary-menu>li>a{white-space:nowrap}
@media(max-width:1180px){
.site-header .header-inner{flex-wrap:wrap;padding-block:12px;min-height:76px}
.site-header .menu-toggle{display:block}
.site-header .header-cta{display:none}
.site-header .nav{display:none;width:100%;flex-direction:column;align-items:stretch;padding:8px 0 4px}
.site-header .nav.open{display:flex;max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
.site-header .primary-menu{flex-direction:column;align-items:stretch;gap:4px;width:100%}
.site-header .primary-menu>li{flex-wrap:wrap;justify-content:space-between}
.site-header .primary-menu>li>a{flex:1;padding:10px 6px}
.site-header .primary-menu .sub-menu{position:static;flex-basis:100%;width:100%;min-width:0;max-height:none;box-shadow:none;margin:4px 0 8px;padding:6px 10px}
.site-header .submenu-toggle{padding:12px}
}
@media(min-width:601px) and (max-width:1000px){
main .grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
.hero-grid,.split,.booking-grid{grid-template-columns:minmax(0,1fr)}
.hero-grid{min-height:0}
.page-hero h1{font-size:clamp(2rem,6vw,3.1rem)}
.hero h1{font-size:clamp(2.15rem,6.5vw,3.5rem)}
.hero-figure img{height:clamp(260px,60vw,400px)}
body.admin-bar .site-header{top:46px}
}
@media(max-width:600px){
.wrap{width:calc(100% - 32px)}
.site-header .custom-logo-link{width:200px;max-width:calc(100% - 90px)}
.site-header .header-inner{gap:10px}
.section{padding:44px 0}
.page-hero{padding:34px 0}
.hero-grid{padding-block:34px;gap:28px}
.hero-figure img{height:clamp(250px,75vw,360px);border-radius:70px 70px 16px 16px}
main .grid.three,main .grid.two,main .post-list,main .trust-grid{grid-template-columns:minmax(0,1fr)}
.grid{gap:18px}
.trust-grid{gap:16px;padding-block:22px}
.trust-item{align-items:center}
.form-grid{grid-template-columns:minmax(0,1fr);gap:15px}
.field.full{grid-column:auto}
.form-card,.card,.info-box{padding:22px}
.teacher-panel{padding:26px}
.teacher-panel h3{font-size:2rem}
.actions{gap:10px}
.actions .btn{width:100%}
.site-footer .footer-grid{grid-template-columns:minmax(0,1fr);gap:26px}
.footer-grid>div:first-child{grid-column:auto}
.site-footer{padding:36px 0 90px}
.footer-bottom{overflow-wrap:anywhere}
body.admin-bar .site-header{top:0}
.floating-whatsapp{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:calc(100% - 24px)}
}
@media(max-width:360px){
h2,.prose h2{font-size:1.8rem}
.card,.form-card,.info-box{padding:18px}
.site-header .custom-logo-link{width:180px}
}

@media(max-width:1100px){.header-inner{flex-wrap:wrap;padding-block:13px;min-height:76px}.custom-logo-link{width:220px}.menu-toggle{display:block}.header-cta{display:none}.nav{display:none;flex-direction:column;width:100%;align-items:stretch;padding:10px 0 5px}.nav.open{display:flex}.nav a{padding:6px}}

