/* ===== UPCOMING EVENTS STYLES ===== */
.upcoming-events {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.upcoming-events::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"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.event-card.featured {
    border: 2px solid #FF6B35;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.event-poster {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-card:nth-child(2) .event-poster {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.event-card:nth-child(3) .event-poster {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.event-card:nth-child(4) .event-poster {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.event-card:nth-child(5) .event-poster {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.poster-placeholder i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FF6B35;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content-new {
    padding: 30px;
}

.event-type-new {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.event-type-new.seminar {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.event-type-new.workshop {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
}

.event-type-new.webinar {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
}

.event-type-new.training {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item i {
    width: 16px;
    color: #FF6B35;
}

.event-price-new {
    margin-bottom: 25px;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    display: block;
}

.price-main.free {
    color: #43e97b;
}

.price-early {
    font-size: 0.9rem;
    color: #FF6B35;
    font-weight: 600;
}

.register-btn-new {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.register-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.register-btn-new i {
    font-size: 1rem;
}

/* Responsive Design for Events */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-poster {
        height: 150px;
    }
    
    .event-content-new {
        padding: 20px;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
}

/* ===== EVENT CATEGORIES TWO COLUMN STYLES ===== */
.event-categories-two-column {
    padding: 100px 0;
    background: #1a237e;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 165, 0, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255, 165, 0, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(255, 165, 0, 0.03) 50%, transparent 51%);
    background-size: 100px 100px, 150px 150px, 20px 20px, 20px 20px;
    position: relative;
    overflow: hidden;
}

.event-categories-two-column::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"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,165,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}

.section-header-center {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-header-center h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-header-center p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Left Column - Categories */
.categories-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-minicard {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 5px solid #FF6B35;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.category-minicard:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-left-width: 8px;
}

.minicard-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.minicard-icon i {
    font-size: 1.5rem;
    color: white;
}

.minicard-content {
    flex: 1;
}

.minicard-content h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.minicard-content p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.minicard-badge {
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Right Column - Subscribe Form */
.subscribe-column {
    position: sticky;
    top: 100px;
}

.subscribe-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-header {
    text-align: center;
    margin-bottom: 30px;
}

.subscribe-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.subscribe-icon i {
    font-size: 2rem;
    color: white;
}

.subscribe-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.subscribe-header p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1rem;
}

.subscribe-benefits {
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.benefit-item i {
    color: #FF6B35;
    font-size: 1.1rem;
}

.benefit-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.subscribe-form {
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 1rem;
    z-index: 2;
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group .fa-chevron-down {
    right: 18px;
    left: auto;
    pointer-events: none;
}

.subscribe-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.subscribe-btn::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 ease;
}

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

.subscribe-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    font-size: 0.85rem;
    text-align: center;
    justify-content: center;
}

.subscribe-note i {
    color: #FF6B35;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .two-column-layout {
        gap: 40px;
    }
    
    .subscribe-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .event-categories-two-column {
        padding: 80px 0;
    }
    
    .section-header-center h2 {
        font-size: 2.2rem;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .subscribe-column {
        position: static;
    }
    
    .category-minicard {
        padding: 20px;
        gap: 15px;
    }
    
    .minicard-icon {
        width: 50px;
        height: 50px;
    }
    
    .minicard-icon i {
        font-size: 1.2rem;
    }
    
    .minicard-content h4 {
        font-size: 1.1rem;
    }
    
    .subscribe-card {
        padding: 25px;
    }
    
    .subscribe-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-minicard {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .minicard-content {
        text-align: center;
    }
    
    .subscribe-card {
        padding: 20px;
    }
}