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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: break-word;
}

.highlight {
    color: #2563eb;
}

.hero-description {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f8fafc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.workflow-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.workflow-column {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.workflow-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.workflow-image {
    margin-bottom: 2rem;
}

.workflow-image .image-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 3rem;
}

.workflow-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.pain-point {
    color: #ef4444;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.workflow-steps {
    margin: 2rem 0;
}

.workflow-steps .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    text-align: left;
}

.workflow-steps .step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.workflow-steps .step p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    padding-top: 0.5rem;
}

.benefit {
    color: #059669;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 2rem 0;
    font-style: italic;
}

.workflow-column .btn {
    margin-top: 1rem;
}

/* Venues Section */
.venues {
    padding: 6rem 0;
    background: #f8fafc;
}

.venues-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.venues-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.venues-text p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.venues-features {
    list-style: none;
    margin-bottom: 2rem;
}

.venues-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #64748b;
}

.venues-features li i {
    color: #10b981;
    font-size: 1.1rem;
}

.venues-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

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

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
}

.contact-item i {
    color: #2563eb;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.overlay-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.auth-form {
    margin-top: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Message Styles */
.message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.message.show {
    transform: translateX(0);
}

.message.error {
    background: #ef4444;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .image-placeholder {
        width: 250px;
        height: 200px;
        font-size: 3rem;
    }
    
    .workflow-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .workflow-column {
        padding: 2rem;
    }
    
    .workflow-image .image-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .workflow-header h3 {
        font-size: 1.5rem;
    }
    
    .pain-point {
        font-size: 1rem;
    }
    
    .about-content,
    .contact-content,
    .venues-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .image-placeholder {
        width: 200px;
        height: 150px;
        font-size: 2.5rem;
    }
    
    .overlay-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Verification Overlay Styles */
.verification-content {
    text-align: center;
}

.verification-message {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.verification-message p {
    margin-bottom: 0.75rem;
    color: #64748b;
    line-height: 1.6;
}

.verification-message p:first-child {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
}

.verification-email {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.2rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    display: inline-block;
    margin: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.code-input {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    padding: 1.5rem;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.code-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.code-input:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.code-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.resend-timer {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef3c7;
    border-radius: 6px;
    border: 1px solid #f59e0b;
}

.resend-timer.active {
    color: #92400e;
    font-weight: 600;
    background: #fef3c7;
    border-color: #f59e0b;
}

/* Verification overlay specific improvements */
#verificationOverlay .overlay-content {
    max-width: 500px;
    padding: 2.5rem;
}

#verificationOverlay .overlay-header h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

#verificationOverlay .form-group {
    margin-bottom: 2rem;
}

#verificationOverlay .form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

#verificationOverlay .form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

#verificationOverlay .form-footer p {
    margin-bottom: 0.5rem;
}

#verificationOverlay #resendCodeLink {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#verificationOverlay #resendCodeLink:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Mobile responsiveness for verification modal */
@media (max-width: 480px) {
    #verificationOverlay .overlay-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .code-input {
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
        padding: 1rem;
    }
    
    .verification-message {
        padding: 1rem;
    }
    
    .verification-email {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra small screens (iPhone SE, older iPhones) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .image-placeholder {
        width: 150px;
        height: 120px;
        font-size: 2rem;
    }
}

/* Organisation and Event Pages */
.organisation-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 12px;
}

.organisation-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.organisation-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.organisation-logo {
    flex-shrink: 0;
}

.organisation-header .organisation-info .organisation-logo img,
.organisation-logo img {
    width: 120px !important;
    height: 67.5px !important; /* 16:9 aspect ratio (120 * 9/16) */
    border-radius: 12px;
    object-fit: cover;
}

/* Specific selector for the org logo element */
#org-logo {
    width: 120px !important;
    height: 67.5px !important; /* 16:9 aspect ratio (120 * 9/16) */
    border-radius: 12px;
    object-fit: cover;
}

.logo-placeholder {
    width: 120px;
    height: 67.5px; /* 16:9 aspect ratio (120 * 9/16) */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem; /* Slightly smaller to fit better in 16:9 */
    border: 2px dashed rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.organisation-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.org-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.org-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verification-badge.verified {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.verification-badge.unverified {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.website-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.edit-btn i {
    font-size: 0.8rem;
}

/* Responsive Design for Organisation Header */
@media (max-width: 768px) {
    .organisation-header {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .organisation-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .organisation-logo {
        align-self: center;
    }
    
    .organisation-logo img,
    .logo-placeholder,
    #org-logo {
        width: 100px !important;
        height: 56.25px !important; /* 16:9 aspect ratio (100 * 9/16) */
    }
    
    .organisation-details h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .org-description {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .org-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .verification-badge,
    .website-link,
    .edit-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .organisation-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .organisation-logo img,
    .logo-placeholder,
    #org-logo {
        width: 80px !important;
        height: 45px !important; /* 16:9 aspect ratio (80 * 9/16) */
    }
    
    .organisation-details h1 {
        font-size: 1.75rem;
    }
    
    .org-description {
        font-size: 1rem;
    }
    
    .org-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.events-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e293b;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    position: relative;
    width: 100%;
    max-width: 800px; /* Constrains width to make it larger but not full screen */
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.event-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.event-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.event-status.published {
    background: #22c55e;
    color: white;
}

.event-status.draft {
    background: #f59e0b;
    color: white;
}

.event-status.cancelled {
    background: #ef4444;
    color: white;
}

.event-status.completed {
    background: #6b7280;
    color: white;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.event-content h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-content h3 a:hover {
    color: #059669;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.event-description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-type, .event-capacity, .event-price {
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #475569;
}

.no-events {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.no-events i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #059669;
}

/* Event Detail Page */
.event-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-image {
    flex-shrink: 0;
    position: relative;
    width: 400px; /* Doubled from 200px */
    aspect-ratio: 16/9;
}

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

.picture-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.event-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.event-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.event-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-type, .event-capacity, .event-price {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.event-content h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.event-description p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.location-info, .event-details-section, .genres-section, .requirements-section, .organisation-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.location-info:last-child, .event-details-section:last-child, .genres-section:last-child, .requirements-section:last-child, .organisation-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.location-details h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.location-details p {
    color: #64748b;
    margin-bottom: 0.25rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.detail-item label {
    font-weight: 600;
    color: #475569;
}

.detail-item span {
    color: #1e293b;
}

.genres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-tag {
    padding: 0.5rem 1rem;
    background: #059669;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.requirement-item h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.requirement-item p {
    color: #64748b;
    line-height: 1.6;
    white-space: pre-wrap;
}

.organisation-info .org-details h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.organisation-info .org-details p {
    color: #64748b;
    margin-bottom: 1rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .organisation-info {
        flex-direction: column;
        text-align: center;
    }
    
    .organisation-logo {
        margin-bottom: 1rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Edit Organisation Page */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.edit-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.edit-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.required {
    color: #ef4444;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.success-message i {
    margin-right: 0.5rem;
    color: #22c55e;
}

/* Logo Upload Styles */
.logo-upload-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.current-logo {
    text-align: center;
}

.current-logo-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.upload-area {
    flex: 1;
}

.upload-placeholder {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.upload-placeholder:hover {
    border-color: #059669;
    background-color: #f0fdf4;
}

.upload-placeholder i {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    margin: 0.25rem 0;
    color: #374151;
}

.upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design for Edit Form */
@media (max-width: 768px) {
    .edit-form-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .logo-upload-container {
        flex-direction: column;
    }
}
