/* ============================================
   CVSNI Event Template - Clean & Modern
   Commission for Victims and Survivors NI
   ============================================ */

:root {
    /* Brand Colors */
    --cvsni-dark-teal: #2D1654;
    --cvsni-teal: #4B2A8C;
    --cvsni-pink: #E8007D;
    --cvsni-lime: #e8b4d0;
    
    /* Neutrals */
    --white: #ffffff;
    --light-bg: #fafafa;
    --light-grey: #f5f5f5;
    --border-grey: #e0e0e0;
    --text-dark: #333333;
    --text-light: #666666;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 160px;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--cvsni-dark-teal);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
    color: var(--cvsni-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cvsni-pink);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 180px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-utility {
    background: var(--cvsni-dark-teal);
    padding: 12px 0;
}

.nav-utility .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-utility-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 14px;
}

.nav-utility-left i {
    color: var(--cvsni-lime);
    font-size: 14px;
}

.nav-utility a {
    color: var(--white);
    font-size: 14px;
}

.nav-utility a:hover {
    color: var(--cvsni-lime);
}

.nav-bar {
    padding: 20px 0;
}

.nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-bar .logo {
    height: 55px;
}

.nav-bar .menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
}

.nav-bar .menu a {
    color: var(--cvsni-dark-teal);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.nav-bar .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cvsni-teal);
    transition: width 0.3s ease;
}

.nav-bar .menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--cvsni-dark-teal);
    cursor: pointer;
}

/* ============================================
   HERO BANNER
   ============================================ */
#hero-banner {
    margin-top: var(--nav-height);
    position: relative;
    width: 100%;
    background: #5d2673;
    line-height: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
}

#banner-img {
    width: 100%;
    height: auto;
    display: block !important;
    vertical-align: bottom;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
}

#banner-btn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: auto;
}

#banner-btn .btn {
    padding: 16px 40px;
    font-size: 16px;
    white-space: nowrap;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--cvsni-teal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: var(--cvsni-teal);
}

.btn-secondary {
    background: var(--cvsni-pink);
    color: var(--white);
}

.btn-secondary:hover {
    background: #c70367;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--cvsni-teal);
}

.btn-filled {
    background: var(--cvsni-teal);
    color: var(--white);
}

.btn-filled:hover {
    background: #3a1f70;
    color: var(--white);
}

.btn-lg {
    padding: 18px 50px;
    font-size: 18px;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.bg-white { background: var(--white); }
.bg-light { background: var(--light-bg); }
.bg-teal { background: var(--cvsni-teal); color: var(--white); }
.bg-dark { background: var(--cvsni-dark-teal); color: var(--white); }

.bg-teal h2,
.bg-teal h3,
.bg-dark h2,
.bg-dark h3 {
    color: var(--white);
}

/* ============================================
   SPEAKERS
   ============================================ */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.speaker-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    isolation: isolate;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--cvsni-teal) 0%, var(--cvsni-pink) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.speaker-card:hover::before {
    opacity: 0.1;
}

.speaker-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 40px rgba(75, 42, 140, 0.25);
}

.speaker-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--cvsni-dark-teal);
    z-index: 0;
}

.speaker-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
    position: relative;
    z-index: 1;
}

.speaker-card:hover .speaker-image-wrapper img {
    transform: scale(1.08);
}

/* Hide everything except our explicit img and placeholder */
.speaker-image-wrapper > *:not(img):not(.speaker-placeholder) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.speaker-image-wrapper::before,
.speaker-image-wrapper::after {
    display: none !important;
}

/* Placeholder for missing images */
.speaker-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cvsni-teal) 0%, var(--cvsni-dark-teal) 100%);
    color: var(--white);
    font-size: 80px;
    overflow: hidden;
    z-index: 10;
}

.speaker-placeholder i {
    position: relative;
    z-index: 11;
    transition: transform 0.4s ease;
    display: block;
}

.speaker-card:hover .speaker-placeholder i {
    transform: scale(1.08);
}

/* Hide any default Mitingu user avatars/icons */
.speaker-image-wrapper svg,
.speaker-image-wrapper .user-icon,
.speaker-image-wrapper .avatar,
.speaker-placeholder svg,
.speaker-placeholder .user-icon,
.speaker-placeholder .avatar {
    display: none !important;
}

.speaker-info {
    padding: 30px 25px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--white);
}

.speaker-info h5 {
    color: var(--cvsni-dark-teal);
    margin-bottom: 8px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.speaker-card:hover .speaker-info h5 {
    color: var(--cvsni-teal);
}

.speaker-info p {
    color: var(--cvsni-teal);
    font-weight: 500;
    font-size: 1.25rem;
}

.speaker-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--cvsni-teal) 0%, var(--cvsni-pink) 100%);
    border-radius: 2px;
    z-index: 3;
}

/* ============================================
   AGENDA
   ============================================ */
