/*
Theme Name: UEH 50 Nam
Theme URI: https://ueh.edu.vn
Author: UEH
Author URI: https://ueh.edu.vn
Description: Official WordPress theme for UEH 50th Anniversary celebration
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ueh-50-nam
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Font Declarations
   ========================================================================== */

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 140px;
    font-family: "Montserrat", sans-serif;
    background-image: url('img/background-full.png');
    background-size: cover;
    background-position: center;
}

a:hover {
    cursor: pointer;
}

.bold {
    font-weight: bold;
}

.flex {
    display: flex;
}

.text-color {
    color: #e61017;
}

.background-main {
    background-color: #e61017;
}

/* ==========================================================================
   Common Components
   ========================================================================== */

.title {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1;
    min-width: 72%;
    color: white;
    background-color: #e61017;
    padding: 12px 60px;
    text-align: center;
    border-radius: 20px;
    max-width: fit-content;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.button {
    color: white;
    font-size: clamp(16px, 1vw, 18px);
    line-height: 1;
    background-color: #e61017;
    border: none;
    padding: 10px 44px;
    border-radius: 20px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.button:hover {
    background-color: #c41014;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.title-wrapper {
    position: relative;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 0;
    overflow: hidden;
}

.title-wrapper .title {
    margin-bottom: 0;
}

/* ==========================================================================
   Soundwave Animation
   ========================================================================== */

.soundwave-left,
.soundwave-right {
    position: absolute;
    display: flex;
    gap: clamp(6px, 1vw, 10px);
    align-items: center;
    height: 220px;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.soundwave-left {
    left: 0;
    justify-content: flex-end;
    padding-right: 30px;
    padding-left: 0;
    flex-direction: row;
}

.soundwave-right {
    right: 0;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    flex-direction: row;
}

.soundwave-bar {
    width: clamp(6px, 1vw, 10px);
    min-width: 6px;
    background: #f4d19b;
    border-radius: 3px;
    height: 30px;
    flex-shrink: 0;
}

/* Left soundwave - bar 1 renders closest to title (justify-content: flex-end), bar 60 at far left edge */
/* Wave 1 - tallest peak closest to title */
.soundwave-left .soundwave-bar:nth-child(1) {
    height: 25px;
}

.soundwave-left .soundwave-bar:nth-child(2) {
    height: 30px;
}

.soundwave-left .soundwave-bar:nth-child(3) {
    height: 35px;
}

.soundwave-left .soundwave-bar:nth-child(4) {
    height: 45px;
}

.soundwave-left .soundwave-bar:nth-child(5) {
    height: 65px;
}

.soundwave-left .soundwave-bar:nth-child(6) {
    height: 95px;
}

.soundwave-left .soundwave-bar:nth-child(7) {
    height: 135px;
}

.soundwave-left .soundwave-bar:nth-child(8) {
    height: 170px;
}

.soundwave-left .soundwave-bar:nth-child(9) {
    height: 200px;
}

.soundwave-left .soundwave-bar:nth-child(10) {
    height: 215px;
}

.soundwave-left .soundwave-bar:nth-child(11) {
    height: 220px;
}

.soundwave-left .soundwave-bar:nth-child(12) {
    height: 215px;
}

.soundwave-left .soundwave-bar:nth-child(13) {
    height: 200px;
}

.soundwave-left .soundwave-bar:nth-child(14) {
    height: 170px;
}

.soundwave-left .soundwave-bar:nth-child(15) {
    height: 135px;
}

.soundwave-left .soundwave-bar:nth-child(16) {
    height: 95px;
}

.soundwave-left .soundwave-bar:nth-child(17) {
    height: 60px;
}

/* Valley 1 */
.soundwave-left .soundwave-bar:nth-child(18) {
    height: 40px;
}

.soundwave-left .soundwave-bar:nth-child(19) {
    height: 35px;
}

.soundwave-left .soundwave-bar:nth-child(20) {
    height: 40px;
}

/* Wave 2 */
.soundwave-left .soundwave-bar:nth-child(21) {
    height: 55px;
}

.soundwave-left .soundwave-bar:nth-child(22) {
    height: 80px;
}

.soundwave-left .soundwave-bar:nth-child(23) {
    height: 115px;
}

.soundwave-left .soundwave-bar:nth-child(24) {
    height: 150px;
}

.soundwave-left .soundwave-bar:nth-child(25) {
    height: 185px;
}

.soundwave-left .soundwave-bar:nth-child(26) {
    height: 210px;
}

.soundwave-left .soundwave-bar:nth-child(27) {
    height: 220px;
}

.soundwave-left .soundwave-bar:nth-child(28) {
    height: 210px;
}

.soundwave-left .soundwave-bar:nth-child(29) {
    height: 185px;
}

.soundwave-left .soundwave-bar:nth-child(30) {
    height: 150px;
}

.soundwave-left .soundwave-bar:nth-child(31) {
    height: 115px;
}

.soundwave-left .soundwave-bar:nth-child(32) {
    height: 80px;
}

.soundwave-left .soundwave-bar:nth-child(33) {
    height: 55px;
}

/* Valley 2 */
.soundwave-left .soundwave-bar:nth-child(34) {
    height: 40px;
}

.soundwave-left .soundwave-bar:nth-child(35) {
    height: 35px;
}

.soundwave-left .soundwave-bar:nth-child(36) {
    height: 40px;
}

/* Wave 3 */
.soundwave-left .soundwave-bar:nth-child(37) {
    height: 55px;
}

.soundwave-left .soundwave-bar:nth-child(38) {
    height: 80px;
}

.soundwave-left .soundwave-bar:nth-child(39) {
    height: 110px;
}

.soundwave-left .soundwave-bar:nth-child(40) {
    height: 145px;
}

.soundwave-left .soundwave-bar:nth-child(41) {
    height: 175px;
}

.soundwave-left .soundwave-bar:nth-child(42) {
    height: 195px;
}

.soundwave-left .soundwave-bar:nth-child(43) {
    height: 175px;
}

.soundwave-left .soundwave-bar:nth-child(44) {
    height: 145px;
}

.soundwave-left .soundwave-bar:nth-child(45) {
    height: 110px;
}

.soundwave-left .soundwave-bar:nth-child(46) {
    height: 80px;
}

.soundwave-left .soundwave-bar:nth-child(47) {
    height: 55px;
}

/* Valley 3 */
.soundwave-left .soundwave-bar:nth-child(48) {
    height: 40px;
}

.soundwave-left .soundwave-bar:nth-child(49) {
    height: 35px;
}

.soundwave-left .soundwave-bar:nth-child(50) {
    height: 50px;
}

/* Wave 4 - smaller at far edge */
.soundwave-left .soundwave-bar:nth-child(51) {
    height: 70px;
}

.soundwave-left .soundwave-bar:nth-child(52) {
    height: 95px;
}

.soundwave-left .soundwave-bar:nth-child(53) {
    height: 120px;
}

.soundwave-left .soundwave-bar:nth-child(54) {
    height: 140px;
}

.soundwave-left .soundwave-bar:nth-child(55) {
    height: 120px;
}

.soundwave-left .soundwave-bar:nth-child(56) {
    height: 95px;
}

.soundwave-left .soundwave-bar:nth-child(57) {
    height: 70px;
}

.soundwave-left .soundwave-bar:nth-child(58) {
    height: 50px;
}

.soundwave-left .soundwave-bar:nth-child(59) {
    height: 35px;
}

.soundwave-left .soundwave-bar:nth-child(60) {
    height: 25px;
}

/* Right soundwave - bar 1 closest to title (justify-content: flex-start), bar 60 at far right edge */
/* Wave 1 - tallest peak closest to title */
.soundwave-right .soundwave-bar:nth-child(1) {
    height: 25px;
}

.soundwave-right .soundwave-bar:nth-child(2) {
    height: 30px;
}

.soundwave-right .soundwave-bar:nth-child(3) {
    height: 35px;
}

.soundwave-right .soundwave-bar:nth-child(4) {
    height: 45px;
}

.soundwave-right .soundwave-bar:nth-child(5) {
    height: 65px;
}

.soundwave-right .soundwave-bar:nth-child(6) {
    height: 95px;
}

.soundwave-right .soundwave-bar:nth-child(7) {
    height: 135px;
}

.soundwave-right .soundwave-bar:nth-child(8) {
    height: 170px;
}

.soundwave-right .soundwave-bar:nth-child(9) {
    height: 200px;
}

.soundwave-right .soundwave-bar:nth-child(10) {
    height: 215px;
}

.soundwave-right .soundwave-bar:nth-child(11) {
    height: 220px;
}

.soundwave-right .soundwave-bar:nth-child(12) {
    height: 215px;
}

.soundwave-right .soundwave-bar:nth-child(13) {
    height: 200px;
}

.soundwave-right .soundwave-bar:nth-child(14) {
    height: 170px;
}

.soundwave-right .soundwave-bar:nth-child(15) {
    height: 135px;
}

.soundwave-right .soundwave-bar:nth-child(16) {
    height: 95px;
}

.soundwave-right .soundwave-bar:nth-child(17) {
    height: 60px;
}

/* Valley 1 */
.soundwave-right .soundwave-bar:nth-child(18) {
    height: 40px;
}

.soundwave-right .soundwave-bar:nth-child(19) {
    height: 35px;
}

.soundwave-right .soundwave-bar:nth-child(20) {
    height: 40px;
}

/* Wave 2 */
.soundwave-right .soundwave-bar:nth-child(21) {
    height: 55px;
}

.soundwave-right .soundwave-bar:nth-child(22) {
    height: 80px;
}

.soundwave-right .soundwave-bar:nth-child(23) {
    height: 115px;
}

.soundwave-right .soundwave-bar:nth-child(24) {
    height: 150px;
}

.soundwave-right .soundwave-bar:nth-child(25) {
    height: 185px;
}

.soundwave-right .soundwave-bar:nth-child(26) {
    height: 210px;
}

.soundwave-right .soundwave-bar:nth-child(27) {
    height: 220px;
}

.soundwave-right .soundwave-bar:nth-child(28) {
    height: 210px;
}

.soundwave-right .soundwave-bar:nth-child(29) {
    height: 185px;
}

.soundwave-right .soundwave-bar:nth-child(30) {
    height: 150px;
}

.soundwave-right .soundwave-bar:nth-child(31) {
    height: 115px;
}

.soundwave-right .soundwave-bar:nth-child(32) {
    height: 80px;
}

.soundwave-right .soundwave-bar:nth-child(33) {
    height: 55px;
}

/* Valley 2 */
.soundwave-right .soundwave-bar:nth-child(34) {
    height: 40px;
}

.soundwave-right .soundwave-bar:nth-child(35) {
    height: 35px;
}

.soundwave-right .soundwave-bar:nth-child(36) {
    height: 40px;
}

/* Wave 3 */
.soundwave-right .soundwave-bar:nth-child(37) {
    height: 55px;
}

.soundwave-right .soundwave-bar:nth-child(38) {
    height: 80px;
}

.soundwave-right .soundwave-bar:nth-child(39) {
    height: 110px;
}

.soundwave-right .soundwave-bar:nth-child(40) {
    height: 145px;
}

.soundwave-right .soundwave-bar:nth-child(41) {
    height: 175px;
}

.soundwave-right .soundwave-bar:nth-child(42) {
    height: 195px;
}

.soundwave-right .soundwave-bar:nth-child(43) {
    height: 175px;
}

.soundwave-right .soundwave-bar:nth-child(44) {
    height: 145px;
}

.soundwave-right .soundwave-bar:nth-child(45) {
    height: 110px;
}

.soundwave-right .soundwave-bar:nth-child(46) {
    height: 80px;
}

.soundwave-right .soundwave-bar:nth-child(47) {
    height: 55px;
}

/* Valley 3 */
.soundwave-right .soundwave-bar:nth-child(48) {
    height: 40px;
}

.soundwave-right .soundwave-bar:nth-child(49) {
    height: 35px;
}

.soundwave-right .soundwave-bar:nth-child(50) {
    height: 50px;
}

/* Wave 4 - smaller at far edge */
.soundwave-right .soundwave-bar:nth-child(51) {
    height: 70px;
}

.soundwave-right .soundwave-bar:nth-child(52) {
    height: 95px;
}

.soundwave-right .soundwave-bar:nth-child(53) {
    height: 120px;
}

.soundwave-right .soundwave-bar:nth-child(54) {
    height: 140px;
}

.soundwave-right .soundwave-bar:nth-child(55) {
    height: 120px;
}

.soundwave-right .soundwave-bar:nth-child(56) {
    height: 95px;
}

.soundwave-right .soundwave-bar:nth-child(57) {
    height: 70px;
}

.soundwave-right .soundwave-bar:nth-child(58) {
    height: 50px;
}

.soundwave-right .soundwave-bar:nth-child(59) {
    height: 35px;
}

.soundwave-right .soundwave-bar:nth-child(60) {
    height: 25px;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.8;
    }

    50% {
        transform: scaleY(1.1);
        opacity: 1;
    }
}

/* ==========================================================================
   Layout
   ========================================================================== */

header {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 99;
}

/* ==========================================================================
   Puzzle Circle Overlay
   ========================================================================== */

.puzzle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.puzzle-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.puzzle-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.puzzle-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.puzzle-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cc2027;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.puzzle-close-btn:hover {
    background: #cc2027;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 6px 30px rgba(204, 32, 39, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.puzzle-hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in-out;
}

.puzzle-hero-scroll {
    text-align: center;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.puzzle-hero-scroll:hover {
    color: #cc2027;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #cc2027;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #cc2027;
    border-bottom: 2px solid #cc2027;
    transform: rotate(45deg);
    transition: border-color 0.3s ease;
}

.puzzle-hero-scroll:hover .scroll-arrow,
.puzzle-hero-scroll:hover .scroll-arrow::after {
    border-color: #cc2027;
    background: #cc2027;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Puzzle SVG Container */
.puzzle-circle-container {
    width: 50vmin;
    height: 50vmin;
    max-width: 1000px;
    max-height: 1000px;
    position: relative;
    padding: 1%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.puzzle-circle-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transform-style: preserve-3d;
    perspective: 2000px;
}

#Circle:hover {}

/* Puzzle Piece Hover Effects */
#Circle,
#Pie1,
#Pie2-Path,
#Pie3-Path,
#Pie4-Path {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 910px 910px;
    /* Center of viewBox (1821.33/2, 1819.21/2) */
    transform-style: preserve-3d;
}

#Pie1:hover,
#Pie2-Path:hover,
#Pie3-Path:hover,
#Pie4-Path:hover {
    cursor: pointer;
    transform: scale(1.05);
    filter: brightness(1.15) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

/* Fade in opacity on hover for Pie1, Pie3 and Pie4 */
#Pie3-Path:hover,
#Pie4-Path:hover {
    opacity: 1;
}

#Pie1:active,
#Pie2-Path:active,
#Pie3-Path:active,
#Pie4-Path:active {
    transform: scale(1.03);
}

/* Background images overlay */
#Pie3-Path,
#Pie4-Path {
    mix-blend-mode: normal;
}

