/* ICOPC homepage theme. Scoped to keep app, admin and TV layouts independent. */
body.icopc-home{--home-navy:#102d43;--home-gold:#ae863d;--home-cream:#fbf9f4;--home-ink:#17344a;--home-muted:#536476;margin:0;background:var(--home-cream);color:var(--home-ink);font-family:Arial,Helvetica,sans-serif;line-height:1.65}
body.icopc-home *{box-sizing:border-box}
body.icopc-home a{color:inherit}
body.icopc-home h1,body.icopc-home h2,body.icopc-home h3{font-family:Georgia,'Times New Roman',serif;color:var(--home-navy);line-height:1.15;letter-spacing:-.025em}
body.icopc-home h2{font-size:clamp(1.8rem,3vw,2.6rem);margin:0 0 18px}
body.icopc-home .eyebrow{font-size:.72rem;letter-spacing:.19em;font-weight:700;color:var(--home-gold)}
body.icopc-home .welcome{background:var(--home-navy);color:#fff8e9;display:flex;justify-content:space-between;gap:20px;padding:9px max(24px,calc((100vw - 1240px)/2));font-size:.77rem}
body.icopc-home>header.compact-header{position:relative;background:#fffefa;border-bottom:1px solid #e9e2d4;display:flex;align-items:center;gap:24px;max-width:none;padding:20px max(24px,calc((100vw - 1240px)/2));box-shadow:none}
body.icopc-home .brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
body.icopc-home .brand img{width:62px;height:62px;object-fit:contain}
body.icopc-home .brand span{font-family:Georgia,serif;font-size:1.1rem;font-weight:700;line-height:1.2}
body.icopc-home .brand small{display:block;font:9px Arial,sans-serif;letter-spacing:.12em;margin-top:7px}
body.icopc-home .compact-nav{margin-left:auto;gap:16px;font-size:.82rem}
body.icopc-home .compact-nav a,body.icopc-home .compact-nav summary{text-decoration:none;color:var(--home-navy)}
body.icopc-home .compact-nav a:hover,body.icopc-home .compact-nav summary:hover{color:#89672d}
body.icopc-home .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:13px 23px;text-decoration:none;font-size:.9rem;font-weight:700;line-height:1.4;min-height:46px}
body.icopc-home .button.gold,body.icopc-home .button.green{background:linear-gradient(110deg,#ae863d,#bc984e);color:white;border:1px solid #ae863d}
body.icopc-home .button.outline{border:1px solid #a18c64;color:var(--home-navy);background:#fff9ebbb}
body.icopc-home .text-link{color:var(--home-navy);font-weight:700}
body.icopc-home main{max-width:none}
body.icopc-home .photo-hero{position:relative;isolation:isolate;min-height:510px;display:flex;align-items:center;overflow:hidden;background:#e7dfcf;margin:0}
body.icopc-home .slides,body.icopc-home .hero-shade{position:absolute;inset:0;z-index:-1}
body.icopc-home .slides .slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition:opacity 1s}
body.icopc-home .slides .slide.active{opacity:1}
body.icopc-home .hero-shade{background:linear-gradient(90deg,#fbf9f4 0%,#fbf9f4f5 28%,#fbf9f4b0 50%,#102d4320 100%)}
body.icopc-home .photo-hero-copy{padding:55px 24px 85px;margin:auto;width:min(1288px,100%);color:var(--home-ink)}
body.icopc-home .photo-hero-copy h1{font-size:clamp(2.7rem,5.5vw,4.5rem);margin:15px 0 20px;max-width:600px}
body.icopc-home .photo-hero-copy p{max-width:540px}
body.icopc-home .photo-hero-copy .bismillah{color:#84652d;font-size:1.35rem;text-align:left;max-width:540px}
body.icopc-home .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
body.icopc-home .slide-controls{position:absolute;bottom:20px;right:24px;display:flex;gap:10px;align-items:center}
body.icopc-home .slide-controls button{background:#fffdf4;color:var(--home-navy);border:1px solid #cfc2a5;border-radius:6px;min-height:32px;cursor:pointer}
body.icopc-home .hero-address{position:absolute;bottom:20px;left:max(24px,calc((100vw - 1240px)/2));font-size:.65rem;letter-spacing:.1em;color:var(--home-navy)}
body.icopc-home .salah-section{max-width:1240px;margin:32px auto 0;padding:25px;display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr);gap:40px;align-items:center;background:#fffefa;border:1px solid #e9e2d4;border-radius:18px;box-shadow:0 12px 35px #102d430a}
body.icopc-home .salah-card{background:white;border:1px solid #e9e2d4;border-radius:14px;overflow:hidden;min-width:0;color:var(--home-ink)}
body.icopc-home .salah-card-top{background:var(--home-navy);color:#fff8e9;padding:20px;display:flex;justify-content:space-between;gap:16px}
body.icopc-home .salah-card-top h3{color:white;margin:8px 0;font-size:1.4rem}
body.icopc-home .salah-kicker{font-size:.65rem;letter-spacing:.15em;color:#e1c48b}
body.icopc-home .salah-next{background:#f4eddc;color:var(--home-navy);padding:12px 20px}
body.icopc-home .salah-table{width:100%;border-collapse:collapse}
body.icopc-home .salah-table th,body.icopc-home .salah-table td{padding:11px 18px;border-bottom:1px solid #eee7da;text-align:left}
body.icopc-home .salah-table th{color:#88682e;background:#fcfaf4;font-size:.8rem}
body.icopc-home .salah-footer{padding:12px 18px;display:flex;gap:10px;justify-content:space-between;font-size:.72rem}
body.icopc-home .salah-footer button{background:transparent;border:0;color:var(--home-navy);cursor:pointer}
body.icopc-home .salah-error{padding:12px;color:#8b301f}
body.icopc-home .salah-jummah{padding:12px 18px;background:#f6f0e4}
body.icopc-home .salah-sr,.resource-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body.icopc-home .welcome-section{max-width:850px;text-align:center;margin:65px auto;padding:0 24px}
body.icopc-home .welcome-section p{color:var(--home-muted)}
body.icopc-home .icopc-resources,body.icopc-home .icopc-useful{width:min(1240px,calc(100% - 48px));margin:60px auto}
body.icopc-home .resource-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px}
body.icopc-home .resource-heading>p{max-width:310px;text-align:right;color:var(--home-muted);font-size:.9rem}
body.icopc-home .resource-heading h2:after,body.icopc-home .icopc-useful h2:after{content:'';display:block;width:48px;height:3px;background:var(--home-gold);margin-top:17px}
body.icopc-home .resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.icopc-home .resource-card{border:1px solid #e5dfd3;border-radius:12px;overflow:hidden;background:#fffefa;display:flex;flex-direction:column;box-shadow:0 4px 12px #102d4303;transition:transform .2s,box-shadow .2s}
body.icopc-home .resource-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px #102d4310}
body.icopc-home .resource-image{display:block;aspect-ratio:16/9;background:var(--home-navy)}
body.icopc-home .resource-image img{display:block;width:100%;height:100%;object-fit:cover}
body.icopc-home .resource-copy{padding:22px;display:flex;flex-direction:column;flex:1}
body.icopc-home .resource-label{font-size:.62rem;letter-spacing:.13em;text-transform:uppercase;color:#89682f;font-weight:700}
body.icopc-home .resource-card h3{font-size:1.45rem;margin:10px 0}
body.icopc-home .resource-card h3 a{text-decoration:none}
body.icopc-home .resource-card p{color:var(--home-muted);font-size:.92rem;margin:0 0 22px}
body.icopc-home .resource-link{font-size:.86rem;font-weight:700;text-decoration:none;margin-top:auto;align-self:flex-start}
body.icopc-home .resource-note{font-size:.75rem;color:var(--home-muted);margin-top:18px}
body.icopc-home .useful-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.icopc-home .useful-grid>a{display:flex;align-items:center;gap:16px;background:#fffefa;border:1px solid #e5dfd3;border-radius:11px;padding:22px;text-decoration:none}
body.icopc-home .useful-grid>a>span{font-size:2rem;color:var(--home-gold)}
body.icopc-home .useful-grid strong{display:block;font-size:.95rem}
body.icopc-home .useful-grid small{display:block;font-size:.75rem;color:var(--home-muted);margin-top:5px}
body.icopc-home .useful-grid b{margin-left:auto;color:var(--home-gold)}
body.icopc-home .icopc-donate{width:min(1240px,calc(100% - 48px));margin:65px auto;display:flex;align-items:center;justify-content:space-between;gap:25px;background:radial-gradient(circle at 95% 5%,#315364,transparent 50%),var(--home-navy);padding:40px;border-radius:16px;color:#eee4cf}
body.icopc-home .icopc-donate h2{color:white;margin-bottom:12px}
body.icopc-home .icopc-donate .eyebrow{color:#dfc28d}
body.icopc-home .icopc-donate p{margin:0}
body.icopc-home .home-contact{width:min(1240px,calc(100% - 48px));margin:55px auto;display:flex;justify-content:space-between;gap:25px;align-items:center;padding:30px 0;border-top:1px solid #e5dfd3}
body.icopc-home>footer{background:var(--home-navy);color:#eee4cf;padding:35px max(24px,calc((100vw - 1240px)/2));display:flex;gap:28px;align-items:center;justify-content:space-between;font-size:.8rem}
body.icopc-home a:focus-visible,body.icopc-home button:focus-visible,body.icopc-home summary:focus-visible{outline:3px solid #b88c3d;outline-offset:4px}
@media(max-width:1100px){body.icopc-home>header.compact-header{flex-wrap:wrap}body.icopc-home .compact-nav{gap:12px}body.icopc-home .salah-section{margin:28px 24px 0}body.icopc-home .useful-grid>a{padding:16px}}
@media(max-width:760px){body.icopc-home .welcome{justify-content:center;padding:8px 16px}body.icopc-home .welcome>a{display:none}body.icopc-home>header.compact-header{padding:14px 18px;gap:12px}body.icopc-home .brand img{width:45px;height:45px}body.icopc-home .brand span{font-size:.85rem}body.icopc-home .brand small{font-size:7px}body.icopc-home>header>.button{margin-left:auto;padding:10px 14px;min-height:40px}body.icopc-home .photo-hero{min-height:480px}body.icopc-home .hero-shade{background:linear-gradient(90deg,#fbf9f4f5 0%,#fbf9f4dc 45%,#fbf9f435 100%)}body.icopc-home .photo-hero-copy{padding:35px 24px 95px}body.icopc-home .photo-hero-copy h1{font-size:2.8rem}body.icopc-home .photo-hero-copy>p{max-width:300px;font-size:.9rem}body.icopc-home .photo-hero-copy .bismillah{font-size:1.1rem}body.icopc-home .hero-address{font-size:.54rem;bottom:65px;left:24px}body.icopc-home .slide-controls{right:20px;bottom:15px}body.icopc-home .salah-section{grid-template-columns:1fr;gap:22px;padding:20px;margin:20px 16px 0}body.icopc-home .salah-intro h2{font-size:1.8rem}body.icopc-home .salah-intro h2 br{display:none}body.icopc-home .salah-intro>p:not(.eyebrow){display:none}body.icopc-home .salah-table td,body.icopc-home .salah-table th{padding:10px 12px}body.icopc-home .salah-footer{flex-wrap:wrap}body.icopc-home .welcome-section{margin:40px auto}body.icopc-home .icopc-resources,body.icopc-home .icopc-useful{width:calc(100% - 32px);margin:40px auto}body.icopc-home .resource-heading{display:block}body.icopc-home .resource-heading>p{text-align:left;max-width:none}body.icopc-home .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.icopc-home .resource-copy{padding:14px}body.icopc-home .resource-card h3{font-size:1.12rem}body.icopc-home .resource-card p{font-size:.8rem;line-height:1.5}body.icopc-home .resource-label{font-size:.53rem;letter-spacing:.06em}body.icopc-home .useful-grid{grid-template-columns:1fr;gap:12px}body.icopc-home .icopc-donate{width:calc(100% - 32px);margin:40px auto;display:block;padding:27px}body.icopc-home .icopc-donate .button{margin-top:24px}body.icopc-home .home-contact{width:calc(100% - 32px);flex-direction:column;align-items:start}body.icopc-home>footer{flex-wrap:wrap;padding:28px 20px}}
@media(prefers-reduced-motion:reduce){body.icopc-home .slide,body.icopc-home .resource-card{transition:none}body.icopc-home .resource-card:hover{transform:none}}
body.icopc-home .home-announcements{width:min(1240px,calc(100% - 48px));margin:60px auto}
body.icopc-home .announcement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.icopc-home .announcement-grid article{background:#fffefa;border:1px solid #e5dfd3;border-radius:12px;padding:28px}
body.icopc-home .announcement-grid h3{font-size:1.5rem;margin:10px 0}
body.icopc-home .announcement-grid p:not(.eyebrow){color:var(--home-muted);font-size:.92rem;overflow-wrap:anywhere}
@media(max-width:760px){body.icopc-home .home-announcements{width:calc(100% - 32px);margin:40px auto}body.icopc-home .announcement-grid{grid-template-columns:1fr;gap:14px}body.icopc-home .announcement-grid article{padding:22px}}

/* V2: resource links immediately below the header, with embedded official logos. */
body.icopc-home .resource-image{height:170px;aspect-ratio:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:20px;background:#fffefb;border-bottom:1px solid #e5dfd3;text-decoration:none;overflow:hidden}
body.icopc-home .resource-image img{width:auto;max-width:100%;height:105px;max-height:105px;object-fit:contain;flex-shrink:1}
body.icopc-home .resource-brand{font-size:.83rem;font-weight:700;color:#17344a;text-align:center;line-height:1.25}
body.icopc-home .resource-logo-quran{background:#17344a}
body.icopc-home .resource-logo-quran .resource-brand{color:#f0d49d}
body.icopc-home main>.icopc-resources:first-child{margin-top:30px;margin-bottom:42px}
@media(max-width:760px){body.icopc-home .resource-image{height:140px;padding:16px 10px;gap:8px}body.icopc-home .resource-image img{height:80px;max-height:80px}body.icopc-home .resource-brand{font-size:.68rem}body.icopc-home main>.icopc-resources:first-child{margin-top:24px;margin-bottom:30px}}
/* Keep the original full-width photo background and cream text fade.
   Frame the prayer-hall slide lower, away from the ceiling. */
body.icopc-home .photo-hero .slides .slide:nth-child(2){object-position:center bottom}
/* Desktop: restore the edge-to-edge background, with slide-specific framing. */
@media(min-width:761px){
 body.icopc-home .photo-hero .slides .slide:nth-child(n){object-fit:cover;object-position:center 40%;background:transparent}
 body.icopc-home .photo-hero .slides .slide:nth-child(1){object-position:center 55%}
 body.icopc-home .photo-hero .slides .slide:nth-child(2){object-position:center 24%}
 body.icopc-home .photo-hero .slides .slide:nth-child(3){object-position:center 45%}
 body.icopc-home .photo-hero .photo-hero-copy>p:not(.eyebrow):not(.bismillah){color:#536476}
}
