/* css/style.css */
:root {
    --primary-color: #005bbb;
    --secondary-color: #ffd500;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fff;
    color: var(--dark-gray);
    line-height: 1.6;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1 0 auto;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    border-bottom: 5px solid var(--secondary-color);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    opacity: 0.95;
}

.logo-img {
    height: 70px;
    width: 70px;
    border: 2px solid black;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 3px;
}

.logo-img img {
    max-height: 100%;
    max-width: 100%;
    display: block;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--secondary-color);
    color: var(--dark-gray);
}

.main-nav {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 0;
    margin-top: 5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    flex: 1;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    padding: 6px 8px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
    width: 100%;
    font-size: 0.95rem;
    min-height:36px;
}

.main-nav li:last-child a {
    border-right: none;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--secondary-color);
    color: var(--dark-gray);
}

/* Main Content Layout */
.main-content {
    display: flex;
    margin: 30px 0;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    flex: 0 0 300px;
}

.sidebar-section {
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-title {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-menu a:hover {
    background-color: rgba(0, 91, 187, 0.1);
    padding-left: 25px;
}

.sidebar-menu a i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Image sections in sidebar */
.image-section {
    padding: 15px;
    text-align: center;
}

.image-section img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
}

.image-section h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.image-section p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.image-section a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Small links section */
.small-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

.small-link {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.small-link:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 91, 187, 0.05);
}

.small-link a {
    color: var(--dark-gray);
    text-decoration: none;
    display: block;
}

.content {
    flex: 1;
}

.content-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.news-item, .article-item, .link-item {
    background-color: var(--light-gray);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-title, .article-title, .link-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.news-date, .article-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-excerpt, .article-excerpt, .link-description {
    margin-bottom: 15px;
}

.read-more, .details-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover, .details-link:hover {
    text-decoration: underline;
}

.about-center {
    background-color: var(--light-gray);
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.about-center h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.about-center h3 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.about-center ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.about-center li {
    margin-bottom: 8px;
}

.page-description {
    background-color: var(--light-gray);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.link-category {
    margin-bottom: 30px;
}

.category-title {
    color: var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--secondary-color);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 1;
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        flex: 1 0 33%;
    }
    
    .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .main-nav li {
        flex: 1 0 50%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .small-links {
        grid-template-columns: 1fr;
    }
}