/* ========================================
   COMMON.CSS - Base + Navigation + Hero + Footer
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0;
}

strong{
    color: #065ff9;
}

p{
    text-align: justify;
}

/* ========================================
   Navigation Header - Fixed
   ======================================== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
}

.nav-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-header.scrolled .top-bar {
    background: #002a93;
}

.nav-header.scrolled .main-header {
    background: #fff;
}

.nav-header.scrolled .main-nav {
    background: #fff;
    border-top: 1px solid #eee;
}

.nav-header.scrolled .search-box input {
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-header.scrolled .search-box input:focus {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 42, 147, 0.15);
}

.nav-header.scrolled .search-box input::placeholder {
    color: #888;
}

.nav-header.scrolled .search-icon {
    color: #002a93;
}

.nav-header.scrolled .nav-menu li a {
    color: #065ff9;
}

.nav-header.scrolled .nav-menu li a:hover {
    color: #1fdfff;
}

.nav-header.scrolled .hamburger-line {
    background: #065ff9;
}

.nav-header.scrolled .mobile-menu-toggle.active .hamburger-line {
    background: #065ff9;
}

/* Logo 在滚动时保持原样 */
.nav-header.scrolled .logo-img-small {
    height: 70px;
    width: auto;
    opacity: 0.95;
}

/* Top Bar */
.top-bar {
    background: #002a93;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
    transition: background 0.4s ease;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

/* Small Logo in Top Bar */
.logo-small {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img-small {
    height: 70px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.logo-small:hover .logo-img-small {
    opacity: 1;
}

/* Language Selector */
/* School Entry - 学校入口 */
.school-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.school-entry:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.school-icon {
    opacity: 0.9;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.school-entry:hover .school-icon {
    opacity: 1;
    transform: scale(1.1);
    stroke: #1fdfff;
}

.school-name {
    white-space: nowrap;
}

/* Top Bar Right */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-link {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 3px;
    position: relative;
}

.top-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.top-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.top-link.active {
    color: #1fdfff;
}

.top-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: #1fdfff;
}

.energy-link svg {
    stroke: #7ed321;
}

.giving-link svg {
    stroke: #1fdfff;
}

.contact-link svg {
    stroke: #1fdfff;
}

/* Main Header */
.main-header {
    padding: 12px 0;
    transition: background 0.4s ease;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 36px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 16px 25px 16px 55px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.search-box input::placeholder {
    color: #888;
    font-size: 15px;
}

.search-box input:focus {
    border-color: #002a93;
    box-shadow: 0 6px 25px rgba(0, 42, 147, 0.15);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #002a93;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.search-box:focus-within .search-icon {
    color: #1fdfff;
    transform: translateY(-50%) scale(1.1);
}

/* Main Navigation */

/* Header spacer (after removing logo and contact btn) */
.header-spacer {
    flex: 1;
}
.main-nav {
    padding: 0;
    transition: all 0.4s ease;
    max-width: 85%;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.nav-menu li a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    color: #1fdfff;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1fdfff;
    transition: width 0.3s;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   Sticky Note - 便利贴
   ======================================== */
.sticky-note {
    position: absolute;
    bottom: 100px;
    right: 5%;
    width: 220px;
    background: linear-gradient(135deg, #fef9e7 0%, #fff8dc 100%);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
    transform: rotate(1deg);
    z-index: 10;
    font-family: sans-serif,Arial;
    transition: transform 0.3s ease;
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
}

.sticky-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: rgba(0,0,0,0.4);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sticky-close:hover {
    background: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.8);
}

.sticky-content {
    position: relative;
}

.sticky-title {
    font-size: 20px;
    font-weight: 700;
    color: #065ff9;
    margin: 0 0 12px 0;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px dashed rgba(6, 95, 249, 0.3);
}

.sticky-contact {
    margin-bottom: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.5;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #1fdfff;
}

.contact-item span {
    font-weight: 500;
}

.sticky-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(211, 84, 0, 0.3), transparent);
    margin: 12px 0;
}

.sticky-brochure-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #002a93 0%, #065ff9 100%);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 42, 147, 0.3);
}

.sticky-brochure-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 42, 147, 0.4);
    color: #fff;
    text-decoration: none;
}

.sticky-brochure-link svg {
    flex-shrink: 0;
}

/* Hide mobile-only elements on desktop */
.mobile-menu-header,
.mobile-menu-footer,
.mobile-fixed-cta {
    display: none;
}

/* ========================================
   Mobile Responsive Styles
   ======================================== */
