:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg-color);
}

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

.container-narrow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.7;
}

header {
    background-color: var(--header-bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    min-height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    /* Flex container for correct height calculation */
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: normal;
    /* Reset line-height for text */
    text-align: center;
}

.logo img {
    height: 100px;
    width: auto;
}

.site-name-sub,
.site-slogan {
    user-select: none;
    padding-top: 5px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .logo-container {
        align-items: center !important;
        text-align: center;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
    color: var(--white) !important;
    text-decoration: none !important;
}

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

.btn-primary:hover {
    background-color: #2472a4;
}

.btn-danger {
    background-color: var(--accent-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.card-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
}

.card-flex .card {
    flex: 0 0 360px;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}


.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-summary {
    color: #666;
    margin-bottom: 1rem;
}

.card-date {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 1rem;
}

footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(---footer-bg-color);
    text-decoration: none;
    opacity: 1;
    transition: all 0.1s ease;
}

.footer-section a:hover {
    font-weight: bold;
    opacity: 0.8;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social .social-icon {
    font-size: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

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

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
}

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

.pagination .active {
    background-color: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-nav li {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .slider {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

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

/* --- Extracted Styles from Partial Views --- */

/* Stats Section */
.stats-section {
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Grid Section */
.feature-grid {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.feature-text {
    padding: 0 20px 20px 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Feature Cards Section */
.feature-cards {
    padding: 60px 20px;
}

.feature-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-card-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.feature-card-image {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-image img {
    max-width: 100%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.feature-card-content {
    flex: 1;
}

.feature-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.feature-card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* CTA Banner Section */
.cta-banner {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #0066cc;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Quill Editor Content Styles (from layout) */
.card-content ul,
.card-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.card-content ul,
.card-content ol[data-list="bullet"],
.card-content ol li[data-list="bullet"] {
    list-style-type: disc;
}

.card-content ol:not([data-list="bullet"]),
.card-content ol[data-list="ordered"],
.card-content ol li[data-list="ordered"] {
    list-style-type: decimal;
}

.card-content table {
    width: 60%;
    border-collapse: collapse;
    margin: 1em 0;
    table-layout: fixed;
}

.card-content table th,
.card-content table td {
    border: 1px solid #ddd;
    padding: 0.5em 1em;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
    box-sizing: border-box;
    width: 50%;
}

.card-content table th {
    background-color: #f4f4f4;
}

.card-content li {
    margin: 0.5em 0;
}

.card-content strong {
    font-weight: 700;
}

.card-content em {
    font-style: italic;
}

.card-content u {
    text-decoration: underline;
}

.card-content s {
    text-decoration: line-through;
}

.card-content h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0.67em 0;
}

.card-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0.75em 0;
}

.card-content h3 {
    font-size: 1.17em;
    font-weight: 700;
    margin: 0.83em 0;
}

.card-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.card-content a:hover {
    text-decoration: none;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-auto-rows: 1fr;
}

.contact-grid .card {
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-grid .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-grid .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-grid h3 {
    color: #2c3e50;
    font-size: 1.35rem;
    font-weight: 600;
}

.contact-grid p {
    line-height: 1.6;
    color: #555;
}

.contact-grid strong {
    color: #333;
}

.contact-form {
    width: 100%;
}

.contact-form .form-group {
    width: 100%;
    margin-bottom: 1.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.feature-card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* CTA Banner Section */
.cta-banner {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #0066cc;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Quill Editor Content Styles (from layout) */
.card-content ul,
.card-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.card-content ul,
.card-content ol[data-list="bullet"],
.card-content ol li[data-list="bullet"] {
    list-style-type: disc;
}

.card-content ol:not([data-list="bullet"]),
.card-content ol[data-list="ordered"],
.card-content ol li[data-list="ordered"] {
    list-style-type: decimal;
}

.card-content table {
    width: 60%;
    border-collapse: collapse;
    margin: 1em 0;
    table-layout: fixed;
}

.card-content table th,
.card-content table td {
    border: 1px solid #ddd;
    padding: 0.5em 1em;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
    box-sizing: border-box;
    width: 50%;
}

.card-content table th {
    background-color: #f4f4f4;
}

.card-content li {
    margin: 0.5em 0;
}

.card-content strong {
    font-weight: 700;
}

.card-content em {
    font-style: italic;
}

.card-content u {
    text-decoration: underline;
}

.card-content s {
    text-decoration: line-through;
}

.card-content h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0.67em 0;
}

.card-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0.75em 0;
}

.card-content h3 {
    font-size: 1.17em;
    font-weight: 700;
    margin: 0.83em 0;
}

.card-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.card-content a:hover {
    text-decoration: none;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-auto-rows: 1fr;
}

.contact-grid .card {
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-grid .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-grid .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-grid h3 {
    color: #2c3e50;
    font-size: 1.35rem;
    font-weight: 600;
}

.contact-grid p {
    line-height: 1.6;
    color: #555;
}

.contact-grid strong {
    color: #333;
}

.contact-form {
    width: 100%;
}

.contact-form .form-group {
    width: 100%;
    margin-bottom: 1.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
    }
}

@media (max-width: 500px) {
    .contact-grid {
        gap: 1rem !important;
    }

    .contact-grid h3 {
        font-size: 1.2rem;
    }
}

/* 404 Error Page */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
}

.error-message {
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-thumbnails {
    height: 100px;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.lightbox-thumbnails img {
    height: 80px;
    width: 100px;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid transparent;
}

.lightbox-thumbnails img:hover {
    opacity: 0.8;
}

.lightbox-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary-color, #007bff);
    transform: scale(1.05);
}

/* Image Gallery Section */
.gallery-section {
    padding: 60px 0;
}

.gallery-wide-container {
    width: 100%;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-layout-grid .gallery-item img {
    height: 100%;
}

/* Grid Layout */
.gallery-layout-grid {
    display: grid;
    gap: 20px;
}

.gallery-layout-grid .gallery-item {
    margin-bottom: 0;
}

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

.gallery-layout-grid.gallery-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-layout-grid.gallery-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-layout-grid.gallery-col-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-layout-grid.gallery-col-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-layout-grid.gallery-col-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-layout-grid.gallery-col-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-layout-grid.gallery-col-9 {
    grid-template-columns: repeat(9, 1fr);
}

/* Masonry Layout (CSS Columns) */
.gallery-layout-masonry {
    column-gap: 20px;
    display: block;
}

.gallery-layout-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.gallery-layout-masonry.gallery-col-2 {
    column-count: 2;
}

.gallery-layout-masonry.gallery-col-3 {
    column-count: 3;
}

.gallery-layout-masonry.gallery-col-4 {
    column-count: 4;
}

.gallery-layout-masonry.gallery-col-5 {
    column-count: 5;
}

.gallery-layout-masonry.gallery-col-6 {
    column-count: 6;
}

.gallery-layout-masonry.gallery-col-7 {
    column-count: 7;
}

.gallery-layout-masonry.gallery-col-8 {
    column-count: 8;
}

.gallery-layout-masonry.gallery-col-9 {
    column-count: 9;
}

/* Responsive */
@media (max-width: 1200px) {

    .gallery-layout-grid.gallery-col-9,
    .gallery-layout-grid.gallery-col-8,
    .gallery-layout-grid.gallery-col-7,
    .gallery-layout-grid.gallery-col-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-layout-masonry.gallery-col-9,
    .gallery-layout-masonry.gallery-col-8,
    .gallery-layout-masonry.gallery-col-7,
    .gallery-layout-masonry.gallery-col-6 {
        column-count: 4;
    }
}

@media (max-width: 992px) {

    .gallery-layout-grid.gallery-col-5,
    .gallery-layout-grid.gallery-col-4,
    .gallery-layout-grid.gallery-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-layout-masonry.gallery-col-5,
    .gallery-layout-masonry.gallery-col-4,
    .gallery-layout-masonry.gallery-col-3 {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-layout-grid[class*="gallery-col-"] {
        grid-template-columns: 1fr;
    }

    .gallery-layout-masonry[class*="gallery-col-"] {
        column-count: 1;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* CTA Modal Styles */
.cta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cta-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-modal-overlay.active .cta-modal {
    transform: translateY(0);
}

.cta-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s;
}

.cta-modal-close:hover {
    color: #333;
}

.cta-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-right: 30px;
}

.cta-modal-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 1024px) {

    .container,
    .container-narrow {
        padding: 0 15px;
    }

    .card-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* Header & Navigation */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Layout Grids */
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .stats-grid,
    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Feature Cards */
    .feature-card-item {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-left: none;
        border-top: 4px solid #0066cc;
    }

    .feature-card-image {
        width: 100%;
        margin-bottom: 15px;
    }

    .feature-card-image img {
        max-height: 150px;
    }

    /* Slider */
    .slider {
        height: 350px !important;
        /* Force override inline styles if necessary, but ideally set via JS/Server */
    }

    .slide-content {
        width: 90%;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* General Utilities */
    .section-title {
        font-size: 1.75rem;
    }

    .card-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .card-flex .card {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 12px;
        padding: 5px 0;
    }

    .top-bar-content {
        gap: 5px;
    }

    .slider {
        height: 250px !important;
    }

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

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    /* Tables in content */
    .card-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    /* Modal */
    .cta-modal {
        width: 95%;
        padding: 20px;
    }


    .cta-modal-title {
        font-size: 20px;
    }
}

/* Responsive Map */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 1.5rem;
    background: #eee;
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Image Overlay Card Section - Modern Design */
.image-overlay-card-section {
    padding: 80px 0;
}

.overlay-cards-grid {
    display: grid;
    gap: 30px;
    padding: 20px 0;
}

/* Grid Column Systems */
.overlay-cards-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.overlay-cards-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.overlay-cards-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.overlay-cards-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Fallback & Flex Support */
.overlay-cards-grid.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.overlay-cards-grid.flex .overlay-card-item {
    flex: 1 1 250px;
    max-width: 350px;
}

.overlay-card-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Default Vertical Height */
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Horizontal Card Orientation */
.overlay-card-item.card-horizontal {
    /* Revert to standard overlay look but maybe shorter for horizontal feel? */
    flex-direction: column;
    height: 350px;
    /* Shorter than vertical 480px, giving a landscape feel */
    background-size: cover !important;
    background-position: center !important;
    background-color: transparent;
}

/* Gradient logic for horizontal - same as vertical */
.overlay-card-item.card-horizontal .overlay-gradient {
    width: 100%;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
}

.overlay-card-item.card-horizontal .overlay-card-content {
    width: 100%;
    margin-left: 0;
    height: auto;
    display: block;
    padding: 40px 30px;
    background-color: transparent;
    transform: translateY(10px);
}

/* Hover effects for horizontal */
.overlay-card-item.card-horizontal:hover {
    transform: translateY(-8px);
}

.overlay-card-item.card-horizontal:hover .overlay-card-content {
    transform: translateY(0);
}

.overlay-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.overlay-card-item:hover .overlay-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
}

.overlay-card-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.overlay-card-item:hover .overlay-card-content {
    transform: translateY(0);
}

.overlay-card-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.overlay-card-content p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.overlay-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overlay-card-btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.overlay-card-btn.dummy {
    pointer-events: none;
}

@media (max-width: 900px) {

    .overlay-cards-grid.cols-3,
    .overlay-cards-grid.cols-4,
    .overlay-cards-grid.cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 75%;
        /* 4:3 Aspect Ratio for mobile (taller) */
    }

    /* Force single column on mobile */
    .overlay-cards-grid.cols-2,
    .overlay-cards-grid.cols-3,
    .overlay-cards-grid.cols-4,
    .overlay-cards-grid.cols-5 {
        grid-template-columns: 1fr;
    }

    .overlay-card-item {
        height: 400px;
    }

    /* Horizontal cards on mobile */
    .overlay-card-item.card-horizontal {
        height: 400px;
    }

    .overlay-card-content h3 {
        font-size: 1.5rem;
    }
}

/* Cookie Consent Popup */
.cookie-consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: none;
    background-color: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    /* Remove border-radius for full width */
    padding: 20px 0;
    /* Vertical padding only, container handles horizontal */
    z-index: 9999;
    border-top: 5px solid var(--secondary-color);
    border-left: none;
}

.cookie-consent-popup .cookie-content {
    max-width: 1140px;
    /* Standard container width */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    flex: 1;
    min-width: 200px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
}

/* Map Placeholder */
.map-placeholder {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    height: 400px;
    width: 100%;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.map-placeholder p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    max-width: 80%;
}

/* Slogan Styling */
.logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Logo container a etiketinin altındaki elementler de ortalanacak */
.logo-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
}

.site-slogan {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: normal;
    text-align: center;
    cursor: default;
}