* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fdf6f6;
    color: #333;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.container {
    margin: 0 auto;
    overflow-x: hidden;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    height: 35px;
    margin: 0 auto;
    padding: 0 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
}

.header-logo {
    height: 50px;
    margin-right: 12px;
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 560;
    letter-spacing: 1px;
}

.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url(assets/Header.png) center/cover no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(80, 15, 15, 0.85), rgba(191, 51, 51, 0.6));
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.event-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.event-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    padding: 20px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.content {
    padding: 4rem 2rem;
    background: #fff;
}

.about-section {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.about-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

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

.button-group {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.8rem 2.5rem;
    background: white;
    color: #bf3333;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #fff5f5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.primary {
    background: #bf3333;
    color: white;
    border-color: #bf3333;
}
.category-btn.primary:hover {
    background: #a02626;
    border-color: #a02626;
    transform: translateY(-2px);
}

.category-btn.secondary {
    background: #fdf6f6;
    color: #bf3333;
    border-color: #fed7d7;
}
.category-btn.secondary:hover {
    background: #bf3333;
    color: white;
    border-color: #bf3333;
}

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

.category-section {
    display: flex; 
    flex-direction: column;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(191, 51, 51, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(191, 51, 51, 0.15);
}

.category-image {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem auto; 
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.scout      { background-image: url('assets/SCOUT.png'); }
.AEO        { background-image: url('assets/AEO.png'); }
.essay      { background-image: url('assets/ESSAY.png'); }
.infographic{ background-image: url('assets/INFOGRAPHIC.png'); }

.category-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.category-title {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto; 
}

.footer {
    padding: 3rem 2rem;
    background: #fdf6f6;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.social-media {
    margin-top: 1rem;
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 0.5rem;
    background: #e2e2e2;
    color: #666;
    border-radius: 50%;
    font-weight: bold;
    line-height: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: #bf3333;
    color: white;
    transform: translateY(-3px);
}

.detail-page-container {
    display: none; 
}

.detail-page-container:target {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    padding: 20px 2vw;
    background-color: white;
    box-sizing: border-box;
    overflow-y: auto;
}

.detail-page {
    background-color: #fff;
    animation: fadeIn 0.5s ease-in-out;
}

.detail-container {
    max-width: 800px; 
    width: 100%;
    margin: auto;
    padding: 2.5rem;
    background-color: #fdf6f6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.detail-title {
    margin-bottom: 2rem;
    color: #bf3333;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.detail-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #bf3333;
    color: #333;
    font-size: 1.3rem;
}

.detail-content ul {
    list-style-position: inside;
    padding-left: 0;
}

.detail-content li {
    margin-bottom: 0.8rem;
}

.contact-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: #25D366; 
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #d32f2f;
}

.main-page-hidden {
    display: none;
}

@media (max-width: 768px) {
    .event-title { font-size: 2.5rem; }
    .event-tagline { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }

    .categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-section { padding: 3rem 1.5rem; }
    .about-description { font-size: 1rem; }

    .detail-page-container:target { padding: 15px 3vw; }
}

@media (max-width: 480px) {
    .banner {
        height: 100vh; 
        min-height: unset;
        padding: 2rem 1rem;
    }

    .event-title { font-size: 1.8rem; }
    .event-tagline { font-size: 1rem; }

    .content { padding: 3rem 1rem; }
    .category-title { font-size: 1.3rem; }
    
    .detail-page-container:target { padding: 10px 2vw; }
}