/* Homepage styles - reference business-462 layout */
body.corp-home {
    --ref-navy: #333570;
    --ref-navy-hover: #3e407c;
    --ref-text: #373737;
    --ref-muted: #8b95a0;
    --ref-border: #ededed;
    --ref-footer: #252525;
    --ref-content: 1200px;
    overflow-x: hidden;
}

body.corp-home .container {
    max-width: var(--ref-content);
    width: 100%;
}

/* Hero full width (avoid 100vw – causes horizontal scrollbar on Windows) */
body.corp-home .corp-hero {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}

body.corp-home .corp-hero .caption-wraper {
    left: 8%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
    max-width: 520px;
}

body.corp-home .corp-hero .slide_title {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    animation: corpFadeRight 0.8s ease both;
}

body.corp-home .corp-hero .slide_content {
    font-size: 18px;
    line-height: 1.7;
    margin-top: 15px;
    animation: corpFadeLeft 0.8s ease 0.5s both;
}

/* Nav - reference white bold links */
body.corp-home .corp-navbar .navbar-nav > li > a,
body.corp-ir-hero .corp-navbar .navbar-nav > li > a {
    font-weight: 700;
    font-size: 13px;
    padding: 0 11px;
    line-height: 70px;
    height: 70px;
    white-space: nowrap;
    position: relative;
}

body.corp-home .corp-navbar .navbar-nav > li > a::after,
body.corp-ir-hero .corp-navbar .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

body.corp-home .corp-navbar .navbar-nav > li > a:hover::after,
body.corp-home .corp-navbar .navbar-nav > li.active > a::after,
body.corp-ir-hero .corp-navbar .navbar-nav > li > a:hover::after,
body.corp-ir-hero .corp-navbar .navbar-nav > li.active > a::after {
    width: 50%;
}

body.corp-home .corp-navbar #main-menu,
body.corp-ir-hero .corp-navbar #main-menu {
    float: none;
}

@media (min-width: 768px) {
    body.corp-home .corp-navbar #main-menu,
    body.corp-ir-hero .corp-navbar #main-menu {
        display: flex;
        justify-content: center;
        flex: 1;
        flex-wrap: nowrap;
    }
}

@media (min-width: 768px) {
    body.corp-home .corp-navbar .navbar-collapse,
    body.corp-ir-hero .corp-navbar .navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }
}

/* About block with parallax */
body.corp-home .corp-ref-about {
    position: relative;
    padding: 80px 0 0;
    min-height: 706px;
    overflow: hidden;
}

body.corp-home .corp-ref-about-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a80 40%, #2a3d5c 100%);
    background-attachment: fixed;
    z-index: 0;
}

body.corp-home .corp-ref-about-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

body.corp-home .corp-ref-inner {
    position: relative;
    z-index: 1;
}

body.corp-home .corp-ref-about-head {
    margin-bottom: 30px;
}

body.corp-home .corp-ref-about-head .corp-ref-tag {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}

body.corp-home .corp-ref-about-head h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    margin: 0;
}

body.corp-home .corp-ref-about-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 40px;
}

body.corp-home .corp-ref-about-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.9;
    padding-right: 30px;
}

body.corp-home .corp-ref-about-desc {
    margin: 0;
    text-indent: 2em;
    white-space: pre-wrap;
}

body.corp-home .corp-ref-about-text p {
    margin-bottom: 12px;
}

