:root {
    --primary: #155eef;
    --primary-dark: #0d47c7;
    --dark: #101828;
    --muted: #667085;
    --light: #f8fafc;
    --border: #e4e7ec;
    --white: #ffffff;
    --shadow: 0 15px 45px rgba(16, 24, 40, 0.08);
    --shadow-sm: 0 4px 12px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 20px 60px rgba(16, 24, 40, 0.12);
    --transition: all 0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;

    background: rgba(255, 255, 255, 0.95);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    width: 100%;
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    flex: 0 0 auto;
}

.brand-logo {
    width: 55px;
    height: 55px;

    object-fit: contain;

    display: block;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.2;
}

.brand strong {
    font-size: 15px;
}

.brand small {
    color: var(--muted);

    font-size: 11px;

    margin-top: 3px;
}


/*
   Header logo
*/

.site-logo {
    width: 280px;
    height: auto;

    max-width: 100%;

    display: block;

    object-fit: contain;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

nav {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 26px;

    flex: 0 0 auto;

    min-width: 0;

    white-space: nowrap;
}


/* Base Nav Link */

nav a.nav-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    white-space: nowrap;

    font-size: 14px;

    font-weight: 600;

    color: #475467;

    padding: 6px 0;

    position: relative;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


/* Nav hover */

nav a.nav-link:hover {
    color: var(--primary);

    transform: translateY(-1px);
}


/* Active Nav */

nav a.nav-link.active {
    color: var(--primary);

    font-weight: 700;
}

nav a.nav-link.active::after {
    content: "";

    position: absolute;

    bottom: -2px;

    left: 0;

    width: 100%;

    height: 2px;

    background-color: var(--primary);

    border-radius: 2px;
}


/* =========================================================
   CONTACT / PRIMARY BUTTON
========================================================= */

.btn-primary,
.nav-btn {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    min-width: 136px;

    width: 136px;

    height: 56px;

    padding: 0 18px !important;

    font-size: 14px;

    font-weight: 600;

    color: #ffffff !important;

    text-decoration: none;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            #258eff 0%,
            #0066ff 60%,
            #0052cc 100%
        );

    box-shadow:
        0px 8px 18px -4px rgba(0, 102, 255, 0.4),
        inset 0px 2px 2px rgba(255, 255, 255, 0.6),
        inset 0px -3px 4px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s ease,
        filter 0.25s ease;

    border: 1px solid rgba(255, 255, 255, 0.3) !important;

    cursor: pointer;

    white-space: nowrap !important;

    word-break: normal !important;

    overflow-wrap: normal !important;

    line-height: 1.2;
}


/* Button hover */

.btn-primary:hover,
.nav-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0px 14px 24px -4px rgba(0, 102, 255, 0.6),
        inset 0px 3px 3px rgba(255, 255, 255, 0.8),
        inset 0px -3px 4px rgba(0, 0, 0, 0.2);

    filter: brightness(1.05);
}


/* Button active */

.btn-primary:active,
.nav-btn:active {
    transform: translateY(1px);

    box-shadow:
        0px 4px 10px -2px rgba(0, 102, 255, 0.4),
        inset 0px 1px 2px rgba(255, 255, 255, 0.4),
        inset 0px -2px 3px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   SERVICES DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;

    flex: 0 0 auto;
}

.nav-dropdown > .dropdown-toggle {
    display: flex;

    align-items: center;

    white-space: nowrap;
}

.dropdown-menu {
    display: block;

    position: absolute;

    top: calc(100% + 8px);

    left: 0;

    min-width: 240px;

    padding: 10px 0;

    background: #ffffff;

    border: 1px solid #e4e7ec;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.10);

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 9999;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.dropdown-menu a {
    display: block;

    padding: 11px 18px;

    color: #475467;

    font-size: 14px;

    font-weight: 500;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f2f6ff;

    color: #155eef;

    padding-left: 24px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    border: 0;

    background: none;

    font-size: 25px;

    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef5ff 100%
        );

    overflow: hidden;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 60px;

    align-items: center;
}

.eyebrow {
    display: inline-block;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 64px);

    line-height: 1.08;

    letter-spacing: -2px;

    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 620px;

    color: var(--muted);

    font-size: 17px;
}

.hero-actions {
    display: flex;

    gap: 12px;

    margin-top: 30px;
}

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 21px;

    border-radius: 8px;

    border: 1px solid transparent;

    font-weight: 700;

    font-size: 14px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--border);

    background: white;
}

.btn-light {
    background: white;

    color: var(--primary);
}


/* =========================================================
   HERO CARD
========================================================= */

.hero-card {
    min-height: 420px;

    position: relative;

    display: grid;

    place-items: center;
}

.hero-center {
    width: 280px;

    height: 280px;

    border-radius: 50%;

    background: white;

    box-shadow: var(--shadow);

    display: grid;

    place-items: center;

    align-content: center;

    text-align: center;
}

.hero-center .hero-logo {
    width: 70px;

    height: 70px;

    font-size: 22px;

    margin-bottom: 15px;
}

.hero-center h3 {
    font-size: 20px;
}

.hero-center p {
    font-size: 13px;

    margin-top: 3px;
}

.floating-card {
    position: absolute;

    background: white;

    padding: 18px 22px;

    border-radius: 12px;

    box-shadow: var(--shadow);

    min-width: 150px;
}

.floating-card span,
.floating-card small {
    display: block;

    color: var(--muted);

    font-size: 11px;
}

.floating-card strong {
    display: block;

    margin: 2px 0;
}

.card-one {
    top: 30px;

    left: 0;
}

.card-two {
    right: 0;

    bottom: 35px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 90px 0;
}

.soft-section {
    background: var(--light);
}

