:root {
    --primary-color: #008080;
    --secondary-color: #1a3c3c;
    --accent-color: #00d1d1;
    --text-dark: #2c3e50;
    --white: #ffffff;
    --bg-light: #f4f9f9;
    --border-color: #e0f2f1;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Amiri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    direction: rtl;
    /* Arabic support */
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header */
header {
    background: var(--white);
    padding: 1.5rem 5% 1.5rem 1%;
    /* Reduced left padding (1%) to remove space before logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    margin: 0;
    padding: 0;
}

.logo img {
    height: 140px;
    transition: var(--transition);
    mix-blend-mode: multiply;
    /* Perfect transparency on white background */
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    font-size: 1.1rem;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

.header-tools {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- Hero Section Settings --- */
/* You can control the section size here */
.hero {
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: #ffffff;
    min-height: 70vh;
}

/* ------------------------------------------- */

.hero-content {
    flex: 1.2;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: #1a3c3c;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 3rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.3);
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 128, 128, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.hero-image img {
    width: 100%;
    max-width: 650px;
    max-height: none;
    object-fit: contain;
    border-radius: 0 0 0 100px;
    box-shadow: 10px 10px 0px rgba(0, 128, 128, 0.1);
}

/* Services / Categories Section */
.section-padding {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #00808080;
    transition: var(--transition);
    box-shadow: 0 4px 0px #005a5a;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 0px #005a5a;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #1a3c3c;
}

/* Featured Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-img {
    height: 250px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-img img {
    transform: scale(1.1);
}

.article-content {
    padding: 2rem;
}

.article-tag {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.article-content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }
}