/* สไตล์สำหรับหน้าปกของกิจกรรมทั้งหมด */

.cover-container {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.cover-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cover-header {
    background-color: rgba(45, 60, 142, 0.95);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cover-header::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    top: -125px;
    right: -125px;
    border-radius: 50%;
}

.cover-header::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

/* สไตล์สำหรับโลโก้บริษัท */
.company-logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.company-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* เพิ่มสไตล์สำหรับหน้า home */
.home-logo {
    max-width: 200px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    margin-bottom: 1.5rem;
}

.cover-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.cover-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.cover-body {
    background-color: white;
    padding: 2rem;
    text-align: center;
}

.cover-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cover-description {
    color: var(--neutral-700);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cover-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cover-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.cover-btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(45, 60, 142, 0.3);
}

.cover-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 60, 142, 0.4);
}

.cover-btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cover-btn-secondary:hover {
    background-color: var(--neutral-200);
    transform: translateY(-2px);
}

.cover-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.cover-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-300);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-label {
    color: var(--neutral-600);
    font-size: 0.85rem;
}

.info-value {
    color: var(--neutral-900);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Live Training specific styling */
.cover-container.live {
    border-top: 5px solid var(--primary);
}

/* E-Learning specific styling */
.cover-container.elearning {
    border-top: 5px solid var(--success);
}

.cover-container.elearning .cover-header {
    background-color: rgba(40, 167, 69, 0.95);
}

.cover-container.elearning .cover-icon {
    color: var(--success);
}

.cover-container.elearning .cover-btn-primary {
    background-color: var(--success);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.cover-container.elearning .cover-btn-primary:hover {
    background-color: #218838;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

.cover-container.elearning .cover-btn-secondary {
    color: var(--success);
    border-color: var(--success);
}

.cover-container.elearning .info-icon {
    color: var(--success);
}

/* เพิ่มเส้นตกแต่งใต้โลโก้ */
.logo-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    width: 80%;
    margin: 1rem auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cover-title {
        font-size: 2rem;
    }
    
    .cover-subtitle {
        font-size: 1rem;
    }
    
    .cover-icon {
        font-size: 3rem;
    }
    
    .cover-description {
        font-size: 1rem;
    }
    
    .cover-info {
        gap: 1.5rem;
    }

    .company-logo {
        max-width: 140px;
    }
}

/* Animation for elements */
.animated-fade {
    animation: fadeIn 0.8s ease forwards;
}

.animated-slide-up {
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Wave decoration at the bottom of header */
.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 30px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

.cover-container.live .wave-divider .shape-fill {
    fill: #FFFFFF;
}

.cover-container.elearning .wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* Homepage improvements */
.home-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 50% 50% / 20px;
    overflow: hidden;
}

.home-header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.home-header::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    z-index: 1;
}

.home-header .company-logo-container {
    margin-bottom: 1.5rem;
}

.home-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.home-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 10;

    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 10;
    position: relative;
    z-index: 10;
}
