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

/* Achievements Page Styles */
.filter-section {
    padding: 20px 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.filter-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-item {
    transition: opacity 0.3s ease-in-out;
}

.achievement-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.achievement-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image Banner Styles */
.image-banner-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    height: 120px;
    background: #f5f5f5;
}

.image-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.image-banner-container:hover .image-banner {
    filter: blur(0px);
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-banner-container:hover .image-overlay {
    opacity: 1;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover {
    color: #ccc;
}

.modal-caption {
    color: white;
    font-size: 16px;
    margin-top: 15px;
    padding: 0 20px;
}

/* Image Grid Banner Styles */
.image-grid-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    height: 120px;
}

.grid-image-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0.5px);
    transition: all 0.3s ease;
}

.grid-image-item:hover .grid-image {
    filter: blur(0px);
    transform: scale(1.05);
}

.grid-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-image-item:hover .grid-image-overlay {
    opacity: 1;
}

.grid-image-empty {
    background: transparent;
}

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

/* Mobile responsive for filter buttons */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .achievement-btn {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 120px;
    }

    .image-banner-container {
        height: 100px;
    }

    .image-grid-banner {
        height: 100px;
        gap: 8px;
    }

    .grid-image-overlay {
        padding: 6px;
        font-size: 12px;
    }

    .image-modal-content {
        width: 95%;
        padding: 10px;
    }

    .image-modal-close {
        font-size: 28px;
        right: 15px;
    }
}

