.footer-logo img {
    width: 205px;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Header & Navigation Alignment
   ========================================================================== */

/* Expand sticky header container to utilize pill width with proper margins */
header.main-header .header-sticky .container,
header.main-header .navbar > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: clamp(18px, 2.5vw, 36px) !important;
    padding-right: clamp(18px, 2.5vw, 36px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.navbar {
    padding: 12px 0 !important;
    align-items: center !important;
}

header.main-header .header-sticky.active .navbar {
    padding: 10px 0 !important;
}

/* Navbar Brand / Logo */
.navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.navbar-brand img {
    width: clamp(165px, 13vw, 195px) !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ==========================================================================
   Desktop Main Menu Navigation (992px and up)
   ========================================================================== */
@media (min-width: 992px) {
    .collapse.navbar-collapse.main-menu,
    .main-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .main-menu .nav-menu-wrapper {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 clamp(6px, 1vw, 20px) !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .main-menu .nav-menu-wrapper > ul,
    .main-menu ul#menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .main-menu .nav-menu-wrapper > ul > li {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 clamp(2px, 0.45vw, 7px) !important;
        padding: 0 !important;
        position: relative !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .main-menu ul li:empty {
        display: none !important;
    }

    .main-menu .nav-menu-wrapper > ul > li > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: clamp(13.5px, 1.02vw, 15.5px) !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        padding: 9px clamp(6px, 0.65vw, 11px) !important;
        color: var(--white-color) !important;
        background: transparent !important;
        border-radius: 6px !important;
        text-transform: capitalize !important;
        white-space: nowrap !important;
        transition: color 0.25s ease-in-out, background 0.25s ease-in-out !important;
    }

    .main-menu .nav-menu-wrapper > ul > li > a:hover,
    .main-menu .nav-menu-wrapper > ul > li > a:focus {
        color: var(--accent-color) !important;
    }

    .main-menu ul li.auth-nav-item > a {
        color: #ff6687 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .main-menu ul li.auth-nav-item > a:hover,
    .main-menu ul li.auth-nav-item > a:focus {
        color: #ffffff !important;
    }

    .main-menu ul ul li {
        display: block !important;
        margin: 0 !important;
    }

    .main-menu ul ul li a {
        display: block !important;
        padding: 8px 20px !important;
        font-size: 14px !important;
        white-space: normal !important;
    }

    .header-btn {
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .header-btn .btn-default {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        font-size: clamp(13.5px, 0.95vw, 15px) !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        padding: 12px clamp(46px, 3.2vw, 54px) 12px clamp(16px, 1.3vw, 24px) !important;
    }

    .header-btn .btn-default::before {
        width: 36px !important;
        height: 36px !important;
        background-size: 16px auto !important;
    }
}

/* Medium Desktop Screens (992px to 1200px) fine-tuning */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
    header.main-header .header-sticky .container,
    header.main-header .navbar > .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .navbar-brand img {
        width: 155px !important;
    }

    .main-menu .nav-menu-wrapper {
        margin: 0 4px !important;
    }

    .main-menu .nav-menu-wrapper > ul > li {
        margin: 0 1.5px !important;
    }

    .main-menu .nav-menu-wrapper > ul > li > a {
        font-size: 13.5px !important;
        padding: 8px 6px !important;
    }

    .header-btn .btn-default {
        font-size: 13.5px !important;
        padding: 10px 42px 10px 16px !important;
    }

    .header-btn .btn-default::before {
        width: 32px !important;
        height: 32px !important;
        background-size: 15px auto !important;
    }
}

/* ==========================================================================
   Mobile & Tablet Header & Navigation (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
    .collapse.navbar-collapse.main-menu,
    .main-menu,
    .main-menu .nav-menu-wrapper {
        display: none !important;
    }

    .header-btn {
        display: none !important;
    }

    header.main-header .header-sticky {
        width: calc(100% - 24px) !important;
        margin: 12px auto !important;
        border-radius: 100px !important;
        padding: 0 !important;
        background: rgba(14, 16, 22, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    header.main-header .header-sticky.active {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-top: 0 !important;
    }

    header.main-header .header-sticky .container,
    header.main-header .navbar > .container {
        padding: 10px 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .navbar-brand {
        display: inline-flex !important;
        align-items: center !important;
        flex: 1 !important;
    }

    .navbar-brand img {
        width: clamp(140px, 38vw, 175px) !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .navbar-toggle {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .slicknav_btn {
        background: var(--accent-color) !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 4px 15px rgba(201, 0, 54, 0.35) !important;
        transition: transform 0.2s ease !important;
    }

    .slicknav_btn:hover {
        transform: scale(1.05) !important;
    }

    .responsive-menu {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .slicknav_menu {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    .slicknav_nav {
        background: rgba(14, 16, 24, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
        padding: 16px !important;
        margin: 10px 12px 14px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        list-style: none !important;
    }

    .slicknav_nav li {
        margin: 4px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .slicknav_nav li:last-child {
        border-bottom: none !important;
    }

    .slicknav_nav a {
        display: block !important;
        padding: 12px 14px !important;
        font-family: 'Sora', sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #f0f2f8 !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .slicknav_nav a:hover,
    .slicknav_nav a:focus,
    .slicknav_nav li.active > a {
        background: rgba(201, 0, 54, 0.15) !important;
        color: #ff6e8c !important;
        padding-left: 18px !important;
    }

    .slicknav_nav li.auth-nav-item a {
        color: #ff6687 !important;
        font-weight: 700 !important;
    }
}

.hero.hero-with-banner .hero-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 34px 56px;
    min-height: 760px;
}

.hero.hero-with-banner .hero-content-box {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 700px;
    margin: 0;
    text-align: left;
}

.hero.hero-with-banner .hero-content-box .section-title h1 {
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: 1.08;
}

.hero.hero-with-banner .hero-content-box .section-title p {
    margin-right: 0;
    margin-left: 0;
}

.hero.hero-with-banner .hero-content-btn {
    text-align: left;
}

.hero.hero-with-banner .hero-counter-box {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
}

.hero-banner-photo {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    width: min(100%, 390px);
    height: clamp(360px, 38vw, 500px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 24px;
    background: #111;
}

.hero-banner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 991px) {
    .navbar-brand img,
    .footer-logo img {
        width: 200px;
    }

    .hero.hero-with-banner .hero-box {
        grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr);
        gap: 28px;
    }

    .hero-banner-photo {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 767px) {
    .navbar-brand img {
        width: 185px;
    }

    .hero.hero-with-banner .hero-box {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 26px;
        min-height: 0;
    }

    .hero.hero-with-banner .hero-content-box {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        text-align: center;
    }

    .hero.hero-with-banner .hero-content-box .section-title h1 {
        font-size: clamp(42px, 9vw, 58px);
    }

    .hero.hero-with-banner .hero-content-box .section-title p {
        margin-inline: auto;
    }

    .hero.hero-with-banner .hero-content-btn {
        text-align: center;
    }

    .hero-banner-photo {
        grid-column: 1;
        grid-row: 2;
        width: min(100%, 320px);
        height: 380px;
    }

    .hero.hero-with-banner .hero-counter-box {
        grid-column: 1;
        grid-row: 3;
    }
}

/* ==========================================================================
   Portfolio Single Image Styling & Reveal Visibility
   ========================================================================== */
.page-project-single .page-single-image {
    margin-bottom: 35px;
    width: 100%;
}

.page-project-single .page-single-image figure,
.page-project-single .page-single-image figure.reveal {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-project-single .page-single-image figure img,
.page-project-single .page-single-image figure.reveal img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 580px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

.project-item .project-item-image figure img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block !important;
}

/* ==========================================================================
   Small Mobile Devices (< 576px) Refinements
   ========================================================================== */
@media (max-width: 576px) {
    header.main-header .header-sticky {
        width: calc(100% - 16px) !important;
        margin: 8px auto !important;
    }

    header.main-header .header-sticky .container,
    header.main-header .navbar > .container {
        padding: 8px 14px !important;
    }

    .navbar-brand img {
        width: 140px !important;
    }

    .slicknav_btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }

    /* Hero adjustments for small mobile */
    .hero {
        padding: 125px 0 35px !important;
    }

    .section-title h1,
    .hero-content-box .section-title h1 {
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 1.15 !important;
    }

    .section-title h2 {
        font-size: clamp(24px, 7vw, 30px) !important;
        line-height: 1.2 !important;
    }

    .hero-sub-heading {
        padding: 4px 8px !important;
        gap: 6px !important;
    }

    .hero-satisfy-client-content p {
        font-size: 11.5px !important;
    }

    .hero-banner-photo {
        width: min(100%, 280px) !important;
        height: 320px !important;
        margin: 18px auto 0 !important;
        border-radius: 18px !important;
    }

    .hero-counter-item-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .hero-counter-item {
        padding: 10px !important;
    }

    .hero-counter-item h2 {
        font-size: 24px !important;
    }

    .hero-counter-item p {
        font-size: 11px !important;
    }

    .hero-content-btn .btn-default {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        padding-inline: 20px 48px !important;
    }

    .footer-logo img {
        width: 160px !important;
    }
}

/* Global Anti-Overflow Safety across all viewport widths */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* About Page Counter Items with Text Badges (e.g. B2B + B2C) */
.about-counter-item h4 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--white-color, #ffffff);
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .about-counter-item h4 {
        font-size: 24px;
    }
}

/* ==========================================================================
   Blog Single Post Rich Content Typography (CKEditor formatted content)
   ========================================================================== */
.post-entry h1 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    color: #0f172a;
    margin: 36px 0 16px;
    line-height: 1.3;
}

.post-entry h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 14px;
    line-height: 1.35;
}