body.corp-home .corp-ref-about-img {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body.corp-home .corp-ref-about-img img {
    width: 100%;
    height: 264px;
    object-fit: cover;
}

body.corp-home .corp-btn-ref {
    display: inline-block;
    padding: 0 28px;
    height: 54px;
    line-height: 54px;
    background: var(--ref-navy);
    color: #fff !important;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
    border-radius: 0;
}

body.corp-home .corp-btn-ref:hover {
    background: var(--ref-navy-hover);
    color: #fff;
    text-decoration: none;
}

body.corp-home .corp-btn-ref-outline {
    background: #fff;
    color: var(--ref-navy) !important;
    border: 1px solid var(--ref-navy);
    min-width: 228px;
    text-align: center;
}

body.corp-home .corp-btn-ref-outline:hover {
    background: var(--ref-navy);
    color: #fff !important;
}

/* Business cards - reference 4-column row */
body.corp-home .corp-ref-cards-wrap {
    position: relative;
    z-index: 2;
    margin-top: -20px;
    padding-bottom: 50px;
}

body.corp-home .corp-ref-cards {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.corp-home .corp-ref-card {
    flex: 1 1 25%;
    min-width: 220px;
    text-align: center;
    border-right: 1px solid var(--ref-border);
    transition: background 0.3s;
}

body.corp-home .corp-ref-card:last-child {
    border-right: none;
}

body.corp-home .corp-ref-card a {
    display: block;
    padding: 0 0 25px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

body.corp-home .corp-ref-card-thumb {
    height: 196px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #4a6fa5, #333570);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.corp-home .corp-ref-card-thumb i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.4s;
}

body.corp-home .corp-ref-card-thumb .corp-ref-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--ref-navy);
    color: #fff;
    padding: 20px;
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s, transform 0.35s;
}

body.corp-home .corp-ref-card:hover .corp-ref-card-thumb .corp-ref-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

body.corp-home .corp-ref-card:hover .corp-ref-card-thumb i {
    transform: scale(0.8);
    opacity: 0.3;
}

body.corp-home .corp-ref-card-line {
    width: 53px;
    height: 2px;
    background: var(--ref-navy);
    margin: 20px auto 12px;
}

body.corp-home .corp-ref-card h3 {
    font-size: 14px;
    color: var(--ref-text);
    margin: 0 0 6px;
    font-weight: 600;
}

body.corp-home .corp-ref-card .corp-ref-card-en {
    font-size: 12px;
    color: var(--ref-muted);
    text-transform: lowercase;
}

/* Stats row */
body.corp-home .corp-ref-stats {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid var(--ref-border);
}

body.corp-home .corp-ref-stats-grid {
    display: flex;
    flex-wrap: wrap;
}

body.corp-home .corp-ref-stat {
    flex: 1 1 25%;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    border-right: 1px solid var(--ref-border);
}

body.corp-home .corp-ref-stat:last-child {
    border-right: none;
}

body.corp-home .corp-ref-stat-num {
    font-size: 38px;
    font-weight: 700;
    color: var(--ref-text);
    line-height: 1;
    font-family: Arial, sans-serif;
}

body.corp-home .corp-ref-stat-num .corp-stat-suffix {
    font-size: 14px;
    font-weight: normal;
    vertical-align: super;
    margin-left: 2px;
}

body.corp-home .corp-ref-stat-label {
    margin-top: 12px;
    font-size: 14px;
    color: var(--ref-muted);
}

/* News section */
body.corp-home .corp-ref-news {
    background: #f7f5f5;
    padding: 70px 0 60px;
}

body.corp-home .corp-ref-section-title {
    text-align: center;
    margin-bottom: 45px;
}

body.corp-home .corp-ref-section-title h2 {
    font-size: 30px;
    color: var(--ref-text);
    margin: 0 0 12px;
    font-weight: 600;
}

body.corp-home .corp-ref-section-title p {
    font-size: 13px;
    color: var(--ref-muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

body.corp-home .corp-ref-news-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

body.corp-home .corp-ref-news-item {
    flex: 1 1 300px;
    margin: 10px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

body.corp-home .corp-ref-news-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.corp-home .corp-ref-news-thumb {
    height: 266px;
    overflow: hidden;
    position: relative;
}

body.corp-home .corp-ref-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.5s;
}

body.corp-home .corp-ref-news-item:hover .corp-ref-news-thumb img {
    transform: scale(1.05);
    opacity: 0.85;
}

body.corp-home .corp-ref-news-body {
    padding: 18px 20px 22px;
}

body.corp-home .corp-ref-news-body h3 {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

body.corp-home .corp-ref-news-body h3 a {
    color: var(--ref-text);
}

body.corp-home .corp-ref-news-body h3 a:hover {
    color: var(--ref-navy);
}

body.corp-home .corp-ref-news-body .date {
    font-size: 12px;
    color: var(--ref-muted);
    margin-bottom: 8px;
}

body.corp-home .corp-ref-news-empty {
    flex: 1 1 100%;
    margin: 10px;
    padding: 48px 32px 52px;
    background: #fff;
    border: 1px dashed #d8d4d4;
    border-radius: 2px;
    text-align: center;
}

body.corp-home .corp-ref-news-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f0eded;
    color: #9a9494;
    font-size: 30px;
    line-height: 72px;
}

body.corp-home .corp-ref-news-empty-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ref-text);
}

body.corp-home .corp-ref-news-empty-desc {
    margin: 0 auto;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ref-muted);
}

/* IR links */
body.corp-home .corp-ref-ir {
    padding: 60px 0;
    background: #fff;
}

body.corp-home .corp-ref-ir-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

body.corp-home .corp-ref-ir-link {
    flex: 0 1 200px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid var(--ref-border);
    color: var(--ref-navy) !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

body.corp-home .corp-ref-ir-link i {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

body.corp-home .corp-ref-ir-link:hover {
    background: var(--ref-navy);
    color: #fff !important;
    border-color: var(--ref-navy);
}

/* Footer on home uses same reference layout as inner pages */

/* Scroll animations */
body.corp-home .corp-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.corp-home .corp-animate.corp-visible {
    opacity: 1;
    transform: translateY(0);
}

body.corp-home .corp-animate[data-animate="fade-right"] {
    transform: translateX(40px);
}

body.corp-home .corp-animate[data-animate="fade-left"] {
    transform: translateX(-40px);
}

body.corp-home .corp-animate[data-animate="fade-right"].corp-visible,
body.corp-home .corp-animate[data-animate="fade-left"].corp-visible {
    transform: translateX(0);
}

@keyframes corpFadeRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes corpFadeLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991px) {
    body.corp-home .corp-ref-card {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--ref-border);
    }

    body.corp-home .corp-ref-stat {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--ref-border);
    }

    body.corp-home .corp-ref-about-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 767px) {
    body.corp-home .corp-hero .caption-wraper {
        left: 5%;
        max-width: 90%;
    }

    body.corp-home .corp-hero .slide_title {
        font-size: 24px;
    }

    body.corp-home .corp-ref-card,
    body.corp-home .corp-ref-stat {
        flex: 1 1 100%;
        border-right: none;
    }

    body.corp-home .corp-navbar #main-menu,
    body.corp-ir-hero .corp-navbar #main-menu {
        display: block;
        width: 100%;
        flex: none;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    body.corp-home .corp-navbar #main-menu > li,
    body.corp-ir-hero .corp-navbar #main-menu > li {
        display: block;
        width: 100%;
        float: none;
    }

    body.corp-home .corp-navbar #main-menu > li > a,
    body.corp-ir-hero .corp-navbar #main-menu > li > a,
    body.corp-home .corp-navbar #main-menu > .dropdown > a.dropdown-toggle,
    body.corp-ir-hero .corp-navbar #main-menu > .dropdown > a.dropdown-toggle {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        height: auto;
        line-height: 1.45;
    }
}
