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

/* Brand Fonts */
@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/static/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Post Grotesk';
    src: url('../fonts/Post Grotesk/PostGrotesk-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Post Grotesk';
    src: url('../fonts/Post Grotesk/PostGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Post Grotesk';
    src: url('../fonts/Post Grotesk/PostGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors */
    --primary-color: #3514FF;
    --primary-light: #89C5FD;
    --accent-pink: #F9ABB9;
    --text-dark: #32314F;

    /* Extended Palette */
    --secondary-color: #89C5FD;
    --accent-color: #F9ABB9;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --bg-light: #f7f9fc;
    --bg-white: #ffffff;
    --border-color: #e1e4e8;
    --success-color: #00c48c;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Post Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Titles use Space Grotesk Bold */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image: url('../images/background/header-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(50, 49, 79, 0.4) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 3rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(53, 20, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 20, 255, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

section p {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.about {
    background-color: var(--bg-light);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(50, 49, 79, 0.06);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(53, 20, 255, 0.12);
    border-color: var(--primary-light);
}

.video-thumbnail,
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: var(--bg-light);
    overflow: hidden;
}

.placeholder-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.placeholder-video svg {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.placeholder-video p {
    color: white;
    opacity: 0.9;
    font-size: 0.875rem;
    margin: 0;
    padding: 0 1rem;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}

.video-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.video-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(50, 49, 79, 0.06);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: 0 8px 24px rgba(53, 20, 255, 0.1);
    transform: translateX(4px);
    border-color: var(--primary-light);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.event-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.event-details p {
    text-align: left;
    margin: 0;
}

/* Page Header */
.page-header {
    background-image: url('../images/background/form-header-pattern@2x.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(53, 20, 255, 0.1);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    color: white;
    margin: 0;
}


/* Events Section - Detailed Cards */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card-detailed {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(50, 49, 79, 0.06);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.event-card-detailed:hover {
    box-shadow: 0 8px 24px rgba(53, 20, 255, 0.1);
    border-color: var(--primary-light);
}

.event-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-light);
}

.event-date-badge {
    flex-shrink: 0;
    width: 100px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.event-date-badge .day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.event-date-badge .month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
    display: block;
}

.event-date-badge .year {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    display: block;
}

.event-title-section {
    flex: 1;
}

.event-title-section h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}

.event-body {
    padding: 2rem;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.detail-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.event-body > p {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.event-highlights {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.event-highlights h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.event-highlights ul {
    list-style: none;
    padding: 0;
}

.event-highlights li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.event-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Organisers Section */
.organisers {
    background-color: var(--bg-white);
    padding: 4rem 0;
}

.organisers h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.organisers-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.organiser-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.organiser-card:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.organiser-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-light);
    transition: var(--transition);
}

.organiser-card:hover .organiser-avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.organiser-card h3 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5B40FF 100%);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background-color: #2A2947;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-simple {
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-simple .footer-section p,
.footer-simple .footer-section ul {
    text-align: center;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero {
        min-height: 320px;
    }

    .hero-content {
        padding-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }

    .event-date .day {
        font-size: 1.5rem;
    }

    .event-header {
        flex-direction: column;
    }

    .event-date-badge {
        width: 100%;
        padding: 0.75rem;
    }

    .event-date-badge .day {
        display: inline;
        font-size: 2rem;
        margin-right: 0.5rem;
    }

    .event-date-badge .month {
        display: inline;
        margin-right: 0.5rem;
    }

    .event-date-badge .year {
        display: inline;
    }

    .event-title-section h3 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        min-height: 280px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 3rem 0;
    }

    .nav-brand img {
        height: 40px;
    }
}