.post-entry h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: #0f172a;
    margin: 26px 0 12px;
    line-height: 1.4;
}

.post-entry h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 22px 0 10px;
}

.post-entry p {
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 22px;
}

.post-entry a {
    color: #c90036;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    font-weight: 600;
}

.post-entry a:hover {
    color: #9f002b;
}

.post-entry ul, .post-entry ol {
    margin: 16px 0 24px 24px;
    color: #334155;
    font-size: 17px;
    line-height: 1.8;
}

.post-entry li {
    margin-bottom: 8px;
    color: #334155;
}

.post-entry strong, .post-entry b {
    color: #0f172a;
    font-weight: 700;
}

.post-entry blockquote {
    border-left: 4px solid var(--admin-accent, #c90036);
    padding: 18px 24px;
    margin: 30px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #c90036;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e293b;
}

.post-entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.post-entry table th, .post-entry table td {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
}

.post-entry table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
}

/* ==========================================================================
   Portfolio Single Case Study - Clean, Structured & High-Contrast Design
   ========================================================================== */
.nagma-portfolio-single-page {
    background-color: #F8F9FA !important;
    background-image: none !important;
    color: #334155 !important;
    padding: 70px 0 110px;
    position: relative;
}

/* Hero media */
.portfolio-hero-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
}

