.events-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(66, 133, 244, 0.12), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(52, 168, 83, 0.08), transparent 60%),
        linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(52, 168, 83, 0.04));
}

[data-color-scheme="dark"] .events-hero {
    background: radial-gradient(circle at 20% 20%, rgba(66, 133, 244, 0.2), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(15, 157, 88, 0.18), transparent 60%),
        linear-gradient(135deg, rgba(10, 14, 26, 0.95), rgba(5, 8, 15, 0.98));
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(4px);
    animation: floatOrb 16s ease-in-out infinite;
}

.orb-1 {
    top: -120px;
    left: -100px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.8), rgba(0, 176, 255, 0.25));
}

.orb-2 {
    top: -80px;
    right: -80px;
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.6), rgba(66, 133, 244, 0.2));
    animation-delay: 4s;
}

.orb-3 {
    bottom: -120px;
    right: -140px;
    background: linear-gradient(135deg, rgba(234, 128, 252, 0.65), rgba(66, 133, 244, 0.25));
    animation-delay: 6s;
}

.orb-4 {
    bottom: -60px;
    left: -60px;
    background: linear-gradient(135deg, rgba(251, 188, 4, 0.5), rgba(234, 67, 53, 0.2));
    animation-delay: 10s;
}

.hero-grid-lines {
    position: absolute;
    inset: -200px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 140px 140px;
    mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 75%);
}

[data-color-scheme="dark"] .hero-grid-lines {
    opacity: 0.35;
}

.events-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.events-header .hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(66, 133, 244, 0.95);
    display: block;
    margin-bottom: 16px;
}

.events-header .hero-title {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    margin: 18px 0 12px;
    color: var(--offer-color-text);
}

.events-header .hero-subtitle {
    font-size: 1.125rem;
    color: var(--offer-color-text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--offer-color-primary) 0%, var(--offer-color-primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.events-filters-section {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(66, 133, 244, 0.12);
    border-bottom: 1px solid rgba(66, 133, 244, 0.14);
    box-shadow: 0 8px 22px rgba(66, 133, 244, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

[data-color-scheme="dark"] .events-filters-section {
    background: rgba(15, 19, 32, 0.85);
    border-top-color: rgba(138, 180, 248, 0.14);
    border-bottom-color: rgba(138, 180, 248, 0.16);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    padding: 4px 0;
}

.filter-tags {
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 20px 16px;
    margin: -16px -12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-underline {
    position: absolute;
    height: 4px;
    bottom: 12px;
    left: 0;
    width: 0;
    background: var(--gdg-blue);
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(66, 133, 244, 0.18);
    transition: left 300ms cubic-bezier(0.2, 0.9, 0.2, 1), width 300ms cubic-bezier(0.2, 0.9, 0.2, 1);
    pointer-events: none;
}

.filter-tags::-webkit-scrollbar {
    display: none;
}

.filter-tags .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tags .filter-tag .material-symbols-outlined {
    font-size: 16px;
}

.filter-toggle {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 100px;
    padding: 6px;
    border: 1px solid rgba(66, 133, 244, 0.2);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.08);
    flex-shrink: 0;
}

[data-color-scheme="dark"] .filter-toggle {
    background: linear-gradient(145deg, rgba(17, 25, 40, 0.9), rgba(17, 25, 40, 0.7));
    border-color: rgba(66, 133, 244, 0.25);
}

.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: var(--gdg-blue);
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.18s ease-out, width 0.18s ease-out;
}

.toggle-slider.no-transition {
    transition: none !important;
}

.toggle-btn {
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--offer-color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    position: relative;
    z-index: 2;
}

.toggle-btn.active {
    color: #fff;
}

.toggle-btn:hover:not(.active) {
    color: var(--offer-color-text);
}

.events-section {
    padding: 60px 0;
    min-height: 50vh;
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.06) 0%, rgba(66, 133, 244, 0.03) 100%);
}

[data-color-scheme="dark"] .events-section {
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.14) 0%, rgba(15, 19, 32, 0.3) 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease;
}

.events-load-more {
    justify-content: center;
    margin-top: 36px;
}

.events-load-more__button {
    min-width: 230px;
    min-height: 48px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(12px);
}

.events-load-more__button .material-symbols-outlined {
    font-size: 20px;
}

[data-color-scheme="dark"] .events-load-more__button {
    background: rgba(17, 25, 40, 0.55);
}

.events-grid.is-exiting {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
}

.events-grid.is-entering {
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
}

.events-grid.is-entering.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.event-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
    height: 100%;
}

.event-card-inner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(66, 133, 244, 0.18);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

