/* assets/css/events.css */

:root {
    --primary-color: #283857;
    --secondary-color: #d5c28b;
    --accent-color: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: "Source Sans Pro", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    /* background: #ebebeb; */
     background: #2d3c6924 ;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
        url("/assets/images/mainEventsBannerImg.webp") center/cover
            no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #00000070;
    z-index: 1;
}
.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-section .container {
    z-index: 1;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Why Attend Section */
.why-attend {
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    font-family: "Playfair Display", serif;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: "Source Sans Pro", sans-serif;
}

.intro-text {
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0 auto;
}

/* Networking Events Section */
.networking-events {
}

.event-card {
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: "Playfair Display", serif;
}

.event-description {
      color: #333;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.btn-event {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    max-width: 350px;
    width: 100%;
    margin-top: auto;
}

.btn-event:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

.btn-event:focus {
    box-shadow: 0 0 0 0.25rem rgba(60, 72, 99, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .event-card {
        min-height: 250px;
        margin-bottom: 2rem;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 300px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .event-card {
        min-height: 220px;
        padding: 1.5rem !important;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .btn-event {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        width: 100%;
    }
}

/* Animation Effects */
.event-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Section reveal animation */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    opacity: 1;
    transform: none;
}

/* Image loading animation */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Focus states for accessibility */
.btn-event:focus {
    outline: none;
}

/* Card hover effects */

.event-card:hover .btn-event {
    transform: translateY(-2px);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Grid layout adjustments */
.row.g-4 {
    margin-bottom: 2rem;
}

/* Staggered animation delay */
.event-card:nth-child(1) {
    animation-delay: 0.1s;
}

.event-card:nth-child(2) {
    animation-delay: 0.2s;
}

.event-card:nth-child(3) {
    animation-delay: 0.3s;
}

.event-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Button loading state */
.btn-event.loading {
    position: relative;
    color: transparent;
}

.btn-event.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    border-color: #ffffff transparent #ffffff transparent;
    animation: button-loading 1.2s linear infinite;
}

@keyframes button-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Print styles */
@media print {
    .hero-section {
        height: auto;
        page-break-inside: avoid;
    }

    .hero-overlay {
        background: transparent;
    }

    .hero-title {
        color: var(--text-dark) !important;
        text-shadow: none;
    }

    .event-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .btn-event {
        display: none;
    }
}
