/* ==============================
   Base / Reset
================================*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: #111111;
    margin: 0;
}

/* ==============================
   Alert Banner
================================*/
.alert-banner {
    background-color: #FFF5B7;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.alert-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    /* min-width: max-content; */
}

.alert-banner-text {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-banner-text a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.alert-banner-text a:hover {
    color: #E65100;
}

.alert-banner-divider {
    color: #111;
    font-size: 16px;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    padding-right: 20px;
    background-color: #E2F2FF;
    position: relative;
    z-index: 1;
}

.stock-info .company-name {
    color: #005CAB;
    font-size: 14px;
    font-weight: 600;
}

.stock-info .stock-price {
    font-size: 18px;
    font-weight: 500;
    color: #111;
}

.stock-info .stock-change {
    font-size: 12px;
    font-weight: 500;
    color: #D62929;
}

.stock-info .stock-change.positive {
    color: #2e7d32;
}

.stock-info .exchange-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 999px;
    background-color: #fff;
    overflow: hidden;
}

.stock-info .exchange-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #005CAB;
    line-height: 1;
}

.stock-info .exchange-badge.active {
    color: #fff;
    background-color: #005CAB;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==============================
   Main Header
================================*/
.main-header {
    background-color: #fff;
    padding: 15px 0;
    /* border-bottom: 1px solid #e0e0e0; */
}

.header-container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger-menu {
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: none;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section .logo-icon {
    width: 50px;
    height: 50px;
}

.logo-section .logo-text {
    display: flex;
    flex-direction: column;
}

.logo-section .logo-text .brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #E65100;
    line-height: 1.2;
}

.logo-section .logo-text .tagline {
    font-size: 11px;
    color: #666;
}

.header-middle {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav .nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    padding: 0;
    transition: color 0.2s ease;
}

.main-nav .nav-link:hover {
    color: #E65100;
}

.main-nav .nav-link.has-dropdown i {
    font-size: 12px;
    flex-shrink: 0;
}

/* Search Bar */
.search-bar {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    color: #111;
}

.search-bar input:focus {
    border-color: #E65100;
}

.search-bar .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.epoints-badge {
    width: 150px;
}

.epoints-badge img {
    width: 100%;
    height: auto;
}

.epoints-badge .epoints-icon {
    font-size: 20px;
    font-weight: 700;
    color: #E65100;
}

.epoints-badge .epoints-text {
    font-size: 11px;
    line-height: 1.2;
}

.epoints-badge .epoints-text span {
    display: block;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.user-info .dropdown-toggle i {
    font-size: 12px;
    color: #111;
    flex-shrink: 0;
}

.user-info .dropdown-toggle::after {
    display: none;
}

.cesc-logo img {
    width: 150px;
}

.language-selector {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    border: none;
    background: none;
}

/* ==============================
   Mobile Navigation
================================*/
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1050;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-logo img {
    height: 40px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.mobile-nav-close:hover {
    color: #E65100;
}

.mobile-nav-search {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.mobile-nav-search input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.mobile-nav-search input:focus {
    border-color: #E65100;
}

.mobile-nav-search i {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #E65100;
}

.mobile-nav-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.mobile-language-selector {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==============================
   Hero Banner
================================*/
.profile-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: url(./images/banner.png) center/cover no-repeat;
    border-radius: 14px;
}

.profile-hero .hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.breadcrumb-nav {
    font-size: 16px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 10px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav span {
    margin: 0 6px;
}

.hero-title {
    font-size: 70px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.5px;
}

/* ==============================
   Page Body / Container
================================*/
.container {
    max-width: 1680px;
    max-width: clamp(1680px, 90vw, 2400px) !important;
}

/* ==============================
   Sidebar
================================*/
.sidebar {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #C5D9DF;
}

.sidebar-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    background: linear-gradient(to bottom, #F4F6FF, #E4E7F1);
    border: none;
    transition: background 0.2s ease;
}

.sidebar-group-header:first-child {
    border-top: none;
}

.sidebar-group-header:hover {
    background: linear-gradient(to bottom, #eef1ff, #dfe5ed);
}

.sidebar-group-header i {
    font-size: 18px;
    color: #1a1a2e;
    transition: transform 0.3s ease;
}

.sidebar-group-header.open {
    background: linear-gradient(to bottom, #c3c6ce, #e9eaee);
}

.sidebar-nav-item {
    display: block;
    padding: 13px 20px;
    font-size: 20px;
    color: #0066d9;
    text-decoration: none;
    background: #fff;
    border-bottom: 1px solid #f0f1f3;
    transition: all 0.15s ease;
    font-weight: 400;
}

.sidebar-nav-item:hover {
    background: #f8fbff;
    color: #004ab5;
}

.sidebar-nav-item.active {
    background: #FFF5B7;
    color: #0066d9;
}

.sidebar-group-items {
    display: block;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.sidebar-group-items.collapsed {
    max-height: 0;
    opacity: 0;
}

/* ==============================
   Profile Card
================================*/
.profile-card {
    background: #E2F2FF;
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    position: relative;
}

.profile-card .avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    flex-shrink: 0;
}

.profile-card .avatar-placeholder {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a9fd8, #4a7fc1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-card .name {
    font-size: 32px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 1px;
}

.profile-card .customer-id {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.profile-card .update-link {
    font-size: 20px;
    color: #005CAB;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

.profile-card .update-link:hover {
    text-decoration: none;
    color: #4a7fc1;
}

.profile-card .update-link .update-link-icon {
    margin-right: 4px;
    width: 20px;
    height: 20px;
}

/* Tower illustration area */
.tower-area {
    max-width: 250px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 32px;
    flex-shrink: 0;
    pointer-events: none;
}

.tower-area img {
    width: auto;
    height: 100%;
}

/* ==============================
   Info Table
================================*/
.info-rows {
    background-color: #F6FBFF;
    padding: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 18px 28px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 16px;
    width: 160px;
    flex-shrink: 0;
}

.info-value {
    font-size: 20px;
    font-weight: 500;
    margin-left: auto;
    text-align: right;
}

/* ==============================
   Ad Spaces
================================*/
.ad-box {
    background: #DCFFDE;
    border: 1px solid #CCE1CE;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #638365;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .5px;
}

.ad-box-top {
    height: 486px;
    margin-bottom: 32px;
}

.ad-box-bottom {
    height: 486px;
}

/* ==============================
   Footer
================================*/
.site-footer {
    background-color: #fff;
    padding-top: 50px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Top */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-logo img {
    width: 150px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #005CAB;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background-color: #004080;
    transform: translateY(-2px);
}

/* Footer Main */
.footer-main {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column a {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #005CAB;
}

/* Footer App Section */
.footer-app {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-app-title {
    font-size: 16px;
    font-weight: 400;
    color: #111;
    letter-spacing: 1px;
}

.footer-app-badges {
    display: flex;
    gap: 10px;
}

.footer-app-badges a {
    display: block;
}

.footer-app-badges img {
    width: auto;
    height: 55px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #111;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==============================
   RESPONSIVE: Large Desktop (≤ 1200px)
================================*/
@media (max-width: 1200px) {
    /* Header */
    .main-nav .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .epoints-badge {
        display: none;
    }
}

/* ==============================
   RESPONSIVE: Tablet (≤ 991px)
================================*/
@media (max-width: 991px) {
    /* Header */
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .search-bar {
        max-width: 300px;
    }

    .header-bottom {
        display: none;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-middle {
        width: 100%;
        order: 3;
    }

    .header-right {
        margin-left: auto;
    }

    /* Hero */
    .hero-title {
        font-size: 48px;
    }

    .profile-hero {
        height: 260px;
    }

    /* Profile Card */
    .profile-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .profile-card .name {
        font-size: 26px;
    }

    .profile-card .update-link {
        font-size: 18px;
    }

    /* Tower */
    .tower-area {
        position: relative;
        right: auto;
        top: auto;
        max-width: 160px;
        margin-left: auto;
    }

    .tower-area img {
        height: auto;
        width: 100%;
        max-width: 120px;
    }

    /* Info Rows */
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 16px 20px;
    }

    .info-value {
        margin-left: 0;
        text-align: left;
    }

    .info-label {
        width: auto;
    }

    /* Footer */
    .footer-links {
        gap: 40px;
    }

    .footer-app {
        align-items: flex-start;
    }
}

/* ==============================
   RESPONSIVE: Mobile (≤ 767px)
================================*/
@media (max-width: 767px) {
    /* Header */
    /* .stock-info {
        display: none;
    } */

    .search-bar {
        display: none;
    }

    .cesc-logo img {
        height: 35px;
    }

    .language-selector {
        display: none;
    }

    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero */
    .profile-hero {
        height: 200px;
    }

    .hero-title {
        font-size: 36px;
    }

    .breadcrumb-nav {
        font-size: 14px;
    }

    /* Sidebar */
    .sidebar {
        margin-bottom: 20px;
    }

    .sidebar-nav-item {
        font-size: 16px;
        padding: 12px 16px;
    }

    .sidebar-group-header {
        font-size: 14px;
        padding: 14px 16px;
    }

    /* Profile Card */
    .profile-card {
        padding: 18px;
    }

    .profile-card .avatar,
    .profile-card .avatar-placeholder {
        width: 65px;
        height: 65px;
    }

    .profile-card .name {
        font-size: 22px;
    }

    .profile-card .customer-id {
        font-size: 14px;
    }

    .profile-card .update-link {
        font-size: 16px;
    }

    /* Tower */
    .tower-area {
        display: none;
    }

    /* Info Rows */
    .info-rows {
        padding: 5px;
    }

    .info-row {
        padding: 14px 16px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==============================
   RESPONSIVE: Small Mobile (≤ 480px)
================================*/
@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 28px;
    }

    /* Profile Card */
    .profile-card {
        gap: 10px;
    }

    .profile-card .name {
        font-size: 20px;
    }

    /* Info */
    .info-value {
        font-size: 16px;
        word-break: break-word;
    }

    /* Footer */
    .footer-column {
        min-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-app-badges {
        flex-direction: column;
    }
}