[data-color-scheme="dark"] .event-card-inner {
    background: linear-gradient(145deg, rgba(17, 25, 40, 0.9), rgba(17, 25, 40, 0.7));
    border-color: rgba(66, 133, 244, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.event-card:hover .event-card-inner {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(66, 133, 244, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(66, 133, 244, 0.1),
        0 0 40px rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.5);
}

[data-color-scheme="dark"] .event-card:hover .event-card-inner {
    background: linear-gradient(145deg, rgba(17, 25, 40, 0.95), rgba(17, 25, 40, 0.8));
    box-shadow:
        0 20px 40px rgba(50, 184, 198, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(50, 184, 198, 0.08),
        0 0 40px rgba(50, 184, 198, 0.08);
    border-color: rgba(50, 184, 198, 0.2);
}

.event-card-inner::after {
    content: '';
    position: absolute;
    inset: -40% 50% 60% -30%;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.event-card:hover .event-card-inner::after {
    opacity: 0.6;
}

.event-card.past .event-card-inner {
    filter: grayscale(30%);
    opacity: 0.85;
}

.event-card.past:hover .event-card-inner {
    filter: grayscale(0%);
    opacity: 1;
}

.event-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    transform: translateZ(0);
    border-radius: 24px 24px 0 0;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
}

.event-image {
    width: 100%;
    height: calc(100% + 2px);
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    backface-visibility: hidden;
    transform: translateY(-1px) translateZ(0) scale(1.002);
    transform-origin: center;
}

.event-card:hover .event-image {
    transform: translateY(-1px) translateZ(0) scale(1.05);
}

.event-image-overlay {
    position: absolute;
    inset: 0 0 -1px;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6));
    pointer-events: none;
    z-index: 1;
}

.event-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-color-scheme="dark"] .event-date-badge {
    background: rgba(30, 30, 30, 0.95);
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--gdg-blue);
    line-height: 1;
}

[data-color-scheme="dark"] .date-day {
    color: var(--gdg-blue);
}

.date-month {
    font-size: 12px;
    font-weight: 600;
    color: var(--offer-color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-category-badge .material-symbols-outlined {
    font-size: 14px;
}

.event-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--offer-color-text);
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.02em;
    transition: color 0.25s ease;
    cursor: pointer;
    position: relative;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gdg-blue);
    transition: width 0.25s ease;
}

.event-title:hover::after {
    width: 40px;
}

.event-card:hover .event-title {
    color: var(--gdg-blue);
}

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

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--offer-color-text-secondary);
}

.meta-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--gdg-blue);
}

.event-description {
    font-size: 14px;
    color: var(--offer-color-text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.event-speakers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--offer-color-text-secondary);
    padding: 8px 12px;
    background: var(--gdg-blue-ambient);
    border-radius: 8px;
    margin-bottom: 16px;
}

.event-speakers .material-symbols-outlined {
    font-size: 16px;
    color: var(--gdg-blue);
}

.event-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(66, 133, 244, 0.12);
    margin-top: auto;
}

.event-capacity {
    width: 100%;
}

.capacity-bar {
    height: 6px;
    background: rgba(66, 133, 244, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.5s ease;
}

.event-footer-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.capacity-text {
    font-size: 12px;
    color: var(--offer-color-text-secondary);
}

.register-separator {
    width: 1px;
    align-self: stretch;
    background: rgba(66, 133, 244, 0.15);
}

.event-past-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gdg-green);
    padding: 8px 14px;
    background: var(--gdg-green-ambient);
    border-radius: 100px;
}

.event-past-badge .material-symbols-outlined {
    font-size: 16px;
}

.event-register {
    white-space: nowrap;
    margin-left: auto;
    padding: 10px 24px;
    font-size: 14px;
    gap: 8px;
}

.event-register .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-register:disabled,
.registration-action .btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    box-shadow: none;
}

.event-register:disabled:hover,
.registration-action .btn:disabled:hover {
    transform: none;
}

.no-events-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--offer-color-text-secondary);
}

.no-events-message .material-symbols-outlined {
    font-size: 64px;
    color: var(--offer-color-outline);
    margin-bottom: 20px;
}

.no-events-message h3 {
    font-size: 1.5rem;
    color: var(--offer-color-text);
    margin: 0 0 10px 0;
}

.no-events-message p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0;
}

.events-cta-section {
    padding: 60px 0 100px;
}

