/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Language-specific font families */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* English and Vietnamese - Roboto */
body.lang-en,
body.lang-vi {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Japanese - Noto Serif JP */
body.lang-ja {
    font-family: 'Noto Serif JP', serif, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #2c5aa0;
}

h2 {
    font-size: 2rem;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.btn-primary:hover {
    background-color: #1e3d6f;
    border-color: #1e3d6f;
}

.btn-secondary {
    background-color: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-secondary:hover {
    background-color: #2c5aa0;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-outline:hover {
    background-color: #2c5aa0;
    color: white;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
    min-height: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.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);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 55px 0 0px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 500px;
    background-image: url(/images/hero-bg.webp);
    background-position: right;
    background-repeat: no-repeat;
    background-color: #fcfcfe;
    padding-top: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: #2c5aa0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.hero-image img {
    max-width: 600px;
    height: auto;
}

/* Homepage News Section */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-section .news-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.news-section .news-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    gap: 0 !important;
    grid-template-columns: none !important;
}

.news-section .news-date {
    color: #2c5aa0;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.news-section .news-title {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.news-section .news-excerpt {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
    margin: 0;
}

/* Difference Section */
.difference-section {
    padding: 80px 0;
    background-color: white;
}

.difference-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.difference-text h2 {
    text-align: left;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.difference-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.difference-image img {
    width: 100%;
    height: auto;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-content p {
    color: #666;
    line-height: 1.6;
}

/* Portfolios Section */
.portfolios-section {
    padding: 80px 0;
    background-color: white;
}

.portfolios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
}

.portfolios-footer {
    text-align: center;
}

.news-footer {
    text-align: center;
}

/* Clients Section */
.clients-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.clients-grid a {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.clients-grid a:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.client-logo {
    /* max-width: 120px; */
    /* height: 60px; */
    object-fit: contain;
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #bdc3c7;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #3498db;
}

.footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

/* Mobile Language Switcher Styles */
.desktop-only {
    display: flex;
}

.mobile-language-switcher {
    display: none;
}


/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.desktop-only {
    display: flex;
}

.lang-link {
    display: inline-block;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.lang-link:hover {
    opacity: 0.7;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

/* About Page Styles */
.about-page {
    padding-top: 80px;
    /* Account for fixed header */
}

.page-header {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    color: #2c5aa0;
    font-size: 3rem;
    margin: 0 0 1rem 0;
}

.page-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.company-info {
    padding: 80px 0;
    background-color: white;
}

.company-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.company-table td {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.company-table tr:last-child td {
    border-bottom: none;
}

.company-table .label {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c5aa0;
    width: 200px;
    vertical-align: top;
}

.company-table .value {
    color: #333;
    line-height: 1.6;
}

.map-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.contact-actions {
    padding: 80px 0;
    background-color: white;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Single Page Styles */
.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.article-header h1 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    margin-left: 1rem;
}

.article-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #2c5aa0;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.article-tags {
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.tag {
    display: inline-block;
    background-color: #2c5aa0;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* List Page Styles */
.list-header {
    text-align: center;
    padding: 120px 20px 60px;
}

.list-header h1 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.list-description {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.list-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.list-item,
.taxonomy-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.list-item h2,
.taxonomy-item h2 {
    margin-bottom: 0.5rem;
}

.list-item h2 a,
.taxonomy-item h2 a {
    color: #2c5aa0;
    text-decoration: none;
}

.list-item h2 a:hover,
.taxonomy-item h2 a:hover {
    text-decoration: underline;
}

.item-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.item-summary {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

.taxonomy-header {
    text-align: center;
    padding: 120px 20px 60px;
}

.taxonomy-header h1 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.taxonomy-header p {
    color: #666;
}

.taxonomy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar .container {
        position: relative;
        justify-content: space-between;
        min-height: 40px;
        align-items: center;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        left: 0;
        z-index: 2;
    }

    /* Mobile language switcher - visible on mobile header */
    .mobile-language-switcher {
        display: flex;
        gap: 8px;
        align-items: center;
        z-index: 2;
    }

    .mobile-lang-link {
        display: inline-block;
        padding: 4px;
        border-radius: 4px;
        transition: opacity 0.3s ease;
    }

    .mobile-lang-link:hover {
        opacity: 0.7;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        text-align: center;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        background: #ffffffc4;
        border-radius: 10px;
        padding: 10px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .difference-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolios-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About page responsive */
    .page-title {
        font-size: 2rem;
    }

    .company-table .label {
        width: auto;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #dee2e6;
    }

    .company-table .value {
        display: block;
        padding-top: 10px;
    }

    .company-table td {
        padding: 15px;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container iframe {
        height: 300px;
    }

    /* Services page responsive */
    .service-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .service-tab {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .features-table .feature-title {
        width: auto;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #dee2e6;
    }

    .features-table .feature-description {
        display: block;
        padding-top: 10px;
    }

    /* Portfolios page responsive */
    .portfolio-filters {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
    }

    .portfolio-filter {
        border-right: none !important;
        border-bottom: 2px solid #e9ecef;
        min-width: auto;
    }

    .portfolio-filter:last-child {
        border-bottom: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .portfolio-title {
        font-size: 2rem;
    }

    .portfolio-subtitle {
        font-size: 1rem;
    }

    .details-table .detail-label {
        width: auto;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #dee2e6;
    }

    .details-table .detail-value {
        display: block;
        padding-top: 10px;
    }

    .details-table td {
        padding: 1.5rem;
    }

    /* News page responsive */
    .news-item {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .news-date {
        text-align: left;
        margin-bottom: 1rem;
    }

    .news-content {
        margin-top: 0;
    }

    .news-date-text {
        font-size: 1rem;
    }

    .news-title {
        font-size: 1.25rem;
    }

    /* Contact page responsive */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 100%;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .contact-section-title {
        font-size: 1.25rem;
    }

    .contact-details {
        gap: 1.25rem;
    }

    .contact-item {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .contact-icon {
        font-size: 1rem;
        min-width: 25px;
        margin-top: 2px;
    }

    .contact-text {
        width: 100%;
    }

    .contact-value {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }

    .form-textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        min-width: 120px;
        width: 100%;
        text-align: center;
    }
}

/* Services Page Styles */
.services-page {
    padding-top: 80px;
}

.services-tabs-section {
    padding: 60px 0 80px;
    background-color: white;
}

.services-page .service-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background-color: white;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-tab:not(:last-child) {
    border-right: 2px solid #e9ecef;
}

.service-tab:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

.service-tab.active {
    background-color: #2c5aa0;
    color: white;
}

.service-content-area {
    max-width: 1000px;
    margin: 0 auto;
}

/* Services page specific styles */
.services-page .service-content {
    display: none;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.services-page .service-content.active {
    display: block;
}

.services-page .service-header {
    padding: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.services-page .service-title {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.service-description {
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
}

.service-features {
    padding: 0;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.features-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.features-table tr:last-child td {
    border-bottom: none;
}

.feature-title {
    background-color: #f8f9fa;
    color: #2c5aa0;
    font-weight: bold;
    width: 300px;
    font-size: 1.1rem;
}

.feature-description {
    color: #333;
    line-height: 1.6;
}

/* Portfolios Page Styles */
.portfolios-page {
    padding-top: 80px;
}

.portfolio-filters-section {
    padding: 60px 0 80px;
    background-color: white;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.portfolio-filter {
    flex: 1;
    padding: 1rem 1.5rem;
    background-color: white;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.portfolio-filter:not(:last-child) {
    border-right: 2px solid #e9ecef;
}

.portfolio-filter:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

.portfolio-filter.active {
    background-color: #2c5aa0;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.portfolio-item {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background-color: white;
    color: #2c5aa0;
}

.portfolio-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-title {
    color: #2c5aa0;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-client {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Detail Page Styles */
.portfolio-detail-page {
    padding-top: 80px;
}

.portfolio-header {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.portfolio-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.portfolio-title {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portfolio-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.portfolio-header .portfolio-link {
    display: inline-block;
    background-color: #2c5aa0;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.portfolio-header .portfolio-link:hover {
    background-color: #1e3d6f;
}

.portfolio-header .portfolio-image {
    height: auto;
}

.portfolio-header .portfolio-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-details {
    padding: 80px 0;
    background-color: white;
}

.details-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.details-table td {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.details-table tr:last-child td {
    border-bottom: none;
}

.detail-label {
    background-color: #f8f9fa;
    color: #2c5aa0;
    font-weight: bold;
    width: 200px;
    font-size: 1.1rem;
}

.detail-value {
    color: #333;
    line-height: 1.8;
}

.portfolio-not-found {
    padding: 120px 0 80px;
    text-align: center;
}

.portfolio-not-found h1 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.portfolio-not-found p {
    color: #666;
    margin-bottom: 2rem;
}

/* News Page Styles */
.news-page {
    padding-top: 80px;
}

.news-list-section {
    padding: 60px 0 80px;
    background-color: white;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

/* News page specific styles */
.news-page .news-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-page .news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-page .news-date {
    margin-bottom: 0.5rem;
}

.news-page .news-date-text {
    color: #2c5aa0;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.news-page .news-content {
    flex: 1;
}

.news-page .news-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.3;
    color: #333;
    text-align: left;
}

.news-page .news-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Page Styles */
.contact-page {
    padding-top: 80px;
}

.contact-info-section {
    padding: 60px 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card,
.contact-form-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
}

.contact-section-title {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.25rem;
    min-width: 30px;
    text-align: center;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.contact-value {
    color: #666;
    line-height: 1.5;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 1rem;
}

.submit-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 150px;
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
}

.submit-loading {
    opacity: 0.7;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Contact Actions */
.contact-actions {
    padding: 60px 0;
    background-color: white;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-buttons .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-buttons .contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-buttons h3 {
    color: #2c5aa0;
    margin: 0;
    font-size: 1.25rem;
}

.contact-buttons p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-buttons .btn {
    margin-top: 1rem;
}

/* Privacy Policy Page Styles */
.privacy-policy-page {
    padding-top: 80px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.privacy-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-wrapper h2 {
    color: #667eea;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.8rem;
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding-left: 15px;
    border-left: 4px solid #667eea;
}

.content-wrapper p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.content-wrapper ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-wrapper li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.content-wrapper strong {
    color: #333;
    font-weight: 600;
}

.content-wrapper a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .content-wrapper h2 {
        font-size: 1.4rem;
    }

    .content-wrapper h3 {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 100% !important;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem !important;
        margin: 0 1rem;
        word-break: break-word;
    }

    .contact-value {
        word-break: break-all;
        overflow-wrap: break-word;
    }

    .form-input,
    .form-textarea {
        width: 100% !important;
        box-sizing: border-box;
    }

    .submit-btn {
        width: 100% !important;
    }

    .contact-buttons {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem;
    }

    .contact-buttons .contact-item {
        width: 100% !important;
    }

    .map-container {
        margin: 0 1rem;
    }

    .contact-info-section {
        padding: 40px 0;
    }

    .contact-actions {
        padding: 40px 0;
    }

    .map-section {
        padding: 40px 0;
    }
}

.flag-icon {
    width: 24px;
    height: auto;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.desktop-only {
    display: flex;
}

.lang-link {
    display: inline-block;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.lang-link:hover {
    opacity: 0.7;
}

.mobile-lang-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-lang-link:hover {
    background-color: #f0f0f0;
}

.mobile-lang-link .flag-icon {
    width: 20px;
    height: auto;
}

.mobile-lang-link span {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-lang-switcher {
        display: block;
    }
}

.contact-form-description {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}