/* --- 1. SETTINGS & VARIABLES --- */
@import url('https://bit.ly/3CZa0Sz');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Sans:wght@300;400;600&display=swap');

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-grey: #a0a0a0;
    --accent-red: #C41616;
    --accent-blue: #0066ff;

    /* House Branding */
    --kongzi: #00a859;
    --sunwu: #ff2d00;
    --athena: #ffc107;
    --apollo: #007bff;

    --border-dark: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.05);

    --glass-bg: rgba(15, 15, 15, 0.85);
    /* Darker translucent */
    --header-bg: rgba(35, 35, 35, 0.95);
    --border-color: rgba(255, 255, 255, 0.12);
    --accent-color: #ffb84d;
    /* Warm IBM-style amber */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
}

/* --- 2. BASE RESET --- */
body {
    font-family: 'line_seed_sans_th', 'Inter', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- 3. NAVIGATION --- */
.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.9) !important;
    transition: all 0.3s ease;
    border-bottom: var(--border-dark) 1px solid;
    min-height: 80px;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent-red) !important;
    transform: translateY(-1px);
}

/* --- 4. HERO SECTION --- */
.editorial-hero {
    padding: 160px 0 100px;
    border-bottom: 1px solid #222;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("pic/bg1.jpg") center/cover;
}


/* Editorial Hero */
.editorial-hero {
    padding: 160px 0 100px;
    border-bottom: 1px solid #222;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("pic/bg1.jpg");
}

.editorial2-hero {
    padding: 160px 0 100px;
    border-bottom: 1px solid #222;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("pic/bg2.jpg") center/cover;
}

.editorial3-hero {
    padding: 160px 0 100px;
    border-bottom: 1px solid #222;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("pic/bg3.jpg") center/cover;
}
.editorial4-hero {
    padding: 160px 0 100px;
    border-bottom: 1px solid #222;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("pic/bg4.jpg") center/cover;
}

.hero-label {
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: white;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.25rem;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 40px;
}

.hero-subtext {
    max-width: 500px;
    font-size: 1.1rem;
    color: white;
}


/* --- 5. EDITORIAL LAYOUTS --- */
.editorial-section {
    padding: 80px 0;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.stat-number {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    line-height: 1;
}

/* --- 6. PROGRAM INFO CARDS (Bento Style) --- */
.house-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.house-box-v3 {
    height: 420px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    border-radius: 0;
    /* Forced Sharp Rectangles */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: white !important;
    text-decoration: none;
}

.house-box-v3:hover {
    transform: translateY(-10px);
}

.top-meta {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
    display: flex;
    justify-content: space-between;
}

.house-box-v3 h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
}

/* Content Specifics */
.card-content strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.8;
}

/* --- 7. HOUSE CONTACT CARDS (Image/Overlay Style) --- */
.contact-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.contact-card-v4 {
    height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-decoration: none !important;
    border-radius: 0px;
    transition: 0.5s ease;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    transition: 0.3s;
}

.contact-card-v4:hover .contact-overlay {
    opacity: 0.3;
}

.contact-content {
    position: relative;
    z-index: 2;
    color: white;
}

.house-tag {
    font-size: 0.7rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- 8. GLOBAL THEMES & COLORS --- */
.kongzi-v3,
.house-kongzi {
    background-color: var(--kongzi);
}

.sunwu-v3,
.house-sunwu {
    background-color: var(--sunwu);
}

.athena-v3,
.house-athena {
    background-color: var(--athena);
    color: #000 !important;
}

.apollo-v3,
.house-apollo {
    background-color: var(--apollo);
}

.athena-v3 .contact-content,
.athena-v3 .contact-footer {
    color: #000 !important;
}

.athena-v3 .contact-footer {
    border-top-color: rgba(0, 0, 0, 0.2);
}

/* --- 9. UTILITIES & FOOTER --- */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-top: 1px solid #333;
}

.roadmap-item {
    padding: 40px 20px;
    border-right: 1px solid #333;
}

.roadmap-item h4 {
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.editorial-footer {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid #111;
    letter-spacing: 5px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
}

.main-footer {
    background-color: #0a0a0a;
    padding: 80px 0 30px;
    /* border-top: 2px solid #C41616; */
    color: #ffffff;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.footer-logo span {
    color: #C41616;
}

.footer-text {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #C41616;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #C41616;
    padding-left: 5px;
}

.footer-contact li {
    color: #999;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: #C41616;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: #C41616;
    transform: translateY(-3px);
}

.footer-divider {
    margin: 50px 0 30px;
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: white;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    /* Matches the house box text color */
    opacity: 0.8;
    transition: 0.3s;
}

.read-more-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.event-card {
    background: #C41616;
    border-left: 3px solid #ffffff;
    transition: transform 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    background: #0066ff;
}

.event-date {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-year-header {
    margin-top: 3rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-main-title {
    /* Scales between 1.8rem on mobile to 3.5rem on desktop */
    font-size: clamp(1.8rem, 8vw, 3.5rem) !important;
    letter-spacing: clamp(4px, 2vw, 10px) !important;
    line-height: 1.2;
    padding: 0 15px;
    /* Prevents text hitting edges */
}

.event-sub-text {
    font-size: clamp(0.7rem, 3vw, 0.9rem) !important;
    letter-spacing: 2px !important;
    max-width: 85%;
}

/* Adjust card height for mobile so it doesn't swallow the whole screen */
.contact-card-v4 {
    height: 450px;
    /* Default for mobile */
}

@media (min-width: 768px) {
    .contact-card-v4 {
        height: 550px;
    }
}