.section-heading {
    max-width: 650px;

    margin-bottom: 40px;
}

.section-heading h2,
.split-heading h2,
.about-grid h2,
.contact-info h2 {
    font-size: 38px;

    line-height: 1.2;

    letter-spacing: -1px;
}

.section-heading p,
.about-grid p,
.contact-info p {
    color: var(--muted);

    margin-top: 12px;
}


/* =========================================================
   CARD GRID
========================================================= */

.card-grid {
    display: grid;

    gap: 22px;
}

.card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 28px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.service-card.large {
    min-height: 250px;
}

.service-icon {
    font-size: 32px;

    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 20px;

    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 15px;
}

.service-card a,
.text-link {
    color: var(--primary);

    font-weight: 700;

    font-size: 14px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.service-card a:hover,
.text-link:hover {
    color: var(--primary-dark);

    transform: translateX(4px);
}


/* =========================================================
   SPLIT HEADING
========================================================= */

.split-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 35px;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.project-large {
    height: 260px;

    display: flex;

    flex-direction: column;
}

.project-body {
    padding: 24px;

    flex: 1;

    display: flex;

    flex-direction: column;
}

.project-body h3 {
    margin-bottom: 8px;

    font-size: 20px;

    font-weight: 600;

    color: #1a1a1a;
}

.project-body p {
    color: var(--muted);

    font-size: 14px;

    line-height: 35px;

    flex: 5;

    margin-bottom: 16px;
}


/* Button positioning */

.project-body a,
.project-body button {
    margin-top: auto;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    padding: 70px 0;

    background: var(--primary);

    color: white;
}

.cta .eyebrow {
    color: #dbeafe;
}

.cta h2 {
    font-size: 34px;

    line-height: 1.25;
}

.cta-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef5ff
        );
}

