/* =========================================================
   ISLAMIC LIGHT
   পরিবার ও দাম্পত্য জীবন
   Page: dampotto-jibon.html
   File: css/dampotto-jibon.css
   ========================================================= */


/* =========================================================
   1. PAGE VARIABLES (LIGHT & DARK THEMES)
   ========================================================= */

:root {
    --dj-primary: #00695c;
    --dj-primary-dark: #004d40;
    --dj-primary-light: #e0f2f1;

    --dj-gold: #b8860b;
    --dj-gold-light: #fff8e1;

    --dj-text: #263238;
    --dj-text-light: #607d8b;

    --dj-bg: #f7faf9;
    --dj-white: #ffffff;
    --dj-border: #dfe8e5;

    --dj-hero-bg: linear-gradient(135deg, #004d40 0%, #00695c 100%);
    --dj-quran-bg: linear-gradient(135deg, #fffdf5, #fff8e1);
    --dj-quran-border: #eadcae;
    --dj-principles-bg: #eef7f5;
    --dj-disclaimer-bg: #f1f8f6;
    --dj-disclaimer-border: #d5e7e2;
    --dj-placeholder-border: #bfd3ce;

    --dj-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    --dj-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.11);

    --dj-radius: 14px;
    --dj-container: 1120px;
    --dj-transition: 0.25s ease;
}

/* System Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --dj-primary: #26a69a;
        --dj-primary-dark: #80cbc4;
        --dj-primary-light: #152c28;

        --dj-gold: #ffd54f;
        --dj-gold-light: #2c2514;

        --dj-text: #eceff1;
        --dj-text-light: #90a4ae;

        --dj-bg: #12181b;
        --dj-white: #1a2226;
        --dj-border: #263238;

        --dj-hero-bg: linear-gradient(135deg, #091f1c 0%, #003630 100%);
        --dj-quran-bg: linear-gradient(135deg, #241e12, #2c2514);
        --dj-quran-border: #4e401b;
        --dj-principles-bg: #151e22;
        --dj-disclaimer-bg: #142220;
        --dj-disclaimer-border: #213d39;
        --dj-placeholder-border: #37474f;

        --dj-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
        --dj-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.45);
    }
}

/* Class-based Dark Mode */
body.dark-mode,
[data-theme="dark"] {
    --dj-primary: #26a69a;
    --dj-primary-dark: #80cbc4;
    --dj-primary-light: #152c28;

    --dj-gold: #ffd54f;
    --dj-gold-light: #2c2514;

    --dj-text: #eceff1;
    --dj-text-light: #90a4ae;

    --dj-bg: #12181b;
    --dj-white: #1a2226;
    --dj-border: #263238;

    --dj-hero-bg: linear-gradient(135deg, #091f1c 0%, #003630 100%);
    --dj-quran-bg: linear-gradient(135deg, #241e12, #2c2514);
    --dj-quran-border: #4e401b;
    --dj-principles-bg: #151e22;
    --dj-disclaimer-bg: #142220;
    --dj-disclaimer-border: #213d39;
    --dj-placeholder-border: #37474f;

    --dj-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
    --dj-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   2. PAGE BASE
   ========================================================= */

.dampotto-page {
    width: 100%;
    min-height: 100vh;
    background: var(--dj-bg);
    color: var(--dj-text);
    overflow-x: hidden;
    transition: background-color var(--dj-transition), color var(--dj-transition);
}


/* =========================================================
   3. COMMON CONTAINER
   ========================================================= */

.dampotto-container {
    width: calc(100% - 40px);
    max-width: var(--dj-container);
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   5. HERO SECTION
   ========================================================= */

.dampotto-hero {
    position: relative;
    padding: 80px 0;
    background: var(--dj-hero-bg);
    color: #ffffff;
    overflow: hidden;
}

/* Decorative circles */
.dampotto-hero::before,
.dampotto-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dampotto-hero::before {
    width: 360px;
    height: 360px;
    top: -210px;
    left: -130px;
    background: rgba(255, 255, 255, 0.055);
}

.dampotto-hero::after {
    width: 450px;
    height: 450px;
    right: -200px;
    bottom: -280px;
    background: rgba(255, 255, 255, 0.05);
}

.dampotto-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.dampotto-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
}

.dampotto-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.35;
    font-weight: 700;
}

.dampotto-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 2;
}


/* =========================================================
   6. INTRODUCTION
   ========================================================= */

.dampotto-intro {
    padding: 65px 0 35px;
}

.dampotto-intro-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 38px 42px;
    background: var(--dj-white);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius);
    box-shadow: var(--dj-shadow);
    transition: background-color var(--dj-transition), border-color var(--dj-transition);
}

