* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000000;
    font-family: Helvetica, Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* =========================================================
   HOME PAGE - Yohan-like portfolio layout
   ========================================================= */

.page {
    width: 1250px;
    max-width: calc(100% - 64px);
    margin: 0 auto;
    padding-top: 58px;
    padding-bottom: 90px;
}

/* =========================
   Intro
   ========================= */

.intro-section {
    width: 100%;
}

.identity-row {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.profile-image {
    width: 122px !important;
    height: 122px !important;
    min-width: 122px !important;
    min-height: 122px !important;
    max-width: 122px !important;
    max-height: 122px !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    flex: 0 0 122px;
}

.identity-text {
    margin-left: 44px;
}

.identity-text h1 {
    margin: 0;
    padding: 0;
    font-size: 38px;
    line-height: 42px;
    font-weight: 700;
    letter-spacing: -1.35px;
    color: #000000;
}

.email {
    margin: 2px 0 0;
    padding: 0;
    font-size: 21px;
    line-height: 26px;
    font-style: italic;
    color: #111111;
}

.bio {
    margin: 42px 0 0;
    padding: 0;
    width: 100%;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: #111111;
}

.bio a {
    color: #111111;
    text-decoration: underline;
}

/* =========================
   Social links
   ========================= */

.social-links {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7c7c7c;
    text-decoration: none;
    font-size: 17px;
    line-height: 21px;
    font-weight: 700;
}

.social-links a:hover {
    color: #555555;
    text-decoration: none;
}

.social-links i {
    font-size: 15px;
    color: #858585;
}

/* =========================================================
   PROFESSIONAL EXPERIENCE ON HOME PAGE
   ========================================================= */

.coursework-section {
    margin-top: 56px;
}

.coursework-section h2,
.featured-certifications-section h2,
.highlights-section h2,
.projects-section h2 {
    margin: 0 0 20px;
    padding: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.75px;
    color: #000000;
}

.coursework-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

.course-card {
    height: 226px;
    padding: 18px 17px 15px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.course-card h3 {
    margin: 0 0 5px;
    padding: 0;
    font-size: 20px;
    line-height: 23px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #000000;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-title {
    margin: 0 0 5px;
    padding: 0;
    font-size: 16.5px;
    line-height: 20px;
    font-weight: 400;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-period {
    margin: 0 0 8px;
    padding: 0;
    font-size: 12.5px;
    line-height: 16px;
    font-weight: 400;
    color: #666666;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.course-description {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 17px;
    font-weight: 400;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.see-all {
    margin-top: 22px;
    width: 100%;
    text-align: center;
}

.see-all a {
    color: #000000;
    text-decoration: underline;
    font-size: 14px;
    line-height: 18px;
}

/* =========================================================
   FEATURED CERTIFICATIONS ON HOME PAGE
   ========================================================= */

.featured-certifications-section {
    margin-top: 56px;
}

.certifications-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

.certification-card {
    height: 226px;
    padding: 18px 17px 15px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.certification-card h3 {
    margin: 0 0 5px;
    padding: 0;

    font-size: 19px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: -0.35px;
    color: #000000;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.certification-subtitle {
    margin: 0 0 5px;
    padding: 0;

    font-size: 16px;
    line-height: 19px;
    font-weight: 400;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.certification-period {
    margin: 0 0 8px;
    padding: 0;

    font-size: 12.5px;
    line-height: 16px;
    font-weight: 400;
    color: #666666;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.certification-description {
    margin: 0;
    padding: 0;

    font-size: 13px;
    line-height: 17px;
    font-weight: 400;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   HIGHLIGHTS & RECOGNITION CAROUSEL
   ========================================================= */

.highlights-section {
    margin-top: 56px;
}

.classic-highlight-carousel {
    position: relative;
    width: 640px;
    max-width: 100%;
    height: 360px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
}

.highlight-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 450ms ease-in-out;
}

.highlight-slide.active {
    opacity: 1;
}

.highlight-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #ffffff;
}

.highlight-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px 15px;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0.16),
            rgba(0, 0, 0, 0)
    );
    color: #ffffff;
}

.highlight-caption h3 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 19px;
    line-height: 23px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.highlight-caption p {
    margin: 0;
    padding: 0;
    max-width: 560px;
    font-size: 13.5px;
    line-height: 18px;
}

.highlight-counter {
    display: none;
}

/* =========================================================
   PROJECT CARDS ON HOME PAGE
   ========================================================= */

.projects-section {
    margin-top: 52px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    display: block;
    height: auto;
    min-height: 0;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    padding: 22px 22px 24px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.project-card:hover {
    text-decoration: none;
}

.project-card:hover .learn-more {
    text-decoration: underline;
}

.project-text h3 {
    margin: 0;
    padding: 0;
    font-size: 23px;
    line-height: 27px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #000000;
}

.project-subtitle {
    margin: 0;
    padding: 0;
    font-size: 19px;
    line-height: 23px;
    color: #111111;
}

.project-image-wrapper {
    width: 100%;
    height: 330px;
    margin: 22px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border-radius: 6px;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.project-description {
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    line-height: 19px;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.learn-more {
    display: inline-block;
    margin-top: 2px;
    color: #000000;
    text-decoration: underline;
    font-size: 14.5px;
    line-height: 19px;
}

.project-description a,
.learn-more {
    color: #000000;
    text-decoration: underline;
}

/* =========================================================
   IOT SENSORGRID HOME CARD
   ========================================================= */

.sensorgrid-home-section {
    margin-top: 58px;
}

.sensorgrid-home-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 430px;
    gap: 34px;
    align-items: center;

    padding: 34px 38px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
}

.sensorgrid-home-text {
    min-width: 0;
}

.sensorgrid-home-label {
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sensorgrid-home-text h2 {
    margin: 0 0 14px;
    padding: 0;
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #000000;
}

.sensorgrid-home-description {
    margin: 0;
    padding: 0;
    max-width: 820px;
    font-size: 19px;
    line-height: 29px;
    color: #111111;
}

.sensorgrid-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.sensorgrid-home-tags span {
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 16px;
    color: #333333;
    background: #ffffff;
}

.sensorgrid-home-link {
    display: inline-block;
    margin-top: 24px;
    color: #000000;
    text-decoration: underline;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
}

.sensorgrid-home-media {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.sensorgrid-example-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.sensorgrid-example-label {
    margin: 0;
    padding: 12px 14px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #eeeeee;
}

.sensorgrid-example-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.sensorgrid-example-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sensorgrid-example-card h3 {
    margin: 0;
    padding: 13px 14px 15px;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
    color: #000000;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   SULTAN IOT YOUTUBE CHANNEL CARD
   ========================================================= */

.youtube-classic-section {
    margin-top: 22px;
}

.youtube-classic-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 430px;
    gap: 34px;
    align-items: center;

    padding: 34px 38px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
}

.youtube-classic-text {
    min-width: 0;
}

.youtube-classic-label {
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.youtube-classic-text h2 {
    margin: 0 0 14px;
    padding: 0;
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #000000;
}

.youtube-classic-description {
    margin: 0;
    padding: 0;
    max-width: 820px;
    font-size: 19px;
    line-height: 29px;
    color: #111111;
}

.youtube-classic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.youtube-classic-tags span {
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 16px;
    color: #333333;
    background: #ffffff;
}

.youtube-classic-link {
    display: inline-block;
    margin-top: 24px;
    color: #000000;
    text-decoration: underline;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
}

.youtube-classic-video-card {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.youtube-classic-video-label {
    margin: 0;
    padding: 12px 14px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #eeeeee;
}

.youtube-classic-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000000;
    overflow: hidden;
}

.youtube-classic-player iframe {
    display: none;
    width: 100%;
    height: 100%;
    border: none;
}

.latest-youtube-fallback {
    position: absolute;
    inset: 0;

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

    color: #ffffff;
    text-decoration: underline;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    background: #111111;
}

.youtube-classic-video-card h3 {
    margin: 0;
    padding: 13px 14px 15px;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
    color: #000000;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   PROJECT DETAILS PAGE
   ========================================================= */

.case-page {
    width: 1210px;
    max-width: calc(100% - 64px);
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 110px;
    font-family: Helvetica, Arial, sans-serif;
    color: #000000;
}

.case-back-link {
    display: inline-block;
    margin-bottom: 36px;
    color: #000000;
    text-decoration: underline;
    font-size: 15px;
    line-height: 20px;
}

.case-header {
    margin-bottom: 28px;
}

.case-header h1 {
    margin: 0;
    padding: 0;
    font-size: 42px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: -1.2px;
}

.case-header p {
    margin: 4px 0 0;
    padding: 0;
    font-size: 22px;
    line-height: 28px;
    color: #111111;
}

.case-top-media {
    width: 760px;
    max-width: 100%;
    margin: 30px auto 50px;
    text-align: center;
}

.case-top-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
    background: #ffffff;
}

.case-top-media p {
    margin: 12px auto 0;
    max-width: 720px;
    font-size: 15px;
    line-height: 21px;
    font-weight: 700;
    color: #7c7c7c;
}

.case-summary {
    margin-bottom: 56px;
}

.case-summary p {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    color: #111111;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.case-tags span {
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 13px;
    line-height: 16px;
    color: #333333;
}

.case-section {
    margin-top: 58px;
}

.case-section h2 {
    margin: 0 0 22px;
    padding: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.case-section p {
    margin: 0 0 22px;
    padding: 0;
    font-size: 20px;
    line-height: 30px;
    color: #111111;
}

.case-section ol {
    margin: 0 0 34px;
    padding-left: 42px;
}

.case-section li {
    margin-bottom: 5px;
    font-size: 19px;
    line-height: 28px;
    color: #111111;
}

.case-media-grid {
    width: 980px;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin: 34px auto 0;
    align-items: start;
}

.case-media-grid figure {
    margin: 0;
    padding: 0;
    text-align: center;
}

.case-media-grid img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: contain !important;
    object-position: center center;
    display: block;
    margin: 0 auto;
    background: #ffffff;
}

.case-media-grid figure:has(img[src*="system-architecture"]),
.case-media-grid figure:has(img[src*="block-diagram"]),
.case-media-grid figure:has(img[src*="web-dashboard"]),
.case-media-grid figure:has(img[src*="firebase-data-logging"]) {
    grid-column: 1 / -1;
}

.case-media-grid img[src*="system-architecture"],
.case-media-grid img[src*="block-diagram"],
.case-media-grid img[src*="web-dashboard"],
.case-media-grid img[src*="firebase-data-logging"] {
    width: 900px;
    max-width: 100%;
    max-height: 430px;
    object-fit: contain !important;
}

.case-media-grid img[src*="overview"],
.case-media-grid img[src*="demo-presentation"],
.case-media-grid img[src*="robot-prototype"],
.case-media-grid img[src*="concept-design"],
.case-media-grid img[src*="first-poc"],
.case-media-grid img[src*="growth-trials"],
.case-media-grid img[src*="led-modes"] {
    max-height: 390px;
    object-fit: contain !important;
}

.case-media-grid img[src*="tower-3d-design"] {
    width: 660px;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain !important;
}

/* =========================================================
   CREDENTIALS / COURSEWORK PAGE
   ========================================================= */

.archive-page,
.credentials-page {
    width: 1210px;
    max-width: calc(100% - 64px);
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 120px;
    font-family: Helvetica, Arial, sans-serif;
    color: #000000;
}

.breadcrumb,
.credentials-breadcrumb {
    margin-bottom: 46px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
}

.breadcrumb a,
.credentials-breadcrumb a {
    color: #000000;
    text-decoration: underline;
}

.archive-section,
.credentials-section {
    margin-top: 42px;
}

.archive-section:first-of-type,
.credentials-section:first-of-type {
    margin-top: 0;
}

.archive-section h2,
.credentials-section h1 {
    margin: 0 0 18px;
    padding: 0;
    font-size: 27px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #000000;
}

.archive-grid,
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 205px);
    gap: 18px;
    align-items: stretch;
}

.archive-card,
.credential-card {
    width: 205px;
    height: 205px;
    padding: 18px 16px 14px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
    color: #000000;
}

.archive-card h3,
.credential-card h2 {
    margin: 0 0 5px;
    padding: 0;
    font-size: 18.5px;
    line-height: 21.5px;
    font-weight: 700;
    letter-spacing: -0.35px;
    color: #000000;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-subtitle,
.credential-subtitle {
    margin: 0 0 6px;
    padding: 0;
    font-size: 15.8px;
    line-height: 19.5px;
    font-weight: 400;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-period,
.credential-period {
    margin: 0 0 7px;
    padding: 0;
    font-size: 12px;
    line-height: 15.5px;
    font-weight: 400;
    color: #666666;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.archive-description,
.credential-description {
    margin: 0;
    padding: 0;
    font-size: 12.8px;
    line-height: 16.5px;
    font-weight: 400;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-back,
.credentials-back {
    margin-top: 54px;
    text-align: center;
}

.archive-back a,
.credentials-back a {
    color: #000000;
    text-decoration: underline;
    font-size: 14px;
    line-height: 18px;
}

/* =========================================================
   IOT SENSORGRID DETAILS EXAMPLES
   ========================================================= */

.service-examples-section {
    margin-top: 56px;
}

.service-examples-section h2 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.service-examples-intro {
    max-width: 900px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
    color: #222222;
}

.service-examples-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.service-example-small-card {
    margin: 0;
    border: 1px solid #dddddd;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;

    display: flex;
    flex-direction: column;
}

.service-example-small-card img {
    display: block;
    width: 100%;
    height: 260px;
    padding: 0;
    object-fit: cover;
    object-position: top center;
    background: #ffffff;
}

.service-example-small-card figcaption {
    min-height: 82px;
    padding: 16px 18px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
}

/* =========================================================
   IOT SENSORGRID TRAINING SLIDER INSIDE DETAILS PAGE
   ========================================================= */

.service-training-section {
    margin-top: 56px;
}

.service-training-card {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 28px;
    align-items: center;

    padding: 40px;
    border: 1px solid #dddddd;
    border-radius: 14px;
    background: #ffffff;
}

.service-training-label {
    margin: 0 0 8px;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
}

.service-training-text h2 {
    margin: 0 0 16px;
    padding: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.7px;
    color: #000000;
}

.service-training-text p {
    margin: 0;
    padding: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.7;
    color: #222222;
}

.service-training-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.service-training-tags span {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 14px;
    line-height: 1;
    color: #333333;
    background: #fafafa;
}

.service-training-media {
    width: 100%;
}

.service-training-slider {
    position: relative;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 4 / 3;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.service-training-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    object-position: center center;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.45s ease;
    display: block;
}

.service-training-slide.active {
    opacity: 1;
}

.service-training-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;

    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dddddd;

    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: #222222;
}

/* =========================================================
   IOT SENSORGRID DETAILS PAGE
   ========================================================= */

.service-page {
    width: 1210px;
    max-width: calc(100% - 64px);
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 110px;
    font-family: Helvetica, Arial, sans-serif;
    color: #000000;
}

.service-header {
    max-width: 880px;
    margin-bottom: 48px;
}

.service-header h1 {
    margin: 0;
    padding: 0;
    font-size: 42px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: -1.2px;
}

.service-header p {
    margin: 8px 0 0;
    padding: 0;
    font-size: 21px;
    line-height: 30px;
    color: #111111;
}

.service-video-section,
.service-section,
.service-contact-section,
.service-training-section,
.service-examples-section {
    margin-top: 58px;
}

.service-video-section h2,
.service-section h2,
.service-contact-section h2,
.service-examples-section h2 {
    margin: 0 0 22px;
    padding: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.youtube-frame {
    width: 860px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: #f5f5f5;
}

.youtube-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.video-note {
    margin: 14px auto 0;
    max-width: 860px;
    font-size: 15px;
    line-height: 22px;
    color: #666666;
    font-weight: 700;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-grid.service-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    min-height: 165px;
    padding: 18px 17px 16px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
}

.service-card h3 {
    margin: 0 0 9px;
    padding: 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: -0.35px;
    color: #000000;
}

.service-card p {
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    line-height: 20px;
    color: #111111;
}

.service-steps {
    margin: 0;
    padding-left: 42px;
}

.service-steps li {
    margin-bottom: 7px;
    font-size: 19px;
    line-height: 28px;
    color: #111111;
}

.service-contact-section p {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: 19px;
    line-height: 28px;
    color: #111111;
}

.service-contact-section a {
    color: #000000;
    text-decoration: underline;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
}

/* =========================================================
   BLOG PROMO ON HOME PAGE
   ========================================================= */

.blog-promo-section {
    margin-top: 22px;
}

.blog-promo-card {
    padding: 34px 38px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
}

.blog-promo-label {
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.blog-promo-text h2 {
    margin: 0 0 14px;
    padding: 0;
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #000000;
}

.blog-promo-text p:not(.blog-promo-label) {
    margin: 0;
    padding: 0;
    max-width: 820px;
    font-size: 19px;
    line-height: 29px;
    color: #111111;
}

.blog-promo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.blog-promo-tags span {
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 16px;
    color: #333333;
    background: #ffffff;
}

.blog-promo-link {
    display: inline-block;
    margin-top: 24px;
    color: #000000;
    text-decoration: underline;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
}
.blog-promo-card-with-media {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 430px;
    gap: 34px;
    align-items: center;
}

.blog-promo-media {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.blog-promo-preview-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.blog-promo-preview-label {
    margin: 0;
    padding: 12px 14px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #eeeeee;
}

.blog-promo-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    overflow: hidden;
}

.blog-promo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-promo-preview-card h3 {
    margin: 0;
    padding: 13px 14px 15px;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
    color: #000000;
}

@media (max-width: 800px) {
    .blog-promo-card-with-media {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-promo-media {
        justify-content: flex-start;
    }

    .blog-promo-preview-card {
        max-width: 100%;
    }
}

/* =========================================================
   BLOG PAGES
   ========================================================= */

.blog-page,
.blog-post-page {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 72px;
    color: #000000;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 34px;
    color: #000000;
    text-decoration: underline;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
}

.blog-hero {
    padding: 34px 38px 38px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
}

.blog-label,
.blog-post-category,
.blog-card-category {
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.blog-hero h1 {
    margin: 0 0 14px;
    padding: 0;
    font-size: 42px;
    line-height: 50px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #000000;
}

.blog-hero p:not(.blog-label) {
    margin: 0;
    padding: 0;
    max-width: 780px;
    font-size: 20px;
    line-height: 32px;
    color: #111111;
}

.blog-list-section {
    margin-top: 28px;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.blog-list-card {
    min-height: 245px;
    padding: 24px 24px 22px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;

    display: flex;
    flex-direction: column;
}

.blog-list-card:hover {
    text-decoration: none;
}

.blog-list-card:hover h2,
.blog-list-card:hover strong {
    text-decoration: underline;
}

.blog-list-card h2 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 26px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000000;
}

.blog-card-excerpt {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 26px;
    color: #111111;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: auto;
    padding-top: 26px;
}

.blog-card-footer span {
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: #777777;
}

.blog-card-footer strong {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: #000000;
}

/* =========================================================
   SINGLE BLOG POST
   ========================================================= */

.blog-post-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 42px 46px 50px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
}

.blog-post-header {
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eeeeee;
}

.blog-post-header h1 {
    margin: 0 0 14px;
    padding: 0;
    font-size: 44px;
    line-height: 56px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #000000;
}

.blog-post-date {
    margin: 0 0 20px;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #777777;
}

.blog-post-excerpt {
    margin: 0;
    padding: 0;
    max-width: 760px;
    font-size: 20px;
    line-height: 32px;
    color: #111111;
}

.blog-post-content {
    font-size: 18px;
    line-height: 34px;
    color: #111111;
}

.blog-post-content h2 {
    margin: 38px 0 14px;
    padding: 0;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000000;
}

.blog-post-content p {
    margin: 0 0 20px;
    padding: 0;
}

.blog-post-content ul {
    margin: 0 0 24px;
    padding: 0 24px 0 0;
}

.blog-post-content li {
    margin-bottom: 10px;
}

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

@media (max-width: 1280px) {
    .page,
    .case-page,
    .archive-page,
    .credentials-page,
    .service-page {
        max-width: calc(100% - 48px);
    }

    .coursework-row,
    .certifications-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .archive-grid,
    .credentials-grid {
        grid-template-columns: repeat(auto-fill, 205px);
    }
}

@media (max-width: 800px) {
    .page {
        max-width: calc(100% - 36px);
        padding-top: 42px;
    }

    .identity-row {
        margin-left: 0;
    }

    .profile-image {
        width: 96px !important;
        height: 96px !important;
        min-width: 96px !important;
        min-height: 96px !important;
        max-width: 96px !important;
        max-height: 96px !important;
        flex-basis: 96px;
    }

    .identity-text {
        margin-left: 22px;
    }

    .identity-text h1 {
        font-size: 30px;
        line-height: 34px;
    }

    .email {
        font-size: 17px;
        line-height: 22px;
    }

    .bio {
        margin-top: 34px;
        font-size: 18px;
        line-height: 26px;
    }

    .social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .coursework-section h2,
    .featured-certifications-section h2,
    .highlights-section h2,
    .projects-section h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .coursework-row,
    .certifications-row {
        grid-template-columns: 1fr;
    }

    .course-card,
    .certification-card {
        height: auto;
        min-height: 210px;
    }

    .course-card h3,
    .course-title,
    .course-description,
    .certification-card h3,
    .certification-subtitle,
    .certification-description {
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .classic-highlight-carousel {
        width: 100%;
        height: 280px;
    }

    .highlight-caption h3 {
        font-size: 17px;
        line-height: 21px;
    }

    .highlight-caption p {
        font-size: 12.5px;
        line-height: 16.5px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: auto;
        min-height: 0;
    }

    .project-image-wrapper {
        width: 100%;
        height: 280px;
    }

    .sensorgrid-home-card,
    .youtube-classic-card {
        grid-template-columns: 1fr;
        padding: 24px 22px 26px;
        gap: 22px;
    }

    .sensorgrid-home-text h2,
    .youtube-classic-text h2,
    .blog-promo-text h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .sensorgrid-home-description,
    .youtube-classic-description,
    .blog-promo-text p:not(.blog-promo-label) {
        font-size: 16.5px;
        line-height: 25px;
    }

    .sensorgrid-home-media {
        justify-content: flex-start;
    }

    .sensorgrid-example-card,
    .youtube-classic-video-card {
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    .youtube-classic-tags,
    .sensorgrid-home-tags,
    .blog-promo-tags {
        gap: 7px;
    }

    .youtube-classic-player {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .youtube-classic-video-card h3 {
        font-size: 15px;
        line-height: 20px;
    }

    .blog-promo-card {
        padding: 24px 22px 26px;
    }

    .case-page,
    .archive-page,
    .credentials-page,
    .service-page {
        max-width: calc(100% - 36px);
        padding-top: 32px;
    }

    .case-header h1,
    .service-header h1 {
        font-size: 34px;
        line-height: 40px;
    }

    .case-header p {
        font-size: 20px;
        line-height: 26px;
    }

    .service-header p {
        font-size: 18px;
        line-height: 27px;
    }

    .case-top-media {
        width: 100%;
        margin: 24px auto 42px;
    }

    .case-top-media img {
        max-height: 360px;
    }

    .case-summary p,
    .case-section p,
    .service-contact-section p {
        font-size: 17px;
        line-height: 26px;
    }

    .case-section li,
    .service-steps li {
        font-size: 17px;
        line-height: 25px;
    }

    .case-section ol,
    .service-steps {
        padding-left: 26px;
    }

    .case-media-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .case-media-grid figure,
    .case-media-grid figure:has(img[src*="system-architecture"]),
    .case-media-grid figure:has(img[src*="block-diagram"]),
    .case-media-grid figure:has(img[src*="web-dashboard"]),
    .case-media-grid figure:has(img[src*="firebase-data-logging"]) {
        grid-column: auto;
    }

    .case-media-grid img,
    .case-media-grid img[src*="system-architecture"],
    .case-media-grid img[src*="block-diagram"],
    .case-media-grid img[src*="web-dashboard"],
    .case-media-grid img[src*="firebase-data-logging"] {
        width: auto;
        max-width: 100%;
        max-height: 340px;
        object-fit: contain !important;
    }

    .archive-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .archive-card,
    .credential-card {
        width: 100%;
        height: auto;
        min-height: 205px;
    }

    .archive-card h3,
    .archive-subtitle,
    .archive-description,
    .credential-card h2,
    .credential-subtitle,
    .credential-description {
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .service-grid,
    .service-grid.service-grid-3,
    .service-examples-grid {
        grid-template-columns: 1fr;
    }

    .service-example-small-card img {
        height: 260px;
    }

    .service-training-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 22px;
    }

    .service-training-text h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .service-training-text p {
        font-size: 16.5px;
        line-height: 25px;
    }

    .service-training-slider {
        min-height: 260px;
    }

    .blog-page,
    .blog-post-page {
        width: calc(100% - 36px);
        padding: 32px 0 56px;
    }

    .blog-back-link {
        margin-bottom: 24px;
    }

    .blog-hero {
        padding: 26px 22px 28px;
    }

    .blog-hero h1 {
        font-size: 34px;
        line-height: 42px;
    }

    .blog-hero p:not(.blog-label) {
        font-size: 17px;
        line-height: 28px;
    }

    .blog-list-grid {
        grid-template-columns: 1fr;
    }

    .blog-list-card {
        min-height: auto;
        padding: 22px 20px 20px;
    }

    .blog-list-card h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-post-article {
        padding: 28px 22px 34px;
    }

    .blog-post-header h1 {
        font-size: 34px;
        line-height: 44px;
    }

    .blog-post-excerpt {
        font-size: 17px;
        line-height: 28px;
    }

    .blog-post-content {
        font-size: 17px;
        line-height: 31px;
    }

    .blog-post-content h2 {
        font-size: 25px;
        line-height: 33px;
    }

}

/* =========================================================
   BLOG ARTICLE IMAGES - FIXED
   ========================================================= */

.blog-post-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    direction: rtl;
    text-align: right;
}

.blog-post-content p {
    line-height: 2;
}

.blog-post-content figure {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 34px auto;
    padding: 0;
    text-align: center;
    direction: ltr;
    overflow: visible;
}

.blog-post-content figure img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 360px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 6px;
    background: #ffffff;
}

.blog-post-content figure img[src*="iot-components-architecture"] {
    width: 600px !important;
    max-width: 100% !important;
    max-height: 260px !important;
}

.blog-post-content figure img[src*="smart-home-iot-example"] {
    width: 460px !important;
    max-width: 100% !important;
    max-height: 360px !important;
}

.blog-post-content figcaption {
    max-width: 620px;
    margin: 12px auto 0;
    padding: 0;
    direction: ltr;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    color: #666666;
}

/* Compatibility with earlier classes if they remain in the article HTML */
.blog-post-content .blog-article-image,
.blog-post-content .blog-article-image-small {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 34px auto;
    padding: 0;
    text-align: center;
    direction: ltr;
}

.blog-post-content .blog-article-image img {
    width: 600px !important;
    max-width: 100% !important;
}

.blog-post-content .blog-article-image-small img {
    width: 460px !important;
    max-width: 100% !important;
}

@media (max-width: 800px) {
    .blog-post-content {
        max-width: 100%;
    }

    .blog-post-content figure,
    .blog-post-content .blog-article-image,
    .blog-post-content .blog-article-image-small {
        max-width: 100%;
        margin: 28px auto;
    }

    .blog-post-content figure img,
    .blog-post-content .blog-article-image img,
    .blog-post-content .blog-article-image-small img,
    .blog-post-content figure img[src*="iot-components-architecture"],
    .blog-post-content figure img[src*="smart-home-iot-example"] {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
    }
    /* =========================================================
   FORCE ENGLISH BLOG POST LTR
   ========================================================= */

    html[dir="ltr"] body,
    body[dir="ltr"],
    .blog-post-page,
    .blog-post-article,
    .blog-post-header,
    .blog-post-content {
        direction: ltr !important;
        text-align: left !important;
        unicode-bidi: normal !important;
    }

    .blog-post-content *:not(figure):not(img):not(figcaption) {
        direction: ltr !important;
        text-align: left !important;
        unicode-bidi: normal !important;
    }

    .blog-post-content p,
    .blog-post-content li,
    .blog-post-content h2,
    .blog-post-content h3 {
        direction: ltr !important;
        text-align: left !important;
    }

    .blog-post-content ul,
    .blog-post-content ol {
        direction: ltr !important;
        text-align: left !important;
        padding-left: 28px !important;
        padding-right: 0 !important;
    }

    .blog-post-content figure {
        direction: ltr !important;
        text-align: center !important;
    }

    .blog-post-content figcaption {
        direction: ltr !important;
        text-align: center !important;
    }

}
