/* AceGreen CSS for GNUBOARD Theme */

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

:root {
    --primary-color: #5fb85e;
    --secondary-color: #4caf50;
    --accent-color: #8bc34a;
    --dark-color: #2e7d32;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.acegreen-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1 1 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.header-right {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 28px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-label {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.logo-name {
    font-size: 18px;
    font-weight: 700;
}

.tagline_1 {
    color: #76aa15;
    font-size: 40px;
    margin-left: 20px;
    font-weight: 400;
    font-family: 'Nanum Pen Script', cursive;
    letter-spacing: 0.5px;
}

.tagline_2 {
    color: #378b51;
    font-size: 40px;
    margin-left: 20px;
    font-weight: 400;
    font-family: 'Nanum Pen Script', cursive;
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 10px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Hero Slider Section */
.hero {
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 800px;
}

.swiper-slide {
    position: relative;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-text {
    animation: slideInLeft 0.8s ease;
    max-width: 600px;
    margin-top: 200px;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title span {
    color: #FFD700;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
}

/* Swiper Custom Styles */
.hero-swiper .swiper-pagination {
    bottom: 30px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Service Buttons */
.service-buttons {
    margin: -40px auto 60px;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 999;
}

.service-buttons-mobile {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    margin: -40px auto 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 999;
}

.service-btn {
    flex: 1;
    padding: 25px 20px;
    text-align: center;
    color: white;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.service-btn:nth-child(1) {
    background: #8BC34A;
}

.service-btn:nth-child(1):hover {
    background: #7CB342;
}

.service-btn:nth-child(2) {
    background: #4CAF50;
}

.service-btn:nth-child(2):hover {
    background: #43A047;
}

.service-btn:nth-child(3) {
    background: #757575;
}

.service-btn:nth-child(3):hover {
    background: #616161;
}

.service-btn i {
    font-size: 28px;
    margin-bottom: 5px;
}

.service-btn-text {
    font-size: 15px;
    font-weight: 500;
}

/* Mobile Service Buttons */
.mobile-service-btn {
    border: none;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    color: white;
}

.mobile-service-btn:nth-child(1) {
    background: #8BC34A;
}

.mobile-service-btn:nth-child(2) {
    background: #4CAF50;
}

.mobile-service-btn:nth-child(3) {
    background: #757575;
}

.mobile-service-btn span {
    font-size: 13px;
    font-weight: 500;
    color: white;
}

/* Service Sections */
.services {
    padding: 30px 0;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
    animation: fadeInUp 0.8s ease;
}

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

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse > * {
    direction: ltr;
}

.service-image {
    position: relative;
    overflow: hidden;
}

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

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

.service-content {
    padding: 30px;
}

.t_1 {
    color: var(--primary-color) !important;
}

.service-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.feature-item {
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e3e3e3;
}

.feature-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.feature-label {
    font-size: 13px;
    font-weight: 500;
}

/* Contact Form Section */
.apply {
    background: linear-gradient(135deg, #5fb85e 0%, #4a9d4a 100%);
    padding: 80px 0;
    color: white;
}

.apply-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.apply-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: #000;
}

.apply-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.form-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-grid input,
.form-grid select {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 14px 18px;
    width: 100%;
    font-size: 14px;
    color: #000;
    transition: all 0.3s;
    border-radius: 5px;
}

.form-grid input::placeholder {
    color: #999;
}

.form-grid select {
    color: #333;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: #5fb85e;
    background: #fff;
    outline: none;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group select,
.phone-group input {
    flex: 1;
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.privacy-check input {
    width: 16px;
    height: 16px;
}

.privacy-check label {
    font-size: 14px;
    color: #333;
}

.set_btn {
    text-align: center;
    margin-top: 30px;
}

.btn_sm {
    background: #5fb85e;
    border: 2px solid #5fb85e;
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
}

.btn_sm:hover {
    background: #4a9d4a;
    border-color: #4a9d4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 184, 94, 0.3);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 20px;
}

/* CTA Status Section */
.cta-status {
    padding: 80px 0;
    background: var(--bg-light);
}

.cta-status-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 30px;
    align-items: stretch;
}

.status-panel {
    background: white;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.real-time-status {
    width: 100%;
    font-size: 14px;
}

.real-time-status thead {
    background: #f8f9fa;
}

.real-time-status th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid #dee2e6;
}

.real-time-status td {
    padding: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.real-time-status .time {
    color: var(--primary-color);
    font-weight: 500;
}

.cta-center-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-dark-bg {
    padding: 40px 30px;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-phone {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-hours {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.event-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(76,175,80,0.2);
}

.event-content {
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-label {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.event-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.event-image-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-image-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #3a4750;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    margin-top: 0;
}

.footer-wrapper {
    padding-bottom: 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-time-list {
    list-style: none;
    padding: 0;
}

.footer-time-list li {
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.time-green {
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.company-info {
    font-size: 14px;
    line-height: 1.8;
}

.company-info p {
    margin: 5px 0;
}

.company-info strong {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Bottom Bar (Mobile) */
.bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-bar-inner {
    display: flex;
    justify-content: space-around;
    padding: 10px;
}

.bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.bottom-btn:hover {
    background: rgba(255,255,255,0.1);
}

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

.bottom-btn i {
    font-size: 20px;
}

.bottom-btn span {
    font-size: 12px;
}

.scroll-to-top-mobile {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
}

.dropdown-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #1a1a1a;
}

.dropdown-header {
    background: #2c5530;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.dropdown-logo i {
    font-size: 30px;
    color: #4CAF50;
}

.dropdown-logo-text {
    display: flex;
    flex-direction: column;
}

.dropdown-logo-text span:first-child {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 2px;
}

.dropdown-logo-text span:last-child {
    font-size: 20px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 50px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4CAF50;
    transition: width 0.3s;
}

.main-nav a:hover {
    color: #4CAF50;
}

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

.menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s;
}

.menu-close:hover {
    transform: rotate(90deg);
    color: #4CAF50;
}

.dropdown-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 60px;
}

.dropdown-column h3 {
    color: #4CAF50;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
    font-weight: 600;
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-column li {
    margin-bottom: 15px;
}

.dropdown-column li.sub-item {
    padding-left: 15px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.dropdown-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
    position: relative;
}

.dropdown-column a:hover {
    color: white;
    padding-left: 20px;
}

.member-info {
    grid-column: span 5;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.member-info a {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .cta-status-grid {
        grid-template-columns: 1fr 1fr;
    }

    .status-panel {
        grid-column: span 2;
    }
}

@media (max-width: 968px) {
    .header-center {
        display: none;
    }

    .hero-swiper {
        height: 400px;
    }

    .hero-text {
        margin-top: 50px;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .service-card.reverse {
        direction: ltr;
    }

    .service-buttons {
        display: none;
    }

    .service-buttons-mobile {
        display: grid;
    }

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

    .cta-status-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .bottom-bar {
        display: block;
    }

    footer {
        padding-bottom: 80px;
    }

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

    .main-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .acegreen-header {
        height: 70px;
    }

    .hero {
        margin-top: 70px;
    }

    .hero-title {
        font-size: 32px;
    }

    .service-title {
        font-size: 28px;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .member-info {
        grid-column: span 1;
    }
}

/* Hide GNUBOARD default elements */
#hd_h1, .to_content {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}