.dampotto-intro-box h2 {
    margin: 0 0 20px;
    color: var(--dj-primary-dark);
    font-size: 28px;
    line-height: 1.5;
    text-align: center;
}

.dampotto-intro-box p {
    margin: 0 0 15px;
    color: var(--dj-text);
    font-size: 16px;
    line-height: 2;
}

.dampotto-intro-box p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   7. SECTION HEADING
   ========================================================= */

.dampotto-section-heading {
    margin-bottom: 36px;
    text-align: center;
}

.dampotto-section-heading > span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--dj-gold);
    font-size: 14px;
    font-weight: 700;
}

.dampotto-section-heading h2 {
    margin: 0 0 12px;
    color: var(--dj-primary-dark);
    font-size: clamp(25px, 3.5vw, 34px);
    line-height: 1.45;
}

.dampotto-section-heading p {
    max-width: 730px;
    margin: 0 auto;
    color: var(--dj-text-light);
    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   8. TOPICS SECTION
   ========================================================= */

.dampotto-topics {
    padding: 45px 0 65px;
}


/* =========================================================
   9. TOPIC GRID
   ========================================================= */

.dampotto-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* =========================================================
   10. TOPIC CARD
   ========================================================= */

.dampotto-topic-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    min-width: 0;
    padding: 25px 22px;
    background: var(--dj-white);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius);
    box-shadow: var(--dj-shadow);
    transition:
        transform var(--dj-transition),
        box-shadow var(--dj-transition),
        border-color var(--dj-transition),
        background-color var(--dj-transition);
}

.dampotto-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dj-shadow-hover);
    border-color: var(--dj-primary);
}


/* =========================================================
   11. TOPIC NUMBER & CONTENT
   ========================================================= */

.topic-number {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dj-primary-light);
    color: var(--dj-primary);
    font-size: 15px;
    font-weight: 700;
}

.topic-content {
    min-width: 0;
}

.topic-content h3 {
    margin: 0 0 9px;
    color: var(--dj-primary-dark);
    font-size: 19px;
    line-height: 1.5;
}

.topic-content p {
    margin: 0 0 13px;
    color: var(--dj-text-light);
    font-size: 14px;
    line-height: 1.85;
}

.topic-content a {
    display: inline-block;
    color: var(--dj-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--dj-transition);
}

.topic-content a::after {
    content: "  →";
    transition: padding-left 0.2s ease;
}

.topic-content a:hover {
    color: var(--dj-primary-dark);
    text-decoration: underline;
}

.topic-content a:hover::after {
    padding-left: 3px;
}


/* =========================================================
   12. QURAN FOUNDATION
   ========================================================= */

.dampotto-foundation {
    padding: 20px 0 65px;
}

.quran-box {
    position: relative;
    max-width: 930px;
    margin: 0 auto;
    padding: 42px 50px;
    background: var(--dj-quran-bg);
    border: 1px solid var(--dj-quran-border);
    border-right: 5px solid var(--dj-gold);
    border-radius: var(--dj-radius);
    box-shadow: var(--dj-shadow);
    text-align: center;
    overflow: hidden;
    transition: background-color var(--dj-transition), border-color var(--dj-transition);
}