.page-hero h1 {
    font-size: 52px;

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.page-hero p {
    color: var(--muted);

    max-width: 650px;

    margin-top: 14px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.values-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.value-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 30px;
}

.value-card span {
    color: var(--primary);

    font-weight: 800;
}

.value-card h3 {
    margin: 10px 0;
}

.value-card p {
    color: var(--muted);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;
}

.contact-item {
    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.contact-item strong,
.contact-item span {
    display: block;
}

.contact-item span {
    color: var(--muted);
}

.contact-form {
    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: var(--shadow);
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.contact-form label {
    display: block;

    font-size: 13px;

    font-weight: 700;

    margin: 15px 0 7px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 12px 13px;

    font: inherit;

    outline: none;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(21, 94, 239, 0.08);
}

.contact-form button {
    margin-top: 20px;
}


/* =========================================================
   MESSAGES
========================================================= */

.messages {
    padding-top: 20px;
}

.alert {
    padding: 13px 18px;

    background: #ecfdf3;

    border: 1px solid #abefc6;

    color: #067647;

    border-radius: 8px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #101828;

    color: #d0d5dd;

    padding-top: 60px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.5fr 0.7fr 1fr;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-brand {
    color: white;

    margin-bottom: 18px;
}

.footer p {
    color: #98a2b3;

    font-size: 14px;
}

.footer h4 {
    color: white;

    margin-bottom: 15px;
}


/* =========================================================
   FOOTER LINKS
   Mouse করলে BLUE + একটু ডানে move করবে
========================================================= */

.footer-grid a {
    display: block;

    color: #98a2b3;

    font-size: 14px;

    margin: 7px 0;

    position: relative;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


/* Quick Links hover */

.footer-grid a:hover {
    color: #155eef;

    transform: translateX(7px);
}


/* Keyboard focus */

.footer-grid a:focus-visible {
    color: #155eef;

    transform: translateX(7px);

    outline: none;
}


/* =========================================================
   FOOTER CONTACT TEXT
========================================================= */

.footer-grid > div:last-child p {
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-grid > div:last-child p:hover {
    color: #155eef;

    transform: translateX(5px);
}


/* Footer headings hover */

.footer h4 {
    transition: color 0.25s ease;
}

.footer h4:hover {
    color: #4d8dff;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.copyright {
    border-top: 1px solid #344054;

    padding: 20px;

    text-align: center;

    color: #98a2b3;

    font-size: 12px;
}


/* =========================================================
   DETAILED SERVICES
========================================================= */

.detailed-services {
    max-width: 980px;
}

.service-detail-block {
    padding: 42px 0;

    border-bottom: 1px solid var(--border);

    scroll-margin-top: 100px;
}

.service-detail-block:last-child {
    border-bottom: 0;
}

.service-detail-block h2 {
    font-size: 34px;

    margin: 10px 0 10px;

    color: var(--dark);
}

.service-detail-block p {
    color: var(--muted);

    max-width: 760px;
}

.feature-list {
    list-style: none;

    margin-top: 18px;
}

.feature-list li {
    margin: 7px 0;

    color: var(--dark);
}

.feature-list li span {
    color: var(--primary);

    font-weight: 800;

    margin-right: 8px;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {
    position: relative;

    overflow: hidden;
}

.project-image img {
    width: 100%;

    height: 260px;

    object-fit: cover;

    display: block;
}

.project-image > span {
    position: absolute;

    left: 18px;

    top: 18px;

    background:
        rgba(255, 255, 255, 0.94);

    color: var(--primary);

    padding: 6px 11px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 800;
}


/* =========================================================
   PROJECT / PRODUCT / TEAM MEDIA
========================================================= */

.project-card,
.product-card,
.team-card {
    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    height: 100%;

    box-shadow:
        0 8px 24px rgba(16, 24, 40, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-image,
.product-image,
.team-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f2f4f7;
}

.project-image img,
.product-image img,
.team-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;
}

.project-card:hover,
.product-card:hover,
.team-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow);
}

.project-body,
.product-body,
.team-body {
    padding: 22px;
}

.project-body p,
.product-body p,
.team-bio {
    color: var(--muted);

    font-size: 14px;
}

.product-grid,
.team-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.product-placeholder,
.team-avatar {
    width: 100%;

    height: 100%;

    display: grid;

    place-items: center;

    background: #eef5ff;

    color: var(--primary);

    font-size: 36px;

    font-weight: 800;
}

.team-role {
    color: var(--primary);

    font-weight: 700;

    margin-bottom: 8px;
}


/* =========================================================
   TEAM DETAIL
========================================================= */

.team-detail {
    display: grid;

    grid-template-columns:
        minmax(280px, 420px) 1fr;

    gap: 50px;

    align-items: start;
}

.team-detail-image {
    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: 18px;

    background: #f2f4f7;
}

.team-detail-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.team-avatar svg {
    width: 48%;
    height: 48%;
    fill: currentColor;
}

.team-avatar-large svg {
    width: 42%;
    height: 42%;
}

.member-contact-list {
    margin-bottom: 24px;
}

.member-bio-full {
    white-space: pre-line;
    line-height: 1.8;
    margin-bottom: 28px;
}

.team-avatar-large {
    font-size: 72px;
}

/* =========================================================
   PROFESSIONAL TEAM DIRECTORY
========================================================= */

.team-page-hero {
    padding: 54px 0 50px;
    text-align: center;
    background: linear-gradient(145deg, #f6f9ff 0%, #fff 58%, #f3f8ff 100%);
}

.team-page-hero .container {
    max-width: 760px;
}

.team-showcase {
    padding: 52px 0 78px;
    background: #f8fafc;
}

.team-section.team-showcase {
    padding: 64px 0 76px;
}

.team-section.team-showcase .team-title {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.team-section.team-showcase .team-title h1 {
    margin-bottom: 10px;
}

.team-section.team-showcase .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
}

.team-section.team-showcase .row > [class*="col-"] {
    width: 100%;
    padding: 0;
}

.team-section.team-showcase .team-email {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
}

.team-section.team-showcase .team-email a {
    color: inherit;
    text-decoration: none;
}

.team-section.team-showcase .designation {
    min-height: 22px;
    margin-bottom: 20px;
    color: #56708f;
    font-size: 14px;
    font-weight: 700;
}

.team-section.team-showcase .team-card-actions {
    margin-top: 22px;
}

.team-showcase .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.team-showcase .team-card {
    position: relative;
    align-items: center;
    padding: 36px 24px 26px;
    overflow: visible;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(15, 35, 65, 0.08);
}

.team-showcase .team-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--primary), #54b6ff);
    opacity: 0;
    transition: opacity .25s ease;
}

.team-showcase .team-card:hover::before {
    opacity: 1;
}

.team-showcase .team-image {
    width: 124px;
    height: 124px;
    aspect-ratio: 1;
    flex: 0 0 124px;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 9px 26px rgba(30, 64, 175, .18);
}

.team-showcase .team-image img {
    border-radius: 50%;
}

.team-showcase .team-avatar {
    border-radius: 50%;
}

.team-showcase .team-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 22px 0 0;
}

.team-showcase .team-body h3 {
    margin: 0 0 7px;
    color: #132238;
    font-size: 20px;
    line-height: 1.3;
}

.team-showcase .team-member-name a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: color .2s ease, transform .2s ease;
}

.team-showcase .team-member-name a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.team-member-name a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: color .2s ease, transform .2s ease;
}

.team-member-name a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.team-showcase .team-role {
    min-height: 22px;
    margin: 0 0 20px;
    color: #56708f;
    font-size: 14px;
    font-weight: 700;
}

.team-card-contact {
    display: grid;
    gap: 9px;
    margin-bottom: 24px;
    text-align: left;
}

.team-card-contact a {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.team-card-contact svg {
    width: 17px;
    height: 17px;
    margin-right: 9px;
    flex: 0 0 17px;
    fill: #4d8bea;
}

.team-card-contact span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-card-actions {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.team-social-link {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid #dce8f8;
    border-radius: 50%;
    background: #f4f8ff;
}

.team-social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.team-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.team-card-actions .team-details-btn {
    min-width: 134px;
}

.team-details-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(37, 99, 235, .25);
}

/* Member profile */

.member-detail-hero {
    padding: 46px 0 22px;
    background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
}

.member-detail-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-back-link {
    color: #59708d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.member-profile-section {
    padding: 50px 0 100px;
    background: #fff;
}

.member-profile-section .team-detail {
    grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}

.member-portrait-wrap {
    position: relative;
    display: grid;
    place-items: center;
    padding: 22px;
}

.member-portrait-wrap::before,
.member-portrait-wrap::after {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    border-color: #75a9f5;
}

.member-portrait-wrap::before {
    top: 0;
    left: 0;
    border-top: 2px solid #75a9f5;
    border-left: 2px solid #75a9f5;
}

.member-portrait-wrap::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid #75a9f5;
    border-bottom: 2px solid #75a9f5;
}

.member-portrait-ring {
    width: min(100%, 410px);
    padding: 10px;
    border: 1px solid #dce9fb;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 25px 65px rgba(27, 70, 125, .14);
}

.member-profile-section .team-detail-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.member-profile-section .team-detail-image img,
.member-profile-section .team-avatar-large {
    border-radius: 50%;
}

.member-portrait-dot {
    position: absolute;
    right: 13%;
    bottom: 7%;
    width: 26px;
    height: 26px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #24b47e;
    box-shadow: 0 4px 12px rgba(36, 180, 126, .28);
}

.member-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.team-detail-content h1 {
    margin: 10px 0 6px;
    color: #10233e;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
}

.member-detail-role {
    margin: 0;
    color: #6280a2;
    font-size: 20px;
    font-weight: 600;
}

.member-rule {
    width: 72px;
    height: 4px;
    margin: 24px 0 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #6bbcf5);
}

.member-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.member-contact-item {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #e3ebf5;
    border-radius: 12px;
    background: #f8fbff;
    color: #243b5a;
    text-decoration: none;
}

.member-contact-item[hidden] {
    display: none;
}

.member-contact-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #e7f0ff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.member-contact-item small,
.member-contact-item strong {
    display: block;
}

.member-contact-item small {
    color: #8292a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-contact-item strong {
    max-width: 235px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-detail-content h2 {
    margin-bottom: 12px;
    color: #1d314d;
    font-size: 18px;
}

.member-bio-full {
    max-width: 720px;
    color: #5b6b80;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .team-showcase .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .team-showcase .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-section.team-showcase .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-profile-section .team-detail { grid-template-columns: 1fr; }
    .member-portrait-wrap { width: min(100%, 470px); margin: 0 auto; }
    .team-detail-content { text-align: center; }
    .member-rule { margin-right: auto; margin-left: auto; }
    .member-contact-list { justify-content: center; }
}

@media (max-width: 540px) {
    .team-showcase .team-grid { grid-template-columns: 1fr; }
    .team-section.team-showcase .row { grid-template-columns: 1fr; }
    .team-showcase .team-card { padding: 30px 22px 24px; }
    .member-detail-hero .container { align-items: flex-start; flex-direction: column; gap: 14px; }
    .member-profile-section { padding: 25px 0 70px; }
    .member-portrait-wrap { padding: 16px; }
    .member-contact-list { align-items: stretch; flex-direction: column; }
    .member-contact-item { width: 100%; text-align: left; }
}


/* =========================================================
   IMPORTANT NAVBAR FIX
========================================================= */

.site-header .nav-wrap {
    overflow: visible;
}

.site-header #mainNav {
    flex-wrap: nowrap;

    white-space: nowrap;
}

.site-header #mainNav > .nav-link {
    flex-shrink: 0;
}

