/* Global Variables */
:root {
    --primary-color: #003366; /* Deep Navy */
    --secondary-color: #FF9900; /* Safety Orange */
    --accent-color: #00A8E8; /* Bright Blue */
    --text-color: #333333;
    --light-gray: #f4f6f8;
    --white: #ffffff;
    --font-main: 'Pretendard', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-accent { color: var(--secondary-color); }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--primary-color); }
.mb-4 { margin-bottom: 2rem; }

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    transition: color 0.3s;
}

#header.header-scrolled .logo a {
    color: var(--primary-color);
}

.gnb ul {
    display: flex;
    gap: 30px;
}

.gnb a {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    color: var(--white);
    transition: color 0.3s;
}

#header.header-scrolled .gnb a {
    color: var(--primary-color);
}

.gnb a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width var(--transition-speed);
}

#header.header-scrolled .gnb a::after {
    background: var(--secondary-color);
}

.gnb a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
    transition: color 0.3s;
}

#header.header-scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

/* Sub-page Hero */
.sub-hero {
    position: relative;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: 80px; /* Header space */
}

.sub-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.6); /* Consistent styling */
}

.sub-hero-content {
    position: relative;
    z-index: 2;
}

.sub-hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.preparing-section {
    padding: 120px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.preparing-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.preparing-text {
    font-size: 24px;
    color: #666;
    font-weight: 500;
}
#hero {
    position: relative;
    height: 85vh; /* Reduced from 100vh to show logos */
    min-height: 500px; /* Reduced min-height slightly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    padding-top: 0;
}

@media (max-width: 768px) {
    #hero {
        height: 80vh; /* Allow address bar space on mobile */
        min-height: 400px;
    }
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-bg.active {
    opacity: 1;
    z-index: 2;
}

.slide {
    width: 100%;
    height: 100%;
    /* background-size: cover; Removed - moved to .hero-bg */
    /* background-position: center; Removed - moved to .hero-bg */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 3; /* Ensure content is above bg */
}

#hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Added text shadow for visibility */
}

#hero p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5); /* Added text shadow for visibility */
}

.quick-links {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-link-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.quick-link-item:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.sub-title {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Vision & Mission Redesign */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.vm-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.vm-card:hover {
    transform: translateY(-10px);
}

.vm-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.vm-card:hover .vm-bg {
    transform: scale(1.1);
}

.vm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.4));
    z-index: 1;
}

.vm-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.vm-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    backdrop-filter: blur(5px);
}

.vm-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.vm-main-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.vm-sub-text {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 300;
}

.vm-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    max-width: 300px;
    margin: 0 auto;
}

.vm-list li {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-list li i {
    color: var(--secondary-color);
}

/* Core Values Redesign */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.value-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: rgba(0, 51, 102, 0.1);
}

.value-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    height: 60px;
    width: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--primary-color);
    color: #fff;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.value-card span {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
/* Business Section */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.business-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    min-height: 48px;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid #eee;
    transition: box-shadow var(--transition-speed);
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-thumb {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.news-content .date {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.news-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Resources Section */
.resources-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.resource-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-speed);
}

