/* LEED Index Page Custom Styles */

/* Hero Section */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a202c !important; /* 진한 회색으로 가독성 향상 */
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Partners Section with Marquee Effect */
.partners-marquee {
    width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    position: relative !important;
    padding: 10px 0 !important;
}

.partners-track {
    display: flex !important;
    animation: marquee 40s linear infinite !important;
    width: calc(200%) !important;
    will-change: transform !important;
}

.partner-item {
    flex: 0 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.partner-item img {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
    max-height: 40px;
}

.partner-item:hover img {
    opacity: 1 !important;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-placeholder {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.partner-item:hover .partner-placeholder {
    opacity: 1;
    transform: scale(1.05);
    background: #bbb !important;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

/* Ensure smooth animation */
.partners-track {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Testimonials Cards */
.testimonials-section .card {
    transition: transform 0.3s ease;
    border-radius: 15px;
}

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

/* Certification Badges */
.certification-badge {
    transition: transform 0.3s ease;
}

.certifications-section .card:hover .certification-badge {
    transform: scale(1.05);
}

/* FAQ Cards with Flip Effect */
.faq-item {
    background-color: transparent;
    width: 100%;
    height: 280px;
    perspective: 1000px !important;
}

.faq-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.faq-item.flipped .faq-flip-inner {
    transform: rotateY(180deg);
}

.faq-question, .faq-answer {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
}

.faq-answer {
    transform: rotateY(180deg);
}

.faq-card {
    transition: transform 0.3s ease;
    position: relative;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

/* FAQ 질문 영역 스타일링 (플립 카드 앞면) */
.faq-question {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    background: white !important;
    color: #333 !important;
    cursor: pointer !important;
}

.faq-question > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 아이콘과 텍스트를 상하로 분리 */
    align-items: center;
    width: 100%;
    height: 100%;
    padding-bottom: 50px; /* + 버튼 공간 확보 */
}

.faq-icon {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.faq-question h5 {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    padding: 0 10px !important;
}

.faq-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.faq-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.faq-toggle .badge, .faq-close .badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-toggle .badge:hover, .faq-close .badge:hover {
    transform: scale(1.1);
}

.faq-flip-card-back .faq-card {
    justify-content: flex-start;
}

/* FAQ 답변 영역 스타일링 (플립 카드 뒷면) */
.faq-answer {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    background: #3182ce !important;
    color: white !important;
}

.faq-content {
    width: 100% !important;
    max-width: calc(100% - 60px) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: calc(280px - 80px) !important;
    padding-top: 20px !important;
}

.faq-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
}

.faq-flip-card-back p,
.faq-answer p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.faq-answer p:last-child {
    margin-bottom: 0 !important;
}

.faq-close .badge {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-icon {
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    background: #3182ce !important;
    color: white;
}

.process-step:hover .process-icon i {
    color: white !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        min-height: 500px;
        padding: 60px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .btn {
        font-size: 1rem;
        padding: 12px 30px !important;
    }
    
    .hero-section .row .col-md-4 {
        margin-bottom: 10px;
    }
    
    .hero-section small {
        font-size: 0.9rem;
    }
    
    /* Partners Section Mobile */
    .partners-section {
        padding: 2rem 0 !important;
    }
    
    .partners-section h5 {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }
    
    .partner-item {
        padding: 0 20px !important;
    }
    
    .partner-item img {
        max-height: 30px !important;
    }
    
    /* Testimonials Mobile */
    .testimonials-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem !important;
    }
    
    .testimonials-section .card-body {
        padding: 1.5rem !important;
    }
    
    .testimonials-section .card-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Certifications Mobile */
    .certifications-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem !important;
    }
    
    .certification-badge {
        width: 100px !important;
        height: 100px !important;
    }
    
    .certification-badge div {
        font-size: 18px !important;
    }
    
    .certification-badge .text-white div:first-child {
        font-size: 20px !important;
    }
    
    /* FAQ Mobile */
    .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem !important;
    }
    
    .faq-flip-card {
        height: 250px;
    }
    
    .faq-card {
        margin-bottom: 1rem;
        height: 250px;
    }
    
    .faq-card h5 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .faq-icon {
        margin-bottom: 1rem !important;
    }
    
    .faq-icon i {
        font-size: 2rem !important;
    }
    
    .faq-flip-card-back p,
    .faq-answer p {
        font-size: 1rem !important;
        text-align: left;
    }
    
    .faq-close .badge {
        width: 25px !important;
        height: 25px !important;
        font-size: 16px !important;
    }
    
    /* Process Guide Mobile */
    .process-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem !important;
    }
    
    .process-card {
        padding: 2rem !important;
        border-radius: 15px !important;
    }
    
    .process-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }
    
    .process-icon i {
        font-size: 1.5rem !important;
    }
    
    .process-step h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 10px 25px !important;
    }
    
    .partners-section img {
        max-height: 30px !important;
    }
    
    .certification-badge {
        width: 80px !important;
        height: 80px !important;
    }
    
    .certification-badge div {
        font-size: 14px !important;
    }
    
    .certification-badge .text-white div:first-child {
        font-size: 16px !important;
    }
    
    .faq-card {
        min-height: 180px;
    }
    
    .process-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .process-icon i {
        font-size: 1.2rem !important;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .certification-badge {
        width: 110px !important;
        height: 110px !important;
    }
    
    .faq-card h5 {
        font-size: 1.1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Hover Effects */
.btn-dark:hover {
    background-color: #1a202c;
    border-color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Card Shadows */
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Animation for elements entering viewport */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Ensure proper spacing */
section {
    position: relative;
}

/* Fix for mobile spacing */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}