.site-header #mainNav .nav-dropdown {
    flex-shrink: 0;
}

.site-header #mainNav .nav-dropdown > .nav-link {
    white-space: nowrap;
}

.site-header #mainNav .nav-btn {
    flex-shrink: 0 !important;

    white-space: nowrap !important;

    word-break: keep-all !important;

    overflow-wrap: normal !important;
}


/* Team Members one line */

.site-header #mainNav a[href*="team"] {
    white-space: nowrap !important;

    word-break: keep-all !important;

    overflow-wrap: normal !important;

    flex-shrink: 0 !important;
}


/* About Us one line */

.site-header #mainNav a[href*="about"] {
    white-space: nowrap !important;

    word-break: keep-all !important;

    overflow-wrap: normal !important;

    flex-shrink: 0 !important;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .site-header .nav-wrap {
        gap: 20px;
    }

    .site-header #mainNav {
        gap: 24px;
    }

    .site-logo {
        width: 280px;
    }
}


/* =========================================================
   SMALL DESKTOP / LAPTOP
========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

    .container {
        width: min(
            100% - 30px,
            1100px
        );
    }

    .site-header .nav-wrap {
        gap: 15px;
    }

    .site-logo {
        width: 245px;
    }

    .site-header #mainNav {
        gap: 18px;
    }

    nav a.nav-link {
        font-size: 13px;
    }

    .site-header #mainNav .nav-btn {
        width: 125px !important;

        min-width: 125px !important;

        height: 52px;
    }
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 800px) {

    .container {
        width: calc(100% - 30px);
    }

    .site-header .nav-wrap {
        min-height: 76px;
    }

    .site-logo {
        width: 240px;

        max-width: calc(100vw - 100px);
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;

        position: absolute;

        top: 76px;

        left: 0;

        width: 100%;

        padding: 20px;

        background: white;

        border-bottom: 1px solid var(--border);

        flex-direction: column;

        gap: 16px;

        white-space: normal;
    }

    nav.open {
        display: flex;
    }

    nav a.nav-link {
        width: auto;

        white-space: nowrap;
    }

    .site-header #mainNav {
        flex-wrap: nowrap;
    }

    .site-header #mainNav .nav-btn {
        width: auto !important;

        min-width: 130px !important;

        max-width: none;

        height: 52px;

        white-space: nowrap !important;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid.three,
    .project-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 65px 0;
    }

    .hero-card {
        min-height: 350px;
    }

    .section {
        padding: 65px 0;
    }

    .split-heading,
    .cta-inner {
        align-items: flex-start;

        flex-direction: column;
    }

    .page-hero h1 {
        font-size: 40px;
    }

    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-detail {
        grid-template-columns: 1fr;
    }

    /* Footer mobile hover */

    .footer-grid a:hover {
        transform: translateX(5px);
    }

    .footer-grid > div:last-child p:hover {
        transform: translateX(4px);
    }
}


/* =========================================================
   LARGE LOGO
========================================================= */

.site-logo {
    width: 280px;

    height: auto;

    display: block;

    object-fit: contain;
}

/* =========================================================
   TEAM MEMBERS NAV ROUTING / PRESENTATION SAFETY
   NOTE: URL routing is handled by base.html, not CSS.
========================================================= */

.site-header #mainNav a[href*="/dashboard/team/"] {
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* Preserve the Team Members link appearance on desktop/mobile. */
.site-header #mainNav a.nav-link {
    text-decoration: none;
}

/* Prevent the dashboard link from being hidden behind dropdown layers. */
.site-header .nav-wrap,
.site-header #mainNav {
    overflow: visible !important;
}


