:root {
    --navy: #102d3b;
    --navy-dark: #09222f;
    --green: #176b58;
    --green-light: #dcece4;
    --gold: #c8a96a;
    --cream: #faf8f1;
    --text: #233b40;
    --muted: #72817d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: "Cairo", sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 241, 0.96);
    border-bottom: 1px solid rgba(16, 45, 59, 0.08);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--gold);
    background: var(--navy);
    border-radius: 15px;
    font-size: 30px;
}

.logo strong,
.logo small {
    display: block;
}

.logo strong {
    font-size: 18px;
    color: var(--navy);
    font-weight: 900;
}

.logo small {
    color: var(--muted);
    font-size: 12px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    font-size: 14px;
    font-weight: 700;
    color: #52655f;
    transition: color 0.2s;
}

.navigation a:hover {
    color: var(--green);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%,
            rgba(200, 169, 106, 0.14),
            transparent 32%),
        linear-gradient(125deg,
            var(--navy-dark),
            var(--navy) 65%,
            #17483f);
}

.hero-content {
    position: relative;
    min-height: 430px;
    padding-block: 75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(200, 169, 106, 0.4);
    border-radius: 30px;
    color: #e8d4a8;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 750px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.5;
    font-weight: 900;
}

.hero h1 span {
    display: block;
    color: #e2c78c;
}

.hero-description {
    max-width: 670px;
    margin-top: 15px;
    color: #d4e1df;
    font-size: 16px;
    line-height: 2.1;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 27px;
    padding: 13px 23px;
    border-radius: 12px;
    background: var(--gold);
    color: #142e34;
    font-size: 14px;
    font-weight: 900;
    transition: 0.25s;
}

.primary-button:hover {
    transform: translateY(-3px);
    background: #e0c58e;
}

.hero-ornament {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(200, 169, 106, 0.11);
    font-size: clamp(150px, 22vw, 300px);
    line-height: 1;
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(200, 169, 106, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    top: -240px;
    left: 10%;
}

.decoration-two {
    bottom: -270px;
    left: 25%;
    width: 430px;
    height: 430px;
}

/* Section heading */

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-kicker {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.section-heading h2 {
    margin-top: 7px;
    color: var(--navy);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
}

.section-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}

/* Main library cards */

.library {
    padding-block: 80px 90px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.library-card {
    overflow: hidden;
    border: 1px solid #e9e5d9;
    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 35px rgba(20, 49, 51, 0.045);
    transition: transform 0.25s, box-shadow 0.25s;
}

.library-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(20, 49, 51, 0.1);
}

.card-visual {
    min-height: 185px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ead8ac;
    background:
        radial-gradient(circle at center,
            rgba(200, 169, 106, 0.17),
            transparent 48%),
        linear-gradient(140deg, #173d49, #0b2834);
}

.hadith-card .card-visual {
    background:
        radial-gradient(circle at center,
            rgba(200, 169, 106, 0.2),
            transparent 48%),
        linear-gradient(140deg, #1d5148, #10342f);
}

.seerah-card .card-visual {
    background:
        radial-gradient(circle at center,
            rgba(200, 169, 106, 0.18),
            transparent 48%),
        linear-gradient(140deg, #344654, #172f3b);
}

.card-visual::before,
.card-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(220, 194, 137, 0.2);
    border-radius: 50%;
}

.card-visual::before {
    width: 160px;
    height: 160px;
}

.card-visual::after {
    width: 125px;
    height: 125px;
}

.card-symbol {
    position: relative;
    z-index: 1;
    font-size: 76px;
    line-height: 1;
    color: #e5ce98;
}

.card-number {
    position: absolute;
    left: 20px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 40px;
    font-weight: 900;
    direction: ltr;
}

.card-body {
    padding: 24px;
}

.card-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--green);
    background: #e8f2eb;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin-top: 12px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
}

.card-body p {
    min-height: 95px;
    margin-top: 9px;
    color: #6b7a75;
    font-size: 14px;
    line-height: 2;
}

.card-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid #eeeae1;
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
}

.card-button span {
    font-size: 20px;
    transition: transform 0.2s;
}

.card-button:hover span {
    transform: translateX(-4px);
}

/* About section */

.about-section {
    padding-block: 70px;
    color: white;
    background:
        radial-gradient(circle at 5% 50%,
            rgba(200, 169, 106, 0.1),
            transparent 30%),
        #102f3a;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 105px;
    height: 105px;
    border: 1px solid rgba(200, 169, 106, 0.35);
    border-radius: 25px;
    color: var(--gold);
    font-size: 64px;
}

.about-text .section-kicker {
    color: #e3c78a;
}

.about-text h2 {
    margin-top: 8px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.about-text p {
    max-width: 780px;
    margin-top: 10px;
    color: #d4e1df;
    font-size: 15px;
    line-height: 2.1;
}

/* Footer */

.footer {
    padding-block: 23px;
    color: #d7e1dc;
    background: #081e28;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    color: #e3c78a;
    font-size: 16px;
    font-weight: 900;
}

.footer-inner p,
.footer-inner>span {
    font-size: 12px;
    color: #b8c9c3;
}

/* Responsive */

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-ornament {
        opacity: 0.45;
    }

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 13px;
    }
}

@media (max-width: 620px) {
    .header-inner {
        padding-block: 13px;
        flex-direction: column;
        gap: 10px;
    }

    .navigation {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 7px 15px;
        padding-bottom: 5px;
    }

    .hero-content {
        min-height: 390px;
        padding-block: 55px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-ornament {
        left: -15%;
        font-size: 170px;
    }

    .library {
        padding-block: 55px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-body p {
        min-height: auto;
    }

    .about-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-mark {
        width: 75px;
        height: 75px;
        font-size: 45px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}