/* Background image rects */
#pie3-bg-rect,
#pie4-bg-rect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 910px 910px;
}

/* Text groups hover - scale with their parent piece */
#Pie1-Text,
#Pie2-Text,
#Pie3-Text,
#Pie4-Text {
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 910px 910px;
}

#Pie1:hover~#Pie1-Text,
#Pie2-Path:hover~#Pie2-Text,
#Pie3-Path:hover~#Pie3-Text,
#Pie4-Path:hover~#Pie4-Text {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .puzzle-circle-container {
        width: 70vmin;
        height: 70vmin;
    }

    .puzzle-close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .puzzle-close-btn svg {
        width: 18px;
        height: 18px;
    }

    .puzzle-hero-scroll {
        bottom: 20px;
        font-size: 12px;
    }
}

.container {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;

    @media (width >=40rem) {
        max-width: 40rem;
        gap: 2rem;
        padding: 2.5rem 1rem;
    }

    @media (width >=48rem) {
        max-width: 48rem;
    }

    @media (width >=64rem) {
        max-width: 64rem;
    }

    @media (width >=80rem) {
        max-width: 80rem;
    }

    @media (width >=96rem) {
        max-width: 96rem;
        padding: 3rem 3rem;
    }
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-left: auto;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: black;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.header-navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.header-navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.header-navbar-items {
    position: absolute;
    left: 50%;
    color: white;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    border-radius: 1.25rem;
    overflow: hidden;
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.header-navbar-item {
    margin: 0;
    font-weight: 600;
    padding: 1rem 2rem;
}


.header-navbar-body-times {
    display: flex;
    gap: 1rem;
    padding-bottom: 20px;
    justify-items: center;
    align-items: center;
}

.header-navbar-body-times span {
    font-weight: bold;
    font-size: 48px;
}

.header-navbar-body-time {
    display: flex;
    align-items: center;
    position: relative;
    flex-direction: column;
}


.header-navbar-body-time h1 {
    margin: 0;
    font-size: clamp(4rem, 5vw, 5rem);
    font-weight: 800;
}

.header-navbar-body-time p {
    position: absolute;
    font-size: 1rem;
    font-weight: 500;
    bottom: -20px;

    @media (width>=40rem) {
        font-size: 22px;

    }
}

.header-navbar-body button {
    color: white;
    padding: 8px 30px;
    border-radius: 20px;
    border: none;
    background-color: #e61017;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.lang-switcher {
    position: relative;
    margin-left: auto;
    z-index: 1001;
}

.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    background-color: #636363d5;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    border-radius: 1.25rem;
    color: white;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.lang-switcher-toggle:hover {
    background-color: rgba(99, 99, 99, 0.9);
}

img.lang-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.lang-label {
    color: #000000;
    font-weight: 600;
}

.lang-arrow {
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    /* background-color: #636363d5; */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 1.25rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1px;

    .lang-label {
        color: white;
    }
}

.lang-switcher.open .lang-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
    background-color: #636363d5;
}

.lang-option:hover {
    background-color: rgba(99, 99, 99, 0.95);
}

.lang-option.active {
    background-color: rgba(80, 80, 80, 0.95);
}

.lang-option.active::after {
    content: "✓";
    margin-left: auto;
    font-size: 12px;
}

/* ==========================================================================
   Timeline UEH Section
   ========================================================================== */
.timeline-ueh {
    overflow: hidden;
}

.timeline-ueh .title-wrapper {
    background-image: url('img/background-timeline.png');
    background-size: cover;
    background-position: center;
}

.timeline-ueh h1 {
    font-weight: normal;
    font-size: clamp(36px, 3vw, 48px);
    min-width: 60px;
    text-align: left;
}

.timeline-ueh h4 {
    font-weight: bold;
    font-size: 1rem;

    @media (width>=40rem) {
        font-size: 1.25rem;
    }
}

.timeline-ueh h3 {
    font-weight: 800;
    font-size: clamp(18px, 2vw, 20px);
}

.timeline-ueh-button {
    margin-top: -95px;
    z-index: 10;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.timeline-dropdown {
    width: 100%;
}

.timeline-ueh-button1 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid black;
    border-radius: 1rem;
}

.timeline-ueh-body-wrapper {
    gap: 1rem;
    display: flex;
    flex-direction: column;

    @media (width >=48rem) {
        gap: 2rem;
    }
}

.timeline-ueh-body {
    overflow: hidden;
    width: 100%;
}

.timeline-ueh-body-title {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.timeline-ueh-body-title-left {
    display: flex;
    align-items: center;
    gap: 20px;

    @media (width >=64rem) {
        gap: 60px;
    }
}

.timeline-ueh-body-title:hover {
    opacity: 0.8;
}

.timeline-ueh-body-title .fa-chevron-up {
    font-size: 22px;
    color: #999;
    transition: transform 0.3s ease;
    display: inline-block;
}

.timeline-ueh-body.collapsed .timeline-ueh-body-title .fa-chevron-up {
    transform: rotate(180deg);
}

.timeline-ueh-body-content {
    display: flex;
    position: relative;
    flex-direction: column;
    padding-left: 80px;
    padding-top: 20px;
    gap: 10px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.timeline-ueh-body.collapsed .timeline-ueh-body-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    overflow: hidden;
}

.timeline-ueh-body-content-item-head {
    display: flex;
    font-size: 18px;
    padding: 0 0 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    h4 {
        margin: 0;
    }
}

.timeline-ueh-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.timeline-ueh-body-content-item-head p {
    padding: 4px 16px;
    font-size: 14px;
    border-radius: 24px;
    background-color: #d4d4c7;
    margin: 0;
    white-space: nowrap;
}

/* Timeline Links and Tags */
.pillar-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pillar-link:hover {
    opacity: 0.7;
}

.activity-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.activity-link:hover {
    color: #e61017;
}

.audience-tag a,
.keyword-tag a {
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.audience-tag a:hover,
.keyword-tag a:hover {
    background-color: #c0c0b0;
}

.timeline-ueh strong {
    font-size: 1rem;

    @media (width >=40rem) {
        font-size: 1.25rem;
    }
}

strong {
    flex: 2;
    text-align: right;
}

.timeline-ueh-body-content::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 5%;
    height: 90%;
    width: 1px;
    background-color: #636363;
}

/* ==========================================================================
   History Timeline Section
   ========================================================================== */

.history-timeline {}

.history-timeline-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    padding-bottom: 60px;
}

.history-timeline-content {
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 800px;
}

.history-timeline-visual {
    position: relative;
    padding-top: 40px;
    width: 100%;
    max-width: 900px;
}

.timeline-line {
    display: none;
}



.timeline-milestones {
    background-image: none;
    background-position: center top 20rem;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 180px;

    @media (width>=48rem) {
        background-image: url('img/background-history.png');
        background-position: center top 20rem;
        background-repeat: no-repeat;
    }
}

.timeline-milestone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    padding: 0;
    min-height: 180px;
    transition: min-height 0.4s ease;
}

