/* =====================================================
   Islamic Academy of Riverside
   Version 2.0 Stylesheet
===================================================== */

:root{
    --purple:#4B1E78;
    --gold:#D4A017;
    --gold-dark:#B98C12;
    --light:#F8F9FB;
    --white:#FFFFFF;
    --dark:#222222;
    --gray:#666666;
    --border:#E5E5E5;
    --shadow:0 8px 30px rgba(0,0,0,.08);
}

/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    color:var(--dark);
    background:#fff;
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    width:min(1200px,92%);
    margin:auto;
}

/* ===========================
   HEADER
=========================== */

.topbar{
    background:#fff;
    border-bottom:1px solid var(--border);
}

.topbar .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
    gap:20px;
}

.brand{
    display:flex;
    align-items:center;
    gap:18px;
}

.brand img{
    width:80px;
    height:auto;
}

.brand h1{
    color:var(--purple);
    font-size:2rem;
}

.brand p{
    color:var(--gray);
}

.header-links{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.header-links a{
    color:var(--purple);
    font-weight:700;
}

.header-links a:hover{
    color:var(--gold);
}

/* ===========================
   NAVIGATION
=========================== */

.navbar{
    background:var(--purple);
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 2px 10px rgba(0,0,0,.15);
}

.navbar ul{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    list-style:none;
}

.navbar a{
    display:block;
    padding:16px 22px;
    color:#fff;
    font-weight:bold;
    transition:.3s;
}

.navbar a:hover,
.navbar a.active{
    background:var(--gold);
    color:#222;
}

/* ===========================
   HERO
=========================== */

.hero{
    min-height:650px;
    display:flex;
    align-items:center;
    background-size:cover;
    background-position:center;
}

.overlay{
    width:100%;
    min-height:650px;
    background:rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:8%;
    color:#fff;
}

.overlay h2{
    font-size:3.5rem;
    margin-bottom:15px;
}

.overlay p{
    max-width:700px;
    font-size:1.25rem;
}

.hero-buttons{
    margin-top:30px;
}

.hero-buttons a{
    display:inline-block;
    margin-right:15px;
    margin-bottom:10px;
    background:var(--gold);
    color:#222;
    padding:15px 30px;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
}

.hero-buttons a:hover{
    background:#fff;
}

/* ===========================
   SECTIONS
=========================== */

section{
    padding:80px 0;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    color:var(--purple);
    font-size:2.5rem;
}

.section-title p{
    color:#666;
    max-width:700px;
    margin:auto;
}

/* ===========================
   CARDS
=========================== */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.35s;
}

.card:hover{
    transform:translateY(-8px);
}

.card img{
    width:100%;
}

.card-content{
    padding:25px;
}

.card h3{
    color:var(--purple);
    margin-bottom:10px;
}

.card p{
    color:#555;
}

/* ===========================
   BUTTONS
=========================== */

.btn{
    display:inline-block;
    padding:14px 28px;
    border-radius:8px;
    font-weight:bold;
}

.btn-primary{
    background:var(--purple);
    color:#fff;
}

.btn-primary:hover{
    background:#37155A;
}

.btn-gold{
    background:var(--gold);
    color:#222;
}

.btn-gold:hover{
    background:var(--gold-dark);
    color:#fff;
}

/* ===========================
   PARENT RESOURCES
=========================== */

.resources{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.resource-card{
    text-align:center;
    padding:35px;
    background:#fff;
    border-radius:14px;
    box-shadow:var(--shadow);
}

.resource-card h3{
    color:var(--purple);
    margin-top:15px;
}

/* ===========================
   CTA
=========================== */

.cta{
    background:var(--purple);
    color:#fff;
    text-align:center;
}

.cta h2{
    font-size:2.8rem;
}

.cta p{
    margin:20px auto;
    max-width:700px;
}

/* ===========================
   FOOTER
=========================== */

footer{
    background:#1d1d1d;
    color:#ddd;
    padding:60px 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:35px;
}

footer h3{
    color:#fff;
    margin-bottom:15px;
}

footer a{
    color:#ddd;
}

footer a:hover{
    color:var(--gold);
}

.copyright{
    text-align:center;
    margin-top:40px;
    border-top:1px solid #444;
    padding-top:25px;
}

/* ===========================
   ANIMATIONS
=========================== */

.fade-in{
    opacity:0;
    transform:translateY(35px);
    transition:.8s;
}

.fade-in.visible{
    opacity:1;
    transform:none;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:900px){

.topbar .container{
    flex-direction:column;
    text-align:center;
}

.brand{
    flex-direction:column;
}

.overlay{
    align-items:center;
    text-align:center;
}

.overlay h2{
    font-size:2.4rem;
}

.navbar ul{
    flex-direction:column;
}

.navbar a{
    border-bottom:1px solid rgba(255,255,255,.1);
}

}