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

body {
    font-family: 'Noto Sans TC', 'Poppins', Arial, Helvetica, sans-serif, "Microsoft JhengHei", "微軟正黑體";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #212529;
    background-color: #fff;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header */
.top-header {
    padding: 15px 0;
    background: #fff;
}

.menu-logo-img {
    height: 130px;
    width: auto;
}

.navbar-brand {
    text-decoration: none;
}

.lang ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    padding-top: 10px;
}

.lang ul li {
    display: inline-block;
    margin: 0 3px;
}

.lang ul li a {
    color: #231f20;
    font-size: 0.9rem;
}

.lang ul li a.active {
    color: #004097;
    font-weight: 700;
}

/* Navigation */
.main-nav {
    background: #dddddd;
    padding: 0;
    transition: all 0.3s ease;
}

.main-nav .nav-link {
    color: #333 !important;
    padding: 15px 20px !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #fff !important;
    background: #002c6f;
}

.main-nav .dropdown-menu {
    background: #002c6f;
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
}

.main-nav .dropdown-item {
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.main-nav .dropdown-item:hover {
    background: #003d99;
    color: #fff;
}

.main-nav.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-wrap {
    height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Primary Button */
.btn-primary-custom {
    background: #1714d4;
    color: #fff !important;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    box-shadow: 3px 3px 8px rgba(50, 50, 50, 0.4);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: #0f0fa0;
    transform: translateY(-2px);
    box-shadow: 5px 5px 12px rgba(50, 50, 50, 0.5);
}

.btn-lg-custom {
    padding: 15px 60px;
    font-size: 1.1rem;
}

/* Info Bar Section */
.info-section {
    position: relative;
    z-index: 3;
}

.info-bar {
    margin-top: -70px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    padding: 40px 30px;
    text-align: center;
    font-size: 0.95rem;
    color: #333;
}

.info-item i {
    color: #b20f0f;
    font-size: 1.5rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* About Section */
.about-section {
    padding: 100px 0 60px;
}

.title-block {
    margin-bottom: 40px;
}

.title-block h1 {
    font-size: 3rem;
    letter-spacing: 1.1rem;
    font-weight: 700;
    color: #004097;
    margin-bottom: 15px;
}

.title-border {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blue-a {
    display: inline-block;
    width: 160px;
    height: 5px;
    background: #1714d4;
}

.title-center {
    display: inline-block;
    width: 28px;
    height: 5px;
    background: linear-gradient(to right, #1714d4, #2ec4ff);
    margin: 0 2px;
}

.blue-b {
    display: inline-block;
    width: 160px;
    height: 5px;
    background: #2ec4ff;
}

.about-desc {
    font-size: 1.1rem;
    color: #111;
    line-height: 1.8;
    margin-top: 30px;
}

/* Service Cards */
.service-card {
    height: 400px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 8px rgba(50, 50, 50, 0.4);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.service-overlay h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 80px;
}

/* Office Section */
.office-section {
    padding: 60px 0;
    background: url('../images/main-office.jpg') no-repeat center;
    background-size: cover;
    color: #fff;
}

.office-section .title-block h1 {
    color: #fff;
    margin-top: 20px;
}

.office-info {
    padding: 30px 0;
}

.office-info p {
    color: #1714d4;
    font-size: 1.3rem;
}

.office-info p i {
    margin-right: 8px;
}

.office-info .office-address {
    font-size: 1rem;
    color: #1714d4;
}

.office-section .office-info p,
.office-section .office-info .office-address {
    color: #fff;
}

/* Competition Section */
.competition-section {
    padding: 80px 0;
    background: #fff;
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-icon {
    width: 111px;
    height: 117px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon img {
    max-width: 100%;
    max-height: 100%;
}

.advantage-item p {
    font-size: 1rem;
    color: #111;
    margin-top: 15px;
    line-height: 1.6;
}

/* Footer Gradient */
.footer-gradient {
    background: linear-gradient(to left, #404041 0%, #6d6e70 51%, #babcbe 100%);
    padding: 15px 0;
}

.footer-gradient p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
}

/* Subpage Styles */
.page-banner {
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-section {
    padding: 60px 0;
}

.page-section p {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

.page-section h3 {
    color: #0e44d0;
    font-weight: 700;
    margin-top: 20px;
}

.page-section ul {
    color: #333;
    text-align: left;
    line-height: 2;
}

.gray-bg {
    background: #e5e5e5;
}

.white-box {
    border-radius: 12px;
    border: 1px solid #0c43cb;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 30px 15px;
    text-align: center;
    height: 100%;
}

.white-box img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.white-box h3 {
    font-size: 1.2rem;
    margin: 0;
}

.content-block {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.content-block h3 {
    color: #0e44d0;
    font-weight: 700;
}

.content-block hr {
    margin: 25px 0;
}

.contact-info dl {
    margin-bottom: 15px;
}

.contact-info dt {
    font-size: 1.2rem;
    font-weight: 700;
    color: #004097;
    display: inline-block;
    margin-right: 10px;
}

.contact-info dd {
    display: inline-block;
    font-size: 1rem;
}

.contact-info a {
    color: #004097;
}

.notice {
    font-size: 0.85rem;
    color: #666;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Responsive */
@media (max-width: 991.98px) {
    .title-block h1 {
        font-size: 2.5rem;
        letter-spacing: 0.5rem;
    }

    .hero-wrap {
        height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .blue-a, .blue-b {
        width: 120px;
    }

    .service-card {
        height: 300px;
    }

    .info-item {
        padding: 20px 15px;
    }
}

@media (max-width: 767.98px) {
    .menu-logo-img {
        height: 70px;
    }

    .top-header {
        padding: 10px 0;
        text-align: center;
    }

    .hero-wrap {
        height: 250px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .title-block h1 {
        font-size: 1.6rem;
        letter-spacing: 0.3rem;
    }

    .blue-a, .blue-b {
        width: 60px;
    }

    .info-bar {
        width: 95%;
        margin-top: -30px;
    }

    .info-item {
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    .info-item i {
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }

    .service-card {
        height: 200px;
        margin-bottom: 15px;
    }

    .service-overlay h2 {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

    .about-section {
        padding: 60px 0 30px;
    }

    .about-desc {
        font-size: 0.95rem;
    }

    .office-section {
        padding: 40px 0;
    }

    .competition-section {
        padding: 50px 0;
    }

    .advantage-icon {
        width: 80px;
        height: 85px;
    }

    .advantage-icon img {
        max-width: 70px;
    }

    .advantage-item p {
        font-size: 0.9rem;
    }

    .btn-lg-custom {
        padding: 12px 40px;
        font-size: 1rem;
    }

    .footer-gradient .text-end {
        text-align: start !important;
    }

    .page-banner {
        height: 200px;
    }

    .page-section {
        padding: 40px 0;
    }

    .content-block {
        padding: 20px 15px;
    }

    .white-box {
        padding: 20px 10px;
        margin-bottom: 15px;
    }

    .white-box img {
        width: 60px;
    }

    .white-box h3 {
        font-size: 1rem;
    }

    .contact-info dt {
        font-size: 1rem;
        display: block;
    }

    .contact-info dd {
        display: block;
        margin-bottom: 10px;
    }

    .main-nav .nav-link {
        padding: 10px 15px !important;
        text-align: center;
    }
}
