/* ==============================================
   CSS RESET
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.video-hero {
    min-height: 40vh;
    background-image: url('../../images/aptech_videos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 30px 40px 30px;
    position: relative;
    overflow: hidden;
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.video-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    word-break: keep-all;
    word-wrap: break-word;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.video-hero p {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    word-break: keep-all;
    word-wrap: break-word;
    color: white;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

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

/* ==============================================
   VIDEO GALLERY SECTION
   ============================================== */
.video-gallery-section {
    width: 100%;
    padding: 80px 20px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

/* Section Header */
.video-section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.video-section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    word-break: keep-all;
    word-wrap: break-word;
}

.video-section-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
    word-break: keep-all;
    word-wrap: break-word;
}

/* Video Grid Container */
.video-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Video Card */
.video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
    position: relative;
}

.video-card:nth-child(1) { transition-delay: 0s; }
.video-card:nth-child(2) { transition-delay: 0.1s; }
.video-card:nth-child(3) { transition-delay: 0.2s; }
.video-card:nth-child(4) { transition-delay: 0.3s; }
.video-card:nth-child(5) { transition-delay: 0.4s; }
.video-card:nth-child(6) { transition-delay: 0.5s; }
.video-card:nth-child(7) { transition-delay: 0.6s; }
.video-card:nth-child(8) { transition-delay: 0.7s; }

.video-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Video Wrapper (Vertical Aspect Ratio) */
.video-wrapper {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical videos */
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==============================================
   FOOTER STYLES
   ============================================== */
footer {
    background: #2d3436;
    color: white;
    padding: 60px 0 40px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

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

.footer-main {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #636e72;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo-section img {
    height: 60px;
    margin-right: 25px;
    filter: brightness(1.2);
}

.footer-logo-section div {
    font-size: 14px;
    color: #b2bec3;
    line-height: 1.6;
    word-break: keep-all;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: start;
}

.footer-info-grid article h4 {
    font-size: 16px;
    color: #f58f27;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.footer-info-grid article p {
    font-size: 14px;
    color: #b2bec3;
    line-height: 1.7;
    margin: 0;
    word-break: keep-all;
}

.contact-info {
    color: #ddd;
    margin-top: 8px;
    display: block;
}

.contact-info a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #f58f27;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 12px;
    color: #636e72;
    margin: 0;
    word-break: keep-all;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
    .video-gallery-section {
        padding: 60px 15px;
    }
    
    .video-section-header h2 {
        font-size: 36px;
    }
    
    .video-section-header p {
        font-size: 16px;
    }
    
    .video-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .video-hero {
        min-height: 35vh;
        padding: 100px 20px 30px 20px;
    }
    
    .video-hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .video-hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Video Gallery Section */
    .video-gallery-section {
        padding: 50px 15px;
    }
    
    .video-section-header {
        margin-bottom: 40px;
    }
    
    .video-section-header h2 {
        font-size: 30px;
    }
    
    .video-section-header p {
        font-size: 15px;
    }
    
    .video-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 30px 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-main {
        margin-bottom: 30px;
    }
    
    .footer-logo-section img {
        height: 40px;
        margin-right: 20px;
    }
    
    .footer-logo-section div {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-info-grid article h4 {
        font-size: 14px;
    }
    
    .footer-info-grid article p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .footer-copyright p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .video-gallery-section {
        padding: 40px 12px;
    }
    
    .video-section-header {
        margin-bottom: 30px;
    }
    
    .video-section-header h2 {
        font-size: 26px;
    }
    
    .video-section-header p {
        font-size: 14px;
    }
    
    .video-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
        max-width: 320px;
        margin: 0 auto;
    }
}