.milestone-line-top,
.milestone-line-bottom {
    position: absolute;
    width: 1px;
    background-color: #333;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.milestone-line-top {
    top: 0;
    height: calc(50% - 80px);
}

.milestone-line-bottom {
    bottom: 0;
    height: calc(50% - 80px);
}

/* Override for single year milestone */
.timeline-milestone:has(.milestone-year-wrapper) .milestone-line-top {
    height: calc(50% - 40px);
}

.timeline-milestone:has(.milestone-year-wrapper) .milestone-line-bottom {
    height: calc(50% - 40px);
}

.milestone-line-end {
    height: 100px;
}

.timeline-milestone-end {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-milestone-end .milestone-line-top {
    height: 80px;
}

.timeline-milestone-end .milestone-dot {
    position: relative;
    transform: none;
    top: auto;
    bottom: auto;
    left: auto;
}

.timeline-arrow {
    display: none;
}

.milestone-year {
    font-size: 28px;
    font-weight: bold;
    color: #e61017;
    margin: 0;
}

.milestone-period {
    font-size: 16px;
    font-weight: bold;
    color: #e61017;
    margin: 5px 0;
    position: relative;
}

.milestone-period-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0;
    overflow: visible;
    min-height: 40px;
    height: auto;
}

.milestone-period-wrapper .milestone-period {
    margin: 0;
}