:root {
    --primary-color: #0366d6;
    --secondary-color: #1b8cd2;
    --accent-color: #56b3cd;
    --text-color: #f9f9f9;
    --bg-color: #191919;
    --card-bg: rgba(255, 255, 255, 0.95);
    --header-bg: rgba(237, 237, 237, 0.85);
    --footer-bg: #24292e;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0,0,0,.1);
    --gradient: linear-gradient(135deg, #0366d6 0%, #1b8cd2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6, .col-md-6 {
    width: 50%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-lg-6, .col-md-6 {
        width: 100%;
    }
}

/* Language Selector */
.language-selector-wrapper {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

.language-selector {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: "Inter", sans-serif;
    min-width: 100px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 28px;
}

.language-selector:hover {
    background: #ffffff;
    border-color: #ced4da;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.language-selector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(3,102,214,0.25);
}

.language-selector option {
    background: white;
    color: #495057;
    padding: 8px;
}

/* Header Styling */

/* Header Logo & Nav Adjustments */
/* Header Layout Overrides */
.header .header-main-inner .row {
    margin: 0;
    display: flex;
    align-items: center;
}

/* Center nav builder item */
.header .builder-item--primary-menu {
    position: static;
    transform: none;
    margin: 0 auto;
}


.header .header-main-inner {
    position: relative;
}

/* full-width container so logo aligns left */
.header .header-main-inner .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

/* remove default negative margins */
.header .header-main-inner .row {
    margin: 0;
}

/* first column (logo) no extra padding */
.header .row > .hfg-item-first {
    padding-left: 0;
}

/* Remove any column-based padding for header logo */
.header .col-4, .header .col-md-4, .header .col-sm-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure logo column takes minimal space */
.header .builder-item--logo {
    text-align: left;
    padding-left: 0;
}

/* adjust padding of first column in header */



.nav-menu-primary .nav-ul {
    gap: 1.5rem; /* reduce spacing so items fit one line */
}

.nav-menu-primary .nav-ul .menu-item a {
    white-space: nowrap; /* prevent text wrap inside menu items */
}

.header {
    position: relative;
    z-index: 1000;
}

.hfg_header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.header-main {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.header-main-inner {
    padding: 1rem 0;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.container {
    padding-left: 10px;
    padding-right: 20px;
}

.builder-item--logo {
    text-align: left;
}

/* Logo Styling */
.site-logo {
    display: flex;
    align-items: center;
}

.title-with-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #404248;
    margin: 0;
    line-height: 1.2;
}

/* Brand link styling to prevent color changes */
.brand,
.brand:visited,
.brand:active,
.brand:hover,
.brand:focus {
    color: inherit;
    text-decoration: none;
}

.nv-title-tagline-wrap small {
    font-size: 0.8rem;
    color: #666;
    display: block;
    font-weight: 400;
}

/* Navigation Menu */
.nav-menu-primary .nav-ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-ul .menu-item a {
    text-decoration: none;
    color: #404248;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-ul .menu-item a:hover,
.nav-ul .menu-item.current-menu-item a {
    color: var(--primary-color);
}

/* Remove blue underline indicator
.nav-ul .menu-item a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-ul .menu-item:hover a:after,
.nav-ul .menu-item.current-menu-item a:after {
    width: 100%;
}
*/

/* Submenu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    box-shadow: var(--shadow);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu .menu-item a {
    padding: 10px 20px;
    display: block;
    color: #333;
}

.sub-menu .menu-item a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Caret Icon */
.caret-wrap {
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
}

.caret svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .caret svg {
    transform: rotate(180deg);
}

/* Mobile Navigation Toggle */
.navbar-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: none;
    position: relative; /* for sr only positioning */
}

/* Visually hide but keep for screen readers */
.navbar-toggle .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #404248;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Social Navigation */
.social-nav {
    position: absolute;
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
}

.social-nav a {
    color: #404248;
    transition: color 0.3s ease;
}

.social-nav a:hover {
    color: var(--primary-color);
}

/* Mobile Sidebar */
.header-menu-sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.header-menu-sidebar.active {
    left: 0;
}

.header-menu-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-menu-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-menu-sidebar-inner {
    padding: 2rem;
}

.close-sidebar-panel {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Main Content */
.neve-main {
    margin-top: 80px;
}

/* Slider Section */
.slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}



.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.slide-btn {
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(3,102,214,0.3);
}

.slide-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3,102,214,0.4);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.slider-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Social Feeds Section */
#facebook-feed iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto; /* center horizontally */
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
}

.social-feeds-section {
    padding: 4rem 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.social-feed-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
}

.social-feed-header {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.social-feed-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.social-feed-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
    color: #333;
}

.social-feed-footer {
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.social-feed-footer h4 {
    margin: 0;
}

.social-feed-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-feed-footer a:hover {
    color: var(--accent-color);
}

/* Feed Placeholder Styling */
.feed-placeholder {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.feed-placeholder p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.feed-placeholder small {
    color: #999;
    font-style: italic;
}

/* Social Media Widget Styling */
.social-feed-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    margin: 0 auto;
}

/* Center Facebook iframe if it has fixed width */
#facebook-feed {
    text-align: center;
}

#facebook-feed iframe {
    display: inline-block;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #aeaeae;
    padding: 3rem 0 2rem;
}

.footer-bottom-inner {
    background: var(--footer-bg);
    text-align: center;
}

.footer-social-icons {
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.8rem;
}

/* Missing footer centering classes */
.desktop-center,
.tablet-center,
.mobile-center {
    text-align: center;
}

.hfg-item-v-middle {
    vertical-align: middle;
}

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

.builder-item--footer_copyright {
    text-align: center;
}

.footer-social-icons a {
    color: #aeaeae;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
}

.footer-social-icons a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* WeChat QR Code Tooltip */
.wechat-link {
    position: relative;
    color: #aeaeae;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
}

.wechat-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px);
}

.wechat-qr-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.wechat-qr-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.wechat-qr-tooltip img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    display: block;
}

.wechat-link:hover .wechat-qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.component-wrap p {
    margin: 0;
    font-size: 0.9rem;
}

.trademark {
    font-family: 'OCRAStd', monospace;
    font-size: 90%;
}

/* Mobile Social Navigation */
.mobile-social-nav {
    display: none;
    padding: 25px 0;
    text-align: center;
    font-size: 1.6rem;
    gap: 20px;
    justify-content: center;
    background: var(--footer-bg);
}

