/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --primary-color: #3E8B1C;
    --primary-dark: #103928;
    --text-color: #333333;
    --text-light: #3D3D3D;
    --background-light: #F7F6FB;
    --white: #FFFFFF;
    --border-color: #DDE1E6;
    --success-color: #B71C1C;
}

body {
    font-family: 'Noto Sans TC', 'Noto Sans';
    color: var(--text-color);
    line-height: 1.4;
    overflow-x: hidden;
    width: 100%;
}

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

.new-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    max-width: 800px;
}

.section-header h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.5px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 32px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 12px 32px;
}

.btn-outline:hover {
    background-color: #448A2A0A;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* Enhanced hover effects for btn-text buttons */
.btn.btn-text {
    transition: all 0.3s ease;
}

.btn.btn-text:hover {
    color: var(--primary-dark);
}

.btn.btn-text:hover a.btn-text {
    color: var(--primary-dark) !important;
}

/* Target FontAwesome arrow icon specifically */
.btn.btn-text:hover .fas.fa-arrow-right,
.btn.btn-text:hover i.fas.fa-arrow-right {
    color: var(--primary-dark) !important;
}

/* Additional specificity for FontAwesome icons */
.btn.btn-text:hover .fa-arrow-right {
    color: var(--primary-dark) !important;
}

/* Force override any FontAwesome styles for icons only */
.btn.btn-text:hover i,
.btn.btn-text:hover .fas,
.btn.btn-text:hover .fa {
    color: var(--primary-dark) !important;
}

/* Most specific selector to override FontAwesome */
div.btn.btn-text:hover i.fas.fa-arrow-right {
    color: var(--primary-dark) !important;
}

.btn-dark {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 12px 32px;
}

.btn-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 32px;
}

/* Media Queries */
@media (max-width: 1200px) {
    .new-container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .new-container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .new-container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        word-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .new-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    body {
        font-size: max(16px, 1rem);
    }
    
    .section-header h2 {
        font-size: max(24px, 1.5rem);
    }
}

/* Override FontAwesome styles for btn-text buttons - highest priority */
.btn.btn-text:hover .fas.fa-arrow-right,
.btn.btn-text:hover i.fas.fa-arrow-right,
div.btn.btn-text:hover i.fas.fa-arrow-right {
    color: var(--primary-dark) !important;
}

/* Ensure all child elements inherit the hover color */
.btn.btn-text:hover * {
    color: var(--primary-dark) !important;
}