.milestone-year-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 40px;
    height: auto;
}

.milestone-year-wrapper .milestone-year {
    margin: 0;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    background-color: #e61017;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e61017;
    transition: box-shadow 0.3s ease;
    position: absolute;
    flex-shrink: 0;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 10;
    background-clip: padding-box;
}

/* Dot at the start (top of first milestone) */
.milestone-dot-start {
    top: 0;
    width: 20px;
    height: 20px;
    bottom: auto;
    transform: translate(-50%, -100%);
    box-shadow: none !important;
    z-index: 20 !important;
}

/* Line from start dot to bottom of first milestone */
.milestone-line-from-start {
    top: 0;
    height: 100%;
    z-index: -1;
}

.timeline-milestone.active .milestone-dot {
    box-shadow: 0 0 0 3px #e61017, 0 0 0 6px #f5f3e8, 0 0 0 9px #e61017, 0 0 20px rgba(230, 16, 23, 0.5);
}

.timeline-milestone.active .milestone-bubble {}

.milestone-bubble {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    position: absolute;
    transition: none;
    /* TEMP: disabled for testing - was: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; */
    cursor: pointer;
    z-index: 5;
}

/* Milestone clickable elements */
.milestone-clickable {
    cursor: pointer;
    transition: none;
    /* TEMP: disabled for testing - was: all 0.3s ease; */
}

