/* ================================================
   ItaStudy Blog Stylesheet
   Modern RTL Arabic Design with Teal Brand Colors
   ================================================ */

/* === Blog Hero Section === */
.blog-hero {
    background: linear-gradient(135deg, #007377 0%, #005f63 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.blog-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.blog-title {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.blog-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta-item svg {
    width: 20px;
    height: 20px;
}

/* === Blog Content Container === */
.blog-container {
    max-width: 850px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.blog-content {
    background: #fff;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.08);
}

/* === Typography === */
.blog-content h2 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    margin: 50px 0 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #007377;
    position: relative;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: #f9a825;
}

.blog-content h3 {
    color: #007377;
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
}

.blog-content p {
    color: #4a4a4a;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.blog-content ul,
.blog-content ol {
    margin: 24px 0;
    padding-right: 24px;
}

.blog-content li {
    color: #4a4a4a;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
    position: relative;
}

.blog-content ul li::marker {
    color: #007377;
    font-size: 1.2em;
}

/* === Info Cards === */
.info-card {
    background: linear-gradient(135deg, #f0f9fa 0%, #e0f2f4 100%);
    border-right: 4px solid #007377;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.info-card h3 {
    margin-top: 0;
    color: #007377;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card ul {
    margin: 16px 0 0;
}

/* === Highlight Boxes === */
.highlight-box {
    background: #fff5e6;
    border: 2px solid #f9a825;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.highlight-box strong {
    color: #f9a825;
    font-size: 20px;
}

/* === CTA Section === */
.blog-cta {
    background: linear-gradient(135deg, #007377 0%, #005f63 100%);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    margin: 60px 0 40px;
    box-shadow: 0 10px 40px rgba(0,115,119,0.2);
}

.blog-cta h3 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 16px;
}

.blog-cta p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f9a825;
    color: #1a1a1a;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(249,168,37,0.3);
}

.cta-button:hover {
    background: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(249,168,37,0.4);
}

/* === Table Styling === */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.blog-content th {
    background: #007377;
    color: #fff;
    padding: 16px;
    text-align: right;
    font-weight: 600;
}

.blog-content td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-content tr:nth-child(even) {
    background: #f9f9f9;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .blog-title {
        font-size: 32px;
    }
    
    .blog-content {
        padding: 32px 24px;
    }
    
    .blog-content h2 {
        font-size: 26px;
    }
    
    .blog-content h3 {
        font-size: 20px;
    }
    
    .blog-content p,
    .blog-content li {
        font-size: 16px;
    }
    
    .blog-cta {
        padding: 32px 24px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 12px;
    }
}

/* === Smooth Transitions === */
* {
    transition: background-color 0.2s ease;
}

a {
    transition: all 0.3s ease;
}

button {
    transition: all 0.3s ease;
}