/* ====================================
   VPW 2026 - Modern Bootstrap 5 Stylesheet
   ==================================== */

/* ====================================
   CSS Variables
   ==================================== */
:root {
    --vpw-primary: #B5A372;
    --vpw-primary-dark: #9a8a5e;
    --vpw-primary-light: #d0c49a;
    --vpw-dark: #1a1d23;
    --vpw-darker: #0f1115;
    --vpw-light: #f8f9fa;
    --vpw-gray: #6c757d;
    --vpw-border: #dee2e6;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ====================================
   Global Styles
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--vpw-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h2 {
    position: relative;
    padding-left: 1.5rem;
    color: var(--vpw-dark);
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, var(--vpw-primary) 0%, var(--vpw-primary-light) 100%);
    border-radius: 4px;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* ====================================
   Navigation
   ==================================== */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    border-bottom: 3px solid var(--vpw-primary);
}

.navbar .container-fluid {
    max-width: 1400px;
}

.navbar-brand {
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    color: var(--vpw-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.nav-link:hover {
    background: rgba(181, 163, 114, 0.15);
    color: var(--vpw-primary) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--vpw-primary-dark) 0%, var(--vpw-primary) 100%);
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
}

.nav-link.active i {
    color: #ffffff !important;
}

.btn-register {
    background: var(--vpw-primary) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
    margin-left: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-register:hover {
    background: var(--vpw-primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.navbar-toggler {
    border: 2px solid var(--vpw-primary);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(181, 163, 114, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(181, 163, 114, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ====================================
   Hero Section
   ==================================== */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--vpw-light) 100%);
    padding: 3rem 0 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--vpw-border);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(181, 163, 114, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(181, 163, 114, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    max-width: 1400px;
}

.hero-logo {
    max-width: 600px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 1;
}

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

/* ====================================
   Content Area & Max Width Constraints
   ==================================== */
/* Limit max width for better readability on large screens */
.container-fluid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.content-area {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    min-height: 500px;
    animation: fadeIn 0.5s ease;
}

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

.content-area h2:first-child {
    margin-top: 0;
}

.content-area ul {
    padding-left: 1.5rem;
}

.content-area li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* ====================================
   Sidebar
   ==================================== */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    background: #ffffff;
}

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

.sidebar-card .card-header {
    background: linear-gradient(135deg, var(--vpw-dark) 0%, var(--vpw-darker) 100%);
    color: #ffffff !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

.sidebar-card .card-header h5 {
    color: #ffffff !important;
    margin: 0;
}

.sidebar-card .card-header i {
    color: var(--vpw-primary);
}

.sidebar-card .list-group-item {
    border: none;
    border-bottom: 1px solid var(--vpw-border);
    padding: 1rem 1.25rem;
    transition: var(--transition);
    color: var(--vpw-dark);
    font-weight: 500;
}

.sidebar-card .list-group-item:last-child {
    border-bottom: none;
}

.sidebar-card .list-group-item:hover {
    background: linear-gradient(90deg, rgba(181, 163, 114, 0.1) 0%, transparent 100%);
    color: var(--vpw-primary);
    padding-left: 1.75rem;
}

.sidebar-card .list-group-item i {
    color: var(--vpw-primary);
    transition: var(--transition);
}

.sidebar-card .list-group-item:hover i {
    transform: scale(1.2);
}

.sidebar-card .card-footer {
    background: var(--vpw-light);
    border-top: 1px solid var(--vpw-border);
    padding: 0.75rem;
}

.sidebar-logo {
    max-width: 200px;
    filter: drop-shadow(var(--shadow-sm));
    transition: var(--transition);
}

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

/* Social Media Button */
.btn-social {
    background: linear-gradient(135deg, #1877f2 0%, #0d66d0 100%);
    color: #ffffff !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.btn-social:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0d66d0 0%, #1877f2 100%);
    color: #ffffff !important;
}

.btn-social i {
    color: #ffffff !important;
}

/* ====================================
   Sponsors & Organizations
   ==================================== */
.sponsors-section,
.organization-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 1rem;
}

.sponsors-section h2,
.organization-section h2 {
    color: var(--vpw-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.sponsors-section h2::after,
.organization-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--vpw-primary) 0%, var(--vpw-primary-light) 100%);
    border-radius: 2px;
}

.sponsor-logo,
.org-logo {
    max-height: 50px;
    width: auto;
    filter: grayscale(0%);
    transition: var(--transition);
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.sponsor-logo:hover,
.org-logo:hover {
    transform: scale(1.1) translateY(-8px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: linear-gradient(135deg, var(--vpw-darker) 0%, var(--vpw-dark) 100%);
    color: #ffffff;
    border-top: 3px solid var(--vpw-primary);
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* ====================================
   Tables
   ==================================== */
table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

table thead {
    background: linear-gradient(135deg, var(--vpw-dark) 0%, var(--vpw-darker) 100%);
    color: #ffffff;
}

table thead th {
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

table tbody tr {
    transition: var(--transition);
    background: #ffffff;
}

table tbody tr:nth-child(even) {
    background: var(--vpw-light);
}

table tbody tr:hover {
    background: rgba(181, 163, 114, 0.1);
    transform: scale(1.01);
}

table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--vpw-border);
    vertical-align: top;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ====================================
   Links
   ==================================== */
a {
    color: var(--vpw-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--vpw-primary-dark);
    text-decoration: underline;
}

/* ====================================
   Buttons
   ==================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--vpw-primary) 0%, var(--vpw-primary-dark) 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--vpw-primary-dark) 0%, var(--vpw-primary) 100%);
}

/* ====================================
   Forms
   ==================================== */
.form-control {
    border: 2px solid var(--vpw-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--vpw-primary);
    box-shadow: 0 0 0 0.2rem rgba(181, 163, 114, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--vpw-dark);
    margin-bottom: 0.5rem;
}

/* ====================================
   Cards in Content
   ==================================== */
.content-area .col-xs-12,
.content-area .col-md-6 {
    margin-bottom: 1.5rem;
}

.content-area > div[class*="col-"] {
    padding: 1.5rem;
}

/* ====================================
   Code Formatting & Typography
   ==================================== */
pre {
    background: #f8f9fa;
    border: 1px solid var(--vpw-border);
    border-left: 4px solid var(--vpw-primary);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2d3748;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

code, tt {
    background: rgba(181, 163, 114, 0.1);
    color: var(--vpw-primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    font-weight: 500;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

article:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

article h3 {
    color: var(--vpw-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(181, 163, 114, 0.2);
}

article section {
    margin-bottom: 1.5rem;
}

article section:last-child {
    margin-bottom: 0;
}

strong, b {
    color: var(--vpw-dark);
    font-weight: 600;
}

em, i, var {
    color: var(--vpw-gray);
    font-style: italic;
}

var {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: var(--vpw-primary-dark);
}

/* Images in content */
.content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

/* Responsive iframes (for YouTube videos, etc.) */
.content-area iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin: 1rem 0;
}

.content-area figure {
    margin: 1rem 0;
    text-align: center;
}

.content-area figure img {
    display: inline-block;
}

/* ====================================
   Sponsor Call to Action
   ==================================== */
.sponsor-cta {
    background: linear-gradient(135deg, #ffffff 0%, rgba(181, 163, 114, 0.05) 100%);
    border: 2px solid var(--vpw-primary);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.sponsor-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(181, 163, 114, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.sponsor-cta h2 {
    color: var(--vpw-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.sponsor-cta h2::before {
    background: linear-gradient(135deg, var(--vpw-primary) 0%, var(--vpw-primary-light) 100%);
}

.sponsor-cta .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--vpw-dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

.sponsor-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.sponsor-benefits li {
    padding: 1rem 0 1rem 3rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(181, 163, 114, 0.2);
}

.sponsor-benefits li:last-child {
    border-bottom: none;
}

.sponsor-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--vpw-primary) 0%, var(--vpw-primary-light) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.sponsor-contact {
    background: linear-gradient(135deg, var(--vpw-primary) 0%, var(--vpw-primary-dark) 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sponsor-contact p {
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
}

.sponsor-contact strong {
    color: #ffffff;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 0.5rem;
}

.sponsor-contact .contact-info {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.sponsor-contact .contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.sponsor-contact .contact-info a:hover {
    color: var(--vpw-primary-light);
    text-decoration: underline;
}

.sponsor-contact .contact-info i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Responsive adjustments for sponsor CTA */
@media (max-width: 767px) {
    .sponsor-cta {
        padding: 1.5rem;
    }

    .sponsor-cta h2 {
        font-size: 1.5rem;
    }

    .sponsor-benefits li {
        padding-left: 2.5rem;
        font-size: 1rem;
    }

    .sponsor-contact {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
}

/* ====================================
   Bootstrap 3 Compatibility
   ==================================== */
/* Support old col-xs-* classes */
.col-xs-6 {
    width: 50%;
    float: left;
    padding: 0 15px;
}

.col-xs-8 {
    width: 66.666667%;
    float: left;
    padding: 0 15px;
}

.col-xs-9 {
    width: 75%;
    float: left;
    padding: 0 15px;
}

.col-xs-12 {
    width: 100%;
    float: left;
    padding: 0 15px;
}

.col-lg-4 {
    width: 33.333333%;
    float: left;
    padding: 0 15px;
}

.col-lg-6 {
    width: 50%;
    float: left;
    padding: 0 15px;
}

.col-lg-8 {
    width: 66.666667%;
    float: left;
    padding: 0 15px;
}

.col-md-4 {
    width: 33.333333%;
    float: left;
    padding: 0 15px;
}

.col-md-5 {
    width: 41.666667%;
    float: left;
    padding: 0 15px;
}

.col-md-7 {
    width: 58.333333%;
    float: left;
    padding: 0 15px;
}

.col-md-8 {
    width: 66.666667%;
    float: left;
    padding: 0 15px;
}

/* Clear floats */
.content-area::after {
    content: "";
    display: table;
    clear: both;
}

/* Make columns stack on mobile */
@media (max-width: 767px) {
    .col-xs-6,
    .col-xs-8,
    .col-xs-9,
    .col-xs-12,
    .col-md-4,
    .col-md-5,
    .col-md-7,
    .col-md-8,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8 {
        width: 100%;
        float: none;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-5 {
        width: 41.666667%;
    }

    .col-md-7 {
        width: 58.333333%;
    }

    .col-md-8 {
        width: 66.666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        width: 33.333333%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-8 {
        width: 66.666667%;
    }
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 991px) {
    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }

    .hero-logo {
        max-width: 400px;
    }

    .content-area {
        padding: 1.5rem;
    }

    .btn-register {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 991px) {
    /* Mobile menu spacing fixes */
    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-link {
        margin: 0.5rem 0 !important;
        padding: 0.75rem 1rem !important;
        width: 100%;
    }

    .btn-register {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        width: 100%;
    }
}

@media (max-width: 767px) {
    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0 1rem 0;
    }

    .hero-logo {
        max-width: 300px;
    }

    .content-area {
        padding: 1rem;
        border-radius: 12px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .sponsor-logo,
    .org-logo {
        max-height: 35px;
    }

    .sponsors-section,
    .organization-section {
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 575px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* ====================================
   Accessibility
   ==================================== */
:focus {
    outline: 3px solid var(--vpw-primary);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .navbar,
    .sidebar-sticky,
    .footer,
    .btn-social {
        display: none;
    }

    body {
        background: #ffffff;
    }

    .content-area {
        box-shadow: none;
        border: 1px solid #000;
    }

    a[href]:after {
        content: none;
    }
}

/* ====================================
   Animations
   ==================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.list-group-item {
    animation: slideIn 0.3s ease;
}

/* Stagger animation for list items */
.list-group-item:nth-child(1) { animation-delay: 0.05s; }
.list-group-item:nth-child(2) { animation-delay: 0.1s; }
.list-group-item:nth-child(3) { animation-delay: 0.15s; }
.list-group-item:nth-child(4) { animation-delay: 0.2s; }
.list-group-item:nth-child(5) { animation-delay: 0.25s; }
.list-group-item:nth-child(6) { animation-delay: 0.3s; }