.mobile-social-nav a {
    color: #aeaeae;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.mobile-social-nav a:hover {
    color: var(--primary-color);
}

/* Mobile WeChat Tooltip */
.mobile-social-nav .wechat-link {
    position: relative;
    color: #aeaeae;
    margin: 0 10px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.mobile-social-nav .wechat-link:hover {
    color: var(--primary-color);
}

.mobile-social-nav .wechat-qr-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.mobile-social-nav .wechat-qr-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.mobile-social-nav .wechat-qr-tooltip img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    display: block;
}

.mobile-social-nav .wechat-link:hover .wechat-qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Responsive Design */
@media (max-width: 960px) {
    .hide-on-desktop {
        display: block !important;
    }
    
    .hide-on-mobile, .hide-on-tablet {
        display: none !important;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .social-nav {
        display: none;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .slider-container {
        height: 50vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1rem;
    }
    
    .nv-title-tagline-wrap small {
        display: none;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-container {
        height: 40vh;
        min-height: 350px;
    }
    
    .social-feed-container {
        height: 500px;
    }
    
    .footer-social-icons {
        display: none;
    }
    
    .mobile-social-nav {
        display: flex;
    }
    
    .component-wrap p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 0.95rem;
    }
    
    .social-feed-container {
        margin: 15px 5px;
        height: 450px;
    }
}

/* Footer Centering Fix */
.site-footer .hfg-grid-bottom {
    display: flex;
    justify-content: center;
}
.site-footer .hfg-grid-bottom .builder-item {
    margin: 0 auto;
    text-align: center;
}

/* Utility Classes */
.hide-on-mobile {
    display: block;
}

.hide-on-tablet {
    display: block;
}

.hide-on-desktop {
    display: none;
}

@media (max-width: 960px) {
    .hide-on-mobile {
        display: none;
    }
    
    .hide-on-tablet {
        display: none;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
.dot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0052cc;
        --text-color: #000;
        --bg-color: #fff;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 2rem 0; /* reduced gap for contact page */
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    min-height: calc(100vh - 160px);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem; /* less top padding */
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-main-content {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 3rem;
    min-height: 400px;
}

/* Contact Content Styling */
.contact-info h4, .social-links h5 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info h5 {
    margin-left: 1.5rem;
    color: #666;
    font-weight: normal;
    line-height: 1.8;
}

.contact-info i, .social-links i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 20px;
}

.contact-info a, .social-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover, .social-links a:hover {
    color: var(--secondary-color);
}

.social-links h5 {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.social-links img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-links a img {
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.05);
}

/* Column layout for contact page */
.col-8 {
    width: 66.67%;
    padding-right: 2rem;
}

.col-4 {
    width: 33.33%;
    padding-left: 1rem;
}

/* Contact Map Section */
.contact-map-section {
    margin-top: 3rem;
    text-align: center;
}

.map-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 3rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.map-container iframe {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.map-container small {
    margin-top: 1rem;
    display: block;
}

.map-container small a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.map-container small a:hover {
    color: var(--secondary-color);
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-content {
        padding: 1rem;
    }
    
    .contact-main-content {
        padding: 2rem 1.5rem;
    }
    
    .col-8, .col-4 {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .contact-info h4, .social-links h5 {
        font-size: 1rem;
    }
    
    .social-links img {
        width: 120px;
        height: 120px;
    }
    
    .map-container {
        padding: 2rem 1.5rem;
        margin: 0;
        max-width: none;
        width: 100%;
    }
    
    .map-container iframe {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }
}

/* Publications & Exhibitions Page Styles */
.pub-exhib-section {
    padding: 60px 0;
    background: var(--card-bg);
    margin: 20px 0;
    border-radius: 8px;
}

.pub-exhib-header {
    text-align: center;
    margin-bottom: 40px;
}

.pub-exhib-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.facebook-posts-frame, .content-frame {
    margin-bottom: 50px;
}

.frame-header {
    text-align: center;
    margin-bottom: 30px;
}

.frame-header h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 500;
}

.facebook-posts-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}


.facebook-posts-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.facebook-post-embed {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.facebook-post-embed iframe {
    width: 100%;
    min-height: 500px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.twitter-post-embed {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.twitter-post-embed iframe {
    width: 100%;
    min-height: 500px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Specific layout for Publications & Exhibitions page - vertical Facebook posts */
.pub-exhib-section .facebook-posts-grid {
    flex-direction: column;
    align-items: stretch;
    max-width: 600px;
    gap: 30px;
}

.pub-exhib-section .facebook-post-embed {
    width: 100%;
    max-width: 100%;
}

/* Content Frame Styles */
.publications-section, .exhibitions-section {
    margin-bottom: 40px;
}

.publications-section h3, .exhibitions-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.publications-grid, .exhibitions-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.publication-item, .exhibition-item {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.publication-item:hover, .exhibition-item:hover {
    transform: translateY(-5px);
}

.publication-content, .exhibition-content {
    flex: 1;
    padding: 25px;
}

.publication-content h4, .exhibition-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.publication-content p, .exhibition-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.publication-meta, .exhibition-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #888;
}

.publication-image, .exhibition-image {
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.publication-image img, .exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design for Pub & Exhib */
@media (max-width: 1024px) {
    .facebook-post-embed iframe {
        max-width: 450px;
        
    }
    
    .publications-grid, .exhibitions-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item, .exhibition-item {
        flex-direction: column;
    }
    
    .publication-image, .exhibition-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .pub-exhib-header h1 {
        font-size: 2rem;
    }
    
    .frame-header h2 {
        font-size: 1.5rem;
    }
    
    .facebook-post-embed iframe {
        max-width: 100%;
    }
    
    .facebook-posts-grid {
        max-width: 90%;
    }
    
    .publication-content, .exhibition-content {
        padding: 20px;
    }
    
    .publication-content h4, .exhibition-content h4 {
        font-size: 1.1rem;
    }
    
    .publications-section h3, .exhibitions-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .facebook-posts-grid {
        gap: 15px;
    }
    .facebook-post-embed iframe {
        max-width: 100%;
    }

    .facebook-post-embed iframe {
        max-width: 100%;
    }
    
    .facebook-posts-grid {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .pub-exhib-section {
        margin: 10px;
        padding: 30px 0;
    }
    
    .publication-content, .exhibition-content {
        padding: 15px;
    }
}

/* Slide subtitle styling */
.slide-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.3;
    color: rgba(255,255,255,0.9);
}

/* Responsive slide subtitle */
@media (max-width: 960px) {
    .slide-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .slide-content h2 {
        font-size: 1.2rem;
    }
}

/* Mobile Sidebar Navigation & Footer Tweaks */
@media (max-width: 960px) {
    /* Position hamburger top-left */
    .navbar-toggle-wrapper {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1001;
    }
    .navbar-toggle {
        display: block;
    }

    /* Add left padding to container just enough for button width */
    .header .header-main-inner .container {
        padding-left: 42px; /* just enough for button plus small gap */
    }

    /* Hide desktop primary menu to prevent horizontal overflow */
    /* Hide desktop primary menu but keep sidebar copy visible */
    .header-main-inner .builder-item--primary-menu {
        display: none !important;
    }

    /* Reduce header height */
    .header-main-inner {
        min-height: 44px;
        padding: 0.2rem 0; /* more compact header */
    }

    /* Center logo in mobile header */
    .header .builder-item--logo {
        flex: 1;
        text-align: center;
    }
    .header .title-with-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Stack sidebar nav items vertically */
    #header-menu-sidebar .nav-ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem; /* tighter spacing between items */
    }
    #header-menu-sidebar .header-menu-sidebar-inner {
        padding-top: 2.5rem; /* ensure first link clears toggle button */
    }
    #header-menu-sidebar .nav-ul .menu-item {
        width: 100%;
    }
    #header-menu-sidebar .nav-ul .menu-item a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
    }

    /* Mobile Submenu Slide-Down Styles */
    #header-menu-sidebar .menu-item-has-children {
        position: relative;
    }
    
    #header-menu-sidebar .sub-menu {
        position: static;
        transform: none;
        left: auto;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 4px;
        padding: 0;
        margin: 0.5rem 0 0 1rem;
        border-left: 2px solid var(--primary-color);
        max-height: 0;
        min-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        min-width: auto;
    }
    
    #header-menu-sidebar .menu-item-has-children.submenu-active .sub-menu {
        max-height: 200px;
        opacity: 1;
        padding: 0.25rem 0;
    }
    
    #header-menu-sidebar .menu-item-has-children:not(.submenu-active) .sub-menu {
        max-height: 0;
        opacity: 0;
        padding: 0;
        margin: 0.5rem 0 0 1rem;
    }
    
    #header-menu-sidebar .sub-menu .menu-item a {
        padding: 0.5rem 1rem;
        color: #666;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    #header-menu-sidebar .sub-menu .menu-item:last-child a {
        border-bottom: none;
    }
    
    #header-menu-sidebar .sub-menu .menu-item a:hover {
        background: rgba(var(--primary-color-rgb), 0.08);
        color: var(--primary-color);
        padding-left: 1.2rem;
    }

    /* Mobile submenu caret visibility and styling */
    #header-menu-sidebar .menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    #header-menu-sidebar .menu-item-has-children .caret {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        min-height: 20px;
        cursor: pointer;
        transition: transform 0.3s ease;
        margin-left: auto;
        padding: 2px;
        border-radius: 3px;
        background: transparent;
    }
    
    #header-menu-sidebar .menu-item-has-children .caret:hover {
        background: rgba(var(--primary-color-rgb), 0.1);
    }
    
    #header-menu-sidebar .menu-item-has-children .caret svg {
        width: 14px;
        height: 14px;
        fill: #999;
        transition: all 0.3s ease;
    }
    
    #header-menu-sidebar .menu-item-has-children.submenu-active .caret svg {
        transform: rotate(180deg);
        fill: var(--primary-color);
    }

    /* Disable hover effects on mobile submenu, but don't override submenu-active */
    #header-menu-sidebar .menu-item-has-children:hover:not(.submenu-active) .sub-menu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
    }
}