.quran-box::before {
    content: "۞";
    position: absolute;
    top: -30px;
    left: 20px;
    color: rgba(184, 134, 11, 0.08);
    font-size: 130px;
    line-height: 1;
    pointer-events: none;
}

body.dark-mode .quran-box::before,
[data-theme="dark"] .quran-box::before {
    color: rgba(255, 213, 79, 0.05);
}

.quran-box-label {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    color: var(--dj-gold);
    font-size: 14px;
    font-weight: 700;
}

.quran-box blockquote {
    position: relative;
    margin: 0;
}

.quran-box blockquote p {
    margin: 0;
    color: var(--dj-primary-dark);
    font-size: 18px;
    line-height: 2.1;
    font-weight: 600;
}

.quran-box blockquote footer {
    margin-top: 18px;
    color: var(--dj-text-light);
    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   13. PRINCIPLES
   ========================================================= */

.dampotto-principles {
    padding: 45px 0 70px;
    background: var(--dj-principles-bg);
    transition: background-color var(--dj-transition);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 25px;
    background: var(--dj-white);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.045);
    transition: background-color var(--dj-transition), border-color var(--dj-transition);
}

.principle-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dj-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

body.dark-mode .principle-icon,
[data-theme="dark"] .principle-icon {
    color: #12181b;
}

.principle-item h3 {
    margin: 0 0 8px;
    color: var(--dj-primary-dark);
    font-size: 19px;
    line-height: 1.5;
}

.principle-item p {
    margin: 0;
    color: var(--dj-text-light);
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   14. ARTICLES
   ========================================================= */

.dampotto-articles {
    padding: 70px 0;
}

.article-placeholder {
    max-width: 760px;
    margin: 0 auto;
    padding: 45px 30px;
    background: var(--dj-white);
    border: 1px dashed var(--dj-placeholder-border);
    border-radius: var(--dj-radius);
    text-align: center;
    transition: background-color var(--dj-transition), border-color var(--dj-transition);
}

.article-placeholder-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--dj-primary-light);
    color: var(--dj-primary);
    font-size: 30px;
    font-weight: 300;
}

.article-placeholder h3 {
    margin: 0 0 10px;
    color: var(--dj-primary-dark);
    font-size: 21px;
    line-height: 1.5;
}