.cta-card {
    background: linear-gradient(135deg, var(--gdg-blue) 0%, #1a73e8 100%);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-color-scheme="dark"] .cta-card {
    background: linear-gradient(135deg, #1a73e8 0%, var(--gdg-blue) 100%);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 40%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.cta-card h2 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 12px 0;
}

.cta-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 30px;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--gdg-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.event-modal-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 32px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(66, 133, 244, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(66, 133, 244, 0.05);
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.event-modal-overlay.active .event-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

[data-color-scheme="dark"] .event-modal-container {
    background: linear-gradient(145deg, rgba(17, 25, 40, 0.95), rgba(17, 25, 40, 0.9));
    border-color: rgba(66, 133, 244, 0.3);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 16px 32px rgba(66, 133, 244, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.event-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: inherit;
    clip-path: inset(0 round 32px);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 133, 244, 0.3) transparent;
}

.event-modal-content::-webkit-scrollbar {
    width: 6px;
}

.event-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.event-modal-content::-webkit-scrollbar-thumb {
    background: rgba(66, 133, 244, 0.3);
    border-radius: 100px;
}

.event-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 133, 244, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
    border: 1px solid rgba(66, 133, 244, 0.2);
    color: var(--gdg-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-color-scheme="dark"] .modal-close {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.15), rgba(138, 180, 248, 0.08));
    border-color: rgba(138, 180, 248, 0.25);
    color: #8AB4F8;
}

.modal-close:hover {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.15), rgba(234, 67, 53, 0.08));
    border-color: rgba(234, 67, 53, 0.3);
    color: var(--gdg-red);
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.2);
}

[data-color-scheme="dark"] .modal-close:hover {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.2), rgba(234, 67, 53, 0.1));
    color: #f87171;
}

.modal-close .material-symbols-outlined {
    font-size: 22px;
}

.event-modal-header {
    padding: 48px 48px 32px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(66, 133, 244, 0.1);
    background: linear-gradient(to bottom, rgba(66, 133, 244, 0.05), transparent);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

[data-color-scheme="dark"] .event-modal-header {
    background: linear-gradient(to bottom, rgba(66, 133, 244, 0.08), transparent);
    border-bottom-color: rgba(66, 133, 244, 0.15);
}

.event-modal-overlay.active .event-modal-header {
    animation: eventModalContent 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.event-modal-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    color: white;
    align-self: flex-start;
}

.event-modal-category .material-symbols-outlined {
    font-size: 16px;
    color: white;
}

.event-modal-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--offer-color-primary), var(--offer-color-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.event-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--offer-color-text-secondary);
    font-size: 14px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(66, 133, 244, 0.03));
    border-radius: 100px;
    border: 1px solid rgba(66, 133, 244, 0.1);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.event-modal-meta-item:hover {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12), rgba(66, 133, 244, 0.06));
    border-color: rgba(66, 133, 244, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.15);
}

.event-modal-meta-item .material-symbols-outlined {
    font-size: 16px;
    color: rgba(66, 133, 244, 0.8);
}

[data-color-scheme="dark"] .event-modal-meta-item {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12), rgba(66, 133, 244, 0.06));
    border-color: rgba(66, 133, 244, 0.15);
}

.event-modal-body {
    padding: 40px 48px;
    opacity: 0;
    transform: translateY(20px);
}

.event-modal-overlay.active .event-modal-body {
    animation: eventModalContent 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}


.event-description {
    margin-bottom: 32px;
}

.event-modal-body>.event-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    flex: initial;
}

.event-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--offer-color-primary);
}

.event-description p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--offer-color-text-secondary);
}

/* Details grid */
.event-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 20px;
    margin-bottom: 32px;
}

.event-detail-card {
    background: linear-gradient(135deg,
            rgba(66, 133, 244, 0.05),
            rgba(66, 133, 244, 0.02));
    border: 1px solid rgba(66, 133, 244, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.event-detail-card:hover {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(66, 133, 244, 0.04));
    border-color: rgba(66, 133, 244, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.15);
}

.event-detail-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--offer-color-text);
}

.event-detail-card h4 .material-symbols-outlined {
    color: rgba(66, 133, 244, 0.8);
    font-size: 1.2rem;
}

.event-detail-card p {
    color: var(--offer-color-text-secondary);
    line-height: 1.6;
}

.event-location-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-location-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(66, 133, 244, 0.03));
    border: 1px solid rgba(66, 133, 244, 0.14);
    color: var(--offer-color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.event-location-address .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 20px;
    color: rgba(66, 133, 244, 0.85);
}

.event-map-widget {
    width: 100%;
    min-height: 300px;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 14px;
    background: rgba(66, 133, 244, 0.06);
    box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.12);
}

.event-time-card {
    align-self: stretch;
}

.event-time-list {
    display: grid;
    gap: 10px;
}

