*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}
html{
    scroll-behavior:smooth;
}
body{
    background:#0f172a;
    color:#fff;
    line-height:1.6;
}
.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
}

/* ==========================
   Hero
========================== */

.hero{
    padding:40px 0 80px;
}

/* ==========================
   Resource Card
========================== */

.resource-card{
    background:#1e293b;
    border-radius:22px;
    padding:45px;
    box-shadow:0 20px 45px rgba(0,0,0,.35);
    margin-bottom:40px;
}
.badge-free{
    display:inline-block;
    background:#2563eb;
    color:#fff;
    padding:8px 18px;
    border-radius:50px;
    font-size:13px;
    font-weight:600;
    letter-spacing:.5px;
    margin-bottom:25px;
}
.resource-card h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:15px;
}
.description{
    color:#cbd5e1;
    font-size:19px;
    margin-bottom:35px;
}

/* ==========================
   Stats
========================== */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:20px;
    margin-bottom:35px;
}
.stats div{
    background:#111827;
    border:1px solid #334155;
    border-radius:16px;
    padding:25px;
    text-align:center;
    transition:.25s;
}
.stats div:hover{
    transform:translateY(-4px);
    border-color:#2563eb;
}
.stats span{
    font-size:34px;
    display:block;
    margin-bottom:12px;
}
.stats strong{
    display:block;
    font-size:22px;
    margin-bottom:5px;
}
.stats small{
    color:#94a3b8;
}

/* ==========================
   Tags
========================== */

.tag-list{
    margin-bottom:35px;
}
.tag{
    display:inline-block;
    background:#2563eb;
    color:#fff;
    padding:8px 14px;
    border-radius:50px;
    margin:6px;
    font-size:14px;
    font-weight:500;
}

/* ==========================
   Download Button
========================== */

.download-btn{
    display:inline-block;
    background:#16a34a;
    color:#fff;
    padding:16px 38px;
    border-radius:12px;
    text-decoration:none;
    font-size:20px;
    font-weight:600;
    transition:.25s;
}
.download-btn:hover{
    background:#15803d;
    color:#fff;
    transform:translateY(-3px);
}

/* ==========================
   Newsletter
========================== */

.newsletter{
    background:#1e293b;
    border-radius:20px;
    padding:35px;
    margin-bottom:45px;
}
.newsletter h2{
    font-size:34px;
    margin-bottom:10px;
}
.newsletter p{
    color:#cbd5e1;
    margin-bottom:25px;
}
.newsletter .row{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}
.newsletter .col-md-9{
    flex:1;
}
.newsletter .col-md-3{
    width:220px;
}

/* ==========================
   Related Resources
========================== */

.related-section{
    margin:50px 0;
}
.related-section h2{
    margin-bottom:25px;
}
.related-section .row{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
}
.related-section .col-md-4{
    flex:1;
    min-width:280px;
}
.related-card{
    background:#1e293b;
    border-radius:18px;
    padding:25px;
    height:100%;
    transition:.25s;
}
.related-card:hover{
    transform:translateY(-4px);
}
.related-card h5{
    margin-bottom:18px;
}
.related-card .btn{
    display:inline-block;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    padding:10px 18px;
    border-radius:10px;
}
.related-card .btn:hover{
    background:#1d4ed8;
}

/* ==========================
   Author
========================== */

.author{
    background:#1e293b;
    border-radius:20px;
    padding:35px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
}
.author h4{
    color:#94a3b8;
}
.author h3{
    font-size:34px;
    margin:8px 0;
}
.author p{
    color:#cbd5e1;
}
.social{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}
.social a{
    color:#60a5fa;
    text-decoration:none;
    font-weight:600;
}
.social a:hover{
    color:#fff;
}

/* ==========================
   Bootstrap Overrides
========================== */

.form-control{
    background:#111827 !important;
    color:#fff !important;
    border:1px solid #334155 !important;
    border-radius:12px !important;
    padding:16px !important;
}
.form-control::placeholder{
    color:#94a3b8;
}
.form-control:focus{
    border-color:#2563eb !important;
    box-shadow:none !important;
}
.btn-primary{
    background:#2563eb !important;
    border:none !important;
    border-radius:12px !important;
    padding:15px !important;
    font-weight:600 !important;
}
.btn-primary:hover{
    background:#1d4ed8 !important;
}

