/**
 * HIEC Landing Page Styles
 * Trường Cao đẳng Kinh tế Công nghiệp Hà Nội
 * Color Palette: Maroon #800000 + Teal #006D5B + Gold #FFD700 + Mint #A8E6CF
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary-maroon: #800000;
    --color-primary-teal: #006D5B;

    /* Secondary & Accent Colors */
    --color-accent-gold: #FFD700;
    --color-accent-mint: #A8E6CF;

    /* Background & Support Colors */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F5F5F5;
    --color-text-dark: #333333;

    /* Derived Colors */
    --color-primary-maroon-light: #a33333;
    --color-primary-teal-light: #00876f;
    --color-primary-teal-dark: #005546;
    --color-accent-gold-light: #ffe44d;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   Layout Fullsize
   ============================================ */
.fullsize-content {
    width: 100%;
    overflow-x: hidden;
}

/* ============================================
   Hero Section
   ============================================ */
.lp-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-teal) 0%, var(--color-primary-teal-dark) 50%, var(--color-primary-maroon) 100%);
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="60" cy="40" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="70" r="1.5" fill="rgba(255,255,255,0.07)"/></svg>');
    background-size: 100px 100px;
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(100px) translateY(100px); }
}

.lp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.lp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 0 140px;
    width: 100%;
}

.lp-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.lp-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.lp-hero-actions {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.lp-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.lp-hero-wave svg {
    width: 100%;
    height: 80px;
}

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

/* ============================================
   Buttons
   ============================================ */
.lp-btn-primary {
    background: var(--color-primary-maroon);
    color: #fff !important;
    border: 2px solid var(--color-primary-maroon);
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    display: inline-block;
    text-decoration: none;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.lp-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.lp-btn-primary:hover::before {
    left: 100%;
}

.lp-btn-primary:hover {
    background: var(--color-primary-maroon-light);
    border-color: var(--color-primary-maroon-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.lp-btn-secondary {
    background: transparent;
    color: #fff !important;
    border: 2px solid var(--color-accent-gold);
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    display: inline-block;
    text-decoration: none;
    margin: 0 8px;
}

.lp-btn-secondary:hover {
    background: var(--color-accent-gold);
    color: var(--color-primary-maroon) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.lp-btn-outline {
    background: transparent;
    color: var(--color-primary-teal) !important;
    border: 2px solid var(--color-primary-teal);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    display: inline-block;
    text-decoration: none;
}

.lp-btn-outline:hover {
    background: var(--color-primary-teal);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.lp-btn-sm {
    background: var(--color-accent-gold);
    color: var(--color-primary-maroon) !important;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.lp-btn-sm:hover {
    background: var(--color-accent-gold-light);
    transform: translateY(-2px);
    text-decoration: none;
}

.lp-btn-lg {
    padding: 18px 48px;
    font-size: 18px;
}

/* ============================================
   Section Headers
   ============================================ */
.lp-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.lp-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary-maroon);
    margin-bottom: 12px;
    position: relative;
}

.lp-section-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 400;
}

.lp-section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-primary-teal));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   Statistics Section
   ============================================ */
.lp-stats {
    padding: 70px 0;
    background: var(--color-bg-white);
}

.lp-stat-item {
    text-align: center;
    padding: 30px 15px;
    transition: transform var(--transition-normal);
}

.lp-stat-item:hover {
    transform: translateY(-5px);
}

.lp-stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-accent-mint), rgba(168, 230, 207, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-primary-teal);
    transition: all var(--transition-normal);
}

.lp-stat-item:hover .lp-stat-icon {
    background: var(--color-primary-teal);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.lp-stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary-maroon);
    line-height: 1;
    margin-bottom: 8px;
}

.lp-stat-label {
    font-size: 15px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================
   About Section
   ============================================ */
.lp-about {
    padding: 80px 0;
    background: var(--color-bg-light);
}

.lp-about-text {
    padding-right: 30px;
}

.lp-about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: 30px;
}

.lp-about-image {
    position: relative;
}

.lp-about-placeholder {
    background: linear-gradient(135deg, var(--color-primary-teal), var(--color-primary-teal-dark));
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
    color: #fff;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.lp-about-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
}

.lp-about-placeholder i {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.lp-about-placeholder span {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
}

/* ============================================
   Programs Section
   ============================================ */
.lp-programs {
    padding: 80px 0;
    background: var(--color-bg-white);
}

.lp-program-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    min-height: 200px;
}

.lp-program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-teal), var(--color-accent-gold));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.lp-program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.lp-program-card:hover::after {
    transform: scaleX(1);
}

.lp-program-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-accent-mint), rgba(168, 230, 207, 0.4));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-primary-teal);
    transition: all var(--transition-normal);
}

.lp-program-card:hover .lp-program-icon {
    background: var(--color-primary-teal);
    color: #fff;
    transform: scale(1.1);
}

.lp-program-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.lp-program-overlay {
    opacity: 0;
    transition: opacity var(--transition-normal);
    margin-top: 15px;
}

.lp-program-card:hover .lp-program-overlay {
    opacity: 1;
}