.agenda-item {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border-left: 4px solid var(--cvsni-teal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.agenda-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.agenda-time {
    color: var(--cvsni-teal);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-title {
    color: var(--cvsni-dark-teal);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.agenda-speaker {
    color: var(--cvsni-pink);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ============================================
   REGISTRATION
   ============================================ */
#registration {
    background: linear-gradient(135deg, var(--cvsni-teal) 0%, var(--cvsni-dark-teal) 100%);
    scroll-margin-top: 180px;
}

.reg-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-table {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.pricing-table:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.pricing-table h5 {
    color: var(--cvsni-dark-teal);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.pricing-table .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cvsni-teal);
    margin: 15px 0;
}

.pricing-table p {
    font-size: 14px;
    margin-bottom: 15px;
}

.pricing-table select {
    display: none;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--cvsni-teal);
    background: var(--white);
    color: var(--cvsni-teal);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.quantity-btn:hover {
    background: var(--cvsni-teal);
    color: var(--white);
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.quantity-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cvsni-dark-teal);
    min-width: 50px;
}

.pricing-table .btn {
    width: 100%;
    margin-top: 15px;
}

/* ============================================
   SPONSORS
   ============================================ */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    align-items: center;
}

.sponsors-grid img {
    max-height: 80px;
    max-width: 220px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sponsors-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   VENUE
   ============================================ */
#venue {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.map-container {
    min-height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.venue-details {
    padding: 60px 50px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address-block {
    line-height: 1.8;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.venue-buttons {
    margin-top: 35px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--cvsni-dark-teal);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
    font-size: 14px;
}

footer h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

footer a {
    color: var(--cvsni-lime);
}

footer a:hover {
    color: var(--white);
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
}

.social-list {
    list-style: none;
    display: flex;
    gap: 15px;
}

.social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-list a:hover {
    background: var(--cvsni-teal);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* ============================================
   MODALS
   ============================================ */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.in .modal-dialog {
    transform: scale(1);
}

.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--cvsni-teal) 0%, var(--cvsni-dark-teal) 100%);
    color: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 30px 40px;
    border: none;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cvsni-pink) 0%, var(--cvsni-lime) 100%);
}

.modal-header .close {
    color: var(--white);
    opacity: 1;
    font-size: 32px;
    font-weight: 300;
    text-shadow: none;
    transition: all 0.3s ease;
}

.modal-header .close:hover {
    transform: rotate(90deg);
    color: var(--cvsni-lime);
}

.modal-title {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-body {
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--light-grey);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--cvsni-teal);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--cvsni-dark-teal);
}

.modal-footer {
    border: none;
    padding: 25px 40px;
    background: var(--light-bg);
}

.modal-backdrop.in {
    opacity: 0.7;
}

/* ============================================
   FORMS
   ============================================ */
input[type="email"],
input[type="text"],
select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-grey);
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff!important;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--cvsni-teal);
}

textarea {
    overflow: auto;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-grey);
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff !important;
    transition: border-color 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .nav-bar .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .nav-bar .menu.active {
        display: flex;
    }
    
    .nav-bar .menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-grey);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Hide utility bar on mobile */
    .nav-utility {
        display: none !important;
    }
    
    #hero-banner {
        margin-top: 95px !important;
    }
    
    #banner-btn {
        bottom: 35px !important;
    }
    
    #venue {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    #hero-banner {
        margin-top: 95px !important;
    }
    
    #banner-btn {
        bottom: 25px !important;
    }
    
    #banner-btn .btn {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .nav-utility .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .venue-details {
        padding: 40px 25px;
    }
    
    .reg-row {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .pricing-table {
        padding: 25px 20px;
    }
    
    .pricing-table .price {
        font-size: 2.2rem;
    }

    .venue-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .venue-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #banner-btn {
        bottom: 15px !important;
    }
    
    #banner-btn .btn {
        padding: 10px 25px !important;
        font-size: 13px !important;
    }
    
    .btn-lg {
        padding: 14px 35px;
        font-size: 16px;
    }
}

@media (max-width: 389px) {
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.lead {
    font-size: 18px;
    line-height: 1.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.speaker-card {
    animation: scaleIn 0.5s ease-out backwards;
}

.speaker-card:nth-child(1) { animation-delay: 0.1s; }
.speaker-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-card:nth-child(3) { animation-delay: 0.3s; }
.speaker-card:nth-child(4) { animation-delay: 0.4s; }
.speaker-card:nth-child(5) { animation-delay: 0.5s; }
.speaker-card:nth-child(6) { animation-delay: 0.6s; }

.agenda-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.agenda-item:nth-child(1) { animation-delay: 0.1s; }
.agenda-item:nth-child(2) { animation-delay: 0.2s; }
.agenda-item:nth-child(3) { animation-delay: 0.3s; }
.agenda-item:nth-child(4) { animation-delay: 0.4s; }
.agenda-item:nth-child(5) { animation-delay: 0.5s; }

.pricing-table {
    animation: scaleIn 0.6s ease-out backwards;
}

.pricing-table:nth-child(1) { animation-delay: 0.1s; }
.pricing-table:nth-child(2) { animation-delay: 0.2s; }
.pricing-table:nth-child(3) { animation-delay: 0.3s; }