/* ============================================
           PROFESSIONAL BLOG DETAILS PAGE STYLES
           (Matching Blog Listing Page)
        ============================================ */

/* ----- Hero Section ----- */
#blog-details-hero {
    height: 65vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#blog-details-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.75) 0%,
            rgba(30, 41, 59, 0.55) 50%,
            rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

/* Animated Glow Orbs */
#blog-details-hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(65, 105, 225, 0.15),
            transparent 70%);
    border-radius: 50%;
    animation: floatGlow 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, -40px) scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 20px;
    animation: fadeUp 0.9s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-tag {
    display: inline-block;
    background: rgba(65, 105, 225, 0.92);
    color: #fff;
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-content .blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-content .blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-content .blog-meta i {
    color: #4169e1;
    font-size: 14px;
}

/* ----- Content Section ----- */
#blog-content-sec {
    padding: 60px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* ----- Main Article ----- */
.main-article {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.article-text {
    font-size: 17px;
    line-height: 1.9;
    color: #1e293b;
    margin-bottom: 32px;
}

.article-text p {
    margin-bottom: 20px;
}

/* Article Divider */
.article-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4169e1, #7c9aff);
    border-radius: 10px;
    margin: 30px 0;
}

/* Back Button */
.blog-footer-nav {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #f1f4f9;
    color: #1e293b;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #4169e1;
    color: #fff;
    transform: translateX(-4px);
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-4px);
}

/* Share Buttons */
.share-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btns span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.share-btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f4f9;
    color: #1e293b;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btns a:hover {
    background: #4169e1;
    color: #fff;
    transform: translateY(-3px);
}

/* ----- Sidebar ----- */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f4f9;
    position: relative;
}

.sidebar-box h4::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4169e1;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recent-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.recent-item img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eef2f6;
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.recent-info a {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-info a:hover {
    color: #4169e1;
}

.recent-info span {
    font-size: 12px;
    color: #94a3b8;
}

/* Category List */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-list a {
    display: inline-block;
    padding: 6px 18px;
    background: #f1f4f9;
    color: #1e293b;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #4169e1;
    color: #fff;
    transform: translateY(-2px);
}

/* ----- Newsletter ----- */
#newsletter {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 50px 80px;
    margin: 0;
}

#newsletter h4 {
    color: #fff;
    font-size: 24px;
}

#newsletter p {
    color: rgba(255, 255, 255, 0.7);
}

#newsletter .form input {
    border-radius: 30px 0 0 30px;
    height: 50px;
}

#newsletter .form button {
    background: #4169e1;
    border-radius: 0 30px 30px 0;
    padding: 0 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#newsletter .form button:hover {
    background: #254ecb;
}

/* ============================================
           RESPONSIVE
        ============================================ */

@media (max-width: 1024px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 35px;
    }
}

@media (max-width: 991px) {
    #blog-details-hero {
        height: 55vh;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    #blog-content-sec {
        padding: 40px;
    }

    .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .main-article {
        padding: 35px 32px;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    #blog-details-hero {
        height: 45vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    #blog-content-sec {
        padding: 30px 20px;
    }

    .main-article {
        padding: 28px 22px;
    }

    .article-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-footer-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .back-btn {
        justify-content: center;
    }

    .share-btns {
        justify-content: center;
    }

    #newsletter {
        padding: 40px 20px;
    }

    #newsletter .form {
        width: 100%;
        flex-wrap: wrap;
    }

    #newsletter .form input {
        border-radius: 30px;
        margin-bottom: 12px;
        width: 100%;
    }

    #newsletter .form button {
        border-radius: 30px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #blog-details-hero {
        height: 40vh;
        min-height: 260px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content .blog-meta {
        font-size: 13px;
        gap: 14px;
    }

    #blog-content-sec {
        padding: 20px 12px;
    }

    .main-article {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .article-text {
        font-size: 14px;
    }

    .back-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ============================================
           PROFESSIONAL BLOG PAGE INTERNAL STYLES
        ============================================ */

/* Blog Header Base Styles with Modern Gradient */
.blog-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.15), transparent 70%);
    border-radius: 50%;
    animation: floatGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.blog-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    border-radius: 50%;
    animation: floatGlow 10s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.blog-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    margin: 0;
    animation: fadeUp 0.8s ease;
}

.blog-header h2 span {
    color: #4169E1;
}

.blog-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0 0 0;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s ease 0.2s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Section Layout */
#blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Blog Grid System */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Blog Card Item */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(65, 105, 225, 0.10);
    border-color: rgba(65, 105, 225, 0.15);
}

/* Card Image Holder */
.blog-img {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f0f2f5;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-img img {
    transform: scale(1.07);
}

/* Badge design */
.blog-img .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(65, 105, 225, 0.92);
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Details area within card */
.blog-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Meta tags (Date, Author, Read time) */
.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
    color: #8b9bb5;
    margin-bottom: 14px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    font-size: 13px;
    color: #4169E1;
}

/* Title inside details */
.blog-details h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-details h4 {
    color: #4169E1;
}

/* Paragraph limits & styling */
.blog-details p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    /* پش کرتا ہے ریڈ مور لنک کو نیچے کی طرف */
}

/* Action Link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4169E1;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    align-self: flex-start;
    margin-top: auto;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4169E1;
    transition: width 0.3s ease;
}

.read-more-link:hover::after {
    width: 100%;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(6px);
}

/* No Blogs Card design */
.no-blogs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    font-size: 18px;
    color: #64748b;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Newsletter override style to keep alignment consistent */
#newsletter {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 50px 80px;
    margin: 0;
}

#newsletter h4 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
}

#newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

#newsletter .form input {
    border-radius: 30px 0 0 30px;
    height: 50px;
}

#newsletter .form button {
    background: #4169E1;
    border-radius: 0 30px 30px 0;
    padding: 0 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
    height: 50px;
}

#newsletter .form button:hover {
    background: #254ecb;
}

/* ============================================
           MEDIA QUERIES (RESPONSIVE ENHANCEMENTS)
        ============================================ */

@media (max-width: 991px) {
    #blog-container {
        padding: 40px 20px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 24px;
    }

    .blog-header h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    #blog-container {
        padding: 30px 15px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-header {
        height: 35vh;
    }

    .blog-header h2 {
        font-size: 30px;
    }

    .blog-header p {
        font-size: 16px;
    }

    .blog-details {
        padding: 22px 20px;
    }

    .blog-img {
        height: 200px;
    }

    #newsletter {
        padding: 40px 20px;
    }

    #newsletter .form {
        width: 100%;
        flex-wrap: wrap;
    }

    #newsletter .form input {
        border-radius: 30px;
        margin-bottom: 12px;
        width: 100%;
    }

    #newsletter .form button {
        border-radius: 30px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-header h2 {
        font-size: 26px;
    }

    .blog-details h4 {
        font-size: 18px;
    }

    .blog-details p {
        font-size: 14px;
    }

    .blog-meta {
        font-size: 12px;
        gap: 8px 12px;
    }
}

