
/* Blog UI */
.blog-hero {
    position: relative;
    padding: 120px 0 70px;
    color: #fff;
    background-image: var(--blog-hero-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    overflow: hidden;
}

.blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    justify-content: center;
    flex-wrap: wrap;
}

.blog-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.blog-wrapper {
    padding: 60px 0;
    background: #f0f8ff;
}

.blog-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #0c2b2f;
}

.blog-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    margin-bottom: 30px;
}

.blog-wrapper .blog-card .row.g-0 {
    height: 100%;
}

.blog-card--list {
    min-height: 260px;
}

.featured-blogs .row > [class*="col-"] {
    display: flex;
}

.featured-blogs .blog-card {
    width: 100%;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-wrapper .blog-card .col-md-4 .blog-image {
    height: 100%;
    min-height: 250px;
}

.blog-card--list .blog-content .d-flex.justify-content-between.align-items-center {
    margin-top: auto;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-category-badge,
.blog-category-pill {
    background: #E76F51;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
}

.blog-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 62px;
}

.blog-title a {
    color: #0c2b2f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #E76F51;
}

.blog-excerpt {
    color: #717275;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 78px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #E76F51 0%, #F4A261 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    visibility: visible;
    box-shadow: 0 8px 18px rgba(231, 111, 81, 0.26);
}

.blog-read-more:hover,
.blog-read-more:focus {
    color: #fff !important;
    filter: brightness(1.03);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 24px rgba(231, 111, 81, 0.35);
}

.blog-read-more i {
    transition: transform 0.2s ease;
}

.blog-read-more:hover i {
    transform: translateX(2px);
}

.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-article {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.blog-article iframe,
.blog-article video {
    max-width: 100%;
    width: 100%;
    border: 0;
    border-radius: 12px;
}

.blog-article table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.chapter-inline-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.blog-article {
    font-size: 16px;
    line-height: 1.8;
    color: #717275;
}

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    color: #0c2b2f;
    font-weight: 600;
}

.blog-share {
    margin: 50px 0;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.blog-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-width: 130px;
    justify-content: center;
}

.blog-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.blog-share-btn--facebook { background: #3b5998; }
.blog-share-btn--twitter { background: #1da1f2; }
.blog-share-btn--linkedin { background: #0077b5; }
.blog-share-btn--whatsapp { background: #25d366; }

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    color: #0c2b2f;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-item a:hover {
    color: #E76F51;
}

.category-count {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.recent-post {
    display: flex;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.recent-post-content h6 {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.recent-post-content h6 a {
    color: #0c2b2f;
    text-decoration: none;
}

.recent-post-content h6 a:hover {
    color: #E76F51;
}

.recent-post-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Home carousel cards */
.blog-carousel-card {
    height: 100%;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.blog-carousel-image {
    height: 210px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.blog-carousel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-carousel-title a {
    color: #0c2b2f;
    text-decoration: none;
}

.blog-carousel-excerpt {
    color: #717275;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 76px;
}

.blog-carousel-card .blog-read-more {
    margin-top: auto;
}

.platforms-section {
    background: #fff7ef;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.platform-carousel-card {
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(231, 111, 81, 0.2);
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.platform-market-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 6px 10px;
    text-transform: uppercase;
}

.platform-market-india {
    background: rgba(25, 135, 84, 0.12);
    color: #0f7d4d;
}

.platform-market-international {
    background: rgba(13, 110, 253, 0.12);
    color: #0b5ed7;
}

.platform-market-other {
    background: rgba(108, 117, 125, 0.14);
    color: #495057;
}

.platform-carousel-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(231, 111, 81, 0.14);
    color: #E76F51;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.platform-carousel-title {
    font-size: 20px;
    font-weight: 600;
    color: #0c2b2f;
    line-height: 1.35;
    margin-bottom: 8px;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 54px;
}

.platform-carousel-subtitle {
    color: #717275;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 76px;
    margin-bottom: 16px;
}

.platform-carousel-btn {
    background: #E76F51;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
}

.platform-carousel-btn:hover,
.platform-carousel-btn:focus {
    background: #d95e41;
    color: #fff;
}

.review-carousel-card {
    min-height: 300px;
    height: 100%;
    width: 100%;
}

.review-carousel-card .custom-block-info {
    flex: 1 1 auto;
    min-width: 0;
}

.review-carousel-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-name-text,
.review-designation-text {
    display: block;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Keep uploaded images from breaking layout */
.blog-image,
.recent-post-image,
.author-image,
.hero-image,
.review-carousel-card img,
.blog-carousel-image {
    object-fit: cover;
}

.hero-image {
    max-height: 750px;
    width: min(100%, 560px);
    height: auto;
    object-fit: contain;
}

.uploaded-content-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
}

#blogCarousel .carousel-item > .row,
#platformsCarousel .carousel-item > .row,
#reviewsCarousel .carousel-item > .row {
    align-items: stretch;
}

#blogCarousel .carousel-item > .row > [class*="col-"],
#platformsCarousel .carousel-item > .row > [class*="col-"],
#reviewsCarousel .carousel-item > .row > [class*="col-"] {
    display: flex;
}

.social-strip-section {
    position: relative;
    z-index: 30;
    padding: 30px 0 12px;
    background: transparent !important;
}

.social-strip-section::after {
    content: none !important;
}

.social-strip-card {
    background: linear-gradient(135deg, #1f2a44 0%, #2f3f63 100%);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 14px 28px rgba(12, 24, 54, 0.25);
}

.social-strip-section .container {
    position: relative;
    z-index: 31;
}

.social-strip-section .social-icon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    position: relative;
    z-index: 40;
}

.social-strip-section .social-icon-link {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    margin-right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 41;
    pointer-events: auto;
    cursor: pointer;
}

.social-strip-section .social-icon-link:hover {
    background: #fff;
    color: #1f2a44;
    transform: translateY(-2px);
}

.social-strip-section .social-icon-link i {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.social-strip-content {
    display: block;
    position: relative;
    z-index: 35;
}

.social-strip-section .text-white-50 {
    color: rgba(255, 255, 255, 0.86) !important;
}

/* Icons-only strip (separate block under social text strip) */
.social-icons-strip-section {
    background: transparent !important;
    padding-top: 10px;
    padding-bottom: 24px;
    position: relative;
    z-index: 30;
}

.social-icons-strip-section::after {
    content: none !important;
}

.social-icons-strip-section .container {
    position: relative;
    z-index: 31;
}

.social-icons-strip-content {
    display: flex;
    justify-content: flex-start;
}

.social-icons-strip-section .social-icon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    position: relative;
    z-index: 40;
}

.social-icons-strip-section .social-icon-link {
    margin-right: 0;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    position: relative;
    z-index: 41;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-icons-strip-section .social-icon-link:hover {
    transform: translateY(-2px);
}

.social-icons-strip-section .social-icon-link i {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

/* Hero image is decorative; avoid blocking clicks into the strip area below */
.hero-image-wrap,
.hero-image {
    pointer-events: none;
}

@media (max-width: 768px) {
    .social-text-strip-section .text-white,
    .social-text-strip-section h5.text-white,
    .social-text-strip-section p.text-white-50 {
        color: #000 !important;
    }

    .social-strip-content {
        text-align: center;
    }

    .social-strip-section .social-icon {
        justify-content: center;
    }

    .social-strip-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .social-icons-strip-content {
        justify-content: center;
    }

    .social-icons-strip-section .social-icon {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 90px 0 40px;
        margin-top: 60px;
    }
    .blog-wrapper {
        padding: 40px 0;
    }
    .blog-hero-title {
        font-size: 28px;
    }
    .blog-hero-meta {
        justify-content: flex-start;
    }
    .blog-share-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .blog-share-btn {
        width: 100%;
        min-width: 0;
    }
    .blog-carousel-card {
        min-height: 380px;
    }
    .blog-carousel-image {
        height: 180px;
    }
    .platform-carousel-card {
        min-height: 290px;
    }
    .platform-market-badge {
        font-size: 10px;
        padding: 5px 8px;
        top: 10px;
        right: 10px;
    }
    .platform-carousel-title,
    .platform-carousel-subtitle {
        min-height: auto;
    }
    .review-carousel-card {
        min-height: 260px;
    }
    .hero-image {
        max-height: 480px;
    }
    .uploaded-content-image {
        max-height: 360px;
    }
    .blog-wrapper .blog-card .col-md-4 .blog-image {
        min-height: 210px;
    }
    .blog-title {
        min-height: auto;
    }
    .blog-excerpt {
        min-height: auto;
    }

    /* Better mobile UX for "Preview at glance" section */
    #navbar-example3 .nav-pills {
        position: static;
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 190px;
        align-content: flex-start;
        gap: 8px;
        padding: 10px;
        margin-bottom: 16px;
        border-width: 1px;
        scrollbar-width: thin;
    }

    #navbar-example3 .nav-pills .nav-link {
        white-space: normal;
        flex: 1 1 100%;
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.35;
        word-break: normal;
        overflow-wrap: break-word;
    }

    #navbar-example3 .nav-pills .nav-link .chapter-label-prefix {
        white-space: nowrap;
    }

    .scrollspy-example-2 {
        padding-left: 0;
        padding-right: 0;
    }

    .scrollspy-example-item {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 28px;
        border-bottom-width: 2px;
    }

    .scrollspy-example-item h5 {
        padding-top: 0;
        margin-bottom: 12px;
    }

    .chapter-inline-image img {
        max-height: 240px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .blog-share-buttons {
        grid-template-columns: 1fr;
    }
}

/* Solid header on non-home pages */
.page-solid-header .navbar {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-solid-header .navbar .navbar-brand,
.page-solid-header .navbar .navbar-brand span,
.page-solid-header .navbar .nav-link,
.page-solid-header .navbar .btn {
    color: #fff;
}

.page-solid-header .navbar .nav-link:hover,
.page-solid-header .navbar .nav-link:focus {
    color: #f4a261;
}