.resource-item i {
    font-size: 40px;
    background: rgba(255,255,255,0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.resource-item:hover {
    color: var(--white);
}

.resource-item:hover i {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-links a {
    margin-left: 20px;
    color: #ccc;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-info p {
    margin-bottom: 5px;
}

.government-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0.5;
}

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

.fade-in-up {
    animation: fadeInUp 1s ease-out both; /* Changed 'forwards' to 'both' and removed opacity: 0 */
    /* opacity: 0; Removed for safety - Progressive Enhancement */
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .gnb {
        display: none; /* Mobile menu logic needed */
    }
    
    .mobile-menu-btn {
        display: block;
    }

    #hero h2 {
        font-size: 32px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        display: none; /* Hide on small screens or adjust */
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .footer-links a {
        margin-left: 0;
        margin-right: 20px;
    }
}

/* Message Section Layout */
.message-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.message-img {
    flex: 0 0 350px;
}

.message-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.message-text {
    flex: 1;
    text-align: left;
}

.message-text .lead {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .message-container {
        flex-direction: column;
        gap: 30px;
    }

    .message-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .message-img img {
        height: auto;
        object-position: top;
    }

    /* Mobile Menu Text Visibility */
    .gnb.active a {
        color: var(--primary-color) !important; /* Force dark text on white mobile menu */
    }
    .gnb.active a::after {
        background: var(--secondary-color) !important;
    }

    /* Redesign fix for mobile: Adjust step number size/position and color */
    .step-num {
        font-size: 50px; /* Reduce size on mobile */
        top: 0;
        right: 10px;
        color: #e2e6ea; /* Darker than #e2e6ea for visibility */
    }
}

/* UD Principles Section Redesign */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.principle-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.principle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(0, 51, 102, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.principle-card:hover .card-icon {
    background: var(--secondary-color);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 153, 0, 0.2);
}

.card-text {
    position: relative;
    z-index: 2;
    flex: 1;
}

.principle-card h5 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.en-title {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif; /* giving it a slightly more modern feel if Poppins was loaded, but sticking to inherit otherwise */
}

/* Knowledge (UD Info) Section Redesign */
.ud-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.ud-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ud-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.card-header-styled {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header-styled h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #333;
}

.card-header-styled i {
    font-size: 28px;
    color: var(--primary-color);
}

.quote-icon {
    color: var(--secondary-color) !important;
}

/* Definition Card */
.definition-text {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    font-weight: 500;
    margin-bottom: 30px;
    flex: 1;
}

.definition-text .highlight {
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    box-shadow: inset 0 -10px 0 rgba(0, 51, 102, 0.1);
}

.author-box {
    text-align: right;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.author-name {
    display: block;
    font-family: 'Georgia', serif; /* Or keep generic if preferred */
    font-style: italic;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.author-title {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Necessity Card */
.necessity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.necessity-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.necessity-list li:last-child {
    margin-bottom: 0;
}

.icon-wrap {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.necessity-list li:hover .icon-wrap {
    background: var(--primary-color);
    color: #fff;
}

.text-wrap strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.text-wrap p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.principle-card:hover .step-num {
    color: #eff2f5;
    transform: scale(1.1) translateX(-5px);
}

/* UD vs BF Section Redesign */
.ud-bf-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 30px;
}

.compare-card {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    z-index: 1;
}

.bf-card {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid #f0f0f0;
}

.ud-card {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.compare-card:hover {
    transform: translateY(-10px);
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-body {
    padding: 40px 30px;
    text-align: center;
}

.compare-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.bf-card h3 { color: var(--primary-color); }
.ud-card h3 { color: #2ecc71; } /* Fresh Green for UD */

.sub-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    margin-top: 5px;
}

.keyword {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.desc-box {
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.desc-box ul li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
    position: relative;
    padding-left: 28px;
}

.desc-box ul li:last-child { margin-bottom: 0; }

.desc-box ul li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #bbb;
}

.bf-card .desc-box ul li i { color: var(--primary-color); }
.ud-card .desc-box ul li i { color: #2ecc71; }

/* VS Badge */
.vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #333;
    box-shadow: 0 0 0 8px rgba(255,255,255,0.8), 0 10px 20px rgba(0,0,0,0.1);
    z-index: 10;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .ud-bf-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .compare-card {
        width: 100%;
        border-radius: 20px; /* Restore border radius on mobile */
    }

    .bf-card { border-right: none; }
    
    .vs-badge {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: -45px auto -45px; /* Pull it up between cards */
    }

    /* Law Section Responsive */
    .law-grid {
        grid-template-columns: 1fr;
    }
}

/* Institutional Scope (Law) Section Redesign */
.law-section {
    max-width: 1000px;
    margin: 60px auto 0;
}

.law-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.law-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 560px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.law-card:hover {
    transform: translateY(-10px);
}

.law-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.law-card:hover .law-bg {
    transform: scale(1.1);
}

.law-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95), rgba(0, 51, 102, 0.6));
    opacity: 0.9;
    transition: opacity 0.3s;
}

.law-card:hover .law-overlay {
    opacity: 0.95;
}

.law-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.law-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--secondary-color);
}

.law-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.law-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 30px;
    font-weight: 500;
}

.law-list {
    list-style: none;
    width: 100%;
    padding: 0;
    text-align: left;
}

.law-list li {
    background: rgba(255,255,255,0.1);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: background 0.3s;
}

.law-card:hover .law-list li {
    background: rgba(255,255,255,0.15);
}

.check-icon {
    color: var(--secondary-color);
    margin-top: 2px;
}

.law-list span strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

/* Partners Logo Section */
.logo-slider {
    /* overflow: hidden; */ /* Allows visible scroll */
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 100px;
    z-index: 2;
}
@media (max-width: 768px) {
    .law-card {
        height: auto !important;
        min-height: 560px;
        padding-bottom: 30px;
    }
}
.logo-slider::after {
    background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 100%);
    right: 0;
    top: 0;
}

.logo-slider::before {
    left: 0;
    top: 0;
}

.logo-track {
    display: flex;
    width: max-content; /* Allow track to determine its own width based on content */
    animation: scroll 40s linear infinite;
}

.slide-logo {
    height: 60px; /* Reduced container height */
    width: auto; /* Allow logos to take necessary width */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 30px; /* Reduced margin slightly */
}