/* ============================================
   News Section
   ============================================ */
.lp-news {
    padding: 80px 0;
    background: var(--color-bg-light);
}

.lp-news-placeholder {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px dashed #ddd;
    margin-bottom: 30px;
    color: #999;
}

.lp-news-placeholder i {
    color: var(--color-primary-teal);
    margin-bottom: 15px;
}

.lp-news-placeholder p {
    font-size: 16px;
    margin-bottom: 5px;
    color: #666;
}

.lp-news-placeholder small {
    font-size: 13px;
    color: #aaa;
}

/* ============================================
   Contact CTA Section
   ============================================ */
.lp-contact-cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-maroon) 0%, var(--color-primary-teal-dark) 100%);
    text-align: center;
    overflow: hidden;
}

.lp-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
}

.lp-contact-content {
    position: relative;
    z-index: 2;
}

.lp-contact-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.lp-contact-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet Landscape (max-width: 1199px) */
@media (max-width: 1199px) {
    .lp-hero-title {
        font-size: 36px;
    }
    .lp-hero-subtitle {
        font-size: 18px;
    }
    .lp-section-title {
        font-size: 28px;
    }
}

/* Tablet Portrait (max-width: 991px) */
@media (max-width: 991px) {
    .lp-hero {
        min-height: 500px;
    }
    .lp-hero-title {
        font-size: 30px;
    }
    .lp-hero-subtitle {
        font-size: 16px;
    }
    .lp-hero-content {
        padding: 80px 15px 120px;
    }
    .lp-stats {
        padding: 50px 0;
    }
    .lp-stat-number {
        font-size: 32px;
    }
    .lp-about {
        padding: 60px 0;
    }
    .lp-about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .lp-programs {
        padding: 60px 0;
    }
    .lp-news {
        padding: 60px 0;
    }
    .lp-contact-cta {
        padding: 70px 0;
    }
    .lp-contact-content h2 {
        font-size: 28px;
    }
    .lp-section-header {
        margin-bottom: 35px;
    }
}

/* Mobile Landscape (max-width: 767px) */
@media (max-width: 767px) {
    .lp-hero {
        min-height: 450px;
    }
    .lp-hero-title {
        font-size: 26px;
        padding: 0 10px;
    }
    .lp-hero-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }
    .lp-hero-content {
        padding: 60px 10px 100px;
    }
    .lp-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .lp-btn-primary,
    .lp-btn-secondary {
        margin: 0;
        width: 80%;
        max-width: 300px;
        text-align: center;
    }
    .lp-stats {
        padding: 40px 0;
    }
    .lp-stat-item {
        padding: 20px 10px;
    }
    .lp-stat-number {
        font-size: 28px;
    }
    .lp-stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .lp-about {
        padding: 50px 0;
    }
    .lp-about-placeholder {
        min-height: 200px;
        padding: 40px 20px;
    }
    .lp-about-placeholder i {
        font-size: 48px;
    }
    .lp-programs {
        padding: 50px 0;
    }
    .lp-program-card {
        padding: 30px 15px;
        min-height: auto;
    }
    .lp-news {
        padding: 50px 0;
    }
    .lp-contact-cta {
        padding: 60px 15px;
    }
    .lp-contact-content h2 {
        font-size: 24px;
    }
    .lp-contact-content p {
        font-size: 15px;
    }
    .lp-btn-lg {
        padding: 14px 32px;
        font-size: 16px;
    }
    .lp-section-title {
        font-size: 24px;
    }
}

/* Mobile Portrait (max-width: 479px) */
@media (max-width: 479px) {
    .lp-hero {
        min-height: 400px;
    }
    .lp-hero-title {
        font-size: 22px;
    }
    .lp-hero-subtitle {
        font-size: 14px;
    }
    .lp-btn-primary,
    .lp-btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        width: 90%;
    }
    .lp-stat-item {
        padding: 15px 5px;
    }
    .lp-stat-number {
        font-size: 24px;
    }
    .lp-stat-label {
        font-size: 12px;
    }
    .lp-section-title {
        font-size: 22px;
    }
    .lp-section-subtitle {
        font-size: 14px;
    }
    .lp-program-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    .lp-contact-content h2 {
        font-size: 20px;
    }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.lp-program-card,
.lp-stat-item,
.lp-about-text,
.lp-about-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lp-program-card.lp-visible,
.lp-stat-item.lp-visible,
.lp-about-text.lp-visible,
.lp-about-image.lp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.lp-program-card:nth-child(2) { transition-delay: 0.1s; }
.lp-program-card:nth-child(3) { transition-delay: 0.2s; }
.lp-program-card:nth-child(4) { transition-delay: 0.3s; }
.lp-program-card:nth-child(5) { transition-delay: 0.4s; }
.lp-program-card:nth-child(6) { transition-delay: 0.5s; }

.lp-stat-item:nth-child(2) { transition-delay: 0.1s; }
.lp-stat-item:nth-child(3) { transition-delay: 0.2s; }
.lp-stat-item:nth-child(4) { transition-delay: 0.3s; }
