/* =============================================
   遠雄國際投資股份有限公司 Official Website
   Style Reference: farglory.com.tw
   ============================================= */

:root {
    --primary: #1a3a6b;
    --primary-dark: #0f2548;
    --primary-light: #e8eef7;
    --accent: #3b7dd8;
    --accent-light: #5a9bef;
    --gold: #c5a55a;
    --gold-light: #d4bb7a;
    --dark: #1a1a1a;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --bg-dark: #0c1a2e;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    --font-en: 'Montserrat', 'Noto Sans TC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   Header / Navigation
   ============================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
}

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

.logo-img {
    height: 40px;
    width: auto;
    transition: all var(--transition);
}

.page-home .header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.page-home .header.scrolled .logo-img {
    filter: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.header.scrolled .nav-list a {
    color: var(--text);
}

.header.scrolled .nav-list a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
}

.header.scrolled .menu-toggle span {
    background: var(--text);
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, 
            #020b1a 0%,
            #051530 15%,
            #0a2a55 35%,
            #0e3d7a 55%,
            #1565a0 75%,
            #1a80b6 90%,
            #2098c8 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(20, 120, 200, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(0, 80, 160, 0.15) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.03), transparent);
}

/* Ocean Canvas */
.ocean-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ocean Light Rays */
.ocean-rays {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ocean-rays::before,
.ocean-rays::after {
    content: '';
    position: absolute;
    top: -20%;
    width: 120px;
    height: 140%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 60%, transparent 100%);
    transform: rotate(15deg);
    animation: rayFloat 8s ease-in-out infinite;
}

.ocean-rays::before {
    left: 20%;
    animation-delay: 0s;
}

.ocean-rays::after {
    left: 55%;
    width: 80px;
    transform: rotate(20deg);
    animation-delay: -4s;
    opacity: 0.6;
}

@keyframes rayFloat {
    0%, 100% { opacity: 0.4; transform: rotate(15deg) translateX(0); }
    50% { opacity: 0.8; transform: rotate(17deg) translateX(20px); }
}

/* Ocean Waves */
.ocean-waves {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave-1 {
    animation: waveMove 7s linear infinite;
    opacity: 0.15;
}

.wave-1 path {
    fill: #fff;
}

.wave-2 {
    animation: waveMove 11s linear infinite reverse;
    opacity: 0.1;
    bottom: 4px;
}

.wave-2 path {
    fill: #fff;
}

.wave-3 {
    animation: waveMove 9s linear infinite;
    opacity: 0.25;
    height: 80px;
}

.wave-3 path {
    fill: var(--bg);
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle-en {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 8px;
    opacity: 0.85;
    margin-bottom: 24px;
}

.hero-desc p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    padding: 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all var(--transition);
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll span {
    font-family: var(--font-en);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   Section Common
   ============================================= */

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header.light {
    color: #fff;
}

.section-label-en {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.section-header.light .section-label-en {
    color: var(--accent-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 0 auto;
    border-radius: 2px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   About Section
   ============================================= */

.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.9;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.stat-number {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline;
    line-height: 1;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    display: inline;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    letter-spacing: 1px;
}

/* =============================================
   Business Section
   ============================================= */

.business {
    background: var(--bg-alt);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.business-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.business-card:hover::before {
    transform: scaleX(1);
}

.business-icon {
    width: 56px;
    height: 56px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: color var(--transition);
}

.business-card:hover .business-icon {
    color: var(--accent);
}

.business-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.business-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* =============================================
   Vision Section
   ============================================= */

.vision {
    position: relative;
    background: var(--bg-dark);
    color: #fff;
    overflow: hidden;
}

.vision-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #0c1a2e 0%, #112d55 50%, #0c1a2e 100%);
    opacity: 1;
}

.vision-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(59, 125, 216, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(197, 165, 90, 0.06) 0%, transparent 50%);
}

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

.vision-quote {
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    color: var(--gold-light);
    max-width: 700px;
    margin: 0 auto 64px;
    line-height: 1.8;
    letter-spacing: 2px;
    border: none;
    padding: 0;
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
}

.pillar:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 125, 216, 0.3);
    transform: translateY(-4px);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.pillar-icon span {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.pillar h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
    line-height: 1.6;
}

.pillar h4 small {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent-light);
    letter-spacing: 2px;
}

.pillar p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* =============================================
   News Section
   ============================================= */

.news {
    background: var(--bg);
}

.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
    align-items: center;
}

.news-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.news-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-featured-image:hover img {
    transform: scale(1.03);
}

.news-featured-content {
    padding: 16px 0;
}

.news-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-right: 8px;
}

.news-date {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-lighter);
}

.news-featured-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 16px;
    line-height: 1.6;
    letter-spacing: 1px;
}

.news-featured-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.news-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 1px;
    transition: all var(--transition);
}

.news-link:hover {
    color: var(--accent);
    letter-spacing: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    overflow: hidden;
    height: 220px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 24px;
}

.news-card-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 12px 0;
    line-height: 1.6;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   News Detail Modal
   ============================================= */

.news-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}

.news-detail-overlay.active {
    display: flex;
}

.news-detail-modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    position: relative;
    margin: 40px auto;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.modal-header-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 40px 48px 48px;
}

.modal-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin: 16px 0;
    line-height: 1.6;
    letter-spacing: 1px;
}

