/* General Body and Container Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Color Palette */
:root {
    --primary-blue: #2B4C8C;
    --action-green: #28A745;
    --industrial-slate: #1A1A1A;
    --clean-white: #FFFFFF;
    --light-gray: #e0e0e0;
}

/* Header */
header {
    background: var(--primary-blue);
    color: var(--clean-white);
    padding: 1rem 0;
    border-bottom: 3px solid var(--action-green);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

header .logo img {
    height: 150px; /* Adjust as needed */
    vertical-align: middle;
}

header nav {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow nav to take available space */
    justify-content: flex-end;
}

.main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow nav items to wrap */
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--clean-white);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--action-green);
}

.language-switcher {
    margin-left: 30px;
}

.language-switcher select {
    background-color: var(--action-green);
    color: var(--clean-white);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Hero Section (Homepage) */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/img/sunsetistanbul.jpg') no-repeat center center/cover;
    color: var(--clean-white);
    text-align: center;
    padding: 100px 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--clean-white);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light-gray);
}

.btn-primary {
    display: inline-block;
    background: var(--action-green);
    color: var(--clean-white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #218838; /* Slightly darker green */
}

/* Page Hero (Internal Pages) */
.page-hero {
    background-color: var(--primary-blue);
    color: var(--clean-white);
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
}

.page-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 40px 0;
    background-color: var(--clean-white);
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section h3 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--action-green);
    padding-bottom: 10px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section ul li {
    margin-bottom: 8px;
}

/* Two-Column Layout */
.two-column-layout {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px; /* Space between columns */
}

.two-column-layout .text-content,
.two-column-layout .image-content {
    flex: 1; /* Each takes equal width */
}

.two-column-layout.reverse-columns {
    flex-direction: row-reverse; /* Image on left, text on right */
}

.two-column-layout .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.full-width-content {
    margin-bottom: 40px;
}


/* Footer */
footer {
    background: var(--industrial-slate);
    color: var(--clean-white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer .footer-links a {
    color: var(--action-green);
    text-decoration: none;
    margin: 0 10px;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

/* Section Placeholder */
.section-placeholder {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin-bottom: 30px;
}

.section-placeholder h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-placeholder p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }

    .main-nav li {
        margin: 10px 0;
    }

    .language-switcher {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .page-hero h2 {
        font-size: 2rem;
    }

    .two-column-layout {
        flex-direction: column;
        text-align: center;
    }

    .two-column-layout.reverse-columns {
        flex-direction: column; /* Revert to column for small screens */
    }

    .two-column-layout .text-content,
    .two-column-layout .image-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .page-hero h2 {
        font-size: 1.8rem;
    }

    .content-section h3 {
        font-size: 1.7rem;
    }
}

/* Product Table Styling */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.product-table thead tr {
    background-color: var(--primary-blue);
    color: #ffffff;
    text-align: left;
}

.product-table th, .product-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

.product-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.highlight-row {
    border-left: 5px solid var(--action-green);
    background-color: #f9fff9 !important;
}

.photo-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--primary-blue);
    border-radius: 8px;
    color: var(--primary-blue);
    font-weight: bold;
}

.photo-placeholder span {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666;
    margin-top: 5px;
}

/* Navigation Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--industrial-slate);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--primary-blue);
    color: var(--action-green);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.product-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--action-green);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.btn-secondary {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--primary-blue);
    padding: 8px 20px;
    border-radius: 5px;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.nav-sub-header {
    background: #f0f0f0;
    color: var(--primary-blue);
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Enhanced Table Styling for Double Headers */
.product-table th {
    text-align: center;
    vertical-align: middle;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Blog Grid & Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image-placeholder {
    height: 200px;
    background: var(--industrial-slate);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    font-size: 0.75rem;
    color: var(--action-green);
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Gallery Bar Layout */
.gallery-row {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* Allows scrolling on mobile if many images */
    padding: 20px 0;
}

.gallery-row img {
    width: 200px; /* Adjust size as needed */
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.gallery-row img:hover {
    border-color: var(--action-green);
    transform: scale(1.05);
}

/* Lightbox Logic (Pure CSS) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border: 3px solid #fff;
}

.lightbox:target {
    display: block; /* Shows the lightbox when the link is clicked */
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    text-decoration: none;
}

/* Ensure the carousel container fits the page */
.photo-carousel-container {
    margin: 30px auto;
    width: 100%;
    max-width: 1100px;
}

/* Force three columns */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Control image height and prevent overflow */
.carousel-slot {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px; /* This prevents the "very big" image issue */
    background: #000;
}

.carousel-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops the image to fit the box perfectly */
    transition: opacity 1s ease-in-out;
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 48, 87, 0.85);
    color: #fff;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
}
