@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

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

:root {
    --primary-color: #339900;
    --secondary-color: #ff6600;
    --dark-color: #003d3d;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
    overflow-x: hidden;
}

/* Font override for Farsi pages */
html[lang="fa"] body {
    font-family:  'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Times New Roman', serif;
}

/* LTR direction for English pages */
html[dir="ltr"] body,
body[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] .navbar .container {
    direction: ltr;
    flex-direction: row;
}

html[dir="ltr"] .navbar-nav {
    flex-direction: row !important;
    direction: ltr;
}

html[dir="ltr"] .footer-links {
    flex-direction: row-reverse;
}

html[dir="ltr"] .slide-nav.prev {
    left: 30px;
    right: auto;
}

html[dir="ltr"] .slide-nav.next {
    right: 30px;
    left: auto;
}

html[dir="ltr"] .content-grid.reverse {
    direction: rtl;
}

html[dir="ltr"] .content-grid.reverse .content-text {
    direction: ltr;
}

html[dir="ltr"] .section-title::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .navbar-nav a::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .dropdown-menu {
    right: auto;
    left: 0;
}

html[dir="ltr"] .scroll-to-top {
    left: auto;
    right: 30px;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 1rem 0;
}

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

.navbar-brand .logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar-nav {
    display: flex;
    flex-direction: row-reverse; /* Default for RTL */
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-right: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
    border-radius: 4px;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
}

.dropdown-menu a::after {
    display: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--dark-color) 0%, rgba(0, 61, 61, 0.95) 50%, var(--primary-color) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-ribbon-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[lang="fa"] .hero-ribbon-title {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .hero-ribbon {
        min-height: 64px;
        padding: 1rem 2rem;
    }
    .hero-ribbon-title {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(51, 153, 0, 0.5);
    padding: 1rem 2rem;
    display: inline-block;
    border-radius: 4px;
}

.slide-subtitle {
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(44, 22, 8, 0.6);
    padding: 0.8rem 1.5rem;
    display: inline-block;
    border-radius: 4px;
    margin-top: 1rem;
}

.slide-logo {
    margin-top: 1.5rem;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Slide Navigation */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slide-nav.prev {
    right: 30px;
}

.slide-nav.next {
    left: 30px;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.content-section {
    padding: 4rem 0;
}

.content-section-alt {
    background: var(--bg-light);
}

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

.content-grid.reverse {
    direction: ltr;
}

.content-grid.reverse .content-text {
    direction: rtl;
}

.content-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-overlay {
    position: relative;
    overflow: hidden;
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay:hover .responsive-image {
    transform: scale(1.1);
}

.overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 153, 0, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.image-overlay:hover .overlay-effect {
    opacity: 1;
}

.content-text {
    padding: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Markdown Content Styling */
.content-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.content-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 2rem 0 1.5rem;
    line-height: 1.3;
    text-align: center;
}

.content-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2.5rem 0 1.5rem;
    line-height: 1.4;
    position: relative;
    padding-bottom: 0.75rem;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

html[dir="ltr"] .content-text h2::after {
    right: auto;
    left: 0;
}

.content-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem;
    line-height: 1.4;
}

.content-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
    line-height: 1.4;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin: 1.25rem 0;
    text-align: justify;
}

.content-text strong {
    font-weight: 600;
    color: var(--dark-color);
}

.content-text em {
    font-style: italic;
    color: var(--text-light);
}

.content-text ul,
.content-text ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
    padding-left: 2rem;
}

html[dir="ltr"] .content-text ul,
html[dir="ltr"] .content-text ol {
    padding-right: 2rem;
    padding-left: 2rem;
}

.content-text li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
    margin: 0.75rem 0;
    padding-right: 0.5rem;
}

html[dir="ltr"] .content-text li {
    padding-right: 0;
    padding-left: 0.5rem;
}

.content-text li strong {
    font-weight: 600;
    color: var(--dark-color);
}

.content-text img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-text img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.content-text table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: right;
    font-size: 1.05rem;
}

html[dir="ltr"] .content-text table th {
    text-align: left;
}

.content-text table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: var(--text-color);
}

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

.content-text table tr:hover {
    background: rgba(51, 153, 0, 0.05);
}

.content-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.content-text a:hover {
    color: var(--dark-color);
    border-bottom-color: var(--primary-color);
}

.content-text hr {
    border: none;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--primary-color), transparent);
    margin: 3rem 0;
}

.content-text blockquote {
    border-right: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(51, 153, 0, 0.05);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-light);
}

html[dir="ltr"] .content-text blockquote {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

.content-text code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--dark-color);
}

.content-text pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.content-text pre code {
    background: transparent;
    padding: 0;
}