.modal-date {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-bottom: 24px;
    display: block;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

.modal-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* =============================================
   Contact Section
   ============================================= */

.contact {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-icon-line {
    background: #e8f5e9;
    color: #06c755;
}

.line-link {
    color: #06c755;
    font-weight: 500;
    transition: opacity 0.2s;
}

.line-link:hover {
    opacity: 0.7;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition);
    background: var(--bg-alt);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(59, 125, 216, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 107, 0.3);
}

/* =============================================
   Footer
   ============================================= */

.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-slogan {
    font-size: 0.85rem;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
}

.footer-line-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #06c755;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

.footer-line-link svg {
    width: 18px;
    height: 18px;
}

.footer-line-link:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* =============================================
   Back to Top
   ============================================= */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(26, 58, 107, 0.3);
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* =============================================
   Animations (Scroll Reveal)
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-featured {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-featured-image img {
        height: 300px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        padding: 100px 32px 32px;
        transition: right var(--transition);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-list a {
        color: var(--text);
        font-size: 1.1rem;
    }
    
    .header-inner {
        height: 64px;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-title {
        letter-spacing: 3px;
    }
    
    .hero-tagline {
        letter-spacing: 4px;
        font-size: 1rem;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-pillars {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .vision-quote {
        font-size: 1.2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-header-image img {
        height: 250px;
    }

    .modal-body h2 {
        font-size: 1.3rem;
    }

    .modal-image-grid {
        grid-template-columns: 1fr;
    }

    .modal-image-grid img {
        height: 200px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-subtitle-en {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hero-tagline {
        letter-spacing: 2px;
        font-size: 0.9rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .news-card-image {
        height: 180px;
    }
}

/* =============================================
   Sub-page Header (always solid)
   ============================================= */

.header-sub {
    background: var(--bg);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-sub .logo-text {
    color: var(--primary-dark);
}

.header-sub .logo-sub {
    color: var(--text-light);
}

.header-sub .nav-list a {
    color: var(--text);
}

.header-sub .nav-list a:hover,
.header-sub .nav-list a.active {
    color: var(--primary);
}

.header-sub .nav-list a.active::after {
    width: 100%;
}

.header-sub .menu-toggle span {
    background: var(--text);
}

/* =============================================
   Page Banner (Sub-pages)
   ============================================= */

.page-banner {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #132f5e 40%, var(--primary) 100%);
    z-index: 0;
}

.page-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.page-banner-en {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.6;
    display: block;
    margin-bottom: 12px;
}

.page-banner-content h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   Home Highlights Section
   ============================================= */

.home-highlights {
    background: var(--bg-alt);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.highlight-card {
    display: block;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.highlight-icon {
    width: 52px;
    height: 52px;
    color: var(--primary);
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.highlight-arrow {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform var(--transition);
    display: inline-block;
}

.highlight-card:hover .highlight-arrow {
    transform: translateX(6px);
}

/* =============================================
   Home News Section
   ============================================= */

.home-news {
    background: var(--bg);
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.home-news-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--bg);
}

.home-news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.home-news-image {
    height: 200px;
    overflow: hidden;
}

.home-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-news-card:hover .home-news-image img {
    transform: scale(1.05);
}

.home-news-body {
    padding: 24px;
}

.home-news-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 12px 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-more {
    text-align: center;
    margin-top: 48px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* =============================================
   Home CTA Section
   ============================================= */

.home-cta {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.home-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), #132f5e, var(--primary));
    z-index: 0;
}

.home-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 125, 216, 0.1) 0%, transparent 60%);
}

.home-cta-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.home-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.home-cta-content p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 32px;
}

/* =============================================
   About Page - Intro
   ============================================= */

.about-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-intro .about-headline {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.about-intro-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 2;
    text-align: justify;
}

.about-stats-section {
    background: var(--bg-alt);
    padding: 64px 0;
}

.about-stats-section .about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* =============================================
   About Page - Core Values
   ============================================= */

.about-values {
    background: var(--bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    padding: 32px 24px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.value-number {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* =============================================
   About Page - Timeline
   ============================================= */

.about-history {
    background: var(--bg-alt);
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-alt);
    box-shadow: 0 0 0 3px var(--accent);
}

.timeline-year {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* =============================================
   Vision Page - Quote
   ============================================= */

.vision-page-quote {
    background: var(--bg);
    text-align: center;
}

.vision-quote-large {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-dark);
    letter-spacing: 2px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 32px;
    border: none;
    padding: 0;
}

.vision-quote-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 2;
}

/* =============================================
   Vision Page - ESG
   ============================================= */

.vision-esg {
    background: var(--bg-alt);
}

.esg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.esg-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.esg-letter {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.esg-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.esg-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.esg-card li {
    font-size: 0.88rem;
    color: var(--text-light);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.esg-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* =============================================
   News list section spacing fix
   ============================================= */

.news-list-section {
    padding-top: 0;
}

/* =============================================
   Sub-page Responsive
   ============================================= */

@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats-section .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .page-banner {
        padding: 120px 0 48px;
    }

    .page-banner-content h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

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

    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-cta-content h2 {
        font-size: 1.5rem;
    }

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

    .about-stats-section .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .about-intro .about-headline {
        font-size: 1.3rem;
    }

    .vision-quote-large {
        font-size: 1.3rem;
    }

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

    .timeline {
        padding-left: 32px;
    }

    .timeline-item::before {
        left: -25px;
    }
}

@media (max-width: 480px) {
    .about-stats-section .about-stats {
        grid-template-columns: 1fr;
    }
}
