/* ============================================================ BLOG — Shared styles (homepage preview, listing, detail) Colors: red #d42b1e | orange #e07428 | beige #f7f1ea | dark #1f2937 ============================================================ */ /* ── Blog Section (Homepage Preview) ──────────────────────── */ .blog-section { padding: 100px 0 80px; background: #f7f1ea; position: relative; overflow: hidden; } .blog-section::before { content: ''; position: absolute; top: -120px; left: -180px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(212,43,30,0.06) 0%, transparent 70%); pointer-events: none; } .blog-section::after { content: ''; position: absolute; bottom: -100px; right: -150px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(224,116,40,0.07) 0%, transparent 70%); pointer-events: none; } /* ── Section Header ── */ .blog-header { text-align: center; margin-bottom: 56px; } .blog-section-title { font-size: 2.6rem; font-weight: 800; color: #1f2937; margin-bottom: 14px; position: relative; display: inline-block; } .blog-section-title::after { content: ''; position: absolute; bottom: -10px; right: 50%; transform: translateX(50%); width: 60px; height: 4px; background: linear-gradient(90deg, #d42b1e, #e07428); border-radius: 2px; } .blog-section-subtitle { font-size: 1.05rem; color: #6b7280; line-height: 1.8; margin-top: 22px; } /* ── Blog Grid ── */ .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index: 1; } @media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } } /* ── Blog Card ── */ .blog-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s cubic-bezier(0.22,1,0.36,1); display: flex; flex-direction: column; position: relative; } .blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.13); } /* ── Blog Image ── */ .blog-card .blog-image { width: 100%; height: 210px; object-fit: cover; display: block; flex-shrink: 0; position: relative; overflow: hidden; } /* Gradient placeholders (used when real images not available) */ .blog-card .blog-image.blog-image--placeholder { display: flex; align-items: center; justify-content: center; } .blog-card .blog-image.blog-image--placeholder i { font-size: 3rem; color: rgba(255,255,255,0.7); } .blog-image--1 { background: linear-gradient(135deg, #d42b1e 0%, #e07428 100%); } .blog-image--2 { background: linear-gradient(135deg, #1f2937 0%, #374151 60%, #d42b1e 100%); } .blog-image--3 { background: linear-gradient(135deg, #e07428 0%, #d42b1e 100%); } .blog-image--4 { background: linear-gradient(135deg, #374151 0%, #1f2937 60%, #e07428 100%); } .blog-image--5 { background: linear-gradient(135deg, #7c3aed 0%, #d42b1e 100%); } .blog-image--6 { background: linear-gradient(135deg, #0f766e 0%, #e07428 100%); } /* ── Blog Content ── */ .blog-content { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; gap: 12px; } .blog-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .blog-category { display: inline-block; padding: 4px 14px; font-size: 0.78rem; font-weight: 700; color: #d42b1e; background: rgba(212,43,30,0.08); border-radius: 100px; border: 1px solid rgba(212,43,30,0.15); white-space: nowrap; } .blog-date, .blog-read-time { font-size: 0.8rem; color: #9ca3af; display: flex; align-items: center; gap: 4px; } .blog-title { font-size: 1.1rem; font-weight: 800; color: #1f2937; line-height: 1.55; margin: 0; transition: color 0.2s; } .blog-card:hover .blog-title { color: #d42b1e; } .blog-excerpt { font-size: 0.9rem; color: #6b7280; line-height: 1.75; margin: 0; flex: 1; } .blog-read { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: #d42b1e; text-decoration: none; margin-top: 4px; transition: gap 0.25s; align-self: flex-start; } .blog-read:hover { gap: 10px; } /* ── "View All" Button ── */ .blog-cta-wrap { display: flex; justify-content: center; margin-top: 52px; position: relative; z-index: 1; } .blog-all-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 44px; font-size: 1rem; font-weight: 700; color: #d42b1e; background: transparent; border: 2px solid rgba(212,43,30,0.28); border-radius: 16px; text-decoration: none; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1); position: relative; overflow: hidden; } .blog-all-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #d42b1e 0%, #e07428 100%); opacity: 0; transition: opacity 0.3s ease; border-radius: 14px; } .blog-all-btn:hover { color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(212,43,30,0.28); } .blog-all-btn:hover::before { opacity: 1; } .blog-all-btn span, .blog-all-btn i { position: relative; z-index: 1; } /* ============================================================ BLOG LISTING PAGE — blog.html ============================================================ */ .blog-page { background: #f7f1ea; min-height: 100vh; padding-top: 0; /* hero extends behind navbar — clearance is in hero padding-top */ } /* ── Page Hero ── */ /* ── Blog Hero — two-column layout ── */ .blog-hero { background: linear-gradient( 135deg, #fff6f2 0%, #ffe6dc 40%, #ffd4c6 100% ); padding: 156px 0 56px; /* 96px navbar clearance + 60px design padding */ overflow: hidden; position: relative; } /* Smooth gradient fade into the next section */ .blog-hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 120px; background: linear-gradient( to bottom, rgba(247, 241, 234, 0) 0%, #f7f1ea 100% ); pointer-events: none; } .blog-hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; direction: rtl; } /* Text column (right in RTL) */ .blog-hero__content { display: flex; flex-direction: column; gap: 20px; } .blog-hero__badge { display: inline-block; align-self: flex-start; padding: 6px 18px; font-size: 0.875rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #d42b1e, #e07428); border-radius: 999px; line-height: 1; } .blog-hero__title { font-size: 3rem; font-weight: 800; color: #1f2937; line-height: 1.25; margin: 0; } .blog-hero__desc { font-size: 1.125rem; color: #6b7280; line-height: 1.75; margin: 0; max-width: 460px; } /* Illustration column (left in RTL) */ .blog-hero__visual { display: flex; align-items: center; justify-content: center; } .blog-hero__visual img { max-width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(212, 43, 30, 0.12)); } @media (max-width: 900px) { .blog-hero__title { font-size: 2.4rem; } } @media (max-width: 768px) { .blog-hero__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; } .blog-hero__visual { order: -1; } .blog-hero__badge { align-self: center; } .blog-hero__desc { max-width: 100%; } .blog-hero__title { font-size: 2rem; } .blog-hero { padding: 144px 0 44px; } /* 96px navbar clearance + 48px design padding */ } /* ── Category Filter ── */ .blog-filters-wrap { padding: 48px 0 0; } .blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .blog-filter-btn { padding: 9px 22px; font-size: 0.88rem; font-weight: 600; color: #6b7280; background: #fff; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 100px; cursor: pointer; transition: all 0.28s ease; font-family: inherit; } .blog-filter-btn:hover, .blog-filter-btn.is-active { color: #fff; background: linear-gradient(135deg, #d42b1e 0%, #e07428 100%); border-color: transparent; box-shadow: 0 6px 18px rgba(212,43,30,0.28); } /* ── Blog Listing Grid ── */ .blog-listing-section { padding: 52px 0 80px; } .blog-listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 60px; } @media (max-width: 1024px) { .blog-listing-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 640px) { .blog-listing-grid { grid-template-columns: 1fr; } } /* Blog card hidden state for filter */ .blog-card.is-hidden { display: none; } /* ── Pagination ── */ .blog-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; } .pg-btn { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.1); background: #fff; color: #6b7280; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; font-family: inherit; } .pg-btn:hover, .pg-btn.is-active { background: linear-gradient(135deg, #d42b1e, #e07428); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(212,43,30,0.28); } .pg-btn--nav { font-size: 1.1rem; } /* ============================================================ BLOG DETAIL PAGE — blog-single.html ============================================================ */ .article-page { background: #f7f1ea; min-height: 100vh; padding-top: 96px; } /* ── Article Header ── */ .article-header { padding: 60px 0 0; } .article-header__inner { max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: right; } .article-header__breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #9ca3af; margin-bottom: 24px; flex-wrap: wrap; } .article-header__breadcrumb a { color: #d42b1e; text-decoration: none; font-weight: 600; transition: opacity 0.2s; } .article-header__breadcrumb a:hover { opacity: 0.75; } .article-header__breadcrumb span { color: #d1d5db; } .article-category-badge { display: inline-block; padding: 5px 16px; font-size: 0.82rem; font-weight: 700; color: #d42b1e; background: rgba(212,43,30,0.08); border: 1px solid rgba(212,43,30,0.18); border-radius: 100px; margin-bottom: 20px; } .article-title { font-size: 2.4rem; font-weight: 800; color: #1f2937; line-height: 1.35; margin-bottom: 28px; } @media (max-width: 768px) { .article-title { font-size: 1.8rem; } } .article-meta { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(0,0,0,0.07); border-bottom: 1px solid rgba(0,0,0,0.07); flex-wrap: wrap; } .article-meta__item { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; color: #6b7280; } .article-meta__item i { color: #d42b1e; font-size: 1rem; } .article-meta__item strong { color: #1f2937; font-weight: 700; } /* ── Featured Image ── */ .article-featured-img { max-width: 820px; margin: 40px auto 0; padding: 0 24px; } .article-featured-img img, .article-featured-img .article-img-placeholder { width: 100%; height: 420px; border-radius: 20px; object-fit: cover; display: block; } @media (max-width: 640px) { .article-featured-img img, .article-featured-img .article-img-placeholder { height: 230px; } } .article-img-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #d42b1e 0%, #e07428 100%); } .article-img-placeholder i { font-size: 4rem; color: rgba(255,255,255,0.6); } /* ── Article Body ── */ .article-body { max-width: 820px; margin: 0 auto; padding: 52px 24px 60px; } .article-content { font-size: 1.05rem; line-height: 1.9; color: #374151; } .article-content h2 { font-size: 1.6rem; font-weight: 800; color: #1f2937; margin: 44px 0 18px; position: relative; padding-right: 18px; } .article-content h2::before { content: ''; position: absolute; top: 8px; right: 0; width: 4px; height: 70%; background: linear-gradient(180deg, #d42b1e, #e07428); border-radius: 2px; } .article-content h3 { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin: 32px 0 14px; } .article-content p { margin-bottom: 22px; } .article-content ul, .article-content ol { margin: 18px 0 22px 0; padding-right: 28px; display: flex; flex-direction: column; gap: 10px; } .article-content li { list-style: none; display: flex; align-items: flex-start; gap: 10px; color: #4b5563; line-height: 1.7; } .article-content li::before { content: ''; display: inline-block; width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background: linear-gradient(135deg, #d42b1e, #e07428); margin-top: 9px; } /* ── Blockquote ── */ .article-content blockquote { margin: 36px 0; padding: 24px 28px 24px 0; border-right: 4px solid #d42b1e; background: rgba(212,43,30,0.04); border-radius: 0 16px 16px 0; } .article-content blockquote p { font-size: 1.1rem; font-style: italic; color: #1f2937; font-weight: 600; margin: 0; padding-right: 16px; } /* ── Inline Article Image ── */ .article-content .article-inline-img { border-radius: 16px; width: 100%; height: 280px; object-fit: cover; margin: 28px 0; display: block; } .article-content .article-inline-img-placeholder { border-radius: 16px; width: 100%; height: 280px; margin: 28px 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #374151 0%, #1f2937 60%, #d42b1e 100%); } .article-content .article-inline-img-placeholder i { font-size: 3rem; color: rgba(255,255,255,0.55); } /* ── Article Tags ── */ .article-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid rgba(0,0,0,0.07); margin-top: 32px; } .article-tags__label { font-size: 0.88rem; font-weight: 700; color: #1f2937; } .article-tag { display: inline-block; padding: 5px 14px; font-size: 0.82rem; color: #6b7280; background: rgba(0,0,0,0.05); border-radius: 100px; border: 1px solid rgba(0,0,0,0.08); transition: all 0.2s; } .article-tag:hover { color: #d42b1e; background: rgba(212,43,30,0.08); border-color: rgba(212,43,30,0.18); } /* ── Share Row ── */ .article-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.07); margin-top: 24px; } .article-share__label { font-size: 0.9rem; font-weight: 700; color: #1f2937; } .share-btn { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #fff; text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; } .share-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); } .share-btn--twitter { background: #1da1f2; } .share-btn--facebook { background: #1877f2; } .share-btn--whatsapp { background: #25d366; } .share-btn--linkedin { background: #0a66c2; } /* ============================================================ RELATED BLOGS SLIDER ============================================================ */ .related-blogs { background: #fff; padding: 72px 0 80px; position: relative; overflow: hidden; } .related-blogs::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,43,30,0.25), transparent); } .related-blogs__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; } .related-blogs__title { font-size: 1.9rem; font-weight: 800; color: #1f2937; position: relative; padding-right: 18px; } .related-blogs__title::before { content: ''; position: absolute; right: 0; top: 8px; height: 70%; width: 4px; background: linear-gradient(180deg, #d42b1e, #e07428); border-radius: 2px; } .related-blogs__arrows { display: flex; gap: 10px; } .related-arrow { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(212,43,30,0.25); background: #fff; color: #d42b1e; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); } .related-arrow:hover { background: linear-gradient(135deg, #d42b1e, #e07428); border-color: transparent; color: #fff; transform: scale(1.08); box-shadow: 0 6px 18px rgba(212,43,30,0.28); } /* ── Slider Track ── */ .blog-slider-viewport { overflow: hidden; cursor: grab; user-select: none; /* Force LTR so overflow scrolls to the right and translateX(-X) works as expected */ direction: ltr; } .blog-slider-viewport:active { cursor: grabbing; } .blog-slider-track { display: flex; gap: 24px; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1); will-change: transform; } /* Cards inside slider restore RTL for Arabic content */ .blog-slider-track .blog-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; direction: rtl; } @media (max-width: 1024px) { .blog-slider-track .blog-card { flex: 0 0 calc((100% - 24px) / 2); } } @media (max-width: 640px) { .blog-slider-track .blog-card { flex: 0 0 100%; } } /* ── Slider Dots ── */ .related-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; } .related-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(212,43,30,0.2); cursor: pointer; transition: all 0.25s; padding: 0; } .related-dot.is-active { width: 24px; border-radius: 4px; background: linear-gradient(90deg, #d42b1e, #e07428); } /* ============================================================ FADE-UP ANIMATION (reuse from main site pattern) ============================================================ */ .fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; } .fade-up.is-visible { opacity: 1; transform: translateY(0); } /* Stagger delays */ .fade-up:nth-child(2) { transition-delay: 0.1s; } .fade-up:nth-child(3) { transition-delay: 0.2s; } .fade-up:nth-child(4) { transition-delay: 0.3s; } /* ============================================================ BACK TO BLOG BUTTON ============================================================ */ .back-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; font-size: 0.9rem; font-weight: 700; color: #d42b1e; background: rgba(212,43,30,0.08); border: 1.5px solid rgba(212,43,30,0.15); border-radius: 12px; text-decoration: none; transition: all 0.25s ease; margin-bottom: 32px; display: inline-flex; } .back-btn:hover { background: linear-gradient(135deg, #d42b1e, #e07428); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(212,43,30,0.28); } /* ============================================================ RESPONSIVE UTILITIES ============================================================ */ @media (max-width: 768px) { .blog-section { padding: 72px 0 60px; } .blog-section-title { font-size: 2rem; } .article-body { padding: 40px 20px 48px; } .article-featured-img { padding: 0 20px; } .article-header__inner { padding: 0 20px; } .related-blogs { padding: 52px 0 60px; } .related-blogs__header { flex-direction: column; align-items: flex-start; gap: 18px; } .related-blogs__title { font-size: 1.55rem; } }