.event-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(66, 133, 244, 0.1);
}

.event-time-row span {
    color: var(--offer-color-text-secondary);
    font-size: 0.9rem;
}

.event-time-row strong {
    color: var(--offer-color-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

[data-color-scheme="dark"] .event-location-address,
[data-color-scheme="dark"] .event-time-row {
    background: rgba(17, 25, 40, 0.55);
    border-color: rgba(66, 133, 244, 0.16);
}

.event-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-detail-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--offer-color-text-secondary);
    line-height: 1.6;
    transition: all 0.25s ease;
}

.event-detail-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: rgba(66, 133, 244, 0.8);
    font-size: 0.75rem;
    top: 4px;
    transition: all 0.25s ease;
}

.event-detail-card li:hover::before {
    transform: scale(1.2);
    color: rgba(66, 133, 244, 1);
}

/* Registration Section */
.event-registration-section {
    background: linear-gradient(135deg,
            rgba(66, 133, 244, 0.08),
            rgba(66, 133, 244, 0.04));
    border: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.registration-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--offer-color-primary);
}

.registration-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.registration-stats .stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

[data-color-scheme="dark"] .registration-stats .stat {
    background: rgba(17, 25, 40, 0.5);
    border-color: rgba(66, 133, 244, 0.15);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gdg-blue);
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--offer-color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.registration-action {
    text-align: center;
}

.registration-action .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
    gap: 8px;
}

.registration-action .btn-primary .material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.registration-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--offer-color-text-secondary);
    line-height: 1.5;
}

.event-modal-overlay.active .event-registration-section {
    animation: eventModalContent 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatOrb {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-30px) scale(1.05);
        opacity: 0.45;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 0.35;
    }
}

@keyframes eventModalContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-image-placeholder {
    background: linear-gradient(135deg,
            rgba(66, 133, 244, 0.05),
            rgba(66, 133, 244, 0.02));
    border: 2px dashed rgba(66, 133, 244, 0.3);
    border-radius: var(--radius-l, 16px);
    padding: var(--spacing-xl, 32px);
    text-align: center;
    margin-bottom: var(--spacing-l, 24px);
    margin-top: var(--spacing-l, 24px);
    transition: all var(--transition-fast, 0.2s);
    position: relative;
    overflow: hidden;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.event-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(66, 133, 244, 0.1),
            transparent);
    transition: left 0.8s;
}

.event-image-placeholder:hover {
    background: linear-gradient(135deg,
            rgba(66, 133, 244, 0.08),
            rgba(66, 133, 244, 0.04));
    border-color: rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
}

.event-image-placeholder:hover::before {
    left: 100%;
}

.event-image-placeholder .material-symbols-outlined {
    font-size: 4rem;
    color: rgba(66, 133, 244, 0.4);
    margin-bottom: var(--spacing-s, 12px);
}

.event-image-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--offer-color-text, #1e293b);
    margin-bottom: var(--spacing-xs, 8px);
}

