/* Public site styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
    padding-top: 60px;
    padding-bottom: 65px;
}

body.home-page {
    overflow: auto;
    height: auto;
    padding-top: 60px;
    padding-bottom: 65px;
}

/* Navigation */
.main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #2c3e50;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.lang-selector {
    position: relative;
}

.lang-dropdown-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(44, 62, 80, 0.15);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.lang-dropdown-toggle:hover {
    border-color: #3498db;
    transform: scale(1.05);
}

.lang-dropdown-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
}

.lang-dropdown-menu.show {
    display: flex;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.lang-dropdown-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

.lang-dropdown-item.active {
    background: rgba(52, 152, 219, 0.2);
    font-weight: 600;
}

.lang-dropdown-item img {
    width: 30px;
    height: 21px;
    border-radius: 3px;
    object-fit: cover;
}

/* Mobile logo - show on all screens now */
.mobile-logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.mobile-logo img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.mobile-logo-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

body.home-page .mobile-logo {
    background: rgba(44, 62, 80, 0.85);
}

/* Main content */
.main-content {
    min-height: calc(100vh - 120px);
}

/* Home page */
.home-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.video-section {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.portrait-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 9/16;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.content-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Page container */
.page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Markdown content styling */
.content-section h1,
.page-content h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.content-section h2,
.page-content h2 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-section h3,
.page-content h3 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.content-section p,
.page-content p {
    margin-bottom: 1rem;
}

.content-section ul,
.page-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.content-section strong,
.page-content strong {
    color: #e74c3c;
    font-weight: 600;
}

.content-section code,
.page-content code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* New Homepage with Video Background */
.home-container-new {
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.video-background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gradient-overlay {
    display: none;
}

.home-content {
    position: relative;
    top: 65vh;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
    overflow-y: visible;
    overflow-x: hidden;
}

.home-page .main-footer {
    display: none;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

.welcome-card img,
.latest-news-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1rem auto;
}

.latest-news-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.latest-news-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.latest-news-content h3 {
    margin-bottom: 0.5rem;
}

.latest-news-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.latest-news-content h3 a:hover {
    color: #3498db;
}

.news-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.news-summary {
    margin: 1.5rem 0;
    color: #555;
}

.read-full-article {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.read-full-article:hover {
    color: #2980b9;
    transform: translateX(5px);
}

/* News List Page */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.news-header {
    margin-bottom: 1rem;
}

.news-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.news-header h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.news-header h2 a:hover {
    color: #3498db;
}

.news-excerpt {
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    color: #2980b9;
    transform: translateX(3px);
}

.no-news {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
}

.pagination-link {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-link:hover {
    background-color: #3498db;
    color: white;
}

.pagination-info {
    color: #7f8c8d;
}

/* Individual News Article */
.article-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
}

.news-article {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.article-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.article-meta .separator {
    margin: 0 0.5rem;
}

.article-meta .author {
    color: #555;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #34495e;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.back-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.back-link:hover {
    color: #2980b9;
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .video-background {
        width: 400px;
    }

    .gradient-overlay {
        left: 400px;
        width: 150px;
    }

    .home-content {
        left: 550px;
    }

    .home-page .main-footer {
        left: 550px;
    }
}

/* Mobile & Tablet - Bottom Navigation */
@media (max-width: 768px) {
    /* Reset body for mobile */
    body {
        padding-bottom: 55px;
        padding-top: 60px;
    }

    body.home-page {
        overflow: auto;
        height: auto;
        padding-bottom: 55px;
        padding-top: 0;
    }

    /* Mobile logo header */
    .mobile-logo {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(44, 62, 80, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 1rem;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .mobile-logo img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        object-fit: cover;
    }

    .mobile-logo-text {
        color: white;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    body.home-page .mobile-logo {
        background: transparent;
        box-shadow: none;
    }

    /* Move navigation to bottom */
    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 1000;
        padding: 0.3rem 0.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    }

    .nav-left {
        flex: 1;
        justify-content: center;
    }

    .nav-right {
        flex: 0;
        margin-left: 0.5rem;
    }

    .nav-menu {
        gap: 0.25rem;
        width: 100%;
        justify-content: space-around;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        flex: 1;
        text-align: center;
    }

    .nav-menu a {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.3rem 0.15rem;
        font-size: 0.65rem;
        white-space: nowrap;
        color: #2c3e50;
        font-weight: 500;
    }

    .nav-menu a.active {
        color: #3498db;
    }

    .nav-menu a::before {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }

    /* Icons for menu items */
    .nav-menu li:nth-child(1) a::before { content: "🏠"; }
    .nav-menu li:nth-child(2) a::before { content: "🍽️"; }
    .nav-menu li:nth-child(3) a::before { content: "📰"; }
    .nav-menu li:nth-child(4) a::before { content: "📧"; }

    /* Language dropdown on mobile */
    .lang-selector {
        position: relative;
    }

    .lang-dropdown-toggle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid rgba(44, 62, 80, 0.2);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        transition: all 0.3s;
        padding: 0;
    }

    .lang-dropdown-toggle:hover {
        border-color: #3498db;
        transform: scale(1.05);
    }

    .lang-dropdown-menu {
        position: absolute;
        bottom: 100%;
        right: 0;
        margin-bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 0.5rem;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 150px;
    }

    .lang-dropdown-menu.show {
        display: flex;
    }

    .lang-dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        text-decoration: none;
        color: #2c3e50;
        font-size: 0.9rem;
        transition: all 0.3s;
    }

    .lang-dropdown-item:hover {
        background: rgba(52, 152, 219, 0.1);
    }

    .lang-dropdown-item.active {
        background: rgba(52, 152, 219, 0.2);
        font-weight: 600;
    }

    .lang-dropdown-item img {
        width: 28px;
        height: 20px;
        border-radius: 3px;
        object-fit: cover;
    }

    /* Main content adjustments */
    .main-content {
        min-height: calc(100vh - 55px);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Homepage mobile layout */
    body.home-page .video-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 0;
    }

    .gradient-overlay {
        display: none;
    }

    body.home-page .home-content {
        position: relative;
        top: 65vh;
        left: 0;
        right: 0;
        bottom: auto;
        padding: 1.5rem;
        padding-bottom: 3rem;
        max-width: 100%;
        overflow-y: visible;
        background: transparent;
        min-height: 20vh;
        z-index: 1;
    }

    body.home-page .main-footer {
        display: none;
    }

    .welcome-card,
    .latest-news-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* Other pages mobile layout */
    .page-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .page-content {
        padding: 1.5rem;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .news-article {
        padding: 1.5rem;
    }

    .home-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .video-section {
        position: static;
    }

    .content-section h1,
    .page-content h1 {
        font-size: 1.8rem;
    }

    .content-section h2,
    .page-content h2 {
        font-size: 1.4rem;
    }

    /* News list mobile */
    .news-list {
        gap: 1.5rem;
    }

    .news-item {
        padding: 1.5rem;
    }

    .news-header h2 {
        font-size: 1.4rem;
    }
}