/* =========================================================
   PROFESSIONAL SERVICE CARDS STYLING
========================================================= */

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* =========================================================
   PROFESSIONAL PRODUCT CARDS STYLING
========================================================= */

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 240px;
    background: var(--light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    margin-top: auto;
}

.text-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* =========================================================
   PROFESSIONAL PROJECT CARDS STYLING
========================================================= */

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.project-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, var(--light) 0%, #f0f4f8 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-body .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.project-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-body p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* =========================================================
   CARD GRIDS
========================================================= */

.card-grid {
    display: grid;
    gap: 28px;
    margin-top: 40px;
}

.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.product-grid,
.project-grid {
    display: grid;
    gap: 28px;
    margin-top: 48px;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

@media (max-width: 768px) {
    .card-grid.three,
    .card-grid.two,
    .product-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .product-card,
    .project-card {
        padding: 24px;
    }
}

/* =========================================================
   PAGE HERO SECTION (Professional)
========================================================= */

.page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-bottom: 1px solid var(--border);
    padding: 80px 20px;
    margin-bottom: 60px;
}

.page-hero .container {
    text-align: center;
}

.page-hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin: 0;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
    
    .page-hero p {
        font-size: 16px;
    }
}

/* =========================================================
   SECTION SPACING
========================================================= */

.section {
    padding: 60px 20px;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading .eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-heading h1,
.section-heading h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-heading p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }
    
    .section-heading h1,
    .section-heading h2 {
        font-size: 28px;
    }
    
    .section-heading p {
        font-size: 16px;
    }
}

/* =========================================================
   EYEBROW STYLING (Professional Badge)
========================================================= */

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

/* =========================================================
   CONTAINER UPDATES
========================================================= */

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        width: calc(100% - 24px);
    }
}



/* =========================================================
   COURSE/SERVICES CARDS - STYLISH
========================================================= */

.course-card, .service-card-featured {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.course-card:hover, .service-card-featured:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
}

.course-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.course-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.course-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    position: relative;
    z-index: 1;
}

.course-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}

.course-badge {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

/* =========================================================
   FEATURED PROJECTS - STYLISH CARDS
========================================================= */

.featured-project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.featured-project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
}

.featured-project-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--light) 0%, #f0f4f8 100%);
    overflow: hidden;
    position: relative;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-project-card:hover .featured-project-image img {
    transform: scale(1.12);
}

.featured-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 24, 40, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.featured-project-card:hover .featured-project-overlay {
    opacity: 1;
}

.featured-project-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.featured-project-overlay p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.featured-project-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-project-tag {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.featured-project-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.featured-project-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* =========================================================
   FEATURED PRODUCTS - STYLISH CARDS
========================================================= */

.featured-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.featured-product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.featured-product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--light) 0%, #e8ecf1 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.08);
}

.featured-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.featured-product-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-product-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px 0;
}

.featured-product-body .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.featured-product-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* =========================================================
   TEAM CARDS - UNIQUE STYLING
========================================================= */

.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
}

.team-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--light) 0%, #f0f4f8 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-card-image img {
    transform: scale(1.1);
}

