/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Prata:wght@400&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Header Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 3rem;
}

h2 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 2.5rem;
}

h3 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 2rem;
}

h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
  --primary-color: #8f4c73;
  --primary-hover: #631641;
  --dark-purple: #631641;
  --medium-purple: #7a3960;
  --green: #2F855A;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f3f3f3;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* ==========================================================================
   Events Section - Desktop
   ========================================================================== */

.wpd-events {
    padding: 10rem 0 6rem;
    background-color: #fff;
}

.wpd-events__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header styles with underline effect */
.wpd-events__title {
    font-family: 'Prata', serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

/* Purple underline effect for title */
.wpd-events__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Grid container for events */
.wpd-events__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: 6rem;
}

/* Individual event card styles */
.wpd-events__card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover effects */
.wpd-events__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Image container styles */
.wpd-events__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

/* Background image styles with hover effect */
.wpd-events__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.wpd-events__card:hover .wpd-events__bg {
    transform: scale(1.05);
}

/* Content container styles */
.wpd-events__content {
    padding: var(--spacing-lg);
}

/* Heading styles */
.wpd-events__heading {
    font-family: 'Prata', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Text content styles */
.wpd-events__text {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
    font-size: 1rem;
}

/* SVG icon styles */
.wpd-events__icon {
    width: 32px;
    height: 32px;
    margin-left: 8px;
    filter: invert(41%) sepia(15%) saturate(1661%) hue-rotate(295deg) brightness(87%) contrast(89%);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Optional hover effect */
.wpd-events__icon:hover {
    transform: scale(1.1);
}

/* Social Media Connect box styles */
.wpd-events__social {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
    max-width: 400px;
    margin: 0 auto 6rem auto;
    color: #fff;
}

/* Social box title */
.wpd-events__social-title {
    font-family: 'Prata', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: #fff;
}

/* Social icons container */
.wpd-events__social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

/* Individual social icon links */
.wpd-events__social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.wpd-events__social-link:hover {
    transform: scale(1.2);
    color: #fff;
}

/* ==========================================================================
   Tablet Responsive Styles (1024px and below)
   ========================================================================== */

@media (max-width: 1024px) {
    .wpd-events {
        padding: 11.5rem 0 5rem;
    }

    .wpd-events__container {
        padding: 0 1.5rem;
    }
    
    .wpd-events__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-bottom: 5rem;
    }

    .wpd-events__social {
        margin-bottom: 5rem;
    }

    .wpd-events__title {
        font-size: 2.25rem;
    }

    .wpd-events__heading {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   Mobile Responsive Styles (768px and below)
   ========================================================================== */

@media (max-width: 768px) {
    .wpd-events {
        padding: 10.5rem 0 4rem;
    }

    .wpd-events__container {
        padding: 0 1rem;
    }
    
    .wpd-events__title {
        font-size: 2rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .wpd-events__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: 4rem;
    }
    
    .wpd-events__content {
        padding: var(--spacing-md);
    }
    
    .wpd-events__heading {
        font-size: 1.5rem;
    }
    
    .wpd-events__social {
        padding: var(--spacing-md);
        margin-bottom: 4rem;
    }

    .wpd-events__icon {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   Small Mobile Responsive Styles (480px and below)
   ========================================================================== */

@media (max-width: 480px) {
    .wpd-events {
        padding: 9rem 0 3rem;
    }

    .wpd-events__title {
        font-size: 1.75rem;
    }
    
    .wpd-events__social-title {
        font-size: 1.25rem;
    }
    
    .wpd-events__content {
        padding: 1.25rem;
    }

    .wpd-events__grid {
        margin-bottom: 3rem;
    }

    .wpd-events__social {
        margin-bottom: 3rem;
    }

    .wpd-events__icon {
        width: 24px;
        height: 24px;
    }

    .wpd-events__heading {
        font-size: 1.4rem;
    }
}