﻿* {
    box-sizing: border-box;
}

/* intro overlay */
#LandingPage {
    user-select: none;
    background-color: #FCFCFC;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s linear forwards, hue-rotate 6s linear infinite;
    user-select: none;
    background: linear-gradient(180deg, #BD904F, #000000, #5C0C1F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#LogoImg {
    animation: typing 2s linear;
    width: min(500px, 90vw);
    border-radius: 50%;
    display: block;
}

/* animations */
@keyframes hue-rotate {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(-360deg);
    }
}

@keyframes typing {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* fade on scroll */
.fade-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

    .fade-scroll.show {
        opacity: 1;
        transform: translateY(0);
    }

/* top image */
.hero-cover {
    width: 100%;
}

    .hero-cover img,
    .section-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* logo slider */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #ABA16A25;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo-track {
    display: flex;
    width: 100%;
    animation: logoScroll 10s linear infinite;
    will-change: transform;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding-right: 20px;
}

.logo-item {
    flex: 0 0 auto;
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
}

    .logo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

@keyframes logoScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* hero slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }

/* caption */
.caption-box {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    z-index: 3;
}

    .caption-box h3 {
        margin: 0 0 8px;
        font-size: 1.3rem;
    }

    .caption-box p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.5;
    }

/* navigation */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 24px;
    z-index: 4;
    border-radius: 6px;
}

.prev {
    left: 12px;
}

.next {
    right: 12px;
}

/* dots */
.dots {
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    z-index: 4;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .dot.active {
        background: white;
    }

/* stats section */
.stats-section {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    text-align: center;
    align-items: stretch;
}

.stat-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}

.counter {
    margin: 0;
    font-weight: 700;
    color: #A11216;
    line-height: 1.2;
}

.stat-box p {
    margin: 8px 0 0;
    line-height: 1.4;
    color: #333;
}

/* info section */
.info-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    width: 100%;
    padding: 40px 20px;
    align-items: start;
}

.info-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-box {
    border: none;
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #A11216;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .info-box:hover {
        transform: translateY(-2px);
    }

    .info-box.active {
        background: #A11216;
        color: #fff;
    }

.info-content {
    background: #fff;
    border-radius: 16px;
    font-size: 1.2rem;
    padding: 24px;
    min-height: 240px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: justify;
}

.content-panel {
    display: none;
    animation: fadeIn 0.35s ease;
}

    .content-panel.active {
        display: block;
    }

    .content-panel h3 {
        font-family: 'Playfair Display', serif;
        margin-top: 0;
        margin-bottom: 12px;
        color: #A11216;
    }

    .content-panel p {
        font-family: 'Playfair Display', serif;
        margin: 0;
        line-height: 2;
        color: #565656;
        text-align: justify-all;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* upcoming events */
.events-section {
    padding: 50px 20px;
    background: #f9f9f9;
}

.events-title {
    text-align: center;
    margin-bottom: 30px;
    color: #A11216;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

.event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.event-date-badge {
    display: inline-flex;
    align-self: flex-start;
    background: #A11216;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.event-name {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
    line-height: 1.5;
    word-break: break-word;
}

.event-meta {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.event-desc {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.event-btn {
    margin-top: auto;
    display: inline-flex;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 10px;
    background: #A11216;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
    line-height: 1.3;
}

    .event-btn:hover {
        opacity: 0.9;
        color: #fff;
    }

.office-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #D0D9BE3D;
}

.office-title {
    color: #A11216;
    margin-bottom: 30px;
    font-weight: 700;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: auto;
}

.office-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

    .office-card:hover {
        transform: translateY(-5px);
    }

.office-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.office-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.office-icon {
    font-size: 34px;
}

.office-content h3 {
    margin: 0;
    color: #A11216;
}

.office-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.office-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 10px 16px;
    background: #A11216;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

    .office-btn:hover {
        opacity: 0.9;
    }

/* responsive */
@media (min-width: 992px) {
    .logo-item {
        width: 160px;
    }

    .logo-group {
        gap: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 991.98px) {
    .stats-section {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .event-image {
        height: 210px;
    }
}

@media (max-width: 768px) {
    .slide {
        width: 100%;
    }

    .caption-box {
        left: 12px;
        right: 12px;
        bottom: 0px;
        max-width: unset;
        padding: 0px 14px;
    }

        .caption-box h3 {
            font-size: 1rem;
        }

        .caption-box p {
            font-size: 0.85rem;
        }

    .nav {
        padding: 10px 13px;
        font-size: 20px;
    }

    .stats-section {
        gap: 16px;
        padding: 28px 14px;
    }

    .stat-box {
        min-height: 150px;
        padding: 20px 12px;
    }

    .icon {
        font-size: 38px;
    }

    .counter {
        font-size: 1.6rem;
    }

    .stat-box p {
        font-size: 0.95rem;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 14px;
    }

    .info-menu {
        gap: 12px;
    }

    .info-box {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .info-content {
        padding: 18px 16px;
        min-height: auto;
        text-align: center;
    }

    .events-section {
        padding: 35px 14px;
    }

    .events-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .event-card {
        border-radius: 14px;
    }

    .event-image {
        height: 190px;
    }

    .event-content {
        padding: 14px;
        gap: 8px;
    }

    .event-name {
        font-size: 1.05rem;
    }

    .event-meta,
    .event-desc {
        font-size: 0.9rem;
    }

    .event-btn {
        width: 100%;
        justify-content: center;
    }

    .office-grid {
        grid-template-columns: 1fr;
    }

    .office-img {
        height: 180px;
    }

    .office-content {
        padding: 18px;
    }

    .office-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .logo-item {
        width: 90px;
    }

    .logo-group {
        gap: 16px;
        padding-right: 16px;
    }

    .logo-track {
        animation-duration: 10s;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 24px 10px;
    }

    .stat-box {
        min-height: 135px;
        padding: 16px 10px;
        border-radius: 12px;
    }

    .icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .counter {
        font-size: 1.35rem;
    }

    .stat-box p {
        font-size: 0.85rem;
        margin-top: 6px;
    }

    .slide {
        width: 100%;
    }

    .events-section {
        padding: 28px 10px;
    }

    .events-title {
        font-size: 1.35rem;
    }

    .event-image {
        height: 170px;
    }

    .event-content {
        padding: 12px;
    }

    .event-date-badge {
        font-size: 0.82rem;
        padding: 5px 10px;
    }

    .event-name {
        font-size: 1rem;
    }

    .event-meta,
    .event-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .stats-section {
        grid-template-columns: 1fr;
    }

    .slide {
        width: 100%;
    }
}