.event-image-placeholder small {
    color: var(--offer-color-text-secondary, #64748b);
    opacity: 0.7;
}

/* Base class for event modal when actual image is populated */
.event-image-placeholder img {
    max-width: 100%;
    border-radius: var(--radius-m, 12px);
    display: block;
    margin: 0 auto;
}

[data-color-scheme="dark"] .event-image-placeholder {
    background: linear-gradient(135deg,
            rgba(66, 133, 244, 0.1),
            rgba(66, 133, 244, 0.05));
    border-color: rgba(66, 133, 244, 0.4);
}


@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .filter-tag {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding-top: 76px;
        padding-bottom: 48px;
    }

    .events-hero .hero-background {
        overflow: hidden;
    }

    .events-hero>.container {
        position: relative;
        z-index: 1;
    }

    .events-hero .hero-orb {
        width: clamp(170px, 52vw, 260px);
        height: clamp(170px, 52vw, 260px);
        opacity: 0.24;
        filter: blur(18px);
    }

    .events-hero .orb-1 {
        top: -56px;
        left: -64px;
    }

    .events-hero .orb-2 {
        top: -44px;
        right: -68px;
    }

    .events-hero .orb-3 {
        right: -72px;
        bottom: -68px;
    }

    .events-hero .orb-4 {
        left: -72px;
        bottom: -56px;
    }

    .events-hero .hero-grid-lines {
        inset: 0;
        background-size: 72px 72px;
        opacity: 0.55;
        mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, rgba(255, 255, 255, 0.35), transparent 78%);
    }

    .events-header .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
        line-height: 1.08;
        margin: 12px 0 10px;
    }

    .events-header {
        margin-bottom: 16px;
        max-width: 560px;
    }

    .events-header .hero-eyebrow {
        font-size: 12px;
        letter-spacing: 0.12em;
        margin-bottom: 10px;
    }

    .events-header .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 520px;
    }

    .events-filters-section {
        padding: 10px 0;
    }

    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-tags {
        width: 100%;
        padding: 4px 4px 10px;
        margin: 0;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-padding-inline: 4px;
    }

    .filter-underline {
        bottom: 2px;
        height: 3px;
    }

    .filter-tags .filter-tag {
        gap: 5px;
        padding: 8px 14px;
        font-size: 13px;
        min-height: 40px;
    }

    .filter-tags .filter-tag .material-symbols-outlined {
        font-size: 15px;
    }

    .filter-toggle {
        width: 100%;
        display: flex;
    }

    .toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 18px;
        font-size: 13px;
        min-height: 40px;
    }

    .filter-tags::-webkit-scrollbar-thumb {
        background: rgba(66, 133, 244, 0.3);
        border-radius: 100px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .events-load-more {
        margin-top: 24px;
    }

    .event-image-wrapper {
        height: 160px;
    }

    .event-content {
        padding: 18px;
    }

    .event-card-inner {
        border-radius: 18px;
    }

    .events-section {
        padding: 36px 0;
    }

    .events-cta-section {
        padding: 48px 0 72px;
    }

    .cta-card {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .cta-icon {
        font-size: 38px;
        margin-bottom: 14px;
    }

    .cta-card h2 {
        font-size: 1.35rem;
    }

    .cta-card p {
        font-size: 0.98rem;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .cta-card .btn-primary {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .event-modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .event-modal-header {
        padding: 32px 24px 24px;
    }

    .event-modal-title {
        font-size: 1.6rem;
    }

    .event-modal-body {
        padding: 24px;
    }

    .event-details-grid {
        grid-template-columns: 1fr;
    }

    .registration-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding-top: 48px;
        padding-bottom: 34px;
    }

    .events-header .hero-title {
        font-size: clamp(1.85rem, 11vw, 2.35rem);
    }

    .events-header .hero-subtitle {
        font-size: 0.9rem;
    }

    .toggle-btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .filter-tags {
        padding-bottom: 9px;
    }

    .filter-tags .filter-tag {
        padding: 7px 12px;
        font-size: 12.5px;
        min-height: 38px;
    }

    .filter-underline {
        bottom: 1px;
    }

    .event-image-wrapper {
        height: 148px;
    }

    .event-content {
        padding: 16px;
    }

    .event-date-badge {
        top: 12px;
        left: 12px;
        padding: 8px 11px;
        border-radius: 10px;
    }

    .date-day {
        font-size: 21px;
    }

    .date-month {
        font-size: 10.5px;
    }

    .event-category-badge {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 10.5px;
    }

    .event-category-badge .material-symbols-outlined {
        font-size: 13px;
    }

    .event-title {
        font-size: 1.12rem;
        margin-bottom: 10px;
    }

    .event-meta {
        gap: 7px;
        margin-bottom: 12px;
    }

    .meta-item {
        align-items: flex-start;
        font-size: 13px;
        line-height: 1.45;
    }

    .meta-item .material-symbols-outlined {
        font-size: 17px;
        margin-top: 1px;
    }

    .event-description {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    .events-load-more__button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .event-footer-bottom {
        flex-wrap: wrap;
        gap: 8px;
    }

    .register-separator {
        display: none;
    }

    .event-register {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        padding: 9px 18px;
        min-height: 42px;
        font-size: 13px;
    }

    .event-past-badge {
        width: 100%;
        justify-content: center;
    }

    .event-modal-container {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .event-modal-content {
        clip-path: none;
    }

    .event-modal-header {
        padding: 20px 20px 16px;
    }

    .event-modal-body {
        padding: 0 20px 20px;
    }

    .event-registration-section {
        padding: 24px 20px;
    }

    .events-cta-section {
        padding: 40px 0 64px;
    }

    .cta-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .cta-icon {
        font-size: 34px;
    }

    .cta-card h2 {
        font-size: 1.25rem;
    }

    .cta-card p {
        font-size: 0.92rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    .hero-orb {
        animation: none;
        opacity: 0.3;
    }

    .events-header,
    .event-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .event-card:hover .event-card-inner,
    .event-card:hover .event-image,
    .event-card:hover .event-title {
        transform: none;
    }

    .event-modal-container {
        transition: none;
    }

    .event-modal-header,
    .event-modal-body,
    .event-registration-section {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