.milestone-year.milestone-clickable:hover {
    color: #e61017;
    transform: scale(1.05);
}

/* Chevron icons */
.milestone-chevron {
    position: absolute;
    font-size: 18px;
    transition: none;
    /* TEMP: disabled for testing - was: all 0.3s ease; */
    opacity: 1;
    z-index: 2;
    cursor: pointer;
    color: #8888888c;
}

@keyframes float-up {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
}

.milestone-chevron-up {
    top: -40px;
    display: none;
    position: relative;
}

.milestone-chevron-up::before,
.milestone-chevron-up::after {
    content: "\f077";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 50%;
    font-size: inherit;
    color: inherit;
    pointer-events: none;
}

.milestone-chevron-up::before {
    top: -30px;
    animation: float-up 1.5s ease-out infinite;
}

.milestone-chevron-up::after {
    top: -30px;
    animation: float-up 1.5s ease-out 0.75s infinite;
}

@keyframes float-down {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

.milestone-chevron-down {
    bottom: -40px;
    display: block;
    position: relative;
}

.milestone-chevron-down::before,
.milestone-chevron-down::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 50%;
    font-size: inherit;
    color: inherit;
    pointer-events: none;
}

.milestone-chevron-down::before {
    bottom: -30px;
    animation: float-down 1.5s ease-out infinite;
}

.milestone-chevron-down::after {
    bottom: -30px;
    animation: float-down 1.5s ease-out 0.75s infinite;
}

/* When expanded (not collapsed), show up arrow, hide down arrow */
.timeline-milestone:not(.collapsed) .milestone-chevron-up {
    display: block;
}

.timeline-milestone:not(.collapsed) .milestone-chevron-down {
    display: none;
}

/* When collapsed, show down arrow, hide up arrow */
.timeline-milestone.collapsed .milestone-chevron-up {
    display: none;
}

.timeline-milestone.collapsed .milestone-chevron-down {
    display: block;
}

.milestone-bubble:hover .milestone-chevron {
    opacity: 1;
    transform: scale(1.2);
    color: #888;
}

/* Collapsed state */
.timeline-milestone.collapsed .milestone-event {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition-delay: 0.1s;
}

.timeline-milestone.collapsed .milestone-bubble {
    opacity: 1;
}

.timeline-milestone.collapsed .milestone-year {
    opacity: 1;
}

.timeline-milestone.active .milestone-year {
    opacity: 1;
}

.timeline-milestone.collapsed .milestone-dot {
    /* Dot always visible, no opacity change */
}

/* Active (expanded) state */
.timeline-milestone.active .milestone-bubble {
    opacity: 1;
}

.milestone-bubble.right {
    left: calc(100% + 75px);
    top: 50%;
    transform: translateY(-50%);
}

.milestone-bubble.left {
    right: calc(100% + 75px);
    top: 50%;
    transform: translateY(-50%);
}

.milestone-bubble:hover {
    transform: translateY(-50%) scale(1.05);
}

.milestone-bubble.filled {
    background-color: #e61017;
    color: white;
    border: 3px solid #e61017;
}

.milestone-bubble.outlined {
    background-color: white;
    color: #e61017;
    border: 3px solid #e61017;
}

.milestone-bubble.dashed {
    background-color: white;
    color: #e61017;
    border: 3px dashed #e61017;
}