/* Circular Image Overlay */
.team-image-circle {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.team-card:hover .team-image-circle {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 20px 60px rgba(21, 94, 239, 0.3);
}

.team-card-body {
    padding: 80px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.team-card-body .position {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.team-card-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.team-social-link {
    width: 36px;
    height: 36px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.team-social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

/* =========================================================
   CONTACT SECTION - MODERN DESIGN
========================================================= */

.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.contact-section .container {
    max-width: 700px;
}

.contact-section h2 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.contact-btn-primary {
    background: var(--white);
    color: var(--primary);
}

.contact-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.contact-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Contact Form Styling */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-top: 60px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
========================================================= */

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-section h2 {
        font-size: 32px;
    }
    
    .contact-section p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .team-image-circle {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }
    
    .team-card-body {
        padding: 70px 16px 16px 16px;
    }
    
    .course-card, .featured-product-card {
        padding: 16px;
    }
    
    .contact-form {
        padding: 24px;
    }
}



/* =====================================================
   TSBD SERVICE CARDS
===================================================== */
.tsbd-services-section { background: #eef2f3; }
.tsbd-eyebrow { color:#155eef; font-size:12px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; }
.tsbd-services-heading { margin:.35rem 0 .5rem; color:#152536; font-size:clamp(2rem,4vw,3rem); font-weight:800; letter-spacing:-.04em; }
.tsbd-services-lead { margin:0; color:#657487; max-width:650px; }
.tsbd-view-all { display:inline-flex; align-items:center; gap:10px; padding:11px 18px; border:1px solid #d7dee7; border-radius:999px; color:#152536; background:#fff; text-decoration:none; font-weight:700; transition:.3s ease; }
.tsbd-view-all:hover { color:#155eef; border-color:#b9c9e8; transform:translateY(-2px); }
.tsbd-service-card-link { display:block; height:100%; color:inherit; text-decoration:none; }
.tsbd-service-card { position:relative; min-height:330px; height:100%; overflow:hidden; border-radius:24px; padding:26px; background:linear-gradient(145deg,#172b3f,#263f56); box-shadow:0 18px 45px rgba(16,24,40,.10); transition:transform .35s ease,box-shadow .35s ease; }
.tsbd-service-card::after { content:""; position:absolute; width:170px; height:170px; right:-70px; bottom:-70px; border-radius:50%; background:rgba(255,255,255,.08); transition:transform .45s ease; }
.tsbd-service-card:hover { transform:translateY(-8px); box-shadow:0 28px 60px rgba(16,24,40,.18); }
.tsbd-service-card:hover::after { transform:scale(1.35); }
.tsbd-service-number { position:absolute; top:20px; right:22px; width:46px; height:46px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.22); border-radius:50%; color:#fff; font-weight:800; font-size:13px; background:rgba(255,255,255,.08); }
.tsbd-service-card-content { position:absolute; z-index:1; left:26px; right:26px; bottom:26px; }
.tsbd-service-label { color:#79a7ff; font-size:10px; letter-spacing:1.5px; font-weight:800; }
.tsbd-service-card h3 { margin:9px 0 10px; color:#fff; font-size:1.45rem; font-weight:800; }
.tsbd-service-card p { min-height:50px; margin:0 0 20px; color:rgba(255,255,255,.70); line-height:1.6; font-size:.92rem; }
.tsbd-service-more { display:inline-flex; align-items:center; gap:9px; color:#fff; font-weight:700; font-size:.9rem; }
.tsbd-service-more span { transition:transform .3s ease; }
.tsbd-service-card:hover .tsbd-service-more span { transform:translate(3px,-3px); }
.tsbd-entity-section { background:#eef2f3; }
.tsbd-entity-section-alt { background:#f7f9fc; }
.tsbd-entity-card { min-height:330px; }
.tsbd-entity-card .tsbd-entity-image { position:absolute; z-index:1; top:26px; left:26px; width:92px; height:72px; overflow:hidden; border:1px solid rgba(255,255,255,.22); border-radius:16px; background:rgba(255,255,255,.10); }
.tsbd-entity-card .tsbd-entity-image img { width:100%; height:100%; display:block; object-fit:cover; }
.tsbd-entity-card .tsbd-entity-avatar { width:72px; height:72px; border-radius:50%; }
.tsbd-entity-card .tsbd-entity-initial { display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(145deg,#258eff,#155eef); font-size:28px; font-weight:800; }
.tsbd-entity-card .tsbd-service-card-content { right:26px; }
.tsbd-entity-card .tsbd-service-card-content h3 { max-width:90%; }
.tsbd-entity-card > .project-image,
.tsbd-entity-card > .product-image {
    position:absolute;
    z-index:1;
    top:26px;
    left:26px;
    right:26px;
    width:auto;
    height:118px;
    aspect-ratio:auto;
    border:1px solid rgba(255,255,255,.22);
    border-radius:16px;
    background:rgba(255,255,255,.10);
}
.tsbd-entity-card > .project-image img,
.tsbd-entity-card > .product-image img {
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:15px;
}
.tsbd-entity-card > .project-body,
.tsbd-entity-card > .product-body {
    position:absolute;
    z-index:1;
    left:26px;
    right:26px;
    bottom:26px;
    padding:0;
}
.tsbd-entity-card > .project-body h3,
.tsbd-entity-card > .product-body h3 { color:#fff; margin:9px 0 10px; }
.tsbd-entity-card > .project-body p,
.tsbd-entity-card > .product-body p { color:rgba(255,255,255,.70); line-height:1.6; margin:0 0 20px; }
.tsbd-entity-card > .project-body .eyebrow { color:#79a7ff; }
.tsbd-entity-card > .project-body .btn,
.tsbd-entity-card > .product-body .text-link { color:#fff; }
.tsbd-entity-card > .project-body .btn-secondary { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.2); }
.team-showcase .tsbd-entity-card,
.tsbd-entity-card.team-card { background:linear-gradient(145deg,#172b3f,#263f56); border:0; }
.team-showcase .tsbd-entity-card .team-image,
.tsbd-entity-card.team-card .team-image { position:absolute; z-index:1; top:26px; left:26px; width:82px; height:82px; border:4px solid rgba(255,255,255,.85); }
.team-showcase .tsbd-entity-card .team-body,
.tsbd-entity-card.team-card .team-body { position:absolute; z-index:1; left:26px; right:26px; bottom:26px; width:auto; padding:0; }
.team-showcase .tsbd-entity-card .team-body h4,
.tsbd-entity-card.team-card .team-body h3 { color:#fff; }
.team-showcase .tsbd-entity-card .designation,
.tsbd-entity-card.team-card .team-role,
.tsbd-entity-card.team-card .team-bio { color:rgba(255,255,255,.70); }
.team-showcase .tsbd-entity-card .team-email,
.team-showcase .tsbd-entity-card .team-card-actions { display:none; }
.tsbd-entity-card.team-card .team-body .text-link { color:#fff; }
@media (max-width:767.98px){ .tsbd-service-card{min-height:300px;} .tsbd-service-card-content{left:22px;right:22px;bottom:22px;} }

/* =========================================================
   TSBD CONTACT + FOOTER — STYLISH CTA
========================================================= */

.tsbd-footer {
    margin-top: 0;
    color: #eaf2f3;
    background:
        radial-gradient(circle at 12% 12%, rgba(51, 192, 174, 0.16), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(244, 191, 61, 0.14), transparent 30%),
        #0c2228;
    overflow: hidden;
}

.tsbd-footer-contact {
    padding: 74px 0 68px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tsbd-contact-heading {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.tsbd-contact-heading span {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.tsbd-contact-heading span:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 205, 76, 0.7);
}

.tsbd-contact-intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.tsbd-footer-eyebrow {
    margin: 0 0 10px;
    color: #79d8c6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.tsbd-contact-intro h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.tsbd-contact-intro > p:not(.tsbd-footer-eyebrow) {
    max-width: 620px;
    margin: 18px auto 28px;
    color: rgba(234, 242, 243, .72);
    line-height: 1.75;
}

.tsbd-contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 22px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform .25s ease, background .25s ease;
}

.tsbd-contact-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    background: rgba(255,255,255,.16);
}

.tsbd-contact-cta span {
    font-size: 19px;
}

.tsbd-footer-main {
    padding: 54px 0;
}

.tsbd-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .8fr 1fr 1.25fr;
    gap: 42px;
}

.tsbd-footer-grid h4 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tsbd-footer-grid a {
    display: block;
    width: fit-content;
    margin: 0 0 11px;
    color: rgba(234, 242, 243, .7);
    text-decoration: none;
    line-height: 1.55;
    transition: color .2s ease, transform .2s ease;
}

.tsbd-footer-grid a:hover {
    color: #fff;
    transform: translateX(3px);
}

.tsbd-footer-company p,
.tsbd-footer-contact-info p {
    max-width: 340px;
    margin: 16px 0 0;
    color: rgba(234, 242, 243, .62);
    line-height: 1.7;
}

.tsbd-footer-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 800;
}

.tsbd-footer-brand:hover {
    transform: none !important;
}

.tsbd-footer-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
}

.tsbd-footer-contact-info a {
    overflow-wrap: anywhere;
}

.tsbd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.12);
}

.tsbd-footer-bottom-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.tsbd-footer-bottom p {
    margin: 0;
    color: rgba(234, 242, 243, .58);
    font-size: 13px;
}

.tsbd-footer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.07);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 992px) {
    .tsbd-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tsbd-footer-contact {
        padding: 52px 0 48px;
    }

    .tsbd-contact-heading {
        gap: 6px;
    }

    .tsbd-contact-heading span {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 19px;
    }

    .tsbd-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tsbd-footer-bottom-inner {
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   IMAGE SIZE UPDATE — PROJECT / PRODUCT / TEAM
   Keeps the existing design, only makes media more prominent.
========================================================= */

/* Public project cards */
.project-grid .project-image {
    height: 300px;
    aspect-ratio: auto;
}

.project-grid .project-image img {
    height: 100%;
    object-fit: cover;
}

/* Homepage / featured project cards */
.featured-project-image {
    height: 310px;
}

/* Public product cards */
.product-grid .product-image {
    height: 280px;
    aspect-ratio: auto;
}

.product-grid .product-image img {
    height: 100%;
    object-fit: cover;
}

/* Homepage / featured product cards */
.featured-product-image {
    height: 280px;
}

/* Public team cards — larger circular portraits like the reference */
.tsbd-entity-section .team-card {
    align-items: center;
    text-align: center;
}

.tsbd-entity-section .team-card .team-image {
    width: 160px;
    height: 160px;
    aspect-ratio: 1;
    flex: 0 0 160px;
    border: 6px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(30, 64, 175, .16);
    background: #f2f4f7;
    margin-top: 28px;
}

.tsbd-entity-section .team-card .team-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.tsbd-entity-section .team-card .team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Team member profile page — larger circular portrait */
.team-detail .team-detail-image {
    width: min(100%, 360px);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f4f7;
    box-shadow: 0 18px 45px rgba(27, 70, 125, .14);
}

.team-detail .team-detail-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 800px) {
    .project-grid .project-image {
        height: 250px;
    }

    .featured-project-image {
        height: 260px;
    }

    .product-grid .product-image,
    .featured-product-image {
        height: 250px;
    }

    .tsbd-entity-section .team-card .team-image {
        width: 150px;
        height: 150px;
        flex-basis: 150px;
    }

    .team-detail .team-detail-image {
        width: min(100%, 300px);
    }
}

@media (max-width: 540px) {
    .project-grid .project-image {
        height: 230px;
    }

    .product-grid .product-image,
    .featured-product-image {
        height: 230px;
    }

    .tsbd-entity-section .team-card .team-image {
        width: 140px;
        height: 140px;
        flex-basis: 140px;
    }
}

/* =========================================================
   FINAL MEDIA/CARD FIXES — merged from the stable second build
   Keeps first build's content/assets but removes image/text overlap.
========================================================= */
.project-card.tsbd-entity-card,
.product-card.tsbd-entity-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.project-card.tsbd-entity-card > .project-image,
.product-card.tsbd-entity-card > .product-image {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background: #f2f4f7;
}

.project-card.tsbd-entity-card > .project-image img,
.product-card.tsbd-entity-card > .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: #f2f4f7;
}

.project-card.tsbd-entity-card > .project-body,
.product-card.tsbd-entity-card > .product-body {
    position: static;
    z-index: auto;
    inset: auto;
    width: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background: #fff;
}

.project-card.tsbd-entity-card > .project-body h3,
.product-card.tsbd-entity-card > .product-body h3 {
    color: var(--dark);
    margin: 0 0 10px;
}

.project-card.tsbd-entity-card > .project-body p,
.product-card.tsbd-entity-card > .product-body p {
    color: var(--muted);
    margin: 0 0 18px;
    line-height: 1.65;
}

.project-card.tsbd-entity-card > .project-body .btn,
.product-card.tsbd-entity-card > .product-body .text-link {
    align-self: flex-start;
    margin-top: auto;
}

.project-placeholder,
.product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f2f4f7;
    font-weight: 700;
}

/* Home Team: circular photos + dark cards, but NEVER overlap text. */
.team-showcase .team-card.tsbd-entity-card,
.tsbd-entity-card.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 410px;
    height: 100%;
    padding: 34px 24px 26px;
    overflow: hidden;
    background: linear-gradient(145deg, #172b3f, #263f56);
    border: 0;
    border-radius: 22px;
    text-align: center;
}

.team-showcase .team-card.tsbd-entity-card::after,
.tsbd-entity-card.team-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}

.team-showcase .team-card.tsbd-entity-card .team-image,
.tsbd-entity-card.team-card .team-image {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 124px;
    height: 124px;
    min-width: 124px;
    aspect-ratio: 1;
    flex: 0 0 124px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #e9eef5;
    box-shadow: 0 9px 26px rgba(0,0,0,.18);
}

.team-showcase .team-card.tsbd-entity-card .team-image img,
.tsbd-entity-card.team-card .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.team-showcase .team-card.tsbd-entity-card .team-body,
.tsbd-entity-card.team-card .team-body {
    position: relative;
    inset: auto;
    z-index: 2;
    width: 100%;
    padding: 22px 0 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    color: #fff;
}

.team-showcase .team-card.tsbd-entity-card .team-body h3,
.team-showcase .team-card.tsbd-entity-card .team-body h4,
.tsbd-entity-card.team-card .team-body h3 {
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.team-showcase .team-card.tsbd-entity-card .team-role,
.team-showcase .team-card.tsbd-entity-card .designation,
.tsbd-entity-card.team-card .team-role {
    color: rgba(255,255,255,.78);
    margin: 0 0 16px;
}

.team-showcase .team-card.tsbd-entity-card .team-bio,
.tsbd-entity-card.team-card .team-bio {
    color: rgba(255,255,255,.74);
    line-height: 1.65;
    margin: 0 0 20px;
}

.team-showcase .team-card.tsbd-entity-card .team-card-actions {
    display: flex;
    margin-top: auto;
}

.team-showcase .team-card.tsbd-entity-card .team-details-btn,
.tsbd-entity-card.team-card .team-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #155eef;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.team-showcase .team-card.tsbd-entity-card .team-details-btn:hover,
.tsbd-entity-card.team-card .team-details-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.team-showcase .team-card.tsbd-entity-card .team-email,
.team-showcase .team-card.tsbd-entity-card .team-card-actions > .team-social-link {
    display: none;
}

@media (max-width: 800px) {
    .project-grid,
    .product-grid,
    .team-showcase .team-grid {
        grid-template-columns: 1fr;
    }

    .project-card.tsbd-entity-card > .project-image,
    .product-card.tsbd-entity-card > .product-image {
        aspect-ratio: 16 / 10;
    }

    .team-showcase .team-card.tsbd-entity-card,
    .tsbd-entity-card.team-card {
        min-height: 390px;
    }
}

/* =========================================================
   CONTACT US MODAL — MATCHES THE PROVIDED DESIGN
========================================================= */

.tsbd-contact-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 556px;
    margin: 1.75rem auto;
}

.tsbd-contact-modal-content {
    border: 0 !important;
    border-radius: 17px !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28) !important;
}

.tsbd-contact-modal-header {
    position: relative;
    min-height: 69px;
    display: flex;
    align-items: center;
    padding: 16px 50px 16px 18px;
    background: #1476f5;
}

.tsbd-contact-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.tsbd-contact-modal-close {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tsbd-contact-modal-close:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.tsbd-contact-modal-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 5px;
}

.tsbd-contact-modal-form {
    margin: 0;
}

.tsbd-contact-modal-body {
    padding: 27px 27px 27px;
    background: #ffffff;
}

.tsbd-contact-field {
    margin-bottom: 22px;
}

.tsbd-contact-field label {
    display: block;
    margin: 0 0 10px;
    color: #101828;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.tsbd-contact-field input,
.tsbd-contact-field textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid #d9dee7;
    border-radius: 7px;
    background: #ffffff;
    color: #101828;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.45;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tsbd-contact-field input {
    height: 43px;
    padding: 8px 13px;
}

.tsbd-contact-field textarea {
    min-height: 121px;
    height: 121px;
    padding: 10px 13px;
    resize: vertical;
}

.tsbd-contact-field input::placeholder,
.tsbd-contact-field textarea::placeholder {
    color: #69707b;
    opacity: 1;
}

.tsbd-contact-field input:focus,
.tsbd-contact-field textarea:focus {
    border-color: #1476f5;
    box-shadow: 0 0 0 3px rgba(20, 118, 245, 0.12);
}

.tsbd-contact-message-field {
    margin-bottom: 18px;
}

.tsbd-contact-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 151px;
    height: 62px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 17px;
    background: linear-gradient(180deg, #258eff 0%, #0066ff 62%, #0052cc 100%);
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        0 12px 24px -7px rgba(0, 102, 255, 0.58),
        inset 0 2px 2px rgba(255, 255, 255, 0.62),
        inset 0 -3px 4px rgba(0, 0, 0, 0.20);
    cursor: pointer;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.tsbd-contact-send-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 16px 28px -5px rgba(0, 102, 255, 0.62),
        inset 0 3px 3px rgba(255, 255, 255, 0.72),
        inset 0 -3px 4px rgba(0, 0, 0, 0.20);
}

.tsbd-contact-send-btn:active {
    transform: translateY(0);
}

.tsbd-contact-send-btn:focus-visible {
    outline: 3px solid rgba(20, 118, 245, 0.28);
    outline-offset: 3px;
}

.tsbd-contact-modal .modal-backdrop,
.modal-backdrop {
    --bs-backdrop-bg: #000000;
    --bs-backdrop-opacity: 0.52;
}

@media (max-width: 576px) {
    .tsbd-contact-modal .modal-dialog {
        width: calc(100% - 20px);
        margin: 0.75rem auto;
    }

    .tsbd-contact-modal-header {
        min-height: 64px;
        padding-left: 17px;
        padding-right: 45px;
    }

    .tsbd-contact-modal-header h2 {
        font-size: 20px;
    }

    .tsbd-contact-modal-body {
        padding: 23px 18px 22px;
    }

    .tsbd-contact-field {
        margin-bottom: 19px;
    }

    .tsbd-contact-field label {
        font-size: 17px;
    }

    .tsbd-contact-send-btn {
        width: 100%;
        min-width: 0;
        height: 56px;
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tsbd-contact-modal-close,
    .tsbd-contact-send-btn,
    .tsbd-contact-field input,
    .tsbd-contact-field textarea {
        transition: none;
    }
}
