/* صفحات الموقع الداخلية - Gallery, Articles, About, Contact */

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #0a5c3c 0%, #25d366 100%);
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Gallery Page Styles */
.gallery-section {
    padding: 60px 0;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: #f5f5f5;
    border: none;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Articles Page Styles */
.articles-section {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* About Page Styles */
.about-content {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.about-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #0a5c3c;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0a5c3c, #25d366);
    border-radius: 2px;
}

.about-intro p {
    font-size: 1.2rem;
    line-height: 2;
    color: #555;
    margin-top: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 20px;
    margin: 0 auto 60px;
    padding: 0 20px;
    justify-content: center;
    max-width: 900px;
}

.feature-box {
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    direction: rtl;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0a5c3c, #25d366);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.feature-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(10, 92, 60, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #0a5c3c 0%, #25d366 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(10, 92, 60, 0.3);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.feature-box:hover .feature-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 12px 30px rgba(10, 92, 60, 0.5);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: #0a5c3c;
    font-weight: 700;
}

.feature-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 240px);
        gap: 15px;
    }
    
    .feature-box {
        padding: 35px 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-intro h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
}

.feature-box p {
    color: #666;
    line-height: 1.7;
    font-size: 0.98rem;
}

.services-list {
    margin-top: 60px;
    background: #f8f9fa;
    padding: 50px 30px;
    border-radius: 15px;
}

.services-list h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0a5c3c;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    direction: rtl;
}

.service-item:hover {
    background: linear-gradient(135deg, #0a5c3c 0%, #25d366 100%);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(10, 92, 60, 0.3);
    border-color: #0a5c3c;
}

.service-item i {
    color: #25d366;
    font-size: 1.4rem;
    transition: all 0.3s;
}

.service-item:hover i {
    color: white;
    transform: scale(1.2);
}

.service-item span {
    font-size: 1.02rem;
    font-weight: 500;
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.contact-info > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.info-items {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.info-text p,
.info-text a {
    color: #666;
    text-decoration: none;
}

.info-text a:hover {
    color: #667eea;
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.social-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.phone {
    background: #667eea;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn,
.cta-buttons .btn {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0 10px;
}

.cta-section .btn:hover,
.cta-buttons .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Common Utilities */
.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-items i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Article Detail Page Styles */
.article-detail-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.article-detail {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.article-featured-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 50px;
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    direction: rtl;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2, .article-body h3 {
    color: #0a5c3c;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-footer {
    padding: 30px 50px;
    border-top: 2px solid #f0f0f0;
}

.article-share h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-to-articles {
    text-align: center;
    margin: 40px 0;
}

.back-to-articles .btn {
    background: linear-gradient(135deg, #0a5c3c 0%, #25d366 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    transition: all 0.3s;
}

.back-to-articles .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(10, 92, 60, 0.3);
}

.related-articles-section {
    padding: 60px 0;
    background: white;
}

@media (max-width: 768px) {
    .article-featured-image {
        height: 250px;
    }
    
    .article-body {
        padding: 30px 20px;
        font-size: 1rem;
    }
    
    .article-footer {
        padding: 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}
