/* ========================================
   SSI JAPAN - Global Styles
   Mobile-First Approach
   ======================================== */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #215E99;
    --dark-blue: #1E4A6F;
    --light-blue: #4A90C8;
    --accent-blue: #3B7AB5;
    --white: #FFFFFF;
    --light-gray: #EBF7FF;
    --gray: #272727;
    --dark-gray: #231F20;
    --border-gray: #E0E0E0;
    --neutral-lighter-grey: #E6E8EC;
    
    /* Typography */
    --font-primary: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 20px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 20px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-base: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   Layout Components
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    overflow: hidden;
}

main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background-color: var(--white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    height: 40px;
    width: auto;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle__line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-toggle.active .nav-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    transition: right var(--transition-base);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    z-index: -1;
}

.nav.active {
    right: 0;
}

.nav__logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.nav__logo-img {
    height: 40px;
    width: auto;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--radius-lg);
    background-color: transparent;
}

.nav__item {
    width: 100%;
    text-align: center;
}

.nav__link {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding: var(--spacing-sm);
    transition: color var(--transition-base);
}
.nav__link.active {
    color: var(--gray);
}
.nav__link:hover,
.nav__link:focus {
    color: var(--light-blue);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231E4A6F" width="1200" height="600"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--neutral-lighter-grey);
    font-weight: 400;
    line-height: 135%;
}

/* Hero with background image */
.hero--with-image {
    background: none;
}

.hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 74, 111, 0.75);
    z-index: 1;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--primary-blue);
    color: var(--white);
}
.btn--icon {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-2xl);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: #979797;
    color: var(--white);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--dark-gray);
}

.btn--outline {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn--outline:hover,
.btn--outline:focus {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ========================================
   Cards & Grid
   ======================================== */
.cards-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 1fr;
}

.card {
    /* background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm); */
    transition: all var(--transition-base);
}
.card--position {
    position: relative;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px dashed #215E99;
}

/* .card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
} */

.card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);

    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    background: var(--primary-blue);
}

.card__title--position {
    width: calc(100% - 40px);
    position: absolute;
    top: -20px; /* Đẩy tiêu đề lên trên, nằm đè lên viền */
    left: 50%; /* Bắt đầu từ giữa container */
    transform: translateX(-50%); /* Dịch chuyển ngược lại 50% chiều rộng của chính nó để căn giữa */
    z-index: 10; /* Đảm bảo nó nằm trên các phần tử khác */
}

.card__content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
}
.card--white {
    background-color: var(--white);
}
.card__content p:last-child {
    margin-bottom: 0;
}
.card--position .card__content {
    padding-top: var(--spacing-md);
}
.card__content__span_title {
    color: var(--primary-blue);
}
.card__content__ul_disc, .card__content__ul_disc__wrapper ul {
    list-style: disc;
    margin-left: var(--container-padding);
}
.card__content__ul_tick, .card__content__ul_tick__wrapper ul {
    margin-left: var(--container-padding);
}
.card__content__ul_tick li, .card__content__ul_tick__wrapper ul li {
    position: relative;
    padding-left: var(--container-padding);
    padding-bottom: 12px;
    color: var(--dark-gray);
}
.card__content__ul_tick li:last-child {
    padding-bottom: 0;
}
.card__content__ul_tick__wrapper ul li:last-child {
    padding-bottom: 0;
}
.card__content__ul_tick li::before {
    content: url('../images/tick.svg');
    position: absolute;
    left: calc(-1 * var(--container-padding));
    width: 11.302px;
    height: 8.22px;
    top: 5px;
}
.card__content__ul_tick__wrapper ul li::before {
    content: url('../images/tick.svg');
    position: absolute;
    left: calc(-1 * var(--container-padding));
    width: 11.302px;
    height: 8.22px;
    top: 5px;
}

/* ========================================
   Content Sections
   ======================================== */
.content-section {
    padding: var(--spacing-xxxl) 0;
    overflow: hidden;
    max-width: 100%;
}
.content-section img {
    max-width: 100%;
    height: auto;
}

/* Model image specific styles - only for old layout */
.content-section > img[alt="model"] {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}
.content-section.content-section--second {
    padding-top: 0;
}

.content-section--gray {
    background-color: var(--light-gray);
}

.content-section--blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}
.section__subtitle {
    margin-bottom: var(--spacing-xxxl);
}

.content-section--blue .section__title {
    color: var(--white);
}

.content-section--blue .section__title::after {
    background-color: var(--white);
}

/* ========================================
   Forms
   ======================================== */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: var(--spacing-md);
}

