:root {
    --primary-color: #3B82F6;
    --secondary-color: #7C3AED;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --font-primary: 'Inter', 'Pretendard', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 60px;
}

main {
    margin: 0px 12px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title.text-start {
    text-align: left !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#hero {
    width: 100%;
    min-height: 90vh;
    background: var(--bg-white);
}

#hero h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    color: var(--text-dark);
}

#hero .lead {
    color: var(--text-light);
    margin: 20px 0 30px 0;
}

#hero .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 28px;
    font-weight: 600;
    margin-right: 10px;
}

#hero .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-dark);
    padding: 12px 28px;
    font-weight: 600;
}

.flow-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

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

.flow-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--flow-color);
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.flow-content h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.flow-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.flow-connector {
    height: 30px;
    width: 2px;
    margin: 10px 0 10px 24px;
    background-color: var(--border-color);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: drawLine 0.2s ease-out forwards;
}

.hero-flow-container .flow-card:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-flow-container .flow-connector:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-flow-container .flow-card:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-flow-container .flow-connector:nth-child(4) {
    animation-delay: 0.9s;
}

.hero-flow-container .flow-card:nth-child(5) {
    animation-delay: 1.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-story {
    background-color: var(--bg-white);
}

.brand-story .section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.brand-story .section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.brand-story .section-title p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes drawLine {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}


.about {
    background-color: var(--bg-light-gray);
}

.about .section-title {
    margin-bottom: 40px;
}

.about-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.nexttoedu .platform-preview {
    background-color: #F3F4F6;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-vision {
    background-color: var(--bg-white);
}

.vision-item {
    display: flex;
    align-items: flex-start;
}

.vision-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.vision-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.vision-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.community-vision-graphic {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 20px;
}

.projects {
    background-color: var(--bg-light-gray);
}

.btn-filter {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    margin: 0 5px;
    transition: all 0.3s;
}

.btn-filter.active,
.btn-filter:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.project-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.project-card .project-img {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.project-card .project-img .shape {
    position: absolute;
    opacity: 0.7;
}

.project-card .project-img .shape-1 {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    top: 15px;
    left: 15px;
    transform: rotate(25deg);
}

.project-card .project-img .shape-2 {
    width: 100px;
    height: 100px;
    background-color: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    bottom: -10px;
    right: -10px;
}

.project-card .project-img .shape-3 {
    width: 60px;
    height: 60px;
    background-color: rgba(124, 58, 237, 0.3);
    border-radius: 10px;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.project-card .project-info {
    padding: 20px;
}

.reviews {
    background-color: var(--bg-white);
}

.review-content {
    max-width: 700px;
    margin: auto;
}

.review-content .quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100) brightness(0.5);
}

.future-plans {
    background-color: var(--bg-light-gray);
}

.plan-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.plan-card .plan-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.plan-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.plan-card p {
    color: var(--text-light);
}

.cta {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
}

.cta h2 {
    font-size: 2.5rem;
}

.cta .btn-primary {
    background-color: var(--bg-white);
    border-color: var(--bg-white);
    color: var(--primary-color);
}

#footer {
    background: var(--text-dark);
    color: #CED4DA;
    padding: 40px 0;
}

#footer h3,
#footer h4 {
    color: var(--bg-white);
}

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

#footer .footer-links ul li {
    padding: 10px 0;
}

#footer .footer-links ul a {
    color: #CED4DA;
    text-decoration: none;
    transition: color 0.3s;
}

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

#footer .social-links a {
    font-size: 1.8rem;
    color: #ADB5BD;
    margin: 0 12px;
    transition: color 0.3s;
}

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

#footer .copyright {
    border-top: 1px solid #374151;
    padding-top: 20px;
    color: #6C757D;
}

@media (max-width: 991.98px) {
    #hero {
        min-height: 70vh;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero .lead {
        font-size: 1rem;
    }

    #hero .hero-flow-container {
        margin-top: 40px;
    }

    .flow-card {
        padding: 15px;
    }

    .flow-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 15px;
    }

    .flow-content h5 {
        font-size: 1rem;
    }

    .flow-content p {
        font-size: 0.8rem;
    }

    .flow-connector {
        margin: 8px 0 8px 19px;
    }

    section {
        padding: 60px 0;
    }

    .about-card,
    .plan-card {
        padding: 30px;
    }

    .about-card .icon {
        font-size: 1.8rem;
    }

    .vision-item .vision-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 15px;
    }

    .vision-item h5 {
        font-size: 1rem;
    }

    .vision-item p {
        font-size: 0.8rem;
    }

    .community-vision-graphic {
        height: 250px;
    }

    .project-card .project-img .shape-1 {
        width: 50px;
        height: 50px;
    }

    .project-card .project-img .shape-2 {
        width: 70px;
        height: 70px;
    }

    .project-card .project-img .shape-3 {
        width: 40px;
        height: 40px;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    #hero {
        min-height: 60vh;
        text-align: center;
    }

    #hero .col-lg-6 {
        text-align: center;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero .lead {
        font-size: 0.9rem;
    }

    #hero .btn-primary,
    #hero .btn-outline-secondary {
        display: block;
        width: 70%;
        margin: 10px auto;
    }

    #hero .hero-flow-container {
        margin-top: 30px;
        align-items: center;
    }

    .flow-card {
        width: 90%;
        margin: 0 auto;
    }

    .flow-connector {
        margin: 10px auto;
    }

    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: calc(1.3rem + .6vw);
        text-align: center;
    }

    .section-title p {
        font-size: 1rem;
        text-align: center;
    }

    .brand-story .section-title h2 {
        font-size: calc(1.3rem + .6vw);
        text-align: center;
    }

    .brand-story .section-title p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    .plan-card p {
        text-align: left;
    }

    .cta h2 {
        font-size: calc(1.3rem + .6vw);
    }
}