/* Responsive adjustments for markdown content */
@media (max-width: 768px) {
    .content-text {
        padding: 1.5rem;
    }

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

    .content-text h2 {
        font-size: 1.75rem;
    }

    .content-text h3 {
        font-size: 1.35rem;
    }

    .content-text p {
        font-size: 1rem;
        text-align: right;
    }

    html[dir="ltr"] .content-text p {
        text-align: left;
    }

    .content-text ul,
    .content-text ol {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .content-text table {
        font-size: 0.9rem;
    }

    .content-text table th,
    .content-text table td {
        padding: 0.75rem 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #2d8800;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 153, 0, 0.3);
}

/* Buttons inside content-text (About, INACC) – keep text readable (white on green) */
.content-text .btn-primary,
.content-text a.btn-primary {
    color: var(--white);
}

.content-text a.btn-primary:hover {
    color: var(--white);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-map {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-map iframe {
    width: 100%;
    border: none;
}

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

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-address,
.footer-contact,
.footer-email {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-email a,
.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-email a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #2d8800;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .navbar-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 2rem;
        transition: var(--transition);
        gap: 1rem;
        align-items: flex-start;
    }

    .navbar-nav.active {
        right: 0;
    }

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

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

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(51, 153, 0, 0.1);
        margin-top: 0.5rem;
        margin-right: 1rem;
    }

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

    .content-grid.reverse {
        direction: rtl;
    }

    .slide-title {
        font-size: 1.8rem;
        padding: 0.8rem 1.5rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .slide-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .slide-nav.prev {
        right: 15px;
    }

    .slide-nav.next {
        left: 15px;
    }
}

@media (max-width: 640px) {
    .slide-title {
        font-size: 1.5rem;
        padding: 0.6rem 1rem;
    }

    .slide-subtitle {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation for slide content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide.active .slide-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

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

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

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Works Slider – one slide at a time, full image visible */
.works-section {
    background: linear-gradient(135deg, rgba(51, 153, 0, 0.02) 0%, rgba(0, 61, 61, 0.02) 100%);
    padding: 4rem 0;
}

.works-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}

html[dir="rtl"] .carousel-track {
    flex-direction: row-reverse;
}

.work-card {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
}

html[dir="rtl"] .work-card {
    flex-direction: row-reverse;
}

.work-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.work-image {
    flex: 0 0 38%;
    max-width: 320px;
    height: 260px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.work-card:hover .work-image img {
    transform: scale(1.03);
}

.work-content {
    padding: 1.5rem 1.75rem;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.work-content h3 {
    font-size: 1.35rem;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    font-weight: 600;
    line-height: 1.3;
}

.work-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.work-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.work-link:hover {
    color: var(--dark-color);
    gap: 1rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    right: 0;
}

.carousel-next {
    left: 0;
}

html[dir="ltr"] .carousel-prev {
    right: auto;
    left: 0;
}

html[dir="ltr"] .carousel-next {
    left: auto;
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active,
.carousel-indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* INACC Section */
.inacc-section {
    background: linear-gradient(135deg, rgba(51, 153, 0, 0.03) 0%, rgba(0, 61, 61, 0.03) 100%);
}

.inacc-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.inacc-features {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(51, 153, 0, 0.05);
    border-radius: 8px;
    border-right: 4px solid var(--primary-color);
}

html[dir="ltr"] .inacc-features {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

.feature-item {
    margin: 1rem 0;
    padding-right: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

html[dir="ltr"] .feature-item {
    padding-right: 0;
    padding-left: 1rem;
}

.feature-item strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Event promo (Iran Algae 2025) */
.event-promo {
    background: linear-gradient(135deg, rgba(51, 153, 0, 0.05) 0%, rgba(0, 61, 61, 0.05) 100%);
}

.event-promo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.event-promo-link:hover {
    opacity: 0.95;
}

.event-promo-link .section-title,
.event-promo-link .section-description {
    color: inherit;
}

.event-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.event-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

/* iCare Instagram section (Projects page) */
.icare-instagram-section .section-header {
    margin-bottom: 1.5rem;
}

.icare-instagram-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.icare-instagram-intro a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.icare-instagram-intro a:hover {
    text-decoration: underline;
}

.icare-instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icare-instagram-grid .instagram-media {
    margin: 0 auto;
}

.icare-instagram-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.icare-instagram-note code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* iCare Instagram on home page – match home style */
.icare-instagram-home {
    background: linear-gradient(135deg, rgba(51, 153, 0, 0.05) 0%, rgba(0, 61, 61, 0.05) 100%);
}

.icare-instagram-home .section-header {
    margin-bottom: 1rem;
}

.icare-instagram-home .icare-instagram-intro {
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive adjustments for new sections */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .works-carousel {
        padding: 0 50px;
    }

    .work-card {
        flex-direction: column;
    }

    html[dir="rtl"] .work-card {
        flex-direction: column;
    }

    .work-image {
        flex: none;
        width: 100%;
        max-width: none;
        height: 220px;
    }

    .work-image img {
        object-fit: contain;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .work-content h3 {
        font-size: 1.3rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .works-carousel {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .work-image {
        height: 200px;
    }

    .work-content {
        padding: 1.25rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

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

    .cta-buttons .btn {
        width: 100%;
    }
}

