
/* New main.css generated to visually match awepai.com */

:root {
    --primary-color: #CFA348;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-bg: #f7f7f7;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0 20px;
    background: #fff;
    color: var(--text-color);
    line-height: 1.7;
}
/* Header full styling */
.main-header {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 40px; */
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #0d3c66;
    white-space: nowrap;
}

.header-logo img {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.header-nav {
    flex: 1;
    text-align: center;
}

.header-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 35px;
    font-size: 17px;
    font-weight: 500;
}

.header-menu li a {
    color: #000;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-menu li a:hover {
    color: #0084ff;
}

/* Icons simulation */


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

    padding: 0;
  
}
    .header-menu {
        display: none;
    }

    .header-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 100%;
        padding: 15px 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }
}

/* =========================
   HERO SECTION
========================= */

.hero {
    width: 100%;
    min-height: 380px;
    /* padding: 80px 20px 120px; */
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, #5563de, #8a49c9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 40px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* SEARCH BAR */
.search-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-container form {
    background: #fff;
    width: 600px;
    max-width: 90%;
    height: 50px;
    border-radius: 30px;
    padding: 5px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-box {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px 15px;
    border-radius: 30px;
}

.search-btn {
    width: 45px;
    height: 45px;
    background: #29b046;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-image: url('https://cdn-icons-png.flaticon.com/512/149/149852.png');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

/* BUTTONS */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
}
.btn-primary:hover {
    opacity: 0.85;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(3, 1fr);
}
.service-box {
    background: var(--light-bg);
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    transition: 0.3s;
}
.service-box:hover {
    transform: translateY(-5px);
}
.service-box img {
    width: 80px;
    margin-bottom: 20px;
}
/* ====== SERVICE CARD STYLE (MATCHING IMAGE) ====== */

.services-section {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* .service-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    text-align: center;
    border: 1px solid #f1f1f1;
} */

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
color: white;
    text-align: center;
}

.service-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.service-card:hover {
    transform: scale(1.03);
}

.service-card .service-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 15px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 في كل صف */
    gap: 20px; /* مسافة بين العناصر */
    margin-top: 40px;
}

.service-card {
    width: 100%;
    height: 260px; /* تحكم بحجم الصورة */
    background-size: cover !important;
    background-position: center !important;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* موبايل: 2 في كل صف */
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(1, 1fr); /* موبايل صغير: عنصر واحد */
    }
}

/* PROJECTS */
.projects-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}
.project-item img {
    width: 100%;
    border-radius: 6px;
    transition: 0.3s;
}
.project-item:hover img {
    transform: scale(1.05);
}

/* ABOUT SECTION */
.about {
    display: flex;
    gap: 40px;
    align-items: center;
}
.about img {
    width: 50%;
    border-radius: 6px;
}
.about .content {
    width: 50%;
}
/* SECTION: ABOUT US */
.about-section {
    padding: 80px 0;
        background: #c3d8e16e; /* ← غير اللون هنا */

}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* النص */
.about-text {
    flex: 1;
    min-width: 320px;
}

.about-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 20px;
    line-height: 2;
    color: #444;
}

/* الصورة + الديكور */
.about-image-box {
    position: relative;
    flex: 1;
    min-width: 320px;
}

.about-image-box img {
    width: 100%;
    border-radius: 15px;
    z-index: 2;
    position: relative;
    height: 652px;
}

/* النقط الزرقاء خلف الصورة */
.about-image-box .dots {
    width: 180px;
    height: 180px;
    background-image: radial-gradient(#8bb1ff 2px, transparent 2px);
    background-size: 20px 20px;
    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-image-box .dots {
        right: 50%;
        transform: translateX(50%);
    }
}

/* CONTACT */
.contact-box {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 6px;
}
.blog-grid.cards-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.new-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding-bottom: 15px;
}

.new-card .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffffcc;
    padding: 4px 18px;
    border-radius: 20px;
    color: #444;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.card-top-gradient {
    width: 100%;
    height: 150px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #246a63, #5db3a2);
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
    margin-bottom: 12px;
}

.blog-excerpt {
color: white;
    font-size: 18px;
    font-weight: 800;    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: #3c4fff;
    font-weight: bold;
}
.blog-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    color: #fff;
    padding: 20px;
    height: 320px; /* يمكنك تعديله */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

/* التدرج العلوي */
.card-top-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: 1;
}