.slide-logo img {
    height: 40px; /* Reduced logo height for compact look */
    width: auto; /* Maintain aspect ratio */
    /* filter: grayscale(100%); Removed grayscale */
    /* opacity: 0.7; Removed opacity */
    transition: all 0.3s ease;
    cursor: pointer;
    object-fit: contain;
}

.slide-logo img:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly half the total width (one full set of logos) */
        transform: translateX(-50%);
    }
}

/* Resource Page Tabs */
.resource-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.resource-tab-btn {
    padding: 12px 30px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 50px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.resource-tab-btn i {
    font-size: 18px;
}

.resource-tab-btn:hover,
.resource-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

/* Global Responsive Fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: all 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mobile-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.mobile-gnb {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-gnb li {
    margin-bottom: 20px;
}

.mobile-gnb a {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-gnb a:hover {
    color: var(--primary-color);
}

/* Media Queries for Mobile Optimization */
@media (max-width: 991px) {
    .gnb {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hero Section Mobile */
    #hero h2 {
        font-size: 32px;
        line-height: 1.3;
    }
    #hero p {
        font-size: 16px;
    }

    /* About Us / Knowledge / Law Grid */
    .vm-grid, .ud-content-grid, .law-grid {
        grid-template-columns: 1fr;
    }
    
    .vm-card, .kn-card {
        height: auto;
        min-height: 350px;
    }
    
    .ud-bf-split {
        flex-direction: column;
        min-height: auto !important;
    }
    
    .bf-panel, .ud-panel {
        padding: 50px 20px !important;
    }

    /* Message Section */
    .message-container {
        flex-direction: column;
    }
    .message-img {
        width: 180px;
        height: 180px;
        margin: 0 auto 30px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .message-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .message-text {
        text-align: center;
    }
    .message-body {
        text-align: justify;
        padding: 0 10px;
    }
    .message-signature {
        text-align: center !important; /* Force center on mobile */
        margin-top: 30px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-links {
        justify-content: center;
    }

    /* Mobile Logo Optimization */
    .logo a {
        font-size: 19px !important; /* Increased size slightly */
        letter-spacing: -2px !important; /* Tight spacing for narrow width */
        white-space: nowrap; /* Prevent wrapping */
        font-weight: 700;
    }
    .mobile-logo {
        font-size: 20px !important; /* Increased size slightly */
        letter-spacing: -1.5px !important;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .logo-slider .slide-logo {
        margin: 0 20px;
    }
    .slide-logo img {
        height: 40px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    
    .vm-card, .kn-card {
        padding: 30px 20px;
    }
    .vm-card h3, .kn-card h3 {
        font-size: 24px;
    }
}

/* Knowledge Section Image Cards */
.kn-card {
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.kn-card .vm-content {
    /* Ensure content is legible on image */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.kn-bg::after {
    /* Additional darken for readability if vm-overlay isnt enough */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3); 
    z-index: 0;
}
.bg-white-10 {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
}
.quote-icon {
    font-size: 2.5rem;
}
.definition-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* UD vs BF Comparison Section - New Design */
.ud-bf-container {
    display: flex;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    min-height: 500px;
}

.bf-panel, .ud-panel {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    transition: flex 0.4s ease;
}

.bf-panel {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    align-items: flex-start;
    text-align: left;
}

.ud-panel {
    background: linear-gradient(135deg, #0b665e 0%, #16a085 100%); /* Darker Green for visibility */
    align-items: flex-end; /* Align right */
    text-align: right;
}

.bf-panel:hover, .ud-panel:hover {
    flex: 1.2;
}

/* Typography */
.bf-panel h3, .ud-panel h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.panel-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.panel-desc {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Badges */
.panel-badge-wrapper {
    margin-bottom: 15px;
}
.panel-badge {
    background: #fff;
    color: #1e3c72; /* BF Color */
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.panel-badge.green {
    color: #11998e; /* UD Color */
}

/* Lists */
.panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.panel-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    opacity: 0.9;
}
.panel-list li i {
    margin-right: 10px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Right alignment specific */
.panel-list.right li {
    justify-content: flex-end;
}
.panel-list.right li i {
    margin-right: 0;
    margin-left: 10px;
}

/* VS Badge */
.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #333;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.ud-bf-container:hover .vs-badge {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .ud-bf-container {
        flex-direction: column;
        height: auto;
    }
    .bf-panel, .ud-panel {
        padding: 60px 30px;
        align-items: center;
        text-align: center;
    }
    .ud-panel {
        /* Reset alignment for mobile */
        align-items: center;
        text-align: center;
    }
    .panel-list li, .panel-list.right li {
        justify-content: center;
    }
    .panel-list.right li i {
        /* Move icon to left on mobile for consistency */
        margin-left: 0;
        margin-right: 10px;
        order: -1;
    }
    
    .vs-badge {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: -35px auto; /* Overlap nicely */
    }
    .ud-bf-container:hover .vs-badge {
         transform: rotate(180deg) scale(1.1);
    }
}

/* Knowledge Section Text Visibility Improvements */
.kn-card .vm-overlay {
    background: rgba(0, 0, 0, 0.75) !important; /* Darker overlay for readability */
}

.kn-card .vm-content {
    z-index: 2; /* Ensure content is above overlay */
}

.kn-card .text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Stronger shadow */
}

.kn-card .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important; /* Much higher opacity */
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.kn-card strong {
    font-weight: 700 !important;
}

.kn-card .definition-text {
    font-weight: 600 !important; /* Thicker font for definition */
    line-height: 1.8;
}

/* Mobile Line Break Logic */
.mobile-break {
    display: none;
}
@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

/* Knowledge Section Headers & Icons Visibility */
.kn-card .card-header-styled h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-weight: 800;
}

.kn-card .quote-icon, 
.kn-card .icon-check {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.kn-card .author-name {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.kn-card .author-title {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 20px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Blue gradient on hover */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Contact Section Styles */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form .row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .col-half {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif; /* Setup font consistency */
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #11998e;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    padding: 15px 50px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #0e857a 0%, #2ed66e 100%);
}

@media (max-width: 768px) {
    .contact-form .row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
}

/* Board Styles */
.board-container {
    width: 100%; /* Fill the container */
    margin: 0 auto;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--primary-color);
    table-layout: fixed; /* Fix layout for better control */
}

.board-table th {
    background: #f8f9fa;
    padding: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.board-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #555;
    font-size: 15px;
    white-space: nowrap; /* Prevent wrapping generally */
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-table .title {
    width: auto; /* Fluid width */
    white-space: normal; /* Allow title to wrap */
}

.board-table .title a {
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    text-align: left;
    /* Limit title lines if needed */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-table .title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.board-table .num { width: 80px; color: #888; }
.board-table .date { width: 120px; color: #888; font-size: 14px; }
.board-table .text-start { text-align: left; }

.no-posts {
    padding: 50px;
    text-align: center;
    color: #999;
}

/* Pagination */
.board-pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.board-pagination li {
    display: inline-block;
}

.board-pagination a,
.board-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
}

.board-pagination a:hover {
    background: #f8f9fa;
    border-color: #ddd;
    color: var(--primary-color);
}

.board-pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* Mobile Responsive Board */
@media (max-width: 768px) {
    .board-table thead { display: none; } /* Hide header */
    
    .board-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }
    
    .board-table td {
        display: block;
        border: none;
        padding: 2px 0;
        text-align: left;
        width: 100%;
        white-space: normal; /* Allow wrap on mobile */
    }
    
    .board-table .num { display: none; } /* Hide Index on mobile */
    
    .board-table .title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .board-table .date {
        display: block;
        width: 100%;
        font-size: 13px;
        color: #999;
        text-align: left;
    }
    
    .board-table .date::before {
        content: '작성일: ';
    }
}

/* Board Section Layout */
.board-section {
    padding: 100px 0;
    min-height: 500px;
    background: #fff;
    display: block; /* Ensure block layout, not flex */
}

/* Board View Styles */
.view-header {
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid #ddd;
    padding: 20px;
    background: #f8f9fa;
}

.view-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.view-meta {
    font-size: 14px;
    color: #888;
    display: flex;
    gap: 15px;
}

.view-content {
    padding: 40px 20px;
    min-height: 200px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.view-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-list, .btn-edit, .btn-delete {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-list {
    background: #666;
    color: #fff;
    border: 1px solid #666;
}

.btn-list:hover {
    background: #555;
    color: #fff;
}

.btn-edit {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-edit:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .view-title { font-size: 20px; }
    .view-content { padding: 20px 10px; }
}

/* WordPress Admin Bar Compatibility */
.admin-bar #header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #header {
        top: 46px;
    }
}

/* Business Modal Styles */
.udaca-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.udaca-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.3s ease-out forwards;
    max-height: 85vh; /* Limit height */
    display: flex; /* Flexbox for internal layout */
    flex-direction: column; /* Stack header and body */
    overflow: hidden; /* Prevent outer scroll */
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0; /* Header doesn't shrink */
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    text-align: left;
    overflow-y: auto; /* Internal scroll */
    flex: 1; /* Take remaining space */
}

.modal-body p {
    margin-bottom: 20px;
    word-break: keep-all;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Modal Trigger Button Style */
.modal-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    transition: color 0.3s;
}

.modal-trigger:hover {
    color: var(--secondary-color);
}

/* Fix Modal Header Overlap on Mobile */
@media (max-width: 576px) {
    .modal-header h3 {
        font-size: 1.2rem; /* Reduced from 1.5rem */
    }
    .modal-header {
        padding-right: 50px; /* Ensure text doesn't touch X button */
    }
}
