@font-face {
    font-family: 'SingaporeSling';
    src: url('../fonts/singaporesling.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.karate-hero {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Noto Sans JP', sans-serif;
    min-height: 100vh;
    padding: 4rem 1rem 2rem; /* Fixed top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Top-aligned with space below */
    gap: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* More side padding */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-row {
    position: relative;
    height: 350px;
    margin-bottom: 3.5rem; /* Exact spacing from reference */
    max-width: 900px;
    width: 100%;
}

.logo-row img {
    position: absolute;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
    object-fit: contain;
}

.logo-row img:nth-child(1) { 
    left: 12%;
    height: 150px;
    bottom: 70px;
}

.logo-row img:nth-child(2) { 
    left: 50%;
    transform: translateX(-50%);
    height: 240px;
    bottom: 25px;
}

.logo-row img:nth-child(3) { 
    right: 12%;
    height: 150px;
    bottom: 70px;
}

/* PERFECT TITLE CENTERING */
.titles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 4rem auto; /* Space before event box */
}

.title-main {
    font-family: 'SingaporeSling', sans-serif;
    font-size: clamp(3.8rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1;
    margin-bottom: 2.3rem;
    color: #0d1b2a;
    white-space: nowrap;
    justify-content: center;
    
}

.title-sub {
    font-family: 'SingaporeSling', sans-serif;
    font-size: clamp(2.4rem, 4vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 2px;
    color: #1b263b;
    margin-bottom: 0.5rem; /* Tight spacing */
    white-space: nowrap;
    justify-content: center;
}

.title-event {
    font-family: 'SingaporeSling', sans-serif;
    font-size: clamp(1.2rem, 4.5vw, 2.4rem);
    letter-spacing: 1.5px;
    color: #1b263b;
    white-space: nowrap;
    justify-content: center;
    margin-bottom: 3.3rem;
}

.event-details-box {
    background: rgba(13,27,42,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3rem);
    margin: 0 auto;
    max-width: min(90vw, 650px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    color: #f8fafc;
    width: 100%;
}

.event-text {
    text-align: left;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    line-height: 1.7;
}

.event-text p {
    margin-bottom: 1.5rem;
}

.event-info h4 {
    font-family: 'SingaporeSling', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.info-label {
    color: #fbbf24;
    font-weight: 700;
    white-space: nowrap;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.info-value {
    color: #e2e8f0;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.waiver-btn {
    background: linear-gradient(45deg, #f97316, #fb923c);
    color: #ffffff !important;
    font-weight: 700;
    padding: clamp(1rem, 3vw, 1.2rem) clamp(2rem, 6vw, 3rem);
    border-radius: 30px;
    display: block;
    margin: 3rem auto 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(249,115,22,0.4);
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
}

.waiver-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(249,115,22,0.6);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .logo-row img:nth-child(1) { left: 10%; right: 10%; }
}

@media (max-width: 768px) {
    .karate-hero {
        padding: 2.5rem 1rem 2rem;
        justify-content: center; /* Center content on mobile */
    }
    
    .logo-row {
        height: clamp(200px, 35vw, 240px);
        margin-bottom: 2.5rem;
    }
    
    .logo-row img:nth-child(1) { 
        left: 5%;
        height: clamp(100px, 20vw, 130px);
        bottom: 60px;
    }
    
    .logo-row img:nth-child(3) { 
        right: 5%;
        height: clamp(100px, 20vw, 130px);
        bottom: 60px;
    }
    
    .logo-row img:nth-child(2) { 
        height: clamp(160px, 28vw, 200px);
        bottom: 20px;
    }
    
    .titles-container {
        margin-bottom: 2.5rem;
    }
    
    .title-main, .title-sub, .title-event {
        white-space: normal !important;
        word-wrap: break-word;
        text-align: center;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .karate-hero {
        padding: 2rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .logo-row {
        height: clamp(160px, 40vw, 200px);
    }
    
    .logo-row img:nth-child(1) { left: 2%; }
    .logo-row img:nth-child(3) { right: 2%; }
}

/* Bootstrap column centering */
.col-lg-10.col-xl-8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 0;
}

.row {
    justify-content: center;
    width: 100%;
}

/* Backdrop fallback */
@supports not (backdrop-filter: blur(0)) {
    .event-details-box {
        background: rgba(13,27,42,0.95);
    }
}