@media (max-width: 768px) {
    /* Footer adjustments for smaller screens */
    .site-footer {
        padding: 2rem 1rem;
    }
    .site-footer .hfg-grid-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-social-icons {
        margin-bottom: 1.5rem;
    }
    .footer-bottom-inner {
        flex-direction: column;
    }
    .component-wrap p {
        font-size: 0.8rem;
    }
}


/* Language Selector Responsive */
@media (max-width: 960px) {
    .language-selector-wrapper {
        top: 10px;
        right: 15px;
    }
    
    .language-selector {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .language-selector-wrapper {
        top: 8px;
        right: 10px;
    }
    
    .language-selector {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}

/* Mobile Responsive - Stack social media frames vertically */
@media (max-width: 768px) {
    .facebook-posts-grid {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
    }
    
    .facebook-post-embed,
    .twitter-post-embed {
        max-width: 100%;
        width: 100%;
    }
    
    .facebook-post-embed iframe,
    .twitter-post-embed iframe {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Facebook Lazy Loading Styles */
.facebook-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.facebook-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.facebook-post-embed.loaded {
    transition: opacity 0.3s ease-in-out;
}

/* Mobile submenu caret visibility and styling */
#header-menu-sidebar .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
    
#header-menu-sidebar .menu-item-has-children .caret {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: auto;
    padding: 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}
    
#header-menu-sidebar .menu-item-has-children .caret:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}
    
#header-menu-sidebar .menu-item-has-children .caret svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}
    
#header-menu-sidebar .menu-item-has-children.submenu-active .caret svg {
    transform: rotate(180deg);
}