.form__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.form__label--required::after {
    content: ' *';
    color: #EF4438;
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--spacing-sm);
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
    background-color: var(--white);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 95, 140, 0.1);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

.form__select {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.form__checkbox-input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form__checkbox-label {
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
}
.form__checkbox-label a {
    text-decoration: underline;
}
.form__error {
    color: #E74C3C;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form__buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}
.form__buttons .btn {
    display: flex;
    height: 48px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
}
#btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================================
   Offshore Development Model
   ======================================== */
/* Mobile: Stack layout (default) */
.offshore-model-row1 {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.offshore-model-image {
    width: 100%;
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    width: calc(100% + 2 * var(--container-padding));
}

.offshore-model-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.offshore-model-text {
    width: 100%;
}

.offshore-model-row2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

/* ========================================
   patterm
   ======================================== */
   .content-patterm {
    position: relative;
    height: 208px;
    margin-top: -120px;
    z-index: 1;
    max-width: 100%;
}
   .patterm1 {
    position: absolute;
    width: 100%;
    max-width: 100%;
   }
   .patterm1 img {
    width: 100%;
    max-width: 100%;
    height: auto;
   }
   .patterm2 {
    position: absolute;
    right: 0;
    top: 5px;
    max-width: 50%;
   }
   .patterm2 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 102px;
   }
 .content-section-contact-bg {
    position: relative;
    height: 208px;
    overflow: hidden;
    max-width: 100%;
 }
 .content-section-contact-bg img {
    position: absolute;
    max-width: 100%;
    height: auto;
 }
 .content-section-contact-bg img:first-child {
    bottom: 0;
    left: 0;
    height: 168px;
    transform: rotate(359deg);
 }
 .content-section-contact-bg img:last-child {
    bottom: -27px;
    left: 30px;
    height: 166px;
    transform: rotate(358deg);
 }
/* ========================================
   Contact
   ======================================== */
.content-section.contact-section {
    padding-top: 0; padding-bottom: 0;
}
.contact-section-desc {
    color: #666; font-size: 1rem; line-height: 1.8
}
.contact-section-contact {
    padding-bottom: var(--spacing-xxxl)!important;
}
.content-section-2xl {
    padding: var(--spacing-2xl) 0;
}
.content-section-2xl .section__title {
    margin-bottom: var(--spacing-2xl);
}
.content-section-2xl .card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.card--position.card--F2A982 {
    border-color: #F2A982;
}
.card--F2A982 .card__title {
    background-color:#F2A982;
}

.card--position.card--4EA72E {
    border-color: #4EA72E;
}
.card--4EA72E .card__title {
    background-color:#4EA72E;
}
.content-section--F7FCFF {
    background-color: #F7FCFF;
}
/* ========================================
   Our team
   ======================================== */
.card-team {
    padding: var(--spacing-md);
    border-radius: var(--spacing-md);
}
.card-info {
    display: flex;
    gap: 16px;
}
.card-info img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 5px;
}
.card-info-ceo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--gray);
}
.ceo-position {
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
}
.ceo-name {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
}
.ceo-text {
    opacity: 0.7;
}
.card-team .card-content {
    padding-top: var(--spacing-lg);
}
.card-team .section__title {
    margin-bottom: var(--spacing-md);
}
.card-team p {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    color: var(--gray);
    text-align: center;
}
.card-team p span {
    font-size: 18px;
    display: block;
    font-weight: 700;
    line-height: 135%;
    color: var(--primary-blue);
    margin-bottom: 8px;
}
.card-team a {
    color: var(--primary-blue);
    text-decoration: underline;
}
.team-icon {
    position: absolute;
    width: 270px;
    height: 100px;
    right: -70px;
    top: -8px;
}
#confirm-service span {
    display: block;
    margin-bottom: 4px;
}
.loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: url('../images/f-bg.svg') no-repeat left top;
    background-size: 100% auto;
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
    margin-top: -70px;
    padding-bottom: 0;
    max-width: 100%;
    width: 100%;
}
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--primary-blue);
}

.footer__bg-top {
    position: absolute;
    top: 35px;
    left: 0;
    max-width: 100%;
    overflow: hidden;
}
.footer__bg-top img {
    max-width: 100%;
    height: auto;
}
.footer__bg-middle {
    position: absolute;
    bottom: -10px;
    left: 0;
}
.footer__bg-middle img {
    zoom: 1.02;
}
.footer__bg-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
}

