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

body {
    font-family: 'Droid Serif', Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 0%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ============================================
   EXPLORE & FEATURED SECTION
   ============================================ */
.explore-featured-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.explore-featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.explore-featured-container > * {
    min-width: 0;
}

/* Explore Events Card */
.explore-events-card {
    background: #DBF2DE;
    padding: 30px;
    border-radius: 12px;
}

.explore-events-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2e7d32;
    font-weight: 600;
}

/* ── TWO-COLUMN FILTER ROW ─────────────────── */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.filter-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* standalone filter-group (search row) keeps bottom margin */
.explore-events-card > .filter-group {
    margin-bottom: 14px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: white;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #81c784;
    outline: none;
}

.search-with-icon {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.search-input::placeholder {
    color: #999;
}

.search-btns {
    padding: 8px 22px;
    background: #45a049;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.search-btns:hover {
    background: #45a049;
}

.trending-events {
    margin-top: 20px;
}

.trending-events h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 600;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 7px 14px;
    background: #78c99694;
    border-radius: 7px;
    font-size: 0.85rem;
    color: black;
    cursor: pointer;
    transition: background 0.3s;
}

.tag:hover {
    background: #a5d6a7;
}

/* ============================================
   FEATURED EVENT CARD
   ============================================ */
.featured-event-card {
    position: relative;
    min-width: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FFD600;
    color: #000000;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    z-index: 10;
}

.featured-event-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.featured-event-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.featured-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.event-badge-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(21, 101, 192, 0.75);
    backdrop-filter: blur(8px);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

.event-logo { flex-shrink: 0; }
.event-logo img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; }
.event-badge-text { color: #ffffff; text-align: left; flex: 1; }
.event-conference-name { font-size: 20px; font-weight: 700; letter-spacing: 1px; margin: 0 0 2px; line-height: 1.2; }
.event-conference-year { font-size: 18px; font-weight: 700; margin: 0 0 4px; line-height: 1.2; }
.event-conference-date { font-size: 13px; font-weight: 500; margin: 0 0 6px; line-height: 1.2; direction: rtl; }
.event-conference-subtitle { font-size: 11px; font-weight: 400; opacity: 0.9; margin: 0; line-height: 1.3; font-style: italic; }

.featured-event-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
    z-index: 2;
}

.featured-event-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
    opacity: 0.95;
}

.featured-event-meta span { display: flex; align-items: center; gap: 8px; }
.featured-event-meta i { font-size: 13px; }

.featured-event-content h2 {
    font-size: 32px;
    margin-bottom: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff;
}

.featured-event-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 16px;
    color: #ffffff;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.learn-more-link:hover { gap: 12px; }
.learn-more-link i { font-size: 14px; }

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    margin: 40px auto;
    padding: 0 20px;
}

