/* ===================================================================
   EventOrgs - Unified CSS Framework
   ================================================================== */

/* CSS Variables */
:root {
    --primary-color: #050774;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --light-text: #64748b;
    --gray-text: #64748b;
    --border-radius: 10px;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --card-shadow-hover: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #f97316 100%);
}

/* ===================================================================
   BASE STYLES
   ================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    font-size: 14px;
}

/* Typography */
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Button Styles */
.btn {
    font-size: 13px;
    padding: 8px 16px;
}

.btn-lg {
    font-size: 15px;
    padding: 12px 24px;
}

.btn-sm {
    font-size: 12px;
    padding: 6px 12px;
}

.btn-primary-modern {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-primary-modern:hover {
    background: var(--gradient-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.btn-secondary-modern {
    background: var(--gradient-secondary);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-secondary-modern:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--gradient-primary);
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white !important;
    text-decoration: none;
}

.btn-primary-custom:focus,
.btn-primary-custom:active {
    background: var(--gradient-primary);
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.2);
    color: white !important;
    outline: none;
}

.btn-primary-custom.btn-lg {
    font-size: 15px;
    padding: 14px 28px;
}

.btn-primary-custom.btn-sm {
    font-size: 12px;
    padding: 8px 16px;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary.active {
    color: white !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

.btn-outline-primary.btn-lg {
    font-size: 15px;
    padding: 14px 28px;
}

.btn-outline-primary.btn-sm {
    font-size: 12px;
    padding: 8px 16px;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #6b7280;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    color: #6b7280 !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    border-color: #6b7280;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background: #6b7280;
    border-color: #6b7280;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
    outline: none;
}

.btn-outline-secondary.btn-lg {
    font-size: 15px;
    padding: 14px 28px;
}

.btn-outline-secondary.btn-sm {
    font-size: 12px;
    padding: 8px 16px;
}

/* ===================================================================
   LAYOUT COMPONENTS
   ================================================================== */

/* Navbar */
.navbar-modern {
    background: white !important;
    box-shadow: var(--shadow-md);
    margin: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand img {
    width: 125px;
}

.navbar-nav {
    gap: 50px;
    margin: 0 auto;
}

.nav-link {
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer */
.footer-modern {
    background: white;
    box-shadow: var(--shadow-md);
    margin: 20px;
    padding: 30px 20px;
    margin-top: 50px;
    border-radius: var(--border-radius);
}

/* Content Wrapper */
.content-wrapper {
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* ===================================================================
   CARD COMPONENTS
   ================================================================== */

.card-modern {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================================================
   EVENT CARDS (Different Variants)
   ================================================================== */

/* Home Page Event Cards */
.event-card-home {
    transition: all 0.3s ease;
    height: 100%;
}

.event-card-home:hover {
    transform: translateY(-5px);
}

/* Events Page Event Cards */
.event-card-events {
    transition: all 0.3s ease;
    height: 100%;
}

.event-card-events:hover {
    transform: translateY(-3px);
}

/* Event Detail Page Small Event Cards */
.event-card-detail {
    height: 100%;
    transition: all 0.3s ease;
}

.event-card-detail:hover {
    transform: translateY(-3px);
}

/* List View Support for Events Page */
.list-view .event-card {
    margin-bottom: 20px;
}

/* List View Card keeps vertical layout but full width */
.list-view-card {
    width: 100% !important;
    max-width: 100% !important;
}

.list-view-card .event-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.list-view-card .card-body {
    padding: 1.5rem;
}

/* Optional: If you want horizontal layout instead */
.list-view-horizontal .card {
    flex-direction: row;
}

.list-view-horizontal .event-image {
    width: 200px;
    height: 150px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.list-view-horizontal .card-body {
    flex: 1;
}

/* ===================================================================
   EVENT COMPONENTS
   ================================================================== */

/* Event Images */
.event-image {
    height: 200px;
    background-size: 100%;
    background-position: center;
    background-attachment: scroll;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
}

.event-image-small {
    height: 150px;
    background-size: 100%;
    background-position: center;
    background-attachment: scroll;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Event Badges */
.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.event-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.event-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-right: 10px;
    font-size: 0.85rem;
}

/* Event Info */
.price-tag {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.capacity-info {
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
}

/* ===================================================================
   HERO SECTIONS
   ================================================================== */

/* Home Page Hero */
.hero-banner {
    height: 500px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9)), 
                url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1200&h=500&fit=crop') center;
    background-size: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

/* About Page Hero */
.hero-about {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9)), 
                url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1200&h=400&fit=crop') center;
    background-size: cover;
    border-radius: var(--border-radius);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

/* Events Page Hero */
.events-hero {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9)), 
                url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1200&h=300&fit=crop') center;
    background-size: cover;
    border-radius: var(--border-radius);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

/* Event Detail Page Hero */
.event-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    position: relative;
    margin-bottom: 40px;
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(99, 102, 241, 0.8));
    border-radius: var(--border-radius);
    display: flex;
    align-items: end;
    padding: 40px;
    color: white;
}

.event-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.price-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Media Page Hero */
.media-hero {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9)), 
                url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=1200&h=300&fit=crop') center;
    background-size: cover;
    border-radius: var(--border-radius);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

/* ===================================================================
   CAROUSEL COMPONENTS
   ================================================================== */

.carousel-modern {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.carousel-item {
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

/* Smooth carousel transitions */
.carousel-inner {
    overflow: hidden;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    background: #f8fafc;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
}

.carousel-item > img.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f8fafc;
}

/* Image loading state */
.carousel-image:not([src]),
.carousel-image[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover effect for better interaction */
.carousel-modern:hover .carousel-image {
    transform: scale(1.02);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(71deg, rgb(99 102 241 / 22%), rgb(79 70 229 / 67%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Carousel Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60% 60%;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
    z-index: 15;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: rgba(255,255,255,0.3);
    margin: 0 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-indicators [data-bs-target].active {
    background-color: white;
    transform: scale(1.2);
}

/* ===================================================================
   STATISTICS COMPONENTS
   ================================================================== */

.stats-card {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stats-card div {
    font-size: 13px;
    margin-top: 8px;
}

.stats-banner {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px 0;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 50px 0;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

/* ===================================================================
   ICON COMPONENTS
   ================================================================== */

/* Base Feature Icon (50x50px as standard) */
.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Feature Icon for Home Page (larger version) */
.feature-icon-home {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

/* Value Icon for About Page */
.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* ===================================================================
   AUTHENTICATION COMPONENTS
   ================================================================== */

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-hover);
}

.auth-card.register {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ===================================================================
   FORM COMPONENTS
   ================================================================== */

.form-floating {
    margin-bottom: 20px;
}

.form-floating .form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    padding: 15px;
    height: auto;
}

.form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-floating label {
    color: var(--light-text);
    font-weight: 500;
}

.form-control-modern {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control-custom {
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    z-index: 10;
}

/* ===================================================================
   FILTER COMPONENTS
   ================================================================== */

.filter-card {
    position: sticky;
    top: 100px;
    z-index: 100;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.filter-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--border-radius);
    padding: 8px 16px;
    margin: 2px;
    transition: all 0.3s ease;
}

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

/* ===================================================================
   COUNTDOWN COMPONENTS
   ================================================================== */

.countdown {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 20px;
}

.countdown-item {
    display: inline-block;
    margin: 0 10px;
    text-align: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===================================================================
   PROGRESS COMPONENTS
   ================================================================== */

.progress-custom {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

/* ===================================================================
   TEAM COMPONENTS
   ================================================================== */

.team-card {
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--primary-color);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
}

/* ===================================================================
   TIMELINE COMPONENTS
   ================================================================== */

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin: 0 2rem;
}

.milestone-item {
    padding: 30px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.milestone-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===================================================================
   GALLERY & MEDIA COMPONENTS
   ================================================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.8), rgba(79, 70, 229, 0.8));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.portfolio-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

/* Media Tabs */
.media-tabs {
    margin-bottom: 40px;
}

.media-tab {
    background: white;
    border: 2px solid #e2e8f0;
    color: var(--dark-text);
    border-radius: var(--border-radius);
    padding: 12px 24px;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.media-tab.active,
.media-tab:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Video Components */
.video-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.video-item:hover .video-play-btn {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===================================================================
   PRESS & CONTENT COMPONENTS
   ================================================================== */

.press-item {
    transition: all 0.3s ease;
}

.press-item:hover {
    transform: translateY(-5px);
}

.press-date {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.press-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.press-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================================================
   REGISTRATION COMPONENTS
   ================================================================== */

.register-card {
    border: 3px solid var(--primary-color);
    background: linear-gradient(145deg, white, rgba(99, 102, 241, 0.02));
}

.info-card {
    position: sticky;
    top: 100px;
}

/* Step Components */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-color);
    color: white;
}

.step.completed {
    background: var(--success-color);
    color: white;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* ===================================================================
   SOCIAL & SHARE COMPONENTS
   ================================================================== */

.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.social-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
    text-decoration: none;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

/* ===================================================================
   CTA COMPONENTS  
   ================================================================== */

.cta-button-primary {
    background: linear-gradient(45deg, #fff, #f8fafc);
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
    color: var(--primary-dark) !important;
}

.cta-button-secondary {
    background: rgba(255,255,255,0.1);
    color: white !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: white !important;
}

/* ===================================================================
   DOWNLOADS & MISC COMPONENTS
   ================================================================== */

.downloads-section {
    background: rgba(99, 102, 241, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateX(5px);
}

.racepack-item {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

/* ===================================================================
   UTILITY CLASSES
   ================================================================== */

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.text-light-text {
    color: var(--light-text) !important;
}

.bg-primary-custom {
    background: var(--gradient-primary) !important;
}

.bg-secondary-custom {
    background: var(--gradient-secondary) !important;
}

.badge-custom {
    border-radius: var(--border-radius);
    padding: 6px 12px;
    font-weight: 500;
}

.loading-card {
    background: rgba(99, 102, 241, 0.1);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--border-radius);
}

/* ===================================================================
   MODAL COMPONENTS
   ================================================================== */

.modal-gallery {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-image {
    width: 100%;
    height: auto;
}

/* ===================================================================
   NAVIGATION TABS
   ================================================================== */

.nav-tabs-modern {
    border: none;
    background: #f8fafc;
}

.nav-tabs-modern .nav-link {
    border: none;
    background: transparent;
    color: var(--gray-text);
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.nav-tabs-modern .nav-link.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================================================
   LOADING & ANIMATIONS
   ================================================================== */

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

.loading-spinner.small {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

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

.slideUp {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .event-hero {
        height: 550px;
    }

    .carousel-item {
        height: 400px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 11px;
        height: 11px;
    }

    .featured-event-header, .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .event-image {
        height: 150px !important;
    }
    
    .event-image-small {
        height: 100px !important;
    }

    .event-hero {
        height: 600px;
    }
    
    .featured-event-header, .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-wrapper {
        padding-top: 1rem;
    }

    .similar-events {
        margin-top: 1rem;
    }
    
    .admin-stats {
        margin-bottom: 1rem;
    }

    .navbar-modern, .footer-modern {
        margin: 10px;
        border-radius: 8px;
    }
    
    .content-wrapper {
        padding: 0 10px;
    }
    
    .carousel-modern {
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .carousel-item {
        height: 200px;
    }
    
    .carousel-image {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 70% 70%;
    }
    
    /* Mobile touch optimization */
    .carousel-control-prev,
    .carousel-control-next {
        touch-action: manipulation;
        user-select: none;
    }
    
    /* Better mobile indicator visibility */
    .carousel-indicators [data-bs-target] {
        background-color: rgba(255,255,255,0.7);
        border: 1px solid rgba(255,255,255,0.9);
        box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    
    /* Disable hover effects on mobile */
    .carousel-modern:hover .carousel-image {
        transform: none;
    }
    
    .timeline::before {
        left: 2rem;
    }

    .dashboard-sidebar {
        margin-bottom: 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }
    
    .order-image {
        width: 100%;
        height: 200px;
    }
    
    .order-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: between;
    }
    
    .order-buttons {
        gap: 0.75rem;
    }
    
    .profile-photo-large {
        width: 100px;
        height: 100px;
    }
    
    .sidebar-link {
        padding: 0.875rem 1rem;
    }
    
    .timeline-marker {
        left: 2rem;
    }
    
    .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .auth-card {
        margin: 1rem;
    }
    
    .list-view .event-image {
        width: 150px;
        height: 120px;
    }
    
    .event-date-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon-home {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-modern {
        margin: 0 5px;
    }
    
    .carousel-item {
        height: 170px;
    }
    
    .carousel-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 80% 80%;
    }
    
    /* Extra small screen optimizations */
    .carousel-indicators [data-bs-target] {
        background-color: rgba(255,255,255,0.8);
        border: 1px solid white;
    }
    
    .carousel-indicators [data-bs-target].active {
        background-color: white;
    }
}

/* ===================================================================
   PRINT STYLES
   ================================================================== */

@media print {
    .navbar-modern,
    .footer-modern,
    .btn,
    .share-buttons,
    .filter-card {
        display: none !important;
    }
    
    .card-modern {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}

/* ===================================================================
   DASHBOARD COMPONENTS
   ================================================================== */

.dashboard-body {
    background: #f8fafc;
}

.navbar-dashboard {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-wrapper {
    min-height: calc(100vh - 80px);
    padding-top: 2rem;
}

.dashboard-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    height: fit-content;
}

.sidebar-content {
    padding: 1.5rem 0;
}

.sidebar-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.sidebar-title {
    color: var(--gray-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    text-decoration: none;
}

.sidebar-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.dashboard-main {
    margin-bottom: 2rem;
}

.dashboard-content {
    width: 100%;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    color: var(--primary-text);
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    margin: 0;
    font-size: 0.95rem;
}

.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.dashboard-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    display: flex;
    justify-content: between;
    align-items: center;
}

.dashboard-card .card-title {
    color: var(--primary-text);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0;
}

.stat-label {
    color: var(--gray-text);
    font-size: 0.875rem;
    margin: 0;
}

/* Event Items */
.event-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item .event-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.event-item .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    flex: 1;
}

.event-title {
    color: var(--primary-text);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.event-date,
.event-location {
    color: var(--gray-text);
    font-size: 0.8rem;
    margin: 0;
}

.event-actions {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.5rem;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--primary-text);
    font-size: 0.9rem;
    margin: 0;
}

.activity-time {
    color: var(--gray-text);
    font-size: 0.75rem;
}

/* Profile Summary */
.profile-summary {
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-info {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--gray-text);
    font-size: 0.875rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Order Items */
.order-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-item:last-child {
    border-bottom: none;
}

.order-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 1.25rem;
    overflow: hidden;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-content {
    flex: 1;
}

.order-header {
    display: flex;
    justify-content: between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.order-title {
    color: var(--primary-text);
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-info {
    color: var(--gray-text);
    font-size: 0.85rem;
    margin: 0;
}

.order-actions {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.75rem;
    min-width: 120px;
}

.order-price {
    color: var(--primary-text);
    font-size: 1.1rem;
}

.order-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Profile Settings */
.profile-photo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-photo-container:hover .profile-photo-overlay {
    opacity: 1;
}

/* Security Items */
.security-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.security-item:last-child {
    border-bottom: none;
}

.security-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
}

.security-content {
    flex: 1;
}

.security-content h6 {
    color: var(--primary-text);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.security-content p {
    margin: 0;
}

.security-action {
    margin-left: 1rem;
}

/* Badge Colors */
.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

.badge-secondary {
    background: #6b7280;
    color: white;
}

.order-summary {
    margin-left: 1rem;
}

/* ===================================================================
   END OF EVENTORGS CSS FRAMEWORK
   ================================================================== */ 