.footer__content {
    padding-top: 64px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer__brand {
    margin-bottom: var(--spacing-xxxl);
    margin-top: var(--spacing-xs);
}

.footer__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.05em;
}

.footer__tagline {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.8;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xxxl);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all var(--transition-base);
}

.footer__social-link:hover,
.footer__social-link:focus {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.footer__social-icon {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.footer__divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: var(--spacing-md) 0;
}

.footer__copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========================================
   Mobile Footer (Fixed)
   ======================================== */
.mobile-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background-color: var(--white);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 900;
    padding: 12px 0;
    overflow: hidden;
}

.mobile-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.mobile-footer__social-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.mobile-footer__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

.mobile-footer__item:hover,
.mobile-footer__item:focus {
    color: var(--dark-blue);
}

.mobile-footer__icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mobile-footer__text {
    font-size: 0.875rem;
}

/* Hide mobile footer on tablet and desktop only */
@media screen and (min-width: 768px) {
    .mobile-footer {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Tablet Styles (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
    :root {
        --container-padding: 32px;
    }
    
    /* Remove overflow hidden on larger screens */
    .container {
        overflow: visible;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding-top: 0;
        display: flex !important;
    }
    
    .nav::after {
        display: none;
    }
    
    .nav__logo {
        display: none;
    }
    
    .nav__list {
        flex-direction: row;
        gap: var(--spacing-md);
        padding: 0;
    }
    
    .nav__item {
        width: auto;
    }
    
    .nav__link {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-weight: 600;
    }
    
    .nav__link:hover {
        color: var(--light-blue);
    }
    
    .form__buttons {
        justify-content: flex-end;
    }
    
    .btn {
        min-width: 140px;
        max-width: 500px;
        margin: 40px auto 0;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer__title {
        font-size: 2.5rem;
    }
    
    .footer__tagline {
        font-size: 1.1rem;
    }
    
    .footer__social {
        gap: var(--spacing-md);
    }
    
    .footer__social-link {
        width: 56px;
        height: 56px;
    }
    
    .footer__social-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Pattern adjustments for tablet - keep full size like mobile */
    .content-patterm {
        height: 250px;
        margin-top: -140px;
    }
    
    .content-section-contact-bg {
        height: 250px;
    }
    
    /* Better spacing for tablet */
    .hero {
        padding: 60px 0;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .content-section.content-section--second {
        padding-top: 0;
    }
    
    /* Footer adjustments for tablet */
    .footer {
        margin-top: -80px;
    }
    
    .footer__content {
        padding-top: 80px;
    }
    
    .footer::after {
        height: 220px;
    }
    
    /* Footer backgrounds sát lề màn hình - tablet */
    .footer__bg-top {
        left: calc((100vw - 100%) / -2 - 32px);
    }
    
    .footer__bg-middle {
        bottom: -10px;
        left: calc((100vw - 100%) / -2 - 32px);
    }
    
    .footer__bg-bottom {
        bottom: 0;
        right: calc((100vw - 100%) / -2 - 32px);
    }
    
    /* Offshore model - tablet: 2 columns in row 2 */
    .offshore-model-row2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* custom team section */
.card.card-team-wrapper {
    display: grid;
    grid-gap: 20px;
}

@media (min-width: 1024px) {
    /* Mỗi hàng có 2 cột */
    .card.card-team-wrapper {
        grid-template-columns: 1fr 1fr; /* Chia làm 2 cột đều */
    }

    /* Hàng đầu tiên (item đầu tiên chiếm 2 cột) */
    .card.card-team-wrapper article:nth-child(1) {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        height: 100%;
    }
    .card-team.ceo {
        position: relative;
        display: flex;
        background-color: transparent;
    }
    .card-team.ceo .card--inner {
        z-index: 1;
        position: relative;
        top: 0;
        left: 50%;
        width: 50%;
        height: 100%;
        background: #fff;
        border-radius: 16px;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
    }
    .card-team.ceo .card-info {
        margin-left: 10px;
    }
    .card-team.ceo::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 50%;
        height: 100%;
        background: #fff;
        border-radius: 16px;
        transform: translateX(-50%);
    }

    /* Hàng thứ 2, mỗi item chiếm 1 cột */
    .card.card-team-wrapper article:nth-child(2),
    .card.card-team-wrapper article:nth-child(3) {
        grid-column: span 1;
    }
    .card-team .card__content__ul_disc__wrapper ul {
        margin-left: 15px;
    }
    .card-team.ceo .card__content__ul_disc__wrapper ul {
        margin-left: 25px;
    }
}

/* ========================================
   Desktop Styles (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
    :root {
        --container-padding: 40px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero__title {
        font-size: 3rem;
    }

    .section__title {
        font-size: 2.25rem;
    }

    .section__subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: var(--spacing-xxl) 0;
    }

    .contact-section-contact {
        padding-bottom: 170px !important;
    }

    .contact-section-contact .btn {
        margin-top: 0;
    }

    .content-section {
        padding: var(--spacing-xxl) 0;
    }

    .header__logo-img {
        height: 50px;
    }

    .nav__link {
        font-size: 1.05rem;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__subtitle {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .card {
        padding: var(--spacing-lg);
    }

    .card__title {
        font-size: 1.2rem;
    }

    .card__title--position {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .card__content {
        font-size: 1rem;
    }

    .footer {
        padding: var(--spacing-xxl) 0 var(--spacing-xl);
        margin-top: -100px;
    }

    .footer::after {
        height: 250px;
    }

    .footer__content {
        padding-top: 100px;
    }

    .footer__title {
        font-size: 3rem;
    }

    .footer__tagline {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .footer__bg-top {
        top: 170px;
        left: 0 !important;
    }

    .patterm1 {
        max-width: 30%;
        right: 0;
    }

    /* Pattern adjustments for desktop - keep full size like mobile */
    .content-patterm {
        height: 300px;
        margin-top: -160px;
    }

    .content-section-contact-bg {
        height: 300px;
    }

    .content-section-about-bottom {
        padding-bottom: 250px !important;
    }

    /* Footer backgrounds sát lề màn hình - desktop */
    .footer__bg-top {
        left: calc((100vw - 100%) / -2 - 40px);
    }

    .footer__bg-middle {
        bottom: -10px;
        left: calc((100vw - 100%) / -2 - 40px);
    }

    .footer__bg-bottom {
        bottom: 0;
        right: calc((100vw - 100%) / -2 - 40px);
    }

    /* Better spacing for desktop */
    .hero {
        padding: var(--spacing-xxxl) 0;
    }

    .content-section {
        padding: 80px 0;
    }

    .content-section.content-section--second {
        padding-top: 0;
    }

    /* Larger container for wide screens */
    .container {
        max-width: 1400px;
    }

    /* Better card layout for desktop */
    .card--position {
        padding: var(--spacing-xl);
    }

    .card__title--position {
        width: auto;
        min-width: 300px;
        max-width: calc(100% - 80px);
        padding: 12px 24px;
    }

    /* Offshore model - desktop: Row 1 with 2 columns */
    .offshore-model-row1 {
        flex-direction: row;
        gap: var(--spacing-xl);
        align-items: flex-start;
        margin-bottom: var(--spacing-xl);
    }

    .offshore-model-image {
        width: 50%;
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .offshore-model-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: var(--radius-lg);
    }

    .offshore-model-text {
        width: 50%;
        flex-shrink: 0;
    }

    /* Row 2: 2 cards side by side */
    .offshore-model-row2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    /* Adjust section spacing */
    .offshore-model-section {
        padding-bottom: var(--spacing-xl) !important;
    }

    .offshore-contracts-section {
        padding-top: var(--spacing-xl) !important;
    }
}

    /* ========================================
       Extra Large Desktop (min-width: 1440px)
       ======================================== */
    @media (min-width: 1440px) {
        .container {
            max-width: 1600px;
        }

        .content-patterm {
            height: 245px;
            margin-top: -180px;
        }

        .content-section-contact-bg {
            height: 350px;
        }

        /* Better spacing for extra large screens */
        .hero {
            padding: 100px 0;
        }

        .content-section {
            padding: 100px 0;
        }

        body .page-main {
            padding-bottom: 200px !important;
        }

        .contact-section-contact {
            padding-bottom: 170px !important;
        }

        .content-section.content-section--second {
            padding-top: 0;
        }

        /* Footer for extra large screens */
        .footer {
            margin-top: -220px;
        }

        .footer__content {
            padding-top: 120px;
        }

        .footer::after {
            height: 280px;
        }

        .footer__title {
            font-size: 3.5rem;
        }

        .footer__tagline {
            font-size: 1.3rem;
            max-width: 900px;
        }

        .footer__bg-top {
            left: calc((100vw - 1600px) / -2 - 40px);
        }

        .footer__bg-middle {
            bottom: -50px;
            left: calc((100vw - 1600px) / -2 - 40px);
        }

        .footer__bg-bottom {
            bottom: -50px;
            right: calc((100vw - 1600px) / -2 - 40px);
        }
    }