/* All Events Header */
.all-events-header {
    padding: 20px 30px;
    border-radius: 8px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top h2 {
    font-size: 1.6rem;
    color: #333;
    font-weight: 600;
}

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

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.control-select {
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.control-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.control-btn:hover { background: #f5f5f5; border-color: #1976d2; }
.control-btn i { color: #666; }

.view-toggle { display: flex; gap: 5px; margin-left: 15px; }

.toggle-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.toggle-btn.active { background: #1976d2; color: white; border-color: #1976d2; }
.toggle-btn:hover:not(.active) { background: #f5f5f5; }

/* Content Grid: Events + Sidebar */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}

/* Events Grid */
.events-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-content: start;
}

/* Event Card */
.event-card {
    background: linear-gradient(120deg, #EFF6FF, #FAF5FF);
   border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 14px;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.event-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    padding: 10px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.event-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-content {
    padding: 18px;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important; }

.event-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.event-subtitle { color: #666; font-size: 0.85rem; margin-bottom: 10px; }

.event-meta {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #777;
}

.event-meta span { display: flex; align-items: center; }
.event-meta i { width: 14px; font-size: 0.75rem; }

.event-description { color: #555; font-size: 0.85rem !important; margin-bottom: 10px; line-height: 1.4; }

.view-details-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: gap 0.3s;
    margin-top: auto !important;
}

.view-details-link:hover { gap: 8px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    position: sticky;
    top: 20px;
}

.promo-card {
    border-radius: 5px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.promo-card h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 600; }
.promo-card p { font-size: 0.9rem !important; margin-bottom: 12px; line-height: 1.4; }

.promo-card .card-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 12px;
}

.sidebar-ad-card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Yellow Card */
.yellow-card {
    border-radius: 5px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    background: #F2C71D;
    border-left: 4px solid #fbc02d;
    color: black;
}

.card-content-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yellow-card h3 { color: #1a202c;   font-weight: 700; margin: 0; line-height: 1.3; }
.yellow-card p { color: #1a202c; font-size: 16px; line-height: 1.5; margin: 0; font-weight: 500; }

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a202c;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: gap 0.3s ease;
    margin-top: 4px;
}

.view-all-link:hover { gap: 10px; }
.view-all-link i { font-size: 14px; }

.card-image-right {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

/* .card-image-right img { width: 100%; height: 100%; object-fit: cover; display: block; } */

/* Pink Card */
.pink-card { background: linear-gradient(135deg, #014994 0%, #41AD49 100%); }

.quiz-content { display: flex; flex-direction: column; }

.quiz-illustration img {
    width: 100%;
    /* height: 130px; */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.quiz-text h3 { color: white; margin-bottom: 6px; }
.quiz-text p { color: white; margin-bottom: 10px; }

.quiz-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.quiz-link:hover { gap: 8px; }

/* Get Listed Card */
.get-listed-card {
    background: linear-gradient(179deg, #fff9c4 0%, #ffeb3c9e 100%);
    text-align: center;
}

.get-listed-card h3 { color: #f57f17; margin-bottom: 15px; }

.get-listed-btn {
    width: 100%;
    padding: 12px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.get-listed-btn:hover { background: #45a049; }

/* Load More */
.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
}

.load-more-btn {
    padding: 12px 35px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.load-more-btn:hover { background: #45a049; }

/* Info Sections */
.info-sections {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    padding: 30px;
    border-radius: 10px;
    color: white;
}

.info-card h3 { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; font-weight: 600; }
.info-card p { margin-bottom: 20px; line-height: 1.6; font-size: 0.95rem; }

.blue-info { background: linear-gradient(45deg, #004FA1, #023870); }
.green-info { background: linear-gradient(45deg, #3AAF2A, #007904); }

.info-btn, .info-btn-alt {
    padding: 10px 25px;
    border: 2px solid white;
    background: white;
    color: #1a202c;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.info-btn:hover { background: white; color: #1565c0; }
.info-btn-alt:hover { background: white; color: #43a047; }

/* Featured Ads */
.featured-ads {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
}

.featured-ads h2 { font-size: 2rem; color: #ccc; font-weight: 300; }

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(90deg, #0d5cb6 0%, #45b876 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 95%;
    margin: auto;
}

.newsletter-left { display: flex; flex-direction: column; gap: 10px; }
.newsletter-title { font-size: 24px; margin: 0; font-weight: bold; }
.newsletter-text { font-size: 14px; margin: 0; opacity: 0.95; line-height: 1.5; }
.newsletter-right { display: flex; justify-content: flex-end; width: 100%; align-items: center; }

.newsletter-section .wpcf7 {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.newsletter-section .wpcf7-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 9px !important;
    padding: 4px !important;
    border-radius: 5px !important;
    width: 100% !important;
    align-items: center !important;
}

.newsletter-section .wpcf7-form p {
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
}

.newsletter-section .wpcf7-form .wpcf7-email {
    flex: 1 !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    outline: none !important;
    background: white !important;
    color: #333 !important;
    min-width: 0 !important;
    width: auto !important;
}

.newsletter-section .wpcf7-form .wpcf7-submit {
    padding: 12px 24px !important;
    background: #2abf60 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

.newsletter-section .wpcf7-form .wpcf7-submit:hover {
    background: #0f4028 !important;
}

.newsletter-section .wpcf7-response-output {
    border: none !important;
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.newsletter-section .wpcf7-not-valid-tip {
    color: white !important;
    font-size: 12px !important;
}




.email-input, .wpcf7 input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.subscribe-btn, .wpcf7-submit {
    padding: 12px 24px;
    background: #2abf60;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover { background: #0f4028; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Filter row stacks on small screens */
@media (max-width: 640px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .featured-event-image-wrapper { height: 550px; }
    .event-badge-overlay { padding: 14px 18px; gap: 10px; max-width: 360px; }
    .event-logo img { width: 60px; height: 60px; }
    .event-conference-name { font-size: 18px; }
    .event-conference-year { font-size: 16px; }
    .featured-event-content { padding: 25px; }
    .featured-event-content h2 { font-size: 28px; }
    .yellow-card { padding: 24px; gap: 20px; }
    .yellow-card h3 { font-size: 24px; }
    .card-image-right { width: 180px; height: 180px; }
    .content-grid { grid-template-columns: 1fr 280px; }
}

@media (max-width: 992px) {
    .explore-featured-container { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        position: static;
    }
    .events-section { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-description { font-size: 1rem; }
    .featured-event-image-wrapper { height: 500px; }
    .header-top { flex-direction: column; align-items: flex-start; gap: 15px; }
    .event-controls { width: 100%; flex-wrap: wrap; }
    .control-group { flex: 1; min-width: 150px; }
    .control-select, .control-btn { width: 100%; }
    .view-toggle { margin-left: 0; }
    .newsletter-section { grid-template-columns: 1fr; gap: 20px; }
    .newsletter-right { justify-content: stretch; }
    .yellow-card { padding: 20px; gap: 16px; }
    .yellow-card h3 { font-size: 22px; }
    .card-image-right { width: 160px; height: 160px; }
}

@media (max-width: 640px) {
    .yellow-card { flex-direction: column; align-items: flex-start; }
    .card-image-right { width: 100%; height: 200px; }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2rem; }
    .events-section { grid-template-columns: 1fr; }
    .info-sections { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .subscribe-btn { width: 100%; }
    .newsletter-title { font-size: 18px; }
    .featured-badge { top: 12px; left: 12px; padding: 5px 14px; font-size: 13px; }
    .featured-event-image-wrapper { height: 450px; }
    .event-badge-overlay { top: 60px; right: 12px; left: 12px; max-width: none; }
    .featured-event-content { padding: 18px; }
    .featured-event-meta { font-size: 12px; gap: 12px; flex-direction: column; }
    .featured-event-content h2 { font-size: 20px; }
}

h1 { font-size: 3rem !important; }
h2 { font-size: 2rem !important; }
p  { font-size: 17px !important; }