/* --- 기본 설정 (Variables & Reset) --- */
:root {
    --main-color: #CE181E;
    --sub-color-1: #7C8D97;
    --sub-color-2: #89724F;
    --font-family: 'Pretendard', sans-serif;
    --nav-width: 1600px;
    --content-width: 1400px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    color: #333;
    overflow-x: hidden;
}

/* --- 타이포그래피 설정 --- */
h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}

p {
    line-height: 1.6;
}

/* --- 공통 유틸리티 --- */
.w-nav {
    max-width: var(--nav-width);
    margin: 0 auto;
}

.w-content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.btn-custom {
    border-radius: 3px;
    padding: 5px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-main {
    border: 1px solid var(--sub-color-1);
    color: #333;
}

.btn-outline-main:hover {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

.text-main {
    color: var(--main-color);
}

.text-sub1 {
    color: var(--sub-color-1);
}

br.mobile-br {
    display: none;
}

@media (max-width: 992px) {
    br.mobile-br {
        display: block;
    }

    br.pc-br {
        display: none;
    }

}

/* --- 1. 헤더 (Navigation & Mega Menu) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    background-color: transparent;
    height: 90px;
    border-bottom: none;
}

header.header-scrolled,
header.header-hover {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

header.header-hover {
    height: 400px !important;
}

header.header-scrolled .navbar-brand,
header.header-hover .navbar-brand {
    color: var(--main-color) !important;
}

header.header-scrolled .nav-link,
header.header-hover .nav-link {
    color: #333 !important;
}

header.header-scrolled .nav-link:hover,
header.header-hover .nav-link:hover {
    color: var(--main-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:active,
.navbar-toggler:focus {
    border: none !important;
    box-shadow: none;
}

.navbar-brand {
    color: #fff !important;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0;
}

.navbar-brand img {
    height: 30px;
}

.navbar-nav {
    gap: 50px;
    width: fit-content;
}

.nav-link {
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    padding: 0;
}

.nav-link:hover {
    opacity: 0.8;
}

@media (min-width: 992px) {
    #mainNav .dropdown-menu {
        display: block !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 180px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 0 0 0;
        margin-top: 0;
        background: transparent;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    header.header-hover #mainNav .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

.dropdown-item {
    padding: 8px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
    background: transparent !important;
    transition: color 0.2s;
}

.dropdown-item:hover {
    color: var(--main-color);
    text-decoration: none;
}

.nav-link.dropdown-toggle::after {
    display: none;
}

.lang-nav .dropdown-menu {
    display: none;
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    background: #fff;
    min-width: 100px;
    left: auto;
    right: 0;
    transform: none;
}

.lang-nav .dropdown-menu.show {
    display: block;
}

.lang-nav .dropdown-item {
    padding: 8px 20px;
    text-align: left;
    color: #333;
}

.lang-nav .dropdown-item:hover {
    color: var(--main-color);
}

.lang-nav .nav-link {
    font-size: 16px;
}

.lang-nav .nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
}

.lang-nav .nav-link.show {
    color: var(--main-color) !important;
}

/* --- 2. 메인 비주얼 (Hero with Video) --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: #000;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
}

.scroll-down::before {
    content: '';
    width: 20px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.scroll-down::after {
    content: '';
    width: 2px;
    height: 6px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: mouseAni 1.5s infinite;
}

@keyframes mouseAni {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@media (max-width: 991px) {

    .hero-video {
        object-position: 25% center;
    }
}

/* --- 3. Core Values 섹션 --- */
.value-section {
    padding: 0;
    overflow: visible;
    min-height: 100vh;
}

.value-row {
    display: flex;
    width: 100%;
    position: relative;
}

.value-text-col {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
}

.value-text-inner {
    max-width: 600px;
    margin-left: auto;
    padding-right: 50px;
}

.core-label {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d20e1b;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.value-scroll-col {
    flex: 1;
}

.value-stage {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-position 0.1s ease-out;
}

.value-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.stage-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 2s 0.3s ease;
}

.value-stage.active .stage-content {
    text-align: left;
    padding-left: 100px;
    opacity: 1;
    transition: opacity 2s 0.3s ease;
}

.stage-content h3 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.stage-content p {
    font-size: 16px;
    margin: 0 0 30px 0;
    line-height: 1.8;
    word-break: keep-all;
}

.stage-content .btn-custom {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    padding: 5px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none;
}

.stage-content .btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.stage-content .btn-custom:hover {
    border-color: var(--main-color);
    padding-right: 50px;
    padding-left: 20px;
    color: var(--main-color);
}

.stage-content .btn-custom:hover::before {
    width: 100%;
}

.stage-content .btn-custom::after {
    content: '→';
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: sans-serif;
    font-weight: 300;
}

.stage-content .btn-custom:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 991px) {
    .stage-content h3 {
        font-size: 28px;
    }

    .value-stage.active .stage-content {
        padding-left: 15px;
        text-align: center;
    }

}

/* --- 4. 하단 3단 링크 섹션 --- */
.bottom-links-wrap {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.bottom-links {
    display: flex;
    width: 100%;
    flex: 1;
}

.link-item {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
    z-index: 1;
}

.link-item:hover::before {
    background: rgb(207 0 14 / 65%);
}

.link-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.link-content h3 {
    margin-bottom: 10px;
    font-weight: 700;
}

.icon-frame {
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-frame i {
    font-size: 32px;
}

.link-content .btn-custom {
    border: 1px solid #fff;
    border-radius: 3px;
}

/* --- 5. 푸터 --- */
footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 60px 0;
    font-size: 14px;
    text-align: left;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-logo img {
    height: 25px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    opacity: 1;
}

footer .info-row {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

footer .info-label {
    font-weight: 700;
    width: 100px;
    flex-shrink: 0;
    color: #fff;
}

footer .info-content {
    color: #ccc;
    flex: 1;
}

footer .info-content a {
    color: inherit !important;
    text-decoration: none !important;

}


footer .copyright {
    color: #ccc;
    font-size: 13px;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .value-row {
        flex-direction: column;
        min-height: auto;
    }

    .value-text-col {
        position: relative;
        height: auto;
        padding: 60px 20px;
    }

    .value-text-inner {
        margin: 0 auto;
        padding-right: 0;
        text-align: center;
    }

    .value-stage {
        height: 400px;
    }

    .bottom-links {
        flex-direction: column;
        height: auto;
    }

    .link-item {
        height: 250px;
    }

    h1 {
        font-size: 28px;
        word-break: keep-all;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }

    footer .info-content {
        font-size: 14px;
    }

}

/* --- 6. 서브 페이지 공통 --- */
.sub-visual {
    height: 520px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.sub-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.sub-visual .container {
    position: relative;
    z-index: 2;
}

.sub-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
}

@media (max-width: 991px) {
    .sub-title {
        font-size: 36px;
    }
}

/* 서브 네비게이션 */
.sub-nav-wrap {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    z-index: 900;
}

.sub-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-nav li a {
    display: block;
    padding: 20px 55px;
    font-size: 18px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.sub-nav li.active a {
    color: #333;
    font-weight: 700;
}

.sub-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--sub-color-2);
}

.sub-nav li a:hover {
    color: #333;
}

@media (max-width: 991px) {
    .sub-visual {
        height: 280px;
    }

    .sub-nav li a {
        padding: 20px 30px;
    }
}

/* --- 7. 서브 페이지 콘텐츠 (공통) --- */
.section-padding {
    padding-top: 200px;
    padding-bottom: 200px;
}

.sub-page-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
}

.sub-page-title .text-primary {
    color: var(--main-color) !important;
}

.sub-visual-content {
    margin-bottom: 150px;
    overflow: hidden;
    width: 100%;
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sub-page-desc {
    margin-top: 50px;
}

.sub-body {
    margin: 0 auto;
    text-align: left;
}

.sub-text {
    font-size: 18px;
    line-height: 2;
    color: #444;
    word-break: keep-all;
    margin-bottom: 100px;
}

.signature-img {
    height: 50px;
    margin-left: 15px;
}

.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

@media (max-width: 991px) {
    .section-padding {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .sub-page-title {
        font-size: 20px;
    }

    .sub-page-desc {
        font-size: 14px;

    }

    .sub-text {
        text-align: center;
    }

    .signature {
        font-size: 20px;
    }

    .signature-img {
        height: 35px;
        margin-left: 15px;
    }
}


/* 애니메이션 유틸리티 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-simple {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.fade-in-simple.visible {
    opacity: 1;
}

/* --- 8. 공통 정보 레이아웃 (Location & Affiliates) --- */
.location-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.info-layout-row {
    display: flex;
    align-items: flex-start;
    padding: 60px 0;
}

.info-title-box {
    width: 300px;
    flex-shrink: 0;
}

.info-title-box h4 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.info-details-box {
    flex-grow: 1;
    padding-right: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 120px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
    font-size: 18px;
}

.info-content {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
}

.info-action-box {
    flex-shrink: 0;
}

.btn-map-toggle {
    background-color: var(--main-color);
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.btn-map-toggle:hover {
    background-color: #b0151a;
}

.map-container {
    width: 100%;
    border: 1px solid #eee;
    overflow: hidden;
}

@media (max-width: 991px) {
    .info-layout-row {
        flex-direction: column;
        padding: 40px 0;
    }

    .info-title-box {
        width: 100%;
        margin-bottom: 25px;
    }

    .info-title-box h4 {
        font-size: 26px;
    }

    .info-details-box {
        width: 100%;
        padding-right: 0;
        margin-bottom: 25px;
    }

    .info-label {
        width: 90px;
        font-size: 16px;
    }

    .info-content {
        font-size: 16px;
    }

    .info-action-box {
        width: 100%;
    }

    .btn-map-toggle {
        width: 100%;
        padding: 14px 0;
    }
}

/* --- 9. 사업소개 - 자원순환 경쟁력 --- */
.competitiveness-section {
    height: 680px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

.competitiveness-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.competitiveness-section .container {
    position: relative;
    z-index: 2;
}

.competitiveness-section h4 {
    font-size: 48px;
    letter-spacing: -1px;
}

.competitiveness-section p {
    font-size: 18px;
    line-height: 1.8;
    word-break: keep-all;
}

@media (max-width: 991px) {
    .competitiveness-section {
        height: auto;
        min-height: 400px;
        padding: 60px 15px;
    }

    .competitiveness-section h4 {
        font-size: 28px;
        margin-bottom: 20px !important;
    }

    .competitiveness-section .lead {
        font-size: 18px;
    }

    .competitiveness-section p {
        font-size: 15px;
    }
}

/* --- 10. 사업소개 - ESG 경영 --- */
.esg-section {
    margin-bottom: 150px;
}

.esg-section:last-child {
    margin-bottom: 250px;
}

.esg-img-wrap {
    overflow: hidden;
}

.esg-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.esg-desc {
    font-size: 20px;
    color: #444;
    font-weight: 500;
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 991px) {
    .esg-section {
        margin-bottom: 80px;
    }

    .esg-section:last-child {
        margin-bottom: 120px;
    }

    .esg-title {
        font-size: 28px;
        margin-top: 20px;
    }

    .esg-desc {
        font-size: 16px;
    }
}

/* Product Page Text Muted Override */
.sub-content .text-muted {
    color: #111 !important;
}

/* Process Page Styles */
.process-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
    aspect-ratio: 1 / 1;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.process-arrow {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    z-index: 10;
}

@media (max-width: 991px) {
    .process-arrow {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .process-card {
        padding: 0.5rem !important;
    }

    .process-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem !important;
    }

    .process-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0 !important;
    }

    .process-card span {
        font-size: 0.7rem;
        display: block;
        line-height: 1.2;
    }
}

@media (min-width: 992px) {
    .process-card i {
        font-size: 4rem !important;
    }

    .process-card h4 {
        font-size: 1.8rem !important;
    }

    .process-card span {
        font-size: 1.1rem !important;
    }
}

/* Affiliate Page Styles */
.affiliate-col {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 50px;
}

.affiliate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.affiliate-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.affiliate-content ul li {
    font-size: 18px;
}

@media (max-width: 768px) {
    .affiliate-col {
        height: auto;
        padding: 40px 20px;
    }
}

/* Refactored Relative Page Styles (Flexbox) */
.relative-wrap {
    width: 100%;
}

.relative-item {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    display: flex;
    position: relative;
}

.relative-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.relative-item-left {
    justify-content: flex-end;
}

.relative-item-right {
    justify-content: flex-end;
}

.relative-text-box {
    width: 700px;
    max-width: 100%;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.relative-text-box h3 {
    font-size: 42px;
    margin-bottom: 40px !important;
    font-weight: 800;
}

.relative-text-box ul li {
    font-size: 24px;
    line-height: 2.2;
    font-weight: 500;
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .relative-item {
        height: auto;
        padding: 80px 0;
        justify-content: center;
    }

    .relative-text-box {
        width: 100%;
        padding: 0 30px;
        text-align: center;
    }

    .relative-text-box ul li {
        font-size: 18px;
    }

    .relative-text-box h3 {
        font-size: 32px;
    }
}

/* Sourcing Page Styles */
.sourcing-title {
    font-size: 24px;
    letter-spacing: 1px;
}

.sourcing-item {
    padding: 150px 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.sourcing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    transition: background 0.3s ease;
}

.sourcing-item:hover .sourcing-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.sourcing-text h4 {
    font-size: 28px;
}

.sourcing-text ul li {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-details .label {
    color: #333;
}

.contact-details .content {
    color: #555;
}

@media (max-width: 768px) {
    .sourcing-subtitle {
        font-size: 24px;
    }

    .sourcing-item {
        padding: 60px 0;
    }
}

/* Animation Timing Adjustments */
.sub-title.fade-in-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.sub-header.fade-in-up,
.sub-page-title.fade-in-up {
    animation-delay: 0.4s;
}

/* Contact Page Styles */
.contact-form-section .form-label {
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-form-section .form-control {
    border-radius: 3px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 15px;
}

.contact-form-section .form-control:focus {
    border-color: #CE181E;
    box-shadow: none;
}

.contact-form-section textarea.form-control {
    resize: none;
}

.contact-form-section .btn-danger {
    transition: all 0.3s ease;
}

.contact-form-section .btn-danger:hover {
    background-color: #b0151a !important;
}

/* Mobile Header & Menu Styles */
@media (max-width: 991px) {

    .nav-link,
    .dropdown-item,
    .btn-close-white {
        -webkit-tap-highlight-color: transparent;
        outline: none !important;
    }

    .navbar {
        padding: 0;
    }

    header {
        height: 60px !important;
        padding: 10px 0 !important;
        background-color: transparent !important;
    }

    header.header-scrolled {
        background-color: #fff !important;
    }

    .navbar-brand img {
        height: 20px !important;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--main-color) !important;
        z-index: 9999;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 50px;
        padding-top: 50px;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        border: none;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        width: 100%;
        gap: 25px;
        margin: 0 !important;
    }

    .nav-link {
        font-size: 32px !important;
        font-weight: 800 !important;
        color: #fff !important;
        text-align: left;
        padding: 0 !important;
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        display: block !important;
        position: static;
        float: none;
        width: 100%;
        padding: 0 0 0 20px !important;
        margin: 0 !important;
        background-color: transparent !important;
        border: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.4s ease-in-out !important;
    }

    .dropdown-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px !important;
        padding: 10px 0 10px 20px !important;
    }

    .dropdown-item {
        font-size: 24px !important;
        font-weight: 600 !important;
        color: #FFF !important;
        text-align: left !important;
        padding: 8px 0 !important;
        background: transparent !important;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        color: #fff !important;
    }

    .nav-link.dropdown-toggle::after {
        display: inline-block !important;
        margin-left: 10px;
        vertical-align: middle;
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }

    .mobile-lang-nav {
        margin-top: 40px;
        display: flex;
        align-items: center;
    }

    .mobile-lang-nav a {
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 18px;
        font-weight: 700;
        border-bottom: 2px solid transparent;
        padding-bottom: 2px;
    }

    .mobile-lang-nav a.active {
        color: #fff;
        border-bottom: 2px solid #fff;
    }

    .btn-close-white {
        filter: invert(1) grayscale(100%) brightness(200%);
        opacity: 1;
        width: 2em;
        height: 2em;
        z-index: 10000;
    }

    header.header-scrolled .nav-link,
    header.header-hover .nav-link {
        color: #fff !important;
    }

    header.header-scrolled .nav-link:hover,
    header.header-hover .nav-link:hover {
        color: #e5e5e5 !important;
    }

    .nav-link:focus-visible {
        box-shadow: none;

    }
}