/* ==========================
   Success Popup
========================== */

.popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:center;
    backdrop-filter:blur(8px);
    z-index:9999;
}
.popup-overlay.show{
    display:flex;
}
.popup-box{
    width:520px;
    max-width:92%;
    background:#fff;
    color:#1e293b;
    border-radius:24px;
    padding:45px;
    position:relative;
    text-align:center;
    animation:popup .25s ease;
}
@keyframes popup{
    from{
        opacity:0;
        transform:translateY(20px) scale(.95);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}
.popup-close{
    position:absolute;
    top:18px;
    right:22px;
    font-size:34px;
    cursor:pointer;
    color:#888;
    transition:.2s;
}
.popup-close:hover{
    color:#111;
}
.popup-icon{
    font-size:72px;
    line-height:1;
    margin-bottom:20px;
}
#popupTitle{
    font-size:34px;
    font-weight:700;
    margin-bottom:18px;
}
#popupMessage{
    color:#555;
    font-size:22px;
    line-height:1.7;
    margin-bottom:35px;
}
#closePopup{
    width:100%;
    height:58px;
    font-size:22px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-weight:600;
}
#closePopup:hover{
    background:#1d4ed8;
}

/* ==========================
   Responsive
========================== */

@media(max-width:768px){
    .resource-card{
        padding:30px;
    }
    .resource-card h1{
        font-size:34px;
    }
    .stats{
        grid-template-columns:repeat(2,1fr);
    }
    .newsletter .col-md-3{
        width:100%;
    }
    .author{
        flex-direction:column;
        text-align:center;
    }
    .popup-box{
        padding:35px 25px;
    }
    #popupTitle{
        font-size:28px;
    }
    #popupMessage{
        font-size:18px;
    }
}

/* ==========================
   Premium Dark Popup
========================== */

.popup-overlay{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(3,7,18,.82);
    backdrop-filter:blur(10px);
    z-index:9999;
}
.popup-overlay.show{
    display:flex;
}
.popup-box{
    width:560px;
    max-width:92%;
    background:linear-gradient(
        180deg,
        #34446f 0%,
        #293553 100%
    );
    border:1px solid rgba(255,255,255,.08);
    border-radius:30px;
    padding:50px;
    text-align:center;
    position:relative;
    color:#fff;
    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 40px rgba(37,99,235,.18);
    animation:popup .25s ease;
}
@keyframes popup{
    from{
        opacity:0;
        transform:translateY(25px) scale(.96);
    }
    to{
        opacity:1;
        transform:none;
    }
}
.popup-close{
    position:absolute;
    top:18px;
    right:22px;
    font-size:42px;
    color:#fff;
    cursor:pointer;
    opacity:.8;
    transition:.25s;
}
.popup-close:hover{
    opacity:1;
    transform:rotate(90deg);
}
.popup-icon{
    width:110px;
    height:110px;
    margin:0 auto 30px;
    background:#3b82f6;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:60px;
    box-shadow:
        0 15px 40px rgba(59,130,246,.45);
}
#popupTitle{
    color:#fff;
    font-size:54px;
    font-weight:700;
    margin-bottom:18px;
    line-height:1.2;
}
#popupMessage{
    color:#d1d5db;
    font-size:22px;
    line-height:1.8;
    margin-bottom:38px;
}
#closePopup{
    width:100%;
    height:64px;
    border:none;
    border-radius:16px;
    background:#2563eb;
    color:#fff;
    font-size:24px;
    font-weight:700;
    transition:.25s;
}
#closePopup:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

/* ==========================
   Responsive
========================== */

@media(max-width:768px){
    .resource-card{
        padding:30px;
    }
    .resource-card h1{
        font-size:34px;
    }
    .stats{
        grid-template-columns:repeat(2,1fr);
    }
    .newsletter .col-md-3{
        width:100%;
    }
    .author{
        flex-direction:column;
        text-align:center;
    }
    .popup-box{
        width:94%;
        padding:35px 25px;
    }
    .popup-icon{
        width:90px;
        height:90px;
        font-size:46px;
    }
    #popupTitle{
        font-size:38px;
    }
    #popupMessage{
        font-size:18px;
    }
}
