/* ===== GENERAL STYLES ===== */
/* Form status styles */
#form-status {
    display: none;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

:root {
    --primary-color: #e30a17;
    /* Turkish red */
    --secondary-color: #002a5c;
    /* Dark blue */
    --accent-color: #bc002d;
    /* Japanese red */
    --light-color: #f5f5f5;
    --dark-color: #333333;
    --grey-color: #666666;
    --light-grey: #e0e0e0;
    --white-color: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid var(--light-grey);
}

.flags .lang-title {
    color: var(--grey-color);
    font-size: 1.1em;
}

.flags a {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--dark-color);
    text-decoration: none;
}

.flags a:hover {
    opacity: 1;
    background-color: var(--light-color);
}

.flags a.active-lang {
    opacity: 1;
    background-color: rgba(227, 10, 23, 0.05);
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.flags .lang-text {
    font-size: 12px;
    line-height: 1;
}

.flags img {
    height: 12px;
    width: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.language-btn:hover {
    background-color: var(--light-color);
}

.current-lang {
    font-weight: 600;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
    width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.language-dropdown li:hover {
    background-color: var(--light-color);
}

.language-dropdown li.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    vertical-align: middle;
}

.logo-text .logo-org {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text .logo-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 0.3px;
}

.logo .flag-icon {
    height: 34px;
    margin-right: 10px;
}

.main-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav .nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-break: keep-all;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO BANNER STYLES ===== */
.hero-banner {
    background: linear-gradient(rgba(0, 42, 92, 0.8), rgba(227, 10, 23, 0.8)), url('https://images.unsplash.com/photo-1494412519320-aa613dfb7738?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') center/cover no-repeat;
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.hero-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--white-color);
    opacity: 0.8;
}

.breadcrumbs a:hover {
    opacity: 1;
}

/* ===== INTRO SECTION STYLES ===== */
.intro-section {
    padding: 50px 0;
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--light-color);
    padding: 12px 20px;
    border-radius: 4px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    word-break: keep-all;
}

.quick-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.quick-link i {
    font-size: 16px;
}

/* ===== CONTENT SECTION STYLES ===== */
.content-section {
    padding: 60px 0;
    border-top: 1px solid var(--light-grey);
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.document-links,
.external-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.document-link,
.external-link,
.product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--light-color);
    border-radius: 4px;
    transition: var(--transition);
}

.document-link:hover,
.external-link:hover,
.product-link:hover {
    background-color: var(--light-grey);
}

.document-link i,
.external-link i,
.product-link i {
    color: var(--primary-color);
    font-size: 18px;
}

.text-link {
    color: var(--primary-color);
    font-weight: 500;
}

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

/* ===== PRODUCT GUIDES STYLES ===== */
.product-guides {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.guides-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== CONTACT STYLES ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-logo .flag-icon {
    height: 34px;
    margin-right: 10px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo-text small {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-grey);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1250px) {
    .section-title {
        font-size: 24px;
    }

    .hero-banner h1 {
        font-size: 36px;
    }

    .intro-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 1250px) {
    .menu-toggle {
        display: block;
    }

    .main-nav .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white-color);
        width: 250px;
        height: calc(100vh - 70px);
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .main-nav .nav-links.active {
        right: 0;
    }

    .header-right {
        gap: 10px;
    }

    .hero-banner {
        padding: 60px 0;
    }

    .hero-banner h1 {
        font-size: 30px;
    }

    .quick-links {
        flex-direction: column;
    }

    .product-guides {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 22px;
    }

    .hero-banner h1 {
        font-size: 26px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== POPUP STYLES ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-container {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 22px;
    color: var(--secondary-color);
}

.popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--grey-color);
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--dark-color);
}

.popup-content p {
    margin-bottom: 15px;
}

/* ===== ANNOUNCEMENT STYLES ===== */
.announcement {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
}

.announcement-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.announcement-date {
    font-size: 14px;
    color: var(--grey-color);
    margin-bottom: 15px;
}

.announcement p {
    margin-bottom: 10px;
}

/* ===== DROPDOWN MENU STYLES ===== */
.main-nav .nav-links .dropdown {
    position: relative;
}

.main-nav .nav-links .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    min-width: 240px;
    box-shadow: var(--shadow);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    list-style: none;
    z-index: 1010;
    border-top: 3px solid var(--primary-color);
}

.main-nav .nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: var(--dark-color);
    font-weight: 500;
    white-space: nowrap;
    /* Reset styles from main nav links */
    border: none !important;
    border-radius: 0 !important;
}

.dropdown-menu li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Add dropdown arrow */
.dropdown>a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown>a .fa-chevron-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover>a .fa-chevron-down {
    transform: rotate(180deg);
}