/* assets/css/home.css */

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), 
                url('https://www.sapvs.org.za/assets/images/heros/main-hero.PNG') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 140px 20px 100px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 128, 128, 0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-primary {
    background: #14b8a6;
    color: white;
}

.btn-primary:hover {
    background: #0f766e;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #1e2937;
}

/* ================= URGENT WEBINAR ================= */
.urgent-webinar {
    background: #dc2626;
    color: white;
    padding: 18px 0;
    font-weight: 600;
}

.urgent-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ================= LATEST UPDATES ================= */
.latest-updates {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: #1e2937;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.update-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image.event-bg {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);   /* Blue to Teal */
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    background: #14b8a6;
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}

.card-content h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-content p {
    color: #475569;
    margin-bottom: 1rem;
    flex: 1;
}

.meta {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.meta p {
    margin-bottom: 0.4rem;
}

.card-link {
    color: #14b8a6;
    font-weight: 600;
    margin-top: auto;
    display: inline-block;
}

.card-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.6rem; }
    .updates-grid { grid-template-columns: 1fr; }
}