.article-placeholder p {
    margin: 0;
    color: var(--dj-text-light);
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   15. DISCLAIMER
   ========================================================= */

.dampotto-disclaimer {
    padding: 0 0 60px;
}

.disclaimer-box {
    padding: 28px 32px;
    background: var(--dj-disclaimer-bg);
    border: 1px solid var(--dj-disclaimer-border);
    border-right: 4px solid var(--dj-primary);
    border-radius: var(--dj-radius);
    transition: background-color var(--dj-transition), border-color var(--dj-transition);
}

.disclaimer-box h2 {
    margin: 0 0 12px;
    color: var(--dj-primary-dark);
    font-size: 22px;
    line-height: 1.5;
}

.disclaimer-box p {
    margin: 0;
    color: var(--dj-text-light);
    font-size: 14px;
    line-height: 1.95;
}


/* =========================================================
   16. CTA
   ========================================================= */

.dampotto-cta {
    padding: 0 0 75px;
}

.cta-box {
    position: relative;
    padding: 48px 30px;
    background: var(--dj-hero-bg);
    border-radius: var(--dj-radius);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    top: -150px;
    right: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-box h2,
.cta-box p,
.cta-button {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 27px;
    line-height: 1.5;
}

.cta-box p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 24px;
    background: #ffffff;
    color: #004d40;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    color: #004d40;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   17. LINKS / FOCUS
   ========================================================= */

.dampotto-page a:focus-visible {
    outline: 3px solid rgba(38, 166, 154, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}


/* =========================================================
   18. TABLET
   ========================================================= */

@media (max-width: 1000px) {
    .dampotto-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   19. MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .dampotto-container {
        width: calc(100% - 28px);
    }

    .dampotto-hero {
        padding: 58px 0;
    }

    .dampotto-hero h1 {
        font-size: 30px;
    }

    .dampotto-hero p {
        font-size: 15px;
        line-height: 1.9;
    }

    .dampotto-intro {
        padding: 45px 0 25px;
    }

    .dampotto-intro-box {
        padding: 28px 23px;
    }

    .dampotto-intro-box h2 {
        font-size: 24px;
    }

    .dampotto-intro-box p {
        font-size: 15px;
        line-height: 1.9;
    }

    .dampotto-topics {
        padding: 35px 0 50px;
    }

    .dampotto-topic-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dampotto-topic-card {
        padding: 21px 18px;
    }

    .dampotto-section-heading {
        margin-bottom: 28px;
    }

    .dampotto-section-heading h2 {
        font-size: 25px;
    }

    .dampotto-section-heading p {
        font-size: 14px;
    }

    .quran-box {
        padding: 30px 22px;
    }

    .quran-box blockquote p {
        font-size: 16px;
        line-height: 2;
    }

    .dampotto-principles {
        padding: 40px 0 55px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .principle-item {
        padding: 20px 18px;
    }

    .dampotto-articles {
        padding: 55px 0;
    }

    .article-placeholder {
        padding: 35px 20px;
    }

    .dampotto-disclaimer {
        padding-bottom: 50px;
    }

    .disclaimer-box {
        padding: 23px 20px;
    }

    .cta-box {
        padding: 38px 20px;
    }

    .cta-box h2 {
        font-size: 23px;
    }

    .cta-box p {
        font-size: 14px;
    }
}


/* =========================================================
   20. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
    .dampotto-container {
        width: calc(100% - 20px);
    }

    .dampotto-page .breadcrumb {
        padding: 11px 0;
    }

    .dampotto-page .breadcrumb a,
    .dampotto-page .breadcrumb span {
        font-size: 13px;
    }

    .dampotto-hero {
        padding: 45px 0;
    }

    .dampotto-label {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .dampotto-hero h1 {
        font-size: 26px;
        line-height: 1.4;
    }

    .dampotto-hero p {
        font-size: 14px;
        line-height: 1.85;
    }

    .dampotto-intro-box {
        padding: 24px 17px;
    }

    .dampotto-intro-box h2 {
        font-size: 22px;
    }

    .dampotto-intro-box p {
        font-size: 14px;
    }

    .dampotto-topic-card {
        gap: 13px;
        padding: 18px 15px;
    }

    .topic-number {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 13px;
    }

    .topic-content h3 {
        font-size: 17px;
    }

    .topic-content p {
        font-size: 13px;
        line-height: 1.8;
    }

    .topic-content a {
        font-size: 13px;
    }

    .quran-box {
        padding: 27px 17px;
    }

    .quran-box blockquote p {
        font-size: 15px;
        line-height: 1.95;
    }

    .quran-box blockquote footer {
        font-size: 13px;
    }

    .principle-item {
        gap: 12px;
        padding: 17px 15px;
    }

    .principle-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .principle-item h3 {
        font-size: 17px;
    }

    .principle-item p {
        font-size: 13px;
        line-height: 1.8;
    }

    .article-placeholder {
        padding: 30px 16px;
    }

    .article-placeholder h3 {
        font-size: 19px;
    }

    .article-placeholder p {
        font-size: 13px;
    }

    .disclaimer-box h2 {
        font-size: 20px;
    }

    .disclaimer-box p {
        font-size: 13px;
    }

    .cta-box {
        padding: 32px 16px;
    }

    .cta-box h2 {
        font-size: 21px;
    }

    .cta-button {
        width: 100%;
        max-width: 260px;
    }
}


/* =========================================================
   21. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .dampotto-topic-card,
    .cta-button,
    .topic-content a::after {
        transition: none;
    }
}
