:root {
    --primary: #2e7d32;
    /* Rich, professional forest green */
    --primary-light: #388e3c;
    --secondary: #0d2e1a;
    /* Deep forest green for dark backgrounds */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container: 1140px;
    --header-height: 90px;
}

/* Bootstrap Overrides */
.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--primary) !important;
}

.nav-link {
    color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
.top-bar {
    background: #f1f1f1;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    margin-right: 15px;
    color: var(--text-light);
}

.lang-switcher a {
    margin-left: 10px;
    font-weight: 600;
}

header {
    height: var(--header-height);
    background: var(--white);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-catalog-btn {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-catalog-btn:hover {
    background: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Multi-level Dropdown Styles */
.nav-links li {
    position: relative;
    padding: 10px 0;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
}

.nav-links li:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 0 !important;
}

.dropdown a {
    display: block;
    padding: 12px 20px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
}

.dropdown a:hover {
    background: #f8fafc;
    color: var(--primary) !important;
    padding-left: 25px !important;
}

/* Submenu (Opens to the side) */
.dropdown .submenu {
    top: 0;
    left: 100%;
    margin-top: -10px;
}

.dropdown li:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown a i {
    float: right;
    font-size: 12px;
    margin-top: 4px;
}

/* Slider & Hero */
.slider-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
}

.slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease out 0.3s;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease out 0.5s;
}

.slide.active h1,
.slide.active p {
    transform: translateY(0);
    opacity: 1;
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--white);
    color: var(--primary);
}

.prev-arrow {
    left: 30px;
}

.next-arrow {
    right: 30px;
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Overlap Component */
.overlap-section {
    position: relative;
    z-index: 20;
    margin-top: -120px;
    /* Overlap effect */
}

.overlap-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: #f1f5f9;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.price-list-card {
    background: var(--primary);
    color: var(--white);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-list-card h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.price-list-card p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.price-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    width: fit-content;
    transition: var(--transition);
}

.price-btn:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 30px;
    gap: 20px;
    background: #edf2f7;
}

.p-card {
    background: var(--white);
    padding: 25px 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.p-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.p-card-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Feature Showcase Section */
.showcase-section {
    padding: 100px 0;
    background: #f8fafc;
    overflow: hidden;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.showcase-title {
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 25px;
}

.showcase-desc {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}

.features-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 50px;
}

.f-item {
    display: flex;
    gap: 15px;
}

.f-icon {
    min-width: 45px;
    height: 45px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.f-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.f-item p {
    font-size: 13px;
    color: #64748b;
}

.btn-dark {
    background: var(--secondary);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-dark:hover {
    background: var(--primary);
}

/* Circular Visual Effects */
.showcase-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img {
    max-width: 100%;
    position: relative;
    z-index: 5;
    transform: rotate(-10deg);
}

.circle-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    position: absolute;
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 50%;
    animation: pulseCircle 4s infinite ease-in-out;
}

.c1 {
    width: 300px;
    height: 300px;
}

.c2 {
    width: 500px;
    height: 500px;
    animation-delay: 1s;
}

.c3 {
    width: 700px;
    height: 700px;
    animation-delay: 2s;
}

@keyframes pulseCircle {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: #fff;
    /* Restored white for darker green */
}

/* Products Section */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    border: 1px solid #eee;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.product-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.product-item h3 {
    font-size: 18px;
    font-weight: 700;
}

/* Institutional */
.institutional {
    background: #f8f9fa;
}

.inst-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.inst-content {
    flex: 1;
}

.inst-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--primary);
}

.inst-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Institutional secondary */
.certificates {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cert-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cert-item {
    text-align: center;
    opacity: 0.6;
    transition: var(--transition);
}

.cert-item:hover {
    opacity: 1;
}

.cert-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Advantages Section (Akplas Style) */
.advantages-section {
    background: #0d2e1a;
    /* Dark green background as per image */
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.advantages-section h2 {
    color: var(--primary);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.advantages-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 60px;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.adv-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px;
    justify-content: center;
}

.adv-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.adv-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 25px;
    opacity: 0.8;
}

.adv-card h3 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 600;
}

.adv-number {
    position: absolute;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: #1a4d2e;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.adv-card:hover .adv-number {
    background: var(--primary);
    color: #0d2e1a;
}

/* Inner Pages Styles */
.page-header {
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header.mini {
    padding: 60px 0;
    text-align: left;
}

.breadcrumb-item a {
    color: var(--primary-light);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.cat-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.cat-link:hover,
.cat-link.active {
    color: var(--primary);
    padding-left: 10px;
}

.product-gallery .thumb.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.3);
}

.nav-tabs .nav-link {
    color: var(--text-light);
}

.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom-color: var(--white);
}

.contact-info-box {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 74, 153, 0.2);
}

/* Kurumsal & İletişim Ek Stiller */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.history-img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--primary-light);
}

.vision-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    border-top: 5px solid var(--primary);
    transition: var(--transition);
}

.vision-card:hover {
    transform: translateY(-10px);
}

.contact-card-mini {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.contact-card-mini:hover {
    background: var(--primary);
    color: var(--white);
}

.contact-card-mini:hover p {
    color: rgba(255, 255, 255, 0.8);
}

/* Products Carousel */
.section-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-arrow {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-arrow:hover {
    background: var(--primary);
    color: var(--white);
}

.products-carousel-wrapper {
    overflow: hidden;
    padding: 10px 0 30px;
}

.products-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.product-card {
    flex: 0 0 calc(25% - 22.5px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.product-card-img {
    height: 250px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.1);
}

/* Footer Refinement */
.main-footer {
    background: var(--secondary);
    color: var(--white);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.hover-white:hover {
    color: var(--white) !important;
}

.footer-bottom {
    font-size: 0.9rem;
}

.product-card-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.product-card-info h3 {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 45px;
    /* Ensures space for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
}

@media (max-width: 1100px) {
    .product-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 900px) {
    .product-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .product-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero {
        height: 500px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block !important;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary);
    }

    .inst-flex {
        flex-direction: column;
    }

    .contact-flex {
        flex-direction: column;
    }

    .contact-info-box,
    .contact-form-box {
        width: 100%;
    }

    .overlap-wrapper {
        grid-template-columns: 1fr;
    }

    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overlap-section {
        margin-top: -60px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .showcase-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        justify-content: center;
    }

    .features-columns {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .product-cards-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-box input,
.contact-form-box textarea {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1);
    background: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 10px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}