/* Custom Background Image */
.milestone-bubble.has-custom-bg {
    background-color: unset;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
}

.milestone-bubble.has-custom-bg:hover {
    border-color: rgba(230, 16, 23, 1);
}

.milestone-connector {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    background: none;
    overflow: visible;
    display: none;
}

.milestone-connector::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed transparent;
    background: radial-gradient(circle, transparent 48%, transparent 52%);
}

.milestone-connector::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M 100 50 A 50 50 0 0 0 50 100' fill='none' stroke='%23e61017' stroke-width='2' stroke-dasharray='16 6 4 6 4 6' stroke-opacity='0.6'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.milestone-bubble.right .milestone-connector {
    right: calc(100% - 25px);
    transform: translateY(-100%);
}

.milestone-bubble.right .milestone-connector::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M 100 50 A 50 50 0 0 0 50 100' fill='none' stroke='%23e61017' stroke-width='2' stroke-dasharray='16 6 4 6 4 6' stroke-opacity='0.6'/%3E%3C/svg%3E");
}

.milestone-bubble.left .milestone-connector {
    left: calc(100% - 25px);
    transform: translateY(0%);
}

.milestone-bubble.left .milestone-connector::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M 0 50 A 50 50 0 0 0 50 0' fill='none' stroke='%23e61017' stroke-width='2' stroke-dasharray='16 6 4 6 4 6' stroke-opacity='0.6'/%3E%3C/svg%3E");
}

.milestone-event {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 170px;
    height: auto;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
    display: grid;
    gap: 8px;
    align-items: flex-end;

    @media (width >=48rem) {
        width: 350px;
    }

    @media (width >=64rem) {
        width: 480px;
    }

    @media (width >=90rem) {
        width: 600px;
    }
}

/* Show events when not collapsed */
.timeline-milestone:not(.collapsed) .milestone-event {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.milestone-event.left {
    right: calc(100% + 75px);
    text-align: right;
}

.milestone-event.right {
    left: calc(100% + 75px);
    align-items: flex-start;
    text-align: left;
}

.timeline-milestone.active .milestone-event {
    opacity: 1;
    visibility: visible;
}

.milestone-event-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: start;
}

.milestone-event-date {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.milestone-event-description {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    text-align: justify;
}

/* ==========================================================================
   News Section
   ========================================================================== */

.news {}

.news-meta {
    gap: 0px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 14px;

    a {
        margin-right: 8px;

        &:hover {
            text-decoration: underline;
        }
    }
}

.news .container {
    gap: 3rem;
}

.news-items {
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
    margin: 0 auto;
    padding: 20px 0;
}

.news-item {
    max-width: 369px;
    background-color: #ffffff;
    border: 2px solid #e61017;
    border-radius: 10px;
    padding: 35px 45px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: -5px 8px 9px rgba(230, 16, 23, 0.14);
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 16, 23, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(230, 16, 23, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 16, 23, 0);
    }
}

.news-item-date::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: #e61017;
    border-radius: 50%;
    flex-shrink: 0;
}