.portfolio-hero-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Content cards */
.portfolio-card-panel {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px;
    padding: 42px 40px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

.portfolio-kicker-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C90036 !important;
    background: #FFF1F2 !important;
    border: 1px solid #FFE4E6 !important;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.portfolio-overview-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: #0F172A !important;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

.portfolio-lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #334155 !important;
    font-weight: 400;
    margin: 0;
}

/* Case study rich body */
.portfolio-content-body {
    color: #475569 !important;
    font-size: 16.5px;
    line-height: 1.85;
}

.portfolio-content-body h2,
.portfolio-content-body h3,
.portfolio-content-body h4 {
    color: #0F172A !important;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}

.portfolio-content-body h2 { font-size: 26px; }
.portfolio-content-body h3 { font-size: 22px; }
.portfolio-content-body h4 { font-size: 18px; }

.portfolio-content-body p {
    color: #475569 !important;
    font-size: 16.5px;
    line-height: 1.85;
    margin-bottom: 20px;
}

.portfolio-content-body strong,
.portfolio-content-body b {
    color: #0F172A !important;
    font-weight: 700;
}

.portfolio-content-body a {
    color: #C90036 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.portfolio-content-body a:hover {
    color: #9B0029 !important;
}

.portfolio-content-body ul,
.portfolio-content-body ol {
    margin: 20px 0 26px 0;
    padding-left: 0;
    list-style: none;
}

.portfolio-content-body ul li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    line-height: 1.75;
    color: #334155 !important;
    font-size: 16px;
}

.portfolio-content-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    background-color: #FFF1F2;
    border: 1.5px solid #C90036;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C90036' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-content-body blockquote {
    border-left: 4px solid #C90036;
    padding: 18px 24px;
    margin: 30px 0;
    background: #FFF1F2;
    border-radius: 0 14px 14px 0;
    font-style: italic;
    color: #1E293B !important;
}

/* Results & Metrics Showcase - High Impact Dark Carbon Card */
.portfolio-results-box {
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 20px;
    padding: 36px 34px;
    margin-top: 32px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
    color: #FFFFFF !important;
}

.portfolio-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-results-header i {
    font-size: 22px;
    color: #C90036;
}

.portfolio-results-header h3 {
    font-size: 21px;
    font-weight: 700;
    color: #FFFFFF !important;
    margin: 0;
}

.portfolio-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 767px) {
    .portfolio-results-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-metric-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.25s ease;
}

.portfolio-metric-pill:hover {
    background: rgba(34, 197, 94, 0.14) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
    transform: translateY(-2px);
}

.portfolio-metric-pill .metric-check {
    color: #34D399 !important;
    font-size: 19px;
    flex-shrink: 0;
}

.portfolio-metric-pill .metric-val {
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.4;
}

/* Sidebar Styling */
.portfolio-sticky-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (max-width: 991px) {
    .portfolio-sticky-sidebar {
        position: static;
        margin-top: 40px;
    }
}

