* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
}

/* Header */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.header-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #8b153840;  
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 0.8s ease-out forwards;
}

.sparkle-bg {
    position: absolute;
    font-size: 4rem;
    opacity: 0;
    animation: sparkleIn 0.6s ease-out forwards;
}

.sparkle-1 {
    top: 1rem;
    right: 1rem;
    color: #fbbf24;
    opacity: 0.2;
    animation-delay: 0.5s;
}

.sparkle-2 {
    bottom: 1rem;
    left: 1rem;
    color: #8B1538;
    opacity: 0.1;
    font-size: 5rem;
    animation-delay: 0.7s;
}

.board-button {
    background: #8B1538;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeInScale 0.5s ease-out 0.3s forwards;
}

.board-button:hover {
    background: #6B1028;
    transform: scale(1.05);
}

.main-title {
	font-family: 'SCDream5', sans-serif; 
    font-size: 36px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

.sub-title {
    font-size: 1.875rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

.highlight {
	font-family: 'SCDream5', sans-serif; 
	font-size: 36px;
    color: #8B1538;
    font-weight: 600;
}

/* Section Container */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-header {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-20px);
}

.section-title {
    font-family: 'SCDream4', sans-serif; 
	font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-star, .icon-grid, .icon-layout {
    font-size: 1.5rem;
    display: inline-block;
}

.icon-star {
    color: #D68B3C;
}

.icon-grid, .icon-layout {
    color: #8B1538;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #8b153840;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.emblem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .emblem-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.logo-display {
    display: flex;
    align-items: center;      /* 세로 중앙 */
    justify-content: center;  /* 가로 중앙 */
    padding: 2rem;
    border: 1px solid #cfd0d1;
    border-radius: 0.5rem;
    background: #f9fafb;
}

.logo-display img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.logo-center {
    text-align: center;
}

.logo-number img{
    width: 65%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.number-orange {
    color: #D68B3C;
}

.number-orange-star {
    color: #D68B3C;
    position: relative;
}

.star-accent {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    color: #fbbf24;
}

.number-red {
    color: #8B1538;
}

.number-gray {
    color: #9ca3af;
}

.number-red-infinity {
    color: #8B1538;
    position: relative;
}

.logo-school {
    font-size: 1.25rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 0.25rem;
}

.logo-since {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Color Info */
.color-info {
    margin-top: 1rem;
}

.info-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.color-list {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    align-items: flex-start;
}

.color-item {
    margin-bottom: 0;
}

.color-box {
    height: 4rem;
    width: 160px;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.color-red {
    background: #842f59;
}

.color-orange {
    background: #f7941d;
}

.color-name {
	font-family: 'SCDream3', sans-serif; 
	font-size: 17px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.color-detail {
	font-family: 'SCDream3', sans-serif; 
	font-size: 17px;
    font-size: 0.875rem;
    color: #4b5563;
}

@media (max-width: 767px) {
    .color-list {
        flex-direction: column;
    }

    .color-item {
        margin-bottom: 1rem;
    }
}

/* Description List */
.description-list {
    border-left: 4px solid #D68B3C;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description-item {
    display: flex;
    gap: 0.75rem;
}

.check-icon {
    color: #8B1538;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.description-item p {
	font-family: 'SCDream3', sans-serif; 
	font-size: 17px;
    color: #374151;
    line-height: 1.6;
}

/* Emblem Gallery */
.emblem-gallery {
    display: grid;
    gap: 1rem;
}

.vertical-gallery {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .vertical-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.horizontal-gallery {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .horizontal-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.emblem-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1.5px solid #8b153840;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.emblem-card img{
    width: 85%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.emblem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.emblem-content {
    padding: 1.5rem;
    text-align: center;
}
.emblem-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.emblem-school {
    font-size: 1rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 0.25rem;
}

.emblem-since {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Circle Emblem */
.circle-emblem {
    position: relative;
    padding: 1.5rem;
}

.circle-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8rem;
    height: 8rem;
    /* border: 2px solid #d1d5db; */
    border-radius: 50%;
}

.circle-content {
    position: relative;
    z-index: 1;
}

.circle-text-top, .circle-text-bottom {
    font-size: 0.625rem;
    color: #6b7280;
}

.circle-text-top {
    margin-bottom: 0.5rem;
}

.circle-text-bottom {
    margin-top: 0.75rem;
}

.logo-number-small {
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.star-accent-small {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.875rem;
    color: #fbbf24;
}

/* Horizontal Card */
.horizontal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.horizontal-divider {
    width: 2px;
    height: 4rem;
    background: #d1d5db;
}

.horizontal-text {
    text-align: center;
}

.horizontal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #8B1538;
    margin-bottom: 0.25rem;
}

.horizontal-school {
    font-size: 0.875rem;
    font-weight: bold;
    color: #374151;
    margin-top: 0.5rem;
}

/* Emblem Footer */
.emblem-footer {
    padding: 0 1rem 1rem 1rem;
}

.download-btn {
    width: 100%;
    border: 1px solid #8B1538;
    color: #8B1538;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #8B1538;
    color: white;
    transform: scale(1.02);
}

/* Download Section */
.download-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem 5rem 1rem;
}

.download-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

@media (min-width: 768px) {
    .download-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-download-btn {
    background: white;
    border: 2px solid #80254f;
    color: #80254f;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.main-download-btn:hover {
    background: #1f2937;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.25rem;
}

.download-icon {
    /* animation: bounce 1.5s ease-in-out infinite; */
}

.download-icon-2 {
    animation-delay: 0.2s;
}

/* Animations */
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sparkleIn {
    to {
        opacity: 0.2;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
    }
    to {
        transform: rotate(0) scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.75rem);
    }
}

/* Visibility classes for scroll animations */
.visible {
    animation: slideInLeft 0.6s ease-out forwards;
}

.visible-up {
    animation: slideInUp 0.7s ease-out forwards;
}

.icon-visible {
    animation: rotateIn 0.5s ease-out forwards;
}

.card-visible {
    animation: slideInUp 0.5s ease-out forwards;
}
