/* Reset & Base Styles */

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

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", "Heiti TC", "儷黑 Pro", sans-serif;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}


/* Main Container */

.main-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: url('../images/top_bg.jpg') no-repeat center top;
    background-size: cover;
}


/* Header Styles */

.header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.logo {
    width: 300px;
}

.logo img {
    width: 100%;
    height: auto;
}

.org-text {
    color: #000;
}

.org-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.org-name-en {
    font-size: 16px;
    margin-bottom: 10px;
}

.org-sponsor {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.sponsor-logo {
    height: 20px;
    width: auto;
}

.page-title {
    width: 100%;
    text-align: center;
}

.title-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    position: relative;
    top: 30px;
    left: -35px;
}


/* Navigation Menu */

.main-nav {
    position: fixed;
    right: 30px;
    top: 63%;
    transform: translateY(-50%);
    z-index: 100;
}

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

.main-nav .nav-item {
    display: block;
    width: 120px;
    transition: transform 0.3s ease;
}

.main-nav .nav-item:hover {
    transform: scale(1.1);
}

.main-nav .nav-item img {
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}


/* Hero Section */

.hero-section {
    position: relative;
    height: calc(100vh - 250px);
    overflow: hidden;
}

.victory-silhouettes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: url('../images/inner_border_image.png') no-repeat center bottom;
    background-size: contain;
}


/* Content Area */

.content-area {
    position: relative;
    z-index: 1;
    margin-right: 100px;
}


/* Footer Styles */

.site-footer {
    background: #850303;
    color: #fff;
    /* margin-top: 50px; */
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
}

.footer-inner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 80%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    animation: dividerGlow 3s ease-in-out infinite;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 300px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.brand-en {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-org {
    font-size: 14px;
    opacity: 0.9;
}

.footer-divider {
    display: none;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-location::before {
    content: "📍";
    font-size: 18px;
}

.icon-phone::before {
    content: "📞";
    font-size: 18px;
}

.icon-fax::before {
    content: "📠";
    font-size: 18px;
}

.icon-mail::before {
    content: "✉️";
    font-size: 18px;
}

.contact-text {
    flex: 1;
}

.spacer {
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    background: #550000;
    padding: 20px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    opacity: 0.9;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header {
        padding: 10px;
    }
    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .main-nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
    }
    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .content-area {
        margin-right: 0;
    }
    /* Footer Responsive */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    .footer-inner::after {
        display: none;
    }
    .footer-divider {
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
        margin: 20px 0;
    }
    .brand-row {
        justify-content: center;
        text-align: center;
    }
    .brand-text {
        align-items: center;
    }
    .contact-list li {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }
    .spacer {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding: 20px 15px;
    }
    .brand-logo {
        width: 200px;
    }
    .brand-name {
        font-size: 20px;
    }
    .brand-en {
        font-size: 14px;
    }
    .contact-list {
        gap: 20px;
    }
    .contact-list li {
        gap: 5px;
    }
    .icon {
        width: 16px;
        height: 16px;
    }
    .icon-location::before,
    .icon-phone::before,
    .icon-fax::before,
    .icon-mail::before {
        font-size: 16px;
    }
}


/* Registration Page Styles */

.registration-page {
    width: 100%;
    min-height: 100vh;
    background: url('../images/reg_bg.png') no-repeat top right;
    background-size: cover;
    position: relative;
    padding-bottom: 100px;
}

.registration-header {
    text-align: center;
    padding: 40px 20px 20px;
    /* background: #fff; */
    position: relative;
}

.reg-title {
    /* max-width: 800px; */
    margin-top: 110px;
    width: 100%;
    max-width: 1024px;
    height: auto;
    margin-bottom: 80px;
}

.wavy-border {
    height: 20px;
    background: url('../images/section_bg.png') no-repeat center center;
    background-size: cover;
    margin: 0 -20px;
}

.registration-content {
    /* background: #f8e8e8; */
    padding: 40px 20px;
    min-height: 600px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.text-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.description-section h2 {
    color: #850303;
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.description-section p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.guidelines-section h3 {
    color: #850303;
    font-size: 20px;
    margin-bottom: 20px;
}

.guidelines-list {
    color: #333;
    line-height: 1.8;
    padding-left: 20px;
}

.guidelines-list li {
    margin-bottom: 15px;
    text-align: justify;
}

.contact-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #850303;
}

.contact-info p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.contact-info strong {
    color: #850303;
}

.interactive-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.qr-code-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 200px;
    height: auto;
}

.button-container {
    text-align: center;
}

.reg-button {
    width: 250px;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.reg-button:hover {
    transform: scale(1.05);
}

.thematic-section {
    background: #550000;
    padding: 40px 20px;
    text-align: center;
}

.thematic-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 200px;
}

.victory-silhouettes {
    width: 100%;
    height: 100%;
    background: url('../images/inner_border_image.png') no-repeat center center;
    background-size: contain;
}


/* Registration Page Responsive Design */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .interactive-section {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        margin-top: 20px;
    }
    .qr-code {
        width: 180px;
    }
    .reg-button {
        width: 220px;
    }
    .reg-title {
        margin-top: 80px;
        margin-bottom: 60px;
    }
}

@media(max-width: 1280px) {
    .main-nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        width: 100%;
    }
    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .main-nav .nav-item {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .title-image {
        width: 85%;
        height: auto;
        position: unset;
    }
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .logo-section {
        justify-content: center;
    }
    .main-nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        width: 100%;
    }
    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .main-nav .nav-item {
        width: 80px;
    }
    .registration-header {
        padding: 20px 15px 15px;
    }
    .reg-title {
        max-width: 100%;
        margin-top: 60px;
        margin-bottom: 40px;
    }
    .registration-content {
        padding: 30px 15px;
    }
    .text-content {
        padding: 20px;
    }
    .description-section h2 {
        font-size: 20px;
    }
    .guidelines-section h3 {
        font-size: 18px;
    }
    .interactive-section {
        flex-direction: column;
        gap: 20px;
        margin-top: 0;
    }
    .qr-code {
        width: 160px;
    }
    .reg-button {
        width: 200px;
    }
    .thematic-section {
        padding: 30px 15px;
    }
    .thematic-content {
        height: 150px;
    }
    .content-area {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 10px;
    }
    .title-image {
        width: 95%;
        height: auto;
        position: unset;
    }
    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo {
        /* width: 80px; */
        margin-bottom: 15px;
    }
    .main-nav ul {
        gap: 10px;
    }
    .main-nav .nav-item {
        width: 70px !important;
    }
    .registration-header {
        padding: 15px 10px 10px;
    }
    .reg-title {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .registration-content {
        padding: 20px 10px;
    }
    .text-content {
        padding: 15px;
    }
    .description-section h2 {
        font-size: 18px;
    }
    .guidelines-list {
        padding-left: 15px;
    }
    .guidelines-list li {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .contact-info {
        padding: 15px;
        margin-top: 20px;
    }
    .qr-code {
        width: 140px;
    }
    .reg-button {
        width: 180px;
    }
    .thematic-content {
        height: 120px;
    }
    .footer-inner {
        padding: 20px 15px;
        gap: 10px !important;
    }
    .brand-logo {
        width: 250px;
    }
    .contact-list li {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }
    .registration-page {
        padding-bottom: 30px;
        background-position: top right !important;
    }
}