/* ========================================
   RESET & BASE
======================================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    padding-top: 80px;
    color: #222222;
}

p {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
}

h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222222;
}

h4 {
    margin-top: 36px;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    padding: 10px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.navbar-brand {
    font-weight: 800;
    font-size: 15px;
    color: #222222;
}

.navbar-nav {
    padding: 10px 0;
}

.navbar-nav .nav-item .nav-link,
.nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    color: #222222;
    text-transform: uppercase;
    line-height: 24px;
}

.nav-link:hover {
    color: #000;
}

.active-nav {
    padding: 4px 8px;
    background-color: #d2fffb;
}

.widget-linkedin {
    width: 50px;
}

.linkedin-link {
    padding: 10px 0;
    color: inherit;
}

.fa-linkedin {
    font-size: 20px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    overflow: hidden;
}

.hero-text-side {
    background-color: #f1f8ff;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 60px 5% 60px 10%;
}

.text-content {
    text-align: left;
    z-index: 100;
}

.hero-title {
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 3px;
    color: #222222;
}

.hero-subheading {
    font-weight: 700;
    color: #222222;
    font-size: 21px;
}

.black-line {
    width: 50px;
    height: 2px;
    background-color: black;
    margin: 15px 0;
}

.white-box {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 8px solid white;
    right: -80px;
    z-index: 99;
}

.hero-img-box {
    height: 600px;
    overflow: hidden;
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ========================================
   ABOUT / BIO SECTION
======================================== */
.bio-name {
    color: #222222;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}

.bio-text {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: justify;
}

.bio-highlights-title {
    margin-top: 30px;
    margin-bottom: 15px;
}

.learn-more {
    font-size: 11px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.about-img {
    width: 100%;
    max-width: 457px;
    height: 372px;
    object-fit: cover;
    margin-top: 26px;
    box-shadow: 0px 15px 40px -10px #222222;
    transition: all 0.4s ease;
    cursor: pointer;
    display: block;
}

.about-img:hover {
    transform: perspective(1000px) rotateY(7deg) rotateX(-4deg);
}

.about-right-subheading {
    font-weight: 300;
    font-size: 18px;
    color: #222222;
    margin-bottom: 0;
}

.about-right-heading {
    font-size: 30px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 30px;
}

/* Rotated divider text */
.divider {
    position: relative;
}

.rotated-text-divider {
    transform: rotate(90deg);
    transform-origin: top left;
    white-space: nowrap;
    position: absolute;
    top: 15px;
    left: 10px;
    color: rgb(238, 238, 238);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.8px;
    margin: 0;
}

/* ========================================
   BLOG / ARTICLES SECTION
======================================== */
.blog-section {
    background-color: #f6f6f6;
    padding-left: 80px;
    padding-right: 80px;
}

.section-title {
    font-weight: 100;
    font-size: 30px;
    margin-bottom: 37px;
    color: #222222;
}

.blog-card {
    background-color: rgb(251, 247, 247);
    width: 100%;
    height: auto;
}

.blog-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 15px;
}

.blog-title {
    margin-top: 20px;
    font-weight: 600;
    font-size: 18px;
    color: #222222;
}

.blog-text {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 400;
}

.btn-read-more {
    display: inline-block;
    background-color: rgb(244, 82, 77);
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    margin-top: 15px;
    margin-bottom: 21px;
}

.btn-read-more:hover {
    background-color: rgb(220, 60, 55);
    color: #fff;
}

/* ========================================
   PHOTO GALLERY (COVERFLOW) - HOMEPAGE
======================================== */
.photo-gallery-h {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 37px;
    color: #222222;
}

.cf-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.cf-track {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 900px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.cf-item {
    position: absolute;
    width: 220px;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
    border: 6px solid white;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.cf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.cf-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
    pointer-events: none;
}

.cf-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(239, 69, 69, 0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #181616;
    transition: background 0.2s;
    user-select: none;
}

.cf-btn:hover { background: rgba(255,255,255,0.3); }
.cf-prev { left: 10px; }
.cf-next { right: 10px; }

.cf-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.cf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100,100,100,0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.cf-dot.active {
    background: #333;
    transform: scale(1.3);
}

.cf-label {
    color: rgba(100,100,100,0.7);
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
    letter-spacing: 0.5px;
}

/* ========================================
   LINKEDIN FEED
======================================== */
.linkedin-feed-header {
    font-weight: 300;
    font-size: 30px;
    margin-bottom: 37px;
    color: #222222;
}

.linkedin-feed-wrapper {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    background: transparent;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.footer-mobile {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    margin-right: 8px;
}

.mobile-icon {
    font-size: 22px;
    margin-left: 8px;
}

/* ========================================
   PROFILE PAGE
======================================== */
.page-wrapper {
    margin-left: 60px;
    margin-right: 60px;
}

.profile-h3 {
    font-size: 18px;
    font-weight: 300;
}

.profile-h2 {
    font-size: 30px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 30px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-right-text {
    font-size: 22px;
    font-weight: 300;
    padding-top: 11px;
    padding-left: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.profile-right-text span {
    font-weight: 600;
}

.career-h-heading {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
}

.career-highlights-text {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 12px;
}

.p-text {
    font-size: 14px;
    font-weight: 400;
    margin-top: 15px;
}

/* Career Table */
.table-header {
    background-color: #007bff;
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 4px 4px 0 0;
}

.header-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding-left: 15px;
}

.table-header .col-3 {
    border-left: 1px solid rgba(255,255,255,0.3);
}

.table-row {
    padding-top: 14px;
    padding-bottom: 14px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.post-title {
    font-weight: 700;
    color: #212529;
    font-size: 13px;
}

.post-title-body {
    font-weight: 400;
    font-size: 13px;
}

.row-data {
    font-weight: 400;
    color: #495057;
    font-size: 13px;
}

/* ========================================
   GALLERY PAGE
======================================== */
.photo-gallery {
    padding-top: 20px;
}

.gallery-wrapper {
    padding-left: 15px;
    padding-right: 15px;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

/* ========================================
   ARTICLE PAGES
======================================== */
.article-1-heading {
    font-size: 36px;
    font-weight: 700;
    margin-top: 17px;
    margin-bottom: 30px;
    color: #222222;
    line-height: 1.3;
}

.article-1-subheading {
    font-size: 11px;
    font-weight: 700;
    color: #AAAAAA;
    margin-bottom: 8px;
}

.article-date {
    font-size: 20px;
    font-weight: 600;
    width: 140px;
    flex-shrink: 0;
}

.post-box {
    padding-right: 40px;
    flex: 1;
}

.article-text {
    font-size: 14px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.7;
}

.article-t {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    margin-top: 15px;
}

.article-subheading {
    font-size: 14px;
    font-weight: 700;
    margin-top: 26px;
}

.article-img {
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.article-image {
    max-width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    height: auto;
}

.article-wrapper {
    display: flex;
}

.article-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-top: 30px;
    margin-top: 20px;
}

/* Share box */
.share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.share-box a {
    color: #8a8a8a;
    font-size: 16px;
    text-decoration: none;
}

.share-box span {
    font-weight: 600;
    font-size: 13px;
}

/* Reply / Comment section */
.reply-heading {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    margin-top: 40px;
}

.reply-line {
    flex: 1;
    height: 4px;
    background: #2d2d2d;
}

.article-footer-h {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
}

.article-reply-input,
.article-input-box {
    width: 100%;
    background-color: #f7f7f7;
    border: none;
    outline: none;
    padding: 18px 25px;
    margin-bottom: 20px;
    font-size: 14px;
}

.comment-cookies-consent label {
    font-weight: 700;
    font-size: 13px;
}

.submit-btn-c {
    background-color: #8f8f8f;
    color: #2b2b2b;
    border: none;
    padding: 14px 35px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-transform: uppercase;
}

/* ========================================
   SIDEBAR (ARTICLE PAGES)
======================================== */
.search-heading {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.search-btn {
    color: white;
    background-color: #000;
}

.article-subheading-rs {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.recent-posts-link {
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: block;
    color: #212529;
    margin-bottom: 12px;
}

.search-blog-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #5c5c5c;
    padding-bottom: 6px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.search-blog {
    border: none;
    background: transparent;
    outline: none;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    width: 90%;
}

.search-blog::placeholder {
    color: #999b9e;
}

.search-blog-box i {
    color: #000;
    font-size: 16px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.sidebar-heading h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.heading-line {
    flex: 1;
    height: 3px;
    background: #2d2d2d;
}

.sidebar-link {
    display: block;
    text-decoration: none;
    color: #4f4f4f;
    font-size: 14px;
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
}

.sidebar-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 18px;
    background: #d8d8d8;
}

/* Archive / Category pages */
.archive-h {
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: #222222;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

.archive-content,
.article-sub {
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    color: #222222;
    margin-bottom: 8px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #222222;
}

.date-box {
    min-width: 130px;
}

/* ========================================
   CONTACT PAGE
======================================== */
.contact-us-heading {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #222222;
}

.contact-us-heading span {
    font-weight: 700;
}

.CU-BOX {
    background-color: #f2f1f1;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    padding: 40px 20px;
    text-align: center;
}

.CU-BOX-H {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.CU-BOX-T {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.contact-us-img {
    width: 48px;
    height: auto;
}

.map-wrapper {
    height: 450px;
    width: 100%;
}

iframe {
    height: 100%;
    width: 100%;
}

.contact-section {
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 15px;
}

.contact-form-h {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 300;
    color: #222222;
}

.contact-form-h span {
    font-weight: 700;
}

.input-box {
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    background-color: #f1f1f1;
    padding: 16px 24px;
    margin-bottom: 20px;
    border: none;
    outline: none;
    color: #333;
}

.input-box::placeholder {
    color: #999;
}

.input-box-m {
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    background-color: #f1f1f1;
    padding: 24px;
    margin-bottom: 20px;
    border: none;
    outline: none;
    color: #333;
    resize: vertical;
}

.input-box-m::placeholder {
    color: #999;
}

.submit-btn {
    width: auto;
    color: black;
    background-color: white;
    font-size: 13px;
    font-weight: 700;
    border: 4px solid #e8edf1;
    padding: 14px 31px;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #f8f8f8;
}

/* ========================================
   TABLET: 768px - 1024px
======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-text-side {
        padding: 40px 5%;
        min-height: 450px;
    }

    .hero-img-box {
        height: 450px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subheading {
        font-size: 16px;
    }

    .white-box {
        right: -40px;
        width: 180px;
        height: 180px;
    }

    .blog-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .about-img {
        height: 280px;
        max-width: 100%;
    }

    .page-wrapper {
        margin-left: 30px;
        margin-right: 30px;
    }

    .rotated-text-divider {
        font-size: 13px;
    }

    .gallery-img {
        height: auto;
    }
}

/* ========================================
   MOBILE: max 767px
======================================== */
@media (max-width: 767px) {

    body {
        padding-top: 70px;
    }

    /* Navbar mobile */
    .navbar-brand {
        font-size: 13px;
    }

    .nav-link {
        font-size: 13px;
        padding: 8px 10px;
        line-height: 20px;
    }

    .widget-linkedin {
        display: none;
    }

    /* Hero — show stacked on mobile */
    .hero-text-side {
        min-height: auto;
        padding: 40px 20px;
        display: flex !important;
    }

    .white-box {
        display: none;
    }

    .hero-title {
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    .hero-subheading {
        font-size: 13px;
    }

    .hero-img-box {
        height: 260px;
    }

    /* About section */
    .about-s {
        padding-left: 15px !important;
    }

    .about-img {
        height: auto;
        max-width: 100%;
        margin-top: 20px;
    }

    .divider {
        display: none !important;
    }

    .rotated-text-divider {
        display: none;
    }

    .bio-name {
        font-size: 24px;
    }

    .bio-text {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .about-right-heading {
        font-size: 22px;
    }

    .about-right-subheading {
        font-size: 16px;
    }

    /* Blog section */
    .blog-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .blog-card {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .blog-img {
        max-width: 100%;
    }

    .blog-title {
        font-size: 17px;
    }

    /* Gallery */
    .gallery-img {
        height: auto;
        margin-bottom: 2px;
    }

    .photo-gallery-h {
        font-size: 22px;
    }

    /* Profile page */
    .page-wrapper {
        margin-left: 15px;
        margin-right: 15px;
    }

    .profile-right-text {
        font-size: 16px;
        padding-left: 0;
        margin-top: 15px;
    }

    .profile-h2 {
        font-size: 22px;
    }

    .header-text {
        font-size: 11px;
        padding-left: 8px;
    }

    .post-title {
        font-size: 11px;
    }

    .post-title-body {
        font-size: 11px;
    }

    .row-data {
        font-size: 11px;
    }

    /* Article pages */
    .article-1-heading {
        font-size: 22px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .post-box {
        padding-right: 0;
    }

    .article-date {
        font-size: 14px;
        width: auto;
        min-width: unset;
    }

    .article-container {
        flex-direction: column;
        padding-top: 20px;
        margin-top: 10px;
        order: 1;
    }

    .date-box {
        min-width: unset;
        margin-bottom: 10px;
    }

    .article-footer {
        order: 2;
    }

    .sidebar {
        order: 3;
        margin-top: 30px;
    }

    .article-1-subheading {
        font-size: 10px;
    }

    .share-box {
        flex-wrap: wrap;
    }

    /* Contact page */
    .CU-BOX {
        max-width: 100%;
        margin-top: 15px;
    }

    .contact-us-heading {
        font-size: 22px;
    }

    .contact-form-h {
        font-size: 22px;
    }

    .input-box,
    .input-box-m {
        font-size: 13px;
    }

    /* Coverflow slider mobile */
    .cf-prev { left: 5px; }
    .cf-next { right: 5px; }
}

/* ========================================
   ADDITIONAL RESPONSIVE FIXES
======================================== */

/* Ensure article layout correct on desktop */
.article-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-top: 30px;
    margin-top: 20px;
    width: 100%;
}

/* Sidebar on mobile gets full width */
@media (max-width: 991px) {
    .col-lg-8 {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        margin-top: 30px;
        padding: 0 15px;
    }

    .post-box {
        padding-right: 0;
    }

    .article-container {
        flex-direction: column;
        padding-top: 20px;
        margin-top: 10px;
    }

    .date-box {
        min-width: unset;
        margin-bottom: 8px;
    }

    .article-img,
    .article-image {
        width: 100%;
        height: auto;
    }

    /* Blog cards full width on tablet */
    .blog-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Fix images overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}

/* Footer text wrapping on mobile */
@media (max-width: 480px) {
    .footer .container-fluid {
        text-align: left !important;
    }

    .footer .d-flex {
        justify-content: flex-start !important;
    }

    .footer p {
        font-size: 13px;
        word-break: break-all;
    }
}

/* ========================================
   ARTICLE NO-SIDEBAR LAYOUT
   (article.html, article2.html, article3.html)
======================================== */
.article-no-sidebar-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.article-no-sidebar-container .date-box {
    margin-bottom: 12px;
}

.article-no-sidebar-container .post-box {
    padding-right: 0;
}

.article-no-sidebar-container .article-img,
.article-no-sidebar-container .article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 24px;
    margin-bottom: 24px;
}

.article-no-sidebar-container .article-text,
.article-no-sidebar-container .article-t,
.article-no-sidebar-container p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.article-no-sidebar-container .article-subheading,
.article-no-sidebar-container h5 {
    margin-top: 28px;
    margin-bottom: 12px;
}

/* Responsive: mobile */
@media (max-width: 767px) {
    .article-no-sidebar-container {
        padding-top: 24px;
        padding-bottom: 40px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .article-no-sidebar-container .article-1-heading {
        font-size: 22px;
    }

    .article-no-sidebar-container .share-box {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ========================================
   RESPONSIVE FIX: PROFILE TABLE MOBILE
======================================== */
@media (max-width: 575px) {
    /* Stack profile table columns on very small screens */
    .table-header .col-6,
    .table-header .col-3 {
        font-size: 11px;
    }
    .header-text {
        font-size: 11px;
        padding-left: 6px;
    }
    .post-title,
    .post-title-body,
    .row-data {
        font-size: 12px;
    }
    .table-row {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* ========================================
   RESPONSIVE FIX: HOMEPAGE HERO
======================================== */
@media (max-width: 767px) {
    .hero-text-side {
        min-height: auto;
        padding: 40px 5%;
    }
    .hero-heading {
        font-size: 28px;
    }
    .about-img {
        width: 100%;
        height: auto;
    }
}

/* ========================================
   RESPONSIVE FIX: GENERAL IMAGES & TEXT
======================================== */
@media (max-width: 480px) {
    h2 {
        font-size: 24px;
    }
    .article-1-heading {
        font-size: 20px;
    }
}


/* ========================================
   GALLERY PAGE - HOVER & LIGHTBOX
   (moved from gallery.html <style> block)
======================================== */
/* ── Gallery grid hover ── */
        .gallery-item {
            overflow: hidden;
            cursor: pointer;
            position: relative;
        }
        .gallery-item::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0);
            transition: background 0.25s ease;
        }
        .gallery-item:hover::after {
            background: rgba(0,0,0,0.22);
        }
        .gallery-item img {
            transition: transform 0.35s ease;
            display: block;
        }
        .gallery-item:hover img {
            transform: scale(1.05);
        }

        /* ── Lightbox overlay ── */
        #lb-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.92);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        #lb-overlay.active {
            display: flex;
        }

        /* image wrapper */
        #lb-img-wrap {
            position: relative;
            max-width: 90vw;
            max-height: 82vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #lb-img {
            max-width: 90vw;
            max-height: 82vh;
            object-fit: contain;
            border-radius: 4px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.7);
            transition: opacity 0.2s ease;
        }
        #lb-img.fading {
            opacity: 0;
        }

        /* counter */
        #lb-counter {
            color: rgba(255,255,255,0.55);
            font-size: 13px;
            font-family: 'Work Sans', sans-serif;
            margin-top: 14px;
            letter-spacing: 0.5px;
        }

        /* close button */
        #lb-close {
            position: fixed;
            top: 18px;
            right: 22px;
            color: #fff;
            font-size: 30px;
            line-height: 1;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 10001;
            opacity: 0.8;
            transition: opacity 0.2s, transform 0.2s;
        }
        #lb-close:hover {
            opacity: 1;
            transform: scale(1.15);
        }

        /* prev / next arrows */
        .lb-arrow {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            font-size: 26px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            z-index: 10001;
            user-select: none;
        }
        .lb-arrow:hover {
            background: rgba(255,255,255,0.25);
        }
        .lb-arrow:active {
            transform: translateY(-50%) scale(0.92);
        }
        #lb-prev { left: 14px; }
        #lb-next { right: 14px; }

        /* thumbnail strip */
        #lb-strip {
            display: flex;
            gap: 6px;
            margin-top: 14px;
            overflow-x: auto;
            max-width: 90vw;
            padding-bottom: 4px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.3) transparent;
        }
        #lb-strip::-webkit-scrollbar { height: 4px; }
        #lb-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }
        .lb-thumb {
            width: 52px;
            height: 38px;
            object-fit: cover;
            border-radius: 3px;
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.2s, outline 0.1s;
            flex-shrink: 0;
        }
        .lb-thumb.active {
            opacity: 1;
            outline: 2px solid #fff;
            outline-offset: 1px;
        }

        @media (max-width: 600px) {
            #lb-prev { left: 6px; }
            #lb-next { right: 6px; }
            .lb-arrow { width: 38px; height: 38px; font-size: 20px; }
            #lb-strip { display: none; }
        }

/* ========================================
   UTILITY CLASSES (moved from inline styles)
======================================== */

/* Hero image cover (homepage) */
.hero-cover {
    object-fit: cover;
    object-position: center top;
}

/* About section divider line */
.divider-line {
    width: 1px;
    height: 100px;
    background-color: rgb(238, 238, 238);
    display: block;
}

/* About section divider text wrapper */
.divider-text-wrap {
    position: relative;
    height: 250px;
}

/* Map iframe - no border */
.map-iframe {
    border: 0;
}

/* FA linkedin icon size */
.fa-linkedin {
    font-size: 20px;
}

/* ========================================
   RESPONSIVE — COMPREHENSIVE FIXES
======================================== */

/* ── Global fluid base ── */
html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Large desktop (1200px+) ── */
@media (min-width: 1200px) {
    .hero-text-side {
        padding: 60px 5% 60px 12%;
    }
    .about-section .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* ── Tablet landscape (768–1024px) — already exists but fixed above ── */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Profile table readable on tablet */
    .post-title,
    .post-title-body,
    .row-data,
    .header-text {
        font-size: 12px;
    }

    /* Article layout */
    .article-container {
        flex-direction: column;
    }
    .date-box {
        margin-bottom: 10px;
        min-width: unset;
    }
    .post-box {
        padding-right: 0;
    }

    /* Blog section */
    .blog-section .row {
        justify-content: center;
    }

    /* Contact boxes */
    .CU-BOX {
        margin-bottom: 15px;
    }

    /* Linkedin feed */
    .linkedin-feed-wrapper {
        height: 400px;
    }
}

/* ── Mobile (max 767px) — additions & overrides ── */
@media (max-width: 767px) {

    /* Navbar — prevent overflow */
    .navbar-brand {
        max-width: calc(100vw - 60px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-collapse {
        background: #fff;
        padding: 10px 0;
        border-top: 1px solid #f0f0f0;
    }

    /* Hero — full-width stacked properly */
    .hero-section .row {
        flex-direction: column;
    }
    .hero-section .col-md-6 {
        width: 100%;
    }
    .hero-text-side {
        min-height: unset;
        padding: 36px 20px;
    }
    .hero-img-box {
        height: 240px;
    }

    /* About section — better spacing */
    .about-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .about-section .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .about-s {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .about-right-side {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .about-img {
        height: auto;
        max-width: 100%;
        margin-top: 16px;
    }

    /* Blog section */
    .blog-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .blog-card {
        margin-bottom: 20px;
    }
    .blog-img {
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    /* Photo gallery coverflow */
    .cf-wrapper {
        height: 240px;
    }
    .cf-item {
        width: 180px;
        height: 180px;
    }

    /* LinkedIn feed */
    .linkedin-feed {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .linkedin-feed-wrapper {
        height: 350px;
        padding: 8px;
    }

    /* Footer */
    .footer .container-fluid {
        text-align: left !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .footer .d-flex {
        justify-content: flex-start !important;
    }

    /* Profile page */
    .page-wrapper {
        margin-left: 12px;
        margin-right: 12px;
    }
    .profile-h3 {
        font-size: 14px;
    }
    .profile-h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .profile-right-text {
        font-size: 15px;
        padding-left: 0 !important;
        margin-top: 12px;
        padding-top: 0 !important;
    }

    /* Profile table — horizontal scroll */
    .profile-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Article pages */
    .article-no-sidebar-container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .article-1-heading {
        font-size: 20px;
    }
    .article-container {
        flex-direction: column;
    }
    .share-box {
        flex-wrap: wrap;
        gap: 8px;
    }
    .reply-heading {
        gap: 12px;
    }

    /* Contact page */
    .contact-section {
        padding: 30px 12px;
    }
    .contact-us-heading,
    .contact-form-h {
        font-size: 20px;
    }
    .map-wrapper {
        height: 300px;
    }

    /* Archive pages */
    .archive-h {
        font-size: 18px;
    }

    /* Section titles */
    .section-title,
    .photo-gallery-h,
    .linkedin-feed-header {
        font-size: 22px;
    }
}

/* ── Small mobile (max 480px) ── */
@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }

    h2 {
        font-size: 22px;
    }

    .hero-title {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .hero-subheading {
        font-size: 12px;
    }
    .hero-img-box {
        height: 200px;
    }

    .blog-title {
        font-size: 15px;
    }

    /* Profile table very small */
    .header-text,
    .post-title,
    .post-title-body,
    .row-data {
        font-size: 10px;
        padding-left: 4px;
    }

    /* Article heading */
    .article-1-heading {
        font-size: 18px;
    }

    /* Coverflow smaller */
    .cf-wrapper {
        height: 200px;
    }
    .cf-item {
        width: 150px;
        height: 150px;
    }

    /* Footer compact */
    .footer p {
        font-size: 12px;
        word-break: break-word;
    }
}

/* ========================================
   SCROLLER FIX — Coverflow gallery
   cf-items translateX se bahar jaate the
   causing horizontal scrollbar on page
======================================== */
body {
    overflow-x: hidden;
}

.cf-outer {
    overflow-x: hidden;
    /* contain the coverflow translateX overflow */
    max-width: 100%;
}

/* Extra safety — prevent any section from causing hscroll */
.blog-section,
.about-section,
.linkedin-feed,
.footer {
    overflow-x: hidden;
}

/* ========================================
   RESPONSIVE — ADDITIONAL FIXES (audit)
======================================== */

/* Blog section padding fix — consistent on all screens */
.blog-section {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 768px) {
    .blog-section {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (min-width: 1200px) {
    .blog-section {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* articlepage blog-section padding same as homepage */
.blog-section.py-5.my-3 {
    padding-left: 20px;
    padding-right: 20px;
}

/* Profile table — make sure wrap is applied */
.profile-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Contact form — input full width on mobile */
@media (max-width: 576px) {
    .input-box,
    .input-box-m {
        width: 100%;
        box-sizing: border-box;
    }
    .contact-section {
        padding: 24px 12px;
    }
}

/* Footer — left align on very small screens */
@media (max-width: 480px) {
    .footer .container-fluid {
        text-align: left !important;
    }
    .footer .d-flex {
        justify-content: flex-start !important;
    }
    .footer p {
        font-size: 12px;
        word-break: break-word;
    }
}

/* CU-BOX equal height on mobile */
@media (max-width: 576px) {
    .CU-BOX {
        min-height: 160px;
        padding: 24px 16px;
    }
}

/* Map responsive height */
@media (max-width: 576px) {
    .map-wrapper {
        height: 250px;
    }
}
