/* Inner pages: extends site.css without altering approved homepage or Islamic Studies */
.inner-container { width: min(1266px,calc(100% - 48px)); margin-inline: auto; }
.inner-hero { background: radial-gradient(circle at 25% 20%,#fff 0%,#f8f7f1 74%); overflow: hidden; }
.hero-inner { min-height: 545px; display: grid; grid-template-columns: 55% 45%; align-items: center; gap: 35px; padding-block: 55px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; color: #6c746e; font-size: 13px; }
.breadcrumbs a { color: #0e4b3d; }
.inner-hero h1 { font: 600 clamp(43px,4.5vw,69px)/1.13 var(--display-font,Georgia,serif); letter-spacing: -.045em; margin: 14px 0 22px; }
.inner-hero h1 em, .section-intro em, .inner-faq h2 em, .contact-guidance h2 em { color: #c49a4e; font-style: normal; }
.hero-lead { max-width: 630px; font-size: clamp(17px,1.5vw,20px); line-height: 1.65; color: #3d4944; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 46px; color: #52615a; font-size: 13px; }
.hero-stats span { border-left: 1px solid #d5c9b4; padding-left: 18px; }
.hero-stats span:first-child { border: 0; padding-left: 0; }
.hero-stats strong { font-size: 18px; color: #0e4b3d; }
.course-hero-visual { position: relative; padding: 25px; }
.hero-visual-frame { border: 9px solid #d4ad68; border-radius: 230px 230px 20px 20px; overflow: hidden; height: 460px; background: #0e4b3d; box-shadow: 0 24px 45px #0b352b2a; }
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.floating-label { position: absolute; right: -8px; bottom: 40px; padding: 20px 25px; background: #0e4b3d; color: white; border: 2px solid #d8b477; border-radius: 14px; line-height: 1.55; text-align: center; box-shadow: 0 12px 25px #06271d30; }
.floating-label strong { font: 600 20px var(--display-font,Georgia,serif); }
.section-intro { max-width: 800px; margin: 0 auto 35px; text-align: center; }
.section-intro h2,.inner-faq h2,.contact-guidance h2 { font: 600 clamp(34px,3.3vw,49px)/1.2 var(--display-font,Georgia,serif); letter-spacing: -.035em; margin: 12px 0 15px; }
.section-intro p,.inner-faq .faq-intro { font-size: 16px; line-height: 1.7; color: #5b6961; }
.catalogue { padding: 85px 0 95px; background: #fff; }
.course-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 65px; }
.course-filters a { border: 1px solid #e4dfd2; background: #f8f7f1; border-radius: 999px; padding: 12px 18px; font-size: 13px; font-weight: 700; color: #0e4b3d; transition: background .2s,color .2s; }
.course-filters a:hover { background: #0e4b3d; color: white; }
.catalogue-group { scroll-margin-top: 130px; margin-top: 60px; }
.catalogue-title { padding-bottom: 18px; border-bottom: 1px solid #e5dfd1; margin-bottom: 22px; }
.catalogue-title h2 { font: 600 35px var(--display-font,Georgia,serif); margin: 8px 0; }
.catalogue-title p { margin: 0; color: #607068; }
.catalogue-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.catalogue-card { border: 1px solid #e9e2d6; border-radius: 15px; padding: 24px; background: #fbfaf7; min-height: 190px; display: flex; flex-direction: column; transition: transform .2s,box-shadow .2s; }
.catalogue-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #123e3218; }
.course-glyph { color: #c49a4e; font-size: 26px; }
.catalogue-card h3 { font-size: 18px; line-height: 1.4; margin: 16px 0 18px; }
.catalogue-card a { margin-top: auto; font-size: 13px; font-weight: 700; color: #0e4b3d; }
.catalogue-card a span { float: right; }
.inner-cta { background: linear-gradient(115deg,#073f34,#0f5546 60%,#0b4538); color: white; padding: 66px 0; }
.cta-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.inner-cta .eyebrow { color: #dfb86c; }
.inner-cta h2 { font: 600 clamp(32px,3.2vw,44px)/1.2 var(--display-font,Georgia,serif); margin: 12px 0; }
.inner-cta p { color: #d5e6dd; line-height: 1.6; }
.inner-cta .button { background: white; color: #0e4b3d; flex: 0 0 auto; }
.centered-hero { padding: 76px 0 84px; text-align: center; max-width: 780px; }
.centered-hero .breadcrumbs { justify-content: center; }
.centered-hero .hero-lead { margin-inline: auto; }
.pricing-note { display: inline-flex; gap: 15px; align-items: center; margin-top: 25px; background: #f1e9d9; color: #0e4b3d; border-radius: 30px; padding: 12px 23px; font-size: 14px; }
.pricing-note span { color: #c49a4e; }
.pricing-plans { padding: 90px 0 80px; background: white; }
.pricing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 45px; }
.plan-card { position: relative; display: flex; flex-direction: column; border: 1px solid #e8e2d6; border-radius: 18px; background: #fbfaf7; padding: 28px 24px; }
.plan-card.featured { border: 2px solid #c49a4e; background: #f8f6ee; box-shadow: 0 16px 35px #103b2d1c; }
.plan-badge { position: absolute; top: -16px; left: 22px; padding: 7px 13px; background: #0e4b3d; color: white; border-radius: 999px; font-size: 12px; font-weight: 700; }
.plan-top { padding-bottom: 24px; border-bottom: 1px solid #e5dfd3; }
.plan-top h3 { font: 600 27px var(--display-font,Georgia,serif); margin: 12px 0; }
.plan-price { display: flex; align-items: baseline; gap: 5px; }
.plan-price span { font: 600 50px var(--display-font,Georgia,serif); color: #0e4b3d; }
.plan-price small { color: #657169; }
.plan-top p { color: #51635a; margin: 10px 0 0; }
.plan-card ul { list-style: none; margin: 25px 0 30px; padding: 0; flex: 1; }
.plan-card li { position: relative; padding: 0 0 15px 25px; font-size: 13px; line-height: 1.45; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: #b78c41; font-weight: 700; }
.plan-card .button { width: 100%; min-height: 50px; font-size: 13px; }
.pricing-discount { display: flex; gap: 20px; align-items: center; background: #f6f0e4; border: 1px solid #e8d8b9; padding: 20px 26px; margin: 40px 0 30px; border-radius: 12px; }
.pricing-discount > span { font-size: 35px; color: #bc8b3b; }
.pricing-discount p { margin: 0; line-height: 1.6; }
.pricing-discount a { color: #0e4b3d; text-decoration: underline; }
.payments { text-align: center; margin-top: 36px; }
.payments > span { font-size: 11px; letter-spacing: .15em; color: #718076; font-weight: 700; }
.payments > div { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }
.payments strong { padding: 12px 18px; border: 1px solid #e6e1d8; border-radius: 8px; font-size: 13px; color: #35453d; }
.inner-faq { padding: 85px 0; background: #f8f7f1; }
.inner-faq .faq-inner { max-width: 920px; }
.inner-faq .faq-items { margin-top: 32px; }
.contact-hero-art { min-height: 470px; background: linear-gradient(140deg,#155a49,#073d32); border-radius: 24px; display: grid; place-items: center; overflow: hidden; }
.contact-arch { width: 75%; min-height: 385px; border: 7px solid #d5b16e; border-radius: 190px 190px 12px 12px; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.arabic-word { font: 32px Georgia,serif; color: #e7c78a; }
.contact-arch-line { width: 65px; height: 2px; background: #d5b16e; margin: 26px 0; }
.contact-arch strong { font: 600 39px/1.2 var(--display-font,Georgia,serif); }
.contact-arch small { margin-top: 22px; line-height: 1.5; color: #d8e7df; }
.contact-options { padding: 95px 0; background: white; }
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.contact-card { display: flex; flex-direction: column; min-height: 315px; background: #f9f8f3; border: 1px solid #e9e1d2; border-radius: 18px; padding: 30px; transition: transform .2s; }
a.contact-card:hover { transform: translateY(-5px); }
.contact-card-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #f0e7d5; color: #bd9148; font-size: 29px; margin-bottom: 20px; }
.contact-card h3 { font: 600 26px var(--display-font,Georgia,serif); margin: 12px 0; }
.contact-card p { line-height: 1.6; color: #57665e; }
.contact-card strong { margin-top: auto; color: #0e4b3d; font-size: 14px; overflow-wrap: anywhere; }
.contact-guidance { padding: 85px 0; background: #f8f7f1; }
.guidance-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact-guidance p { line-height: 1.7; color: #59675f; max-width: 570px; margin-bottom: 25px; }
.guidance-panel { display: grid; gap: 12px; }
.guidance-panel span { display: flex; gap: 20px; padding: 21px; background: white; border: 1px solid #e8e2d7; border-radius: 12px; color: #bc9148; }
.guidance-panel strong { color: #0e4b3d; }
@media(max-width:1100px) { .catalogue-grid,.pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width:760px) { .hero-inner,.guidance-layout { grid-template-columns: 1fr; } .hero-inner { padding-block: 45px; } .course-hero-visual { max-width: 480px; width: 100%; margin: auto; } .contact-hero-art { min-height: 390px; } .contact-cards { grid-template-columns: 1fr; } .cta-layout { flex-direction: column; align-items: flex-start; } }
@media(max-width:560px) { .inner-container { width: calc(100% - 36px); } .inner-hero h1 { font-size: clamp(37px,9vw,51px); } .hero-cta { flex-direction: column; } .hero-stats { gap: 12px; } .hero-visual-frame { height: 340px; } .catalogue,.pricing-plans,.contact-options,.contact-guidance,.inner-faq { padding-block: 62px; } .catalogue-grid { grid-template-columns: 1fr; } .catalogue-card { min-height: 160px; } .pricing-grid { grid-template-columns: 1fr; gap: 27px; } .pricing-discount { align-items: flex-start; } .centered-hero { padding-block: 58px; } .contact-arch { width: 86%; } .contact-arch strong { font-size: 31px; } }
@media(prefers-reduced-motion:reduce) { .catalogue-card,.contact-card { transition: none; } }


/* Course headings are now linked to their individual course pages. */
.catalogue-card h3 a {
    color: inherit;
    text-decoration: none;
}
.catalogue-card h3 a:hover,
.catalogue-card h3 a:focus-visible {
    color: #b7893f;
    text-decoration: underline;
    text-underline-offset: 4px;
}