@media (max-width: 768px) {
    /* Mobile Menu Toggle - Show on mobile */

        .hero-title{
        font-size: 26px !important;
    }

    .hero-watermark {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        z-index: 1002;
    }
    
    .hamburger-line {
        width: 25px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }
    
    .main-header {
        position: relative;
    }
    
    /* Top Bar Mobile - Match mobile-menu-header style */
    .top-bar {
        padding: 10px 10px 10px 0;
        background: #002a93;
        border-bottom: 3px solid #065ff9;
    }
    
    .top-bar .container {
        flex-wrap: wrap;
    }
    
    .top-bar-right {
        display: none; /* Hide top links on mobile */
    }
    
    .logo-small {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    
    .logo-img-small {
        height: 52px;
        opacity: 1;
    }
    
    .header-content {
        justify-content: flex-start;
    }
    
    /* Main Nav Mobile - Premium Full Screen Menu */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh; /* 适配移动端地址栏 */
        min-height: 100vh;
        min-height: 100dvh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* Hide menu toggle when menu is open */
    .main-nav.active ~ .mobile-menu-toggle,
    .mobile-menu-toggle.hidden {
        display: none !important;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        background: #002a93;
        border-bottom: 3px solid #1fdfff;
        flex-shrink: 0;
        min-height: 64px;
    }
    
    .mobile-menu-header .logo-img {
        height: 52px;
    }
    
    .mobile-menu-close {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.15);
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255,255,255,0.25);
        border-color: rgba(255,255,255,0.5);
        transform: rotate(90deg);
    }
    
    .mobile-menu-close svg {
        width: 20px;
        height: 20px;
        color: #fff;
    }
    
    /* Menu Content */
    .nav-menu {
        flex-direction: column;
        padding: 20px 16px;
        gap: 0;
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }
    
    .nav-menu li {
        margin-bottom: 6px;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: all 0.3s ease;
        position: relative;
        flex-shrink: 0;
    }
    
    .nav-menu li:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .nav-menu li a {
        color: #065ff9;
        padding: 14px 18px;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
        min-height: 48px;
    }
    
    .nav-menu li a::before {
        content: '';
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, #1fdfff, #065ff9);
        position: absolute;
        left: 0;
        transition: height 0.3s ease;
    }
    
    .nav-menu li a:hover {
        color: #1fdfff;
        background: linear-gradient(135deg, rgba(31, 223, 255, 0.05), rgba(6, 95, 249, 0.02));
        padding-left: 25px;
    }
    
    .nav-menu li a:hover::before {
        height: 100%;
    }
    
    /* Arrow icon */
    .nav-menu li a::after {
        content: '→';
        display: block !important;
        font-size: 18px;
        color: #ccc;
        transition: all 0.3s ease;
    }
    
    .nav-menu li a:hover::after {
        color: #1fdfff;
        transform: translateX(5px);
    }
    
    /* Menu Footer */
    .mobile-menu-footer {
        display: block;
        padding: 20px 16px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-top: 1px solid #e0e0e0;
        flex-shrink: 0;
        margin-top: auto;
    }
    
    .mobile-menu-contact {
        text-align: center;
        margin-bottom: 16px;
    }
    
    .mobile-menu-contact p {
        font-size: 12px;
        color: #666;
        margin-bottom: 6px;
    }
    
    .mobile-menu-contact a {
        color: #002a93;
        font-weight: 600;
        font-size: 14px;
    }
    
    .mobile-cta-btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
        background: linear-gradient(135deg, #002a93 0%, #065ff9 100%);
        color: #fff;
        text-align: center;
        font-weight: 700;
        font-size: 15px;
        border-radius: 30px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 42, 147, 0.4);
        transition: all 0.3s ease;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 42, 147, 0.5);
    }
    
    /* Mobile Fixed Bottom CTA Button */
    .mobile-fixed-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 16px 20px;
        background: linear-gradient(135deg, #002a93 0%, #065ff9 100%);
        color: #fff;
        text-align: center;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        font-size: 16px;
        text-decoration: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
        min-height: 56px;
        letter-spacing: 0.5px;
        opacity: 1;
    }
    
    .mobile-fixed-cta.hidden {
        opacity: 0;
        pointer-events: none;
    }
    
    .mobile-fixed-cta:hover {
        background: linear-gradient(135deg, #065ff9 0%, #1fdfff 100%);
        transform: translateY(-2px);
        box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-fixed-cta:active {
        transform: translateY(0);
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.15);
    }
    
    /* Nav Overlay */
    .nav-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 100vh;
        height: auto;
        width: 100%;
        position: relative;
        display: block;
        align-items: flex-start;
    }
    
    .hero-bg {
        width: 100%;
    }
    
    .hero-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-text {
        transform: none;
        max-width: 100%;
        text-align: left;
        position: absolute;
        top: 200px;
        left: 15px;
        right: auto;
        z-index: 5;
    }
    
    .hero-text h1 {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .hero-text .line {
        display: block;
        font-size: 44px;
    }
    
    .hero-content {
        position: static;
        padding: 0;
    }
    
    .hero-content .container {
        position: static;
        display: block;
        padding: 0 15px;
    }
    
    /* News Carousel Mobile - Hide on mobile */
    .news-carousel {
        display: none;
    }
    
    /* Video btn mobile */
    .video-btn {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    /* Container mobile */
    .container {
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Sticky Note Mobile */
    .sticky-note {
        bottom: 150px;
        right: 10px;
        width: 200px;
        padding: 12px;
        transform: rotate(1deg);
    }
    
    .sticky-title {
        font-size: 16px;
        margin: 0 0 8px 0;
        padding-bottom: 6px;
    }
    
    .contact-item {
        font-size: 11px;
        margin-bottom: 6px;
        gap: 6px;
    }
    
    .contact-item svg {
        width: 12px;
        height: 12px;
    }
    
    .sticky-divider {
        margin: 8px 0;
    }
    
    .sticky-brochure-link {
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
    }
    
    .sticky-brochure-link svg {
        width: 14px;
        height: 14px;
    }
    
    .sticky-close {
        font-size: 22px;
        top: 4px;
        right: 8px;
    }
    
    /* Mobile: Disable scroll color change */
    .nav-header.scrolled {
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
    }
    
    .nav-header.scrolled .top-bar {
        background: #002a93;
    }
    
    .nav-header.scrolled .main-header {
        background: transparent;
    }
    
    /* Mobile menu keeps its own background on scroll */
    .nav-header.scrolled .main-nav {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-top: none;
    }
    
    /* Mobile menu keeps its own text color on scroll */
    .nav-header.scrolled .nav-menu li a {
        color: #065ff9;
    }
    
    .nav-header.scrolled .nav-menu li a:hover {
        color: #1fdfff;
    }
    
    .nav-header.scrolled .hamburger-line {
        background: #fff;
    }
    
    /* Mobile: Logo 在滚动时保持原样 */
    .nav-header.scrolled .logo-img-small {
        height: 36px;
        opacity: 0.95;
    }
}

/* 小屏幕手机优化 (iPhone SE 等) */
@media (max-width: 768px) and (max-height: 700px) {
        .hero-title{
        font-size: 26px;
    }

       .hero-watermark {
        display: none;
    }

    .mobile-menu-header {
        padding: 12px 16px;
        min-height: 56px;
    }
    
    .mobile-menu-header .logo-img {
        height: 32px;
    }
    
    .nav-menu {
        padding: 12px 12px;
    }
    
    .nav-menu li {
        margin-bottom: 4px;
    }
    
    .nav-menu li a {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .mobile-menu-footer {
        padding: 16px 12px;
    }
    
    .mobile-cta-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* 大屏幕手机优化 */
@media (max-width: 768px) and (min-height: 800px) {


    .hero-title{
        font-size: 26px;
    }

       .hero-watermark {
        display: none;
    }

    .nav-menu {
        padding: 30px 24px;
        justify-content: center;
    }
    
    .nav-menu li {
        margin-bottom: 10px;
    }
    
    .nav-menu li a {
        padding: 18px 24px;
        font-size: 18px;
        min-height: 56px;
    }
    
    .mobile-menu-footer {
        padding: 30px 24px;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.3) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(0,0,0,0.5) 100%);
}

.hero-content {
    z-index: 2;
    width: 100%;
    padding-bottom: 50px;
    position: relative;
}

.hero-content .container {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 450px;
}

.hero-title {
    position: absolute;
    top: 0;
    color: #fff;
    font-size: 75px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 1100px;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.5);
}

.hero-watermark {
    position: absolute;
    right: 30px;
    bottom: 0px;
    font-size: 200px;
    font-weight: 700;
    color: rgba(226,110,45,0.20);
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
}

@keyframes fadeInUpLoop {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* News Carousel */
.news-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-container {
    overflow: hidden;
    width: 520px;
}

.news-cards {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    min-width: 250px;
    max-width: 250px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.news-tag {
    font-size: 10px;
    color: #666;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    font-size: 14px;
    color: #065ff9;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(14px * 1.4 * 3);
}

.news-image {
    border-radius: 6px;
    overflow: hidden;
    height: 80px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
    background-color: #002a93;
    color: #fff;
    padding: 40px 0 25px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.logo-img-footer {
    height: 100px;
    width: auto;
    opacity: 0.9;
}

.back-to-top {
    background-color: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
    width: 28px;
    height: 28px;
}

.back-to-top:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.arrow {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    transition: transform 0.3s;
}

.footer-column ul li a:hover .arrow {
    transform: translateX(3px);
    color: #fff;
}

/* Footer Renzhen - Accreditation Section */
.footer-renzhen {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.renzhen-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.renzhen-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.renzhen-item {
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.renzhen-item:hover {
    transform: translateY(-3px);
}

.renzhen-item img {
    max-height: 45px;
    max-width: 100px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.renzhen-item:hover img {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
}