.news-item-date--first-item::before {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.news-item h3 {
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    color: #000;
    text-align: justify;
}

.news-item-tags {
    gap: 2px;
    font-style: italic;
    font-size: 14px;
    color: #666;
}

.news-item-tags .pillar-badge {
    background-color: #e61017;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
}

.news-item-tags .audience-badge {
    background-color: #4a5568;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
}

.news-item-tags .activity-badge {
    background-color: #2d3748;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
}

.news-item-tags .keyword-badge {
    background-color: #0ea5e9;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
}

.news-item-tags a:hover {
    text-decoration: underline;
}

.news-item-content {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

.news-item-button {
    font-size: clamp(14px, 1vw, 16px);
    color: #e61017;
    border: 1px solid #e61017;
    background-color: transparent;
    padding: 8px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);

}

.news-item-button:hover {
    background-color: #e61017;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.news-view-all {
    text-align: center;
}

/* ==========================================================================
   Showcase Section
   ========================================================================== */

.showcase {}

.showcase-swiper {
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 0px !important;
}

.showcase-swiper.single-slide {
    max-width: 400px;
}

.showcase-swiper.single-slide .swiper-wrapper {
    justify-content: center;
}

.showcase-swiper.single-slide .swiper-slide {
    margin-right: 0 !important;
}

.showcase-items {
    display: flex;
}

.showcase-item {
    background-color: #fdfcf5;
    border: 2px solid #e61017;
    border-radius: 10px;
    padding: 30px;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.showcase-item-image {
    width: 100%;
    height: 250px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.showcase-item-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #000;
    margin: 0;
}

.showcase-item-button {
    margin-top: 1rem;
    color: #e61017;
    border: 1px solid #e61017;
    background-color: transparent;
    padding: 8px 60px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.showcase-item-button:hover {
    background-color: #e61017;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.showcase-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.showcase-pagination.swiper-pagination-lock {
    display: flex !important;
}

.showcase-pagination-dot {
    width: 40px;
    height: 8px;
    background-color: #c4c4c4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-pagination-dot.active {
    background-color: #e61017;
    width: 80px;
}

.showcase-pagination-dot:hover {
    background-color: #e61017;
    opacity: 0.7;
}

/* ==========================================================================
   Journey Section
   ========================================================================== */

.journey {}

.journey-content {
    display: grid;
    grid-template-columns: 6fr 3fr;
    gap: 80px;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
    overflow: hidden;
}

.journey-text {
    display: flex;
    flex-direction: column;
}

.journey-text p {
    font-size: clamp(16px, 1.2vw, 18px);
    text-align: justify;
    line-height: 1.8;
    font-weight: 400;
    color: #333;
    margin: 0;
    margin-bottom: 10px;
}

.journey-buttons {
    display: flex;
    gap: 40px;
    margin-top: 2.5rem;
}

.journey-button:hover {
    background-color: #c41014;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.journey-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.journey-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
    overflow: hidden;
}

.testimonials>.container {
    position: relative;
}

.testimonials-swiper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.testimonials-wrapper {
    display: flex;
}

.testimonials-container {
    position: relative;
    width: 100%;
}

.testimonials-content {
    position: relative;
    padding: 40px 60px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.testimonials-background {
    opacity: 0.2;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 690px;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    width: 690px;
    height: 690px;
    border-radius: 50%;
    border: 2px solid;
}

.circle:nth-child(1) {
    right: calc(50% - 145px);
    border-color: rgba(180, 180, 180, 0.5);
}

.circle:nth-child(2) {
    right: calc(50% - 185px);
    border-color: rgba(176, 176, 176, 0.5);
}

.circle:nth-child(3) {
    right: calc(50% - 225px);
    border-color: rgba(188, 188, 188, 0.5);
}

.circle:nth-child(4) {
    right: calc(50% - 265px);
    border-color: rgba(195, 195, 195, 0.5);
}

.circle:nth-child(5) {
    display: none;
    right: calc(50% - 345px);
    border-color: rgba(230, 16, 23, 0.5);
}

.circle:nth-child(6) {
    display: none;
    left: calc(50% - 345px);
    border-color: rgba(210, 95, 80, 0.5);
}

.circle:nth-child(7) {
    left: calc(50% - 345px);
    border-color: rgba(200, 115, 100, 0.5);
}

.circle:nth-child(8) {
    left: calc(50% - 305px);
    border-color: rgba(215, 75, 60, 0.5);
}

.circle:nth-child(9) {
    left: calc(50% - 265px);
    border-color: rgba(220, 55, 45, 0.5);
}

.circle:nth-child(10) {
    left: calc(50% - 225px);
    border-color: rgba(225, 40, 35, 0.5);
}

.circle:nth-child(11) {
    left: calc(50% - 185px);
    border-color: rgba(228, 30, 28, 0.5);
}

.circle:nth-child(12) {
    left: calc(50% - 145px);
    border-color: rgba(230, 20, 23, 0.5);
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #e61017;
    object-fit: cover;
    z-index: 2;
    padding: 8px;
}

.testimonial-text {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    z-index: 2;
    margin: 0;
}

.testimonial-author {
    text-align: center;
    z-index: 2;
}

.testimonial-name {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 0 0 5px 0;
}

.testimonial-role {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.testimonials-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    z-index: 2;
}

.testimonials-pagination-dot {
    width: 40px;
    height: 8px;
    background-color: #c4c4c4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-pagination-dot.active {
    background-color: #e61017;
    width: 80px;
}

.testimonials-pagination-dot:hover {
    background-color: #e61017;
    opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    position: relative;
    overflow: hidden;
    background-image: url('img/footer_background.png');
    background-size: cover;
    background-position: center;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 0px;
}

.footer-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;

    @media (width >=40rem) {
        height: 80px;
    }
}

.footer-title {
    font-size: clamp(24px, 1.5vw, 28px);
    font-weight: 400;
    color: #000;
    width: fit-content;
    padding-bottom: 8px;
    margin: 0 0 50px 0;
    border-bottom: 1px solid #333;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.footer-dot {
    font-size: 10px;
    color: #999;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e61017;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-social a {
    color: #000;
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #e61017;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.footer-copyright {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.footer-divider {
    width: 120px;
    height: 12px;
    background-color: #bda47b;
    margin: 0 auto 30px;
}

.footer-illustration {
    position: relative;
    width: 100%;
    margin-top: -6rem;
    overflow: hidden;
}

.footer-illustration img {
    width: 100%;
    height: 100%;
    margin-bottom: -45px;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #e61017;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #c41014;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Utility Classes (Tailwind-like)
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.font-normal {
    font-weight: 400;
}

.max-w-4xl {
    max-width: 56rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: #e61017 2px solid;
    border-radius: 1rem;
    overflow: hidden;
}

article table td,
article table th {
    padding: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1200px) {

    .milestone-event.left {
        right: calc(100% + 20px);
    }

    .milestone-event.right {
        left: calc(100% + 20px);
    }

    .milestone-bubble {
        width: 120px;
        height: 120px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .news-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .journey-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .journey-buttons {
        flex-wrap: wrap;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .header-navbar-toggle {
        display: none !important;
    }

    .header-navbar-items {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex !important;
        flex-direction: row;
        height: auto;
        width: auto;
        padding: 0;
        gap: 1px;
        border-radius: 1.25rem;
        overflow: hidden;
        right: auto;
        top: auto;
    }

    .header-navbar-item {
        background-color: #69460082;
    }
}

@media (max-width: 768px) {

    body {
        padding-top: 80px;
    }

    .testimonials-background {
        transform: translate(-50%, -50%) scale(0.7);
    }

    .header-navbar-toggle {
        display: flex;
    }

    .header-navbar-items {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 1px;
        border-radius: 0;
        transform: none;
        left: auto;
        color: white;
    }

    .header-navbar-items.active {
        right: 0;
    }

    .header-navbar-item {
        padding: 1rem 1.5rem;
        background-color: #69460082;
        border-bottom: none;
        text-align: center;
    }

    .header-navbar-item:first-child {
        border-radius: 20px 20px 0 0;
    }

    .header-navbar-item:last-child {
        border-radius: 0 0 20px 20px;
    }

    .header-navbar-item:hover {
        background-color: rgba(99, 99, 99, 0.9);
    }

    .lang-switcher {
        position: fixed;
        top: 34px;
        right: 70px;
        z-index: 1001;
    }

    .lang-switcher-toggle {
        padding: 0.5rem 1rem;
        border-radius: 1rem;
    }

    .lang-switcher-dropdown {
        right: 0;
    }

    .header-navbar-body-time h1 {
        font-size: 2.5rem;
    }

    .title-wrapper {
        padding: 0;
    }

    .timeline-ueh-body-content {
        padding-left: 30px;
    }

    .timeline-ueh-body-content::before {
        left: 10px;
    }

    .timeline-ueh-button {
        margin-top: 0;
        flex-direction: column;
    }

    .history-timeline-content {
        flex-direction: column;
        align-items: center;
    }

    .history-timeline-visual {
        width: 100%;
    }

    .timeline-milestones {
        padding: 0 100px;
    }

    .news-item {
        padding: 25px 30px;
        gap: 20px;
    }


    .milestone-event-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .milestone-event-date {
        font-size: 12px;
        text-align: left;
    }

    .milestone-event-description {
        font-size: 10px;
        line-height: 1.4;
    }

    .milestone-bubble {
        width: 90px;
        height: 90px;
        font-size: 9px;
        padding: 8px;
    }

    .milestone-bubble.right {
        left: calc(100% + 35px);
    }

    .milestone-bubble.left {
        right: calc(100% + 35px);
    }

    .milestone-connector {
        width: 50px;
        height: 50px;
    }

    .milestone-bubble.right .milestone-connector {
        right: calc(100% - 15px);
    }

    .milestone-bubble.left .milestone-connector {
        left: calc(100% - 15px);
    }

    .milestone-year {
        font-size: 14px;
    }

    .milestone-period {
        font-size: 10px;
    }

    .testimonials-content {
        padding: 0px 0px;
    }

    .testimonial-avatar {
        width: 100px;
        height: 100px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .testimonial-name {
        font-size: 16px;
    }

    .testimonial-role {
        font-size: 14px;
    }

    .title {
        padding: 10px 30px;
    }

    .footer-main {
        padding: 30px 20px 0px;
    }

    .footer-logo {
        flex-direction: row;
        align-items: center;
    }

    .footer-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .footer-contact {
        gap: 10px;
        font-size: 14px;
    }

    .footer-illustration img {
        margin-bottom: 0px;
    }

    .footer-copyright {
        font-size: 14px;
    }

    .footer-illustration {
        margin-top: -3rem;
    }

    .footer-bottom {
        padding: 0;
    }

    .footer-links {
        flex-direction: row;
        align-items: center;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    article table {
        margin: 1rem auto;
    }

    article table td,
    article table th {
        padding: 0.25rem;
    }
}

@media (max-width: 640px) {
    .news-items {
        grid-template-columns: 1fr;
        gap: 48px;

    }

    .journey-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .journey-button {
        width: 100%;
        text-align: center;
    }
}

/* =================================================================
   Registration Popup
   ================================================================= */

.registration-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.registration-popup.active {
    display: flex;
}

.registration-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.registration-popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

.registration-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.registration-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.registration-popup-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    padding-right: 40px;
    line-height: 1.3;
}

.registration-popup-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.registration-submit-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.registration-submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.registration-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.registration-submit-button .button-loader {
    display: inline-block;
}

/* Responsive Registration Popup */
@media (max-width: 768px) {
    .registration-popup-content {
        padding: 30px 20px;
        max-height: 85vh;
    }

    .registration-popup-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .registration-popup-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .registration-popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .registration-form {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .registration-popup {
        padding: 10px;
    }

    .registration-popup-content {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .registration-popup-title {
        font-size: 20px;
        padding-right: 35px;
    }

    .registration-popup-subtitle {
        font-size: 12px;
    }

    .registration-submit-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* =================================================================
   Testimonial Popup
   ================================================================= */

.testimonial-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.testimonial-popup.active {
    display: flex;
}

.testimonial-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.testimonial-popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.testimonial-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.testimonial-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-right: 40px;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select,
.custom-file-upload {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus,
.custom-file-upload:hover {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.image-upload-wrapper {
    position: relative;
}

.form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #3498db;
}

.image-preview {
    margin-top: 15px;
    position: relative;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.3s ease;
}

.image-preview .remove-image:hover {
    background: rgba(231, 76, 60, 1);
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Responsive Popup */
@media (max-width: 768px) {
    .testimonial-popup-content {
        padding: 30px 20px;
        max-height: 85vh;
    }

    .testimonial-popup-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .testimonial-popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .testimonial-popup {
        padding: 10px;
    }

    .testimonial-popup-content {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .testimonial-popup-title {
        font-size: 20px;
        margin-bottom: 15px;
        padding-right: 35px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea,
    .custom-file-upload {
        padding: 10px 12px;
        font-size: 14px;
    }

    .testimonial-submit-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   List Styles
   ========================================================================== */

ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 15px 0;
}

ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

ul li a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul li a:hover {
    color: #004499;
    text-decoration: underline;
}

/* ==========================================================================
   Table Styles with Red Lines
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid #dc143c;
}

table tr {
    border-bottom: 2px solid #dc143c;
}

table tr:last-child {
    border-bottom: none;
}

table td,
table th {
    padding: 12px 15px;
    border-right: 1px solid #dc143c;
    border-bottom: 1px solid #dc143c;
    vertical-align: top;
}

table td:last-child,
table th:last-child {
    border-right: none;
}

table tr:last-child td {
    border-bottom: none;
}

.custom-file-upload {
    display: block;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    color: #999;
    background: #fff;
}