:root {
  --primary-color: #1874ab;
  --secondary-color: #35a0cf;
  --accent-color: #f8a41b;
  --dark-color: #1a2a3a;
  --light-color: #ffffff;
  --gray-light: #f5f7fa;
  --gray-medium: #e1e5eb;
  --gray-dark: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease-in-out;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-sm: 4px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation Styles */
.navbar {
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: #1874ab;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a:hover {
    color: #35a0cf;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #35a0cf;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
    left: 0;
}

/* Profile Button Styles */
.profile-button {
    cursor: pointer;
    position: relative;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1874ab;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.profile-pic:hover {
    border-color: #35a0cf;
    transform: scale(1.05);
}

/* Profile Panel Styles */
.profile-panel {
    position: fixed;
    top: 60px;
    right: 0;
    width: 250px;
    background-color: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
    z-index: 99;
}

.profile-panel.hidden {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

.profile-panel:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.profile-panel ul {
    list-style: none;
}

.profile-panel li {
    border-bottom: 1px solid rgba(24, 116, 171, 0.1);
}

.profile-panel li:last-child {
    border-bottom: none;
}

.profile-panel a {
    display: block;
    padding: 1rem 1.5rem;
    color: #1874ab;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-panel a:hover {
    background-color: rgba(53, 160, 207, 0.1);
    color: #35a0cf;
    padding-left: 1.75rem;
}

.profile-panel button {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #1874ab;
    transition: all 0.2s ease;
}

.profile-panel button:hover {
    background-color: rgba(53, 160, 207, 0.1);
    color: #35a0cf;
    padding-left: 1.75rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    
    .navbar {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.8rem;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .profile-panel {
        top: 110px;
    }
}

/* Profile Form Styles (matches your existing form) */
.profile-form {
  display: grid;
  gap: 1.5rem;
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-section h4 {
  color: #1874ab;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(24, 116, 171, 0.2);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #35a0cf;
  box-shadow: 0 0 0 3px rgba(53, 160, 207, 0.2);
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1874ab;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-submit {
  background-color: #1874ab;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: #156394;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(24, 116, 171, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 85vh;
  }
  
  .profile-form {
    grid-template-columns: 1fr;
  }
}

/* Login Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup.active .popup-content {
  transform: translateY(0);
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: var(--dark-color);
  transform: rotate(90deg);
}

.popup-header {
  text-align: center;
  margin-bottom: 20px;
}

.popup-logo {
  height: 60px;
  margin-bottom: 15px;
}

.popup-header h2 {
  font-size: 1.8rem;
  color: var(--dark-color);
}

.popup-message {
  text-align: center;
  color: var(--gray-dark);
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form p {
  margin-bottom: 0;
}

.login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--dark-color);
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.login-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(24, 116, 171, 0.2);
  outline: none;
}

.form-actions {
  margin-top: 20px;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.login-button:hover {
  background-color: #156291;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.register-link {
  font-weight: 600;
  color: var(--primary-color);
}

.register-link:hover {
  text-decoration: underline;
}
/* Responsive Adjustments */
@media (max-width: 480px) {
    .popup-content {
        margin: 0 15px;
        padding: 20px;
    }
    
    .popup-header h2 {
        font-size: 1.3rem;
    }
}

/* Hero Section - Professional Design */
/* Modern Hero Section - Version 2 */
:root {
    --primary: #1874ab;
    --primary-light: #35a0cf;
    --white: #ffffff;
    --dark: #1a1a1a;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-v2 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #f8fafc;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.hero-media {
    position: relative;
    overflow: hidden;
}

.media-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: var(--transition);
    transform: scale(1.02);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.hero-content {
    display: flex;
    align-items: center;
    padding: 80px;
    position: relative;
}

.content-wrapper {
    max-width: 520px;
}

.pre-title {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

.pre-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: var(--primary-light);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(24, 116, 171, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 32px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(24, 116, 171, 0.3);
}

.primary:hover {
    background: #156394;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 116, 171, 0.4);
}

.primary svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.primary:hover svg {
    transform: translateX(4px);
}

.secondary {
    margin-left: 60px;
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.secondary:hover {
    background: rgba(24, 116, 171, 0.05);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1024px) {
    .hero-v2 {
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0; /* Remove gap completely */
    }
    
    .hero-media {
        height: 40vh; /* Slightly reduced height */
        order: 1; /* Make image appear first */
    }
    
    .hero-content {
        padding: 40px 20px;
        margin-top: 0;
        order: 2; /* Make content appear second */
    }
    
    .media-container {
        padding: 0; /* Remove padding on mobile */
    }
    
    .slider {
        border-radius: 0; /* Full width slider */
    }
}

@media (max-width: 768px) {
    .hero-media {
        height: 45vh; /* Adjust height for better proportion */
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .content-wrapper {
        max-width: 100%; /* Take full width */
    }
    
    .cta-group {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .secondary {
        margin-left: 0; /* Remove left margin on mobile */
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns but adjust spacing */
        gap: 12px;
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    .hero-v2 {
        min-height: 100vh; /* Full viewport height */
        display: flex;
        flex-direction: column;
    }
    
    .hero-grid {
        flex: 1; /* Take all available space */
        display: flex;
        flex-direction: column;
    }
    
    .hero-media {
        height: 40vh;
        flex-shrink: 0; /* Prevent shrinking */
    }
    
    .hero-content {
        flex: 1; /* Take remaining space */
        padding: 25px 15px;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
    }
    
    .hero-title {
        font-size: 2.2rem; /* Slightly larger for mobile */
        margin-bottom: 0.75em;
        line-height: 1.3;
    }
    
    .hero-text {
        font-size: 1rem; /* Slightly smaller for mobile */
        line-height: 1.5;
        margin-bottom: 24px;
        white-space: normal; /* Allow text to wrap */
    }
    
    .pre-title {
        font-size: 0.75rem; /* Smaller pre-title */
        margin-bottom: 12px;
    }
    
    .slider-controls {
        bottom: 15px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    
    .stat-number {
        font-size: 1.5rem; /* Smaller stats numbers */
    }
    
    /* Adjust the pre-title line */
    .pre-title::before {
        width: 12px;
    }
    
    /* Make sure text content doesn't overflow */
    pre.hero-text {
        white-space: pre-wrap;
        word-wrap: break-word;
        font-family: inherit; 
    }
}
/* ===== ENHANCED EVENT SECTION STYLING ===== */

.event-section {
    padding: 3.5rem 2rem;
    background-color: #f9fbfd;
    position: relative;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: #1874ab;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #1874ab, #35a0cf);
    border-radius: 2px;
}

/* Search and Filter Section */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.search-wrapper input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    padding-right: 50px;
    border-radius: 8px;
    border: 1px solid rgba(24, 116, 171, 0.2);
    font-size: 1rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #35a0cf;
    box-shadow: 0 2px 15px rgba(53, 160, 207, 0.15);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1874ab;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #35a0cf;
}

/* Search Filters */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background-color: transparent;
    border: none;
    color: #1874ab;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.filter-tab:hover {
    color: #35a0cf;
}

.filter-tab.active {
    color: #1874ab;
    border-bottom: 2px solid #1874ab;
    font-weight: 600;
}

/* Advanced Search */
.advanced-search {
    position: relative;
}

.advanced-search-btn {
    background-color: white;
    border: 1px solid #1874ab;
    color: #1874ab;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-search-btn:hover {
    background-color: rgba(24, 116, 171, 0.05);
}

.advanced-search-btn svg {
    transition: transform 0.3s ease;
}

.search-dropdown {
    position: relative;
    display: inline-block;
}

.search-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background-color: white;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 10;
}

.search-dropdown.active .search-dropdown-content {
    display: block;
}

.search-dropdown.active .advanced-search-btn svg {
    transform: rotate(180deg);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    color: #1874ab;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(24, 116, 171, 0.2);
    background-color: white;
    font-size: 0.9rem;
}

.filter-select:focus {
    outline: none;
    border-color: #35a0cf;
}

.apply-filters-btn {
    width: 100%;
    background-color: #1874ab;
    color: white;
    border: none;
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.apply-filters-btn:hover {
    background-color: #35a0cf;
}

/* Event Card Styling */
/* Events Container */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Event Image */
.event-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background-color: #1874ab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-badge.free {
    background-color: #07a9e9;
}

/* Event Info */
.event-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-info h6 {
    font-size: 0.85rem;
    color: #1874ab;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-info p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Details */
.event-details {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding: 0.75rem 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
}

.event-date svg,
.event-location svg {
    flex-shrink: 0;
    color: #1874ab;
}

/* Event Footer */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
}

.attendees {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
}

.attendees svg {
    color: #1874ab;
}

.details-btn {
    background-color: #1874ab;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.details-btn:hover {
    background-color: #35a0cf;
}

/* No Events */
.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: #f8fafc;
    border-radius: 8px;
}

.no-events h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-events p {
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
    grid-column: 1 / -1;
}

.page-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1874ab;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e0;
}

.page-btn.current {
    background-color: #1874ab;
    color: white;
    border-color: #1874ab;
}

.page-btn.prev,
.page-btn.next {
    min-width: 100px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .event-image {
        height: 160px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .event-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .details-btn {
        width: 100%;
    }
}
/* No Events State */
.no-events {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    text-align: center;
}

.no-events-img {
    width: 150px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-events h3 {
    color: #1874ab;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.no-events p {
    color: #666;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.create-event-btn {
    display: inline-block;
    background-color: #1874ab;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.create-event-btn:hover {
    background-color: #35a0cf;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #1874ab;
    color: #1874ab;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: rgba(24, 116, 171, 0.1);
}

.page-btn.current {
    background-color: #1874ab;
    color: white;
    cursor: default;
}

.page-btn.prev, .page-btn.next {
    background-color: #1874ab;
    color: white;
}

.page-btn.prev:hover, .page-btn.next:hover {
    background-color: #35a0cf;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .events-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .event-section {
        padding: 2.5rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .events-container {
        gap: 1.2rem;
    }
}

@media (max-width: 576px) {
    .events-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .event-image {
        height: 200px;
    }
    
    .filter-options {
        flex-wrap: wrap;
    }
}

/* Blog Section - Mobile First */
.blog-section {
  padding: 2rem 1rem;
  background-color: #f9fbfd;
}

.blog-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
}

.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.blog-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  line-height: 1.3;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-meta i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.blog-excerpt {
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: var(--transition);
  align-self: flex-start;
}

.read-more i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--secondary-color);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* No Blogs State */
.no-blogs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.no-blogs i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.no-blogs h3 {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.no-blogs p {
  color: var(--gray-dark);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.create-blog-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.create-blog-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Pagination - Mobile First */
.blog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: white;
  border: 1px solid var(--gray-medium);
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn:not(.active):hover {
  background: var(--gray-light);
}

.pagination-btn.prev,
.pagination-btn.next {
  min-width: 100px;
}

.pagination-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .blog-section {
    padding: 2.5rem 1.5rem;
  }
  
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-image {
    height: 200px;
  }
}

@media (min-width: 768px) {
  .blog-section {
    padding: 3rem 2rem;
  }
  
  .blog-content h3 {
    font-size: 1.35rem;
  }
  
  .blog-pagination {
    gap: 0.75rem;
  }
  
  .pagination-btn {
    min-width: 45px;
    height: 45px;
  }
}

@media (min-width: 992px) {
  .blog-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-image {
    height: 220px;
  }
  
  .blog-content h3 {
    font-size: 1.4rem;
  }
  
  .blog-pagination {
    margin-top: 3rem;
  }
}

/* Large desktop screens */
@media (min-width: 1200px) {
  .blog-section {
    padding: 4rem 0;
  }
  
  .blog-container {
    gap: 2rem;
  }
  
  .blog-image {
    height: 240px;
  }
}

/* Special cases for tablets in portrait */
@media (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Special cases for mobile landscape */
@media (max-width: 767px) and (orientation: landscape) {
  .blog-image {
    height: 150px;
  }
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    position: relative;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #f1f5f9;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-viewport {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.gallery-info p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.gallery-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
}

.gallery-action:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-pagination {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.gallery-empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 3rem 0;
}

.empty-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-empty p {
    color: var(--text-dark);
    font-size: 1.25rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-viewport {
        gap: 0.5rem;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
/* Partner Logo Item */
:root {
    --primary: #1874ab;
    --primary-light: #35a0cf;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
}

.partner-section {
    padding: 4rem 0;
    background-color: #f8fafc;
    overflow: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}



.divider-icon {
    margin: 0 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.partners-track {
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

.partners-slider {
    display: flex;
    gap: 3rem;
    padding: 1rem 0;
    animation: scroll 50s linear infinite;
    width: calc(250px * {{ partners.count }} * 2);
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.partner-logo {
    width: 150px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.8s ease;
}

.partner-item:hover .partner-logo img {
    opacity: 1;
    transform: scale(1.05);
}

.partner-name {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

.no-partners {
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

.no-partners i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.partners-track {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-slider {
    display: flex;
    width: max-content;
    animation: scroll-left linear infinite;
    animation-duration: 30s; /* You control this via JS */
}

.partner-item {
    flex: 0 0 auto;
    margin-right: 40px; /* spacing between items */
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Adjust based on total content width */
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * {{ partners.count }}));
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .partners-slider {
        gap: 2rem;
        animation-duration: 20s;
    }
    
    .partner-item {
        min-width: 150px;
    }
    
    .partner-logo {
        width: 100px;
        height: 60px;
    }
}
/* ===== FOOTER - IDENTICAL LAYOUT ACROSS ALL DEVICES ===== */
footer {
  background-color: #1a2a3a;
  color: white;
  padding: 40px 5%;
  font-size: 14px;
  line-height: 1.6;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about {
  padding-right: 15px;
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 30px;
  width: auto;
  max-width: 100%;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #3457D5;
  transform: translateY(-2px);
}

.footer-links h3, 
.footer-contact h3, 
.footer-newsletter h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  position: relative;
}

.footer-links h3::after, 
.footer-contact h3::after, 
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #3457D5;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-links a:hover {
  color: #3457D5;
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact i {
  color: #3457D5;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.newsletter-form {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 15px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
  background: #3457D5;
  color: white;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.newsletter-btn:hover {
  background: #318CE7;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 30px 5%;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-about {
    grid-column: span 1;
  }
  
  .footer-logo {
    margin-bottom: 15px;
  }
  
  .footer-links h3,
  .footer-contact h3,
  .footer-newsletter h3 {
    margin-bottom: 15px;
  }
}

/* LANDSCAPE MODE OPTIMIZATION */
@media (max-width: 992px) and (orientation: landscape) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-about {
    grid-column: span 2;
  }
}

/* TOUCH DEVICE ADJUSTMENTS */
@media (hover: none) {
  .footer-social a:hover,
  .footer-links a:hover,
  .newsletter-btn:hover {
    transform: none;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 100%;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(100%);
}

.alert-success {
    background-color: #4CAF50;
    border-left: 5px solid #388E3C;
}

.alert-error {
    background-color: #F44336;
    border-left: 5px solid #D32F2F;
}

.alert-warning {
    background-color: #FF9800;
    border-left: 5px solid #F57C00;
}

.alert-info {
    background-color: #2196F3;
    border-left: 5px solid #1976D2;
}

.close-alert {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* dummy */
.dashboard-slider-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 170px;
}

.dashboard-slider {
    width: 96%;
    max-width: 1200px;
    aspect-ratio: 20.5/8;
    overflow: hidden;
    position: relative;
}

.dashboard-slider .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-slider img,
.dashboard-slider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-slider a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 1200px) {
    .dashboard-slider {
        aspect-ratio: 20.5/8;
    }
}

@media (max-width: 992px) {
    .dashboard-slider {
        aspect-ratio: 20.5/6;
    }
    .dashboard-slider-wrapper {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .dashboard-slider {
        aspect-ratio: 20.5/7;
    }
    .dashboard-slider-wrapper {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .dashboard-slider {
        aspect-ratio: 20.5/8;
    }
    .dashboard-slider-wrapper {
        min-height: 150px;
    }
}