/* Basic Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo a {
    color: white;
    text-decoration: none;
    display: block;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation > ul {
    position: relative;
}

.main-navigation li {
    position: relative;
    white-space: nowrap;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
    display: inline-block;
}

.main-navigation a:hover {
    color: #3498db;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle .caret {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown.open .dropdown-toggle .caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    margin-left: 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown-menu.show {
    pointer-events: auto;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, padding-left 0.3s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #2c3e50;
    padding-left: 2rem;
    color: #3498db;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Main Content Layout */
.main-content {
    background-color: white;
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content-wrapper.with-sidebar {
    grid-template-columns: 1fr 300px;
}

/* Content Section */
.content-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-width: 0;
}

.content-section img,
.content-section video {
    max-width: 100%;
    height: auto;
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-section h3 {
    color: #34495e;
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

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

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

.content-section li {
    margin-bottom: 0.4rem;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* News/Blog Section */
.news-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-section h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.news-section .section-subtitle {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.news-category:hover {
    background-color: #2980b9;
    color: white;
}

.news-item h3 {
    color: #2c3e50;
    margin: 1rem 0;
}

.news-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

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

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

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Post meta and tags */
.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta-sep {
    margin: 0 0.5rem;
}

.post-date {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.post-tag {
    display: inline-block;
    background-color: #ecf0f1;
    color: #555;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.post-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.post-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: 4px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.post-gallery img:hover {
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .post-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.back-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Sidebar Styles */
.sidebar {
    background-color: white;
}

.sidebar-widget {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.widget-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #3498db;
}

/* Team Member Styles */
.team-member {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.team-member:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.team-member h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.team-member p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #555;
}

.team-member a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.team-member a:hover {
    color: #2980b9;
    text-decoration: underline;
}

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

/* Page Header Section (for content pages) */
.page-header-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/page-header-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-header-section .page-title {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-footer p {
    margin-bottom: 0.5rem;
}

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

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #2c3e50;
        margin-top: 0.5rem;
        margin-left: 1rem;
        border-left: 3px solid #3498db;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 1.5rem;
    }
    
    .content-wrapper.with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section .tagline {
        font-size: 1.2rem;
    }
    
    .page-header-section .page-title {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.lang-switcher .lang-active {
    color: #3498db;
    font-weight: bold;
    font-size: 0.9rem;
}

.lang-switcher .lang-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.lang-switcher .lang-link:hover {
    color: white;
}