/* المحتوى فوق التدرج */
.blog-content {
    position: relative;
    z-index: 3;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 4;
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* FOOTER */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-buttons a {
    width: 55px;
    height: 55px;
    background: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: 0.3s ease;
}

.floating-buttons a.call-btn {
    background: #1E88FF;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}
.custom-footer {
    background: #15787E;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    direction: rtl;
}

.custom-footer .footer-logo img {
    width: 120px;
    margin-bottom: 15px;
}

.custom-footer ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.custom-footer ul li {
    display: inline-block;
    margin: 0 10px;
}

.custom-footer ul li a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.custom-footer ul li a:hover {
    opacity: 0.7;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    margin: 0 6px;
    font-size: 20px;
    display: inline-block;
    transition: 0.2s;
}

.social-icons a:hover {
    opacity: 0.7;
}

.footer-copy {
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about {
        flex-direction: column;
    }
    .about img,
    .about .content {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 32px;
    }
}
.contact-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom right, #f0f7f7, #e3efef);
}

.contact-container {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0db4a9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 180, 169, 0.2);
    outline: none;
}

.contact-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0db4a9, #0a938a);
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 180, 169, 0.3);
}
.contact-success {
    background: #e8f9f1;
    border: 1px solid #c7f1df;
    color: #0a7a5a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.contact-error {
    background: #fff1f0;
    border: 1px solid #f1c7c7;
    color: #b12a2a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
}
/* زر القائمة - موبايل */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #000;
}

/* إظهار زر الهامبرجر وإخفاء القائمة */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-menu {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .header-menu.active {
        display: flex !important;
    }
}
.archive-header {
    text-align: center;
    padding: 40px 20px;
}

.archive-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.archive-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.archive-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.archive-card:hover {
    transform: translateY(-5px);
}

.archive-thumb img {
    width: 100%;
    border-radius: 8px;
}

.archive-post-title {
    margin: 15px 0 10px;
    font-size: 20px;
}

.archive-excerpt {
    color: #666;
}

.archive-read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--main-color, #007bff);
}

.archive-pagination {
    margin-top: 35px;
    text-align: center;
}

.no-posts {
    text-align: center;
    padding: 40px 0;
}
/* القائمة الخلفية */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0,0,0,0.2);
    padding: 20px;
    transition: 0.35s ease;
    z-index: 9999;
    overflow-y: auto;
}

/* عند الفتح */
.mobile-menu.active {
    right: 0;
}

/* الهيدر داخل القائمة */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.menu-title {
    font-size: 20px;
    font-weight: bold;
}

.close-menu {
    font-size: 28px;
    cursor: pointer;
}

/* عناصر القائمة */
.mobile-menu-items li {
    padding: 18px 0;
    font-size: 18px;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu-items li a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* أيقونات التواصل */
.mobile-social {
    margin-top: 25px;
    text-align: center;
}

.mobile-social a {
    font-size: 24px;
    margin: 0 8px;
    color: #000;
}

/* حقوق النشر */
.mobile-copy {
    text-align: center;
    font-size: 14px;
    color: #444;
    margin-top: 25px;
}
.mobile-footer-menu {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: 10px;
}

.mobile-footer-menu li {
    list-style: none;
    padding: 12px 0;
    font-size: 16px;
}

.mobile-footer-menu li a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.menu-cat-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.menu-cat-icon {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
}
.menu-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 8px;
    background: #f1f1f1;
    border-radius: 50%;
    color: #000;
    font-size: 14px;
}
/* ضبط حجم الأيقونات */
.custom-footer .social-icons i {
    font-size: 24px !important;
    margin: 0 8px;
}

/* واتساب */
.custom-footer .fa-whatsapp {
    color: #25D366 !important;
}

/* يوتيوب */
.custom-footer .fa-youtube {
    color: #FF0000 !important;
    background:white;

}

/* تويتر */
.custom-footer .fa-twitter {
    color: #1DA1F2 !important;
    background:white;

}

/* فيسبوك */
.custom-footer .fa-facebook {
    color: #1877F2 !important;
  background:white;
}

/* انستغرام (لون وردي مميز) */
.custom-footer .fa-instagram {
    color: #E1306C !important;
    background:white;

}

/* تيك توك */
.custom-footer .fa-tiktok {
    color: #000000 !important;
    background:white;

}

/* واتساب بالفوتر يصبح مثل العوامة */
.social-icons a .fa-whatsapp {
    background: #25D366;
    color: #fff !important;
    padding: 8px;
    border-radius: 12px;
}

/* هاتف بالفوتر لو تريد جعله مثل العوامة */
.social-icons a .fa-phone {
    background: #00A651;
    color: #fff !important;
    padding: 8px;
    border-radius: 12px;
}