.portfolio-meta-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
}

.portfolio-meta-card .meta-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #F1F5F9;
}

.portfolio-meta-card .meta-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A !important;
    margin: 0;
}

.portfolio-meta-card .meta-card-header i {
    color: #C90036;
    font-size: 20px;
}

.portfolio-meta-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portfolio-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.portfolio-meta-item .meta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C90036 !important;
    font-size: 18px;
    flex-shrink: 0;
}

.portfolio-meta-item .meta-text {
    flex: 1;
    min-width: 0;
}

.portfolio-meta-item .meta-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B !important;
    margin-bottom: 4px;
}

.portfolio-meta-item .meta-value {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A !important;
    margin: 0;
    word-break: break-word;
}

.portfolio-live-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    margin-top: 24px;
    background: #C90036 !important;
    color: #FFFFFF !important;
    border: 1px solid #C90036;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(201, 0, 54, 0.25);
}

.portfolio-live-link-btn:hover {
    background: #A8002B !important;
    border-color: #A8002B !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 0, 54, 0.35);
}

.portfolio-share-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

.portfolio-share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B !important;
    margin-bottom: 12px;
    display: block;
}

.portfolio-share-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-share-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569 !important;
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.portfolio-share-icons a:hover {
    background: #C90036 !important;
    border-color: #C90036 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* Sidebar CTA Box - Bold Dark Distinction */
.portfolio-sidebar-cta {
    background: linear-gradient(145deg, #11131A 0%, #1A1D27 100%) !important;
    border: 1px solid #2B3042 !important;
    border-radius: 20px;
    padding: 38px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.portfolio-sidebar-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(201, 0, 54, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.portfolio-sidebar-cta .cta-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C90036 0%, #FF2B58 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 26px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(201, 0, 54, 0.4);
}

.portfolio-sidebar-cta h3 {
    font-size: 21px;
    font-weight: 700;
    color: #FFFFFF !important;
    line-height: 1.35;
    margin-bottom: 12px;
}

.portfolio-sidebar-cta p {
    font-size: 14px;
    color: #94A3B8 !important;
    line-height: 1.6;
    margin-bottom: 24px;
}

.portfolio-sidebar-cta .cta-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    background: #C90036 !important;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(201, 0, 54, 0.35);
}

.portfolio-sidebar-cta .cta-action-btn:hover {
    background: #E0003C !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(201, 0, 54, 0.5);
    color: #FFFFFF !important;
}

/* Related Case Studies Grid */
.portfolio-related-section {
    margin-top: 70px;
    padding-top: 60px;
    border-top: 1px solid #E2E8F0 !important;
}

.portfolio-related-section .section-sub-title {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C90036 !important;
    margin-bottom: 8px;
}

.portfolio-related-section .section-title h2 {
    color: #0F172A !important;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 30px;
}

.related-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: #C90036 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
}

.related-thumb-link {
    display: block;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #F1F5F9;
}

.related-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.related-card:hover .related-thumb-link img {
    transform: scale(1.06);
}

.related-card-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C90036 !important;
    background: #FFF1F2 !important;
    border: 1px solid #FFE4E6 !important;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.related-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-card-title a {
    color: #0F172A !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-card-title a:hover {
    color: #C90036 !important;
}

.related-card-desc {
    font-size: 14px;
    color: #64748B !important;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.related-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #C90036 !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.related-card:hover .related-card-btn {
    color: #9B0029 !important;
    gap: 12px;
}

@media (max-width: 576px) {
    .nagma-portfolio-single-page {
        padding: 40px 0 70px;
    }
    .portfolio-card-panel {
        padding: 24px;
    }
    .portfolio-meta-card {
        padding: 22px;
    }
    .portfolio-results-box {
        padding: 22px;
    }
}





/* ==========================================================================
   Footer Social Links Circular Styling (Screenshot 4 match)
   ========================================================================== */
.footer-social-links ul {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 25px 0 0 !important;
    list-style: none !important;
}

.footer-social-links ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-social-links ul li a {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.footer-social-links ul li a:hover {
    background: #C90036 !important;
    border-color: #C90036 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(201, 0, 54, 0.4) !important;
}

.footer-social-links ul li a img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    display: block !important;
}


/* Newsletter input height enhancement */
.footer-newsletter-form .form-group {
    min-height: 54px !important;
}
.footer-newsletter-form .form-group .form-control {
    min-height: 46px !important;
    height: 46px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
}





/* Footer Contact phone & email font size adjustment */
.footer-contact-item ul li a {
    font-size: 16.5px !important;
    word-break: break-all !important;
}
