* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}

body {
    background-color: #fff;
    overflow-x: hidden;
}

header {
    background-color: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

header:hover {
    background-color: rgba(130, 130, 130, 0.6);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 80px;
    width: 200px;
}

.nav-center {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
    padding: 0;
    margin-right: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem; 
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #358856;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #000;
    transition: 0.3s;
    border-radius: 5px;
}

.hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/herobg.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 7rem;
    margin-top: 30px;
}

.hero h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-top: 100px;
}

.event-navigation {
    display: flex;
    padding: 20px;
    gap: 20px;
    background: linear-gradient(to bottom, #f0f4f8, #fff);
    justify-content: center;
}

.advertisement {
    text-align: center;
    padding: 20px 0;
}

.ad-container {
    position: relative;
    display: inline-block;
    width: 300px;
    height: auto;
    background: linear-gradient(180deg, #f0f4f8 0%, white 100%);
}

.ad-container img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.event-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.event-filter select {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #25523B;
    border-radius: 20px;
    width: 100%;
    max-width: 250px;
}

#searchFilter {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #25523B;
    border-radius: 20px;
    width: 100%;
    max-width: 250px;
    outline: none;
    transition: border-color 0.3s;
}

#searchFilter:focus {
    border-color: #333;
}

.event-container {
    background: linear-gradient(0deg, white 0%, white 100%);
    padding: 40px 20px;
    text-align: center;
}

.event-container h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.event-count {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: start;
    width: 80%;
    margin: 0 auto 20px auto;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
    justify-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

.event-item {
    width: 250px;
    border-radius: 15px;
    position: relative;
    display: block; 
}

.event-item a {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.flip-card {
    width: 250px;
    height: 350px;
    perspective: 1000px;
    margin: 0 auto;
    position: relative;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    border-radius: 15px;
}

.flip-card-front {
    z-index: 2;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.trending-tag {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
    font-size: 14px;
    text-transform: uppercase;
}

.flip-card:hover .trending-tag {
    display: none;
}

.flip-card-back {
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotateY(180deg);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.flip-card-back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(10px) brightness(0.5);
    z-index: 1;
}

.flip-card:hover .flip-card-back {
    opacity: 1;
}

.flip-card-back .back-content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.flip-card:hover .flip-card-back .back-content {
    opacity: 1;
}

.flip-card-back .back-content {
    z-index: 2;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.flip-card-back .back-content p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.flip-card-back .back-content p:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffcc00;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 90%;
    margin: 0 auto;
    white-space: normal;
}

.flip-card-back .back-content p:nth-child(2),
.flip-card-back .back-content p:nth-child(3) {
    font-size: 1rem;
    color: #e0e0e0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
}

.pagination-container button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.pagination-container button:hover {
    background-color: #f0f0f0;
}

.pagination-container button.active {
    background-color: #358856;
    color: white;
    border-color: #25523B;
    cursor: default;
}

.pagination-container button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    color: #999;
}

.footer {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px 20px;
    background-color: #333;
    color: #fff;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-section {
    flex: 1;
    margin: 10px;
    text-align: center;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #f2f2f2;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin: 5px 0;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-logo {
    width: 200px;
    margin-top: 40px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    margin: 0 5px;
}

.sponsor-logo {
    width: 100px;
    margin-top: 10px;
}

.footer-ramp-icons {
    position: relative;
    height: 60px;
    width: 100%;
    background: transparent;
    z-index: 2;
}

.ramp-icon {
    position: absolute;
    bottom: 0;
    width: auto;
    height: 200px;
    z-index: 3;
}

.ramp-icon.left {
    left: 0;
}

.ramp-icon.right {
    right: 0;
}

.ramp-icon.center {
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    width: 200px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
        margin-right: 20px;
    }

    .nav-links a {
        font-size: 1rem;
    }
}

@media (max-width: 850px) {
    .hamburger {
        display: flex;
    }

    .nav-center {
        position: static;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 30px 0;
        gap: 30px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 999;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 3rem;
        margin-top: 60px;
    }

    .event-container h2 {
        font-size: 2.2rem;
    }

    .event-filter {
        flex-direction: column;
        align-items: center;
    }

    #searchFilter, 
    .event-filter select {
        max-width: 100%;
    }

    .event-count {
        text-align: center;
        margin-left: 0;
        width: 100%;
    }

    .event-grid {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .ramp-icon {
        width: 60px;
    }

    .ramp-icon.center {
        width: 70px; 
    }
}