/* ===== Pages Styles ===== */

/* Page Image */
.page-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Social Share Buttons */
.social-share {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

.social-share h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.social-share h5 i {
    color: #007bff;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-btn i {
    font-size: 1.1rem;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #145dbf;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.share-btn.copy {
    background: #6c757d;
}

.share-btn.copy:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Related Pages Horizontal */
.related-links-simple {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #007bff;
}

.related-links-simple h5 {
    color: #2c3e50;
    font-weight: 600;
}

.related-pages-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-page-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-page-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.related-page-link i {
    color: #007bff;
    transition: color 0.3s ease;
}

.related-page-link:hover i {
    color: white;
}

@media (max-width: 768px) {
    .related-pages-horizontal {
        flex-direction: column;
    }
    
    .related-page-link {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Original Styles ===== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.95));
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    margin-top: -100px;
    padding-top: 150px;
    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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,1000"/><polygon fill="rgba(255,255,255,0.05)" points="0,800 1000,600 1000,800 0,1000"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: #ffc107;
}

.page-breadcrumb i {
    margin: 0 0.5rem;
}

/* Page Content */
.page-content {
    padding: 5rem 0;
    background: #ffffff;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.page-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.page-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
}

.page-text p {
    margin-bottom: 2rem;
}

.page-text h2 {
    color: #007bff;
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    position: relative;
}

.page-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 2px;
}

.page-text h3 {
    color: #495057;
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.page-text ul, .page-text ol {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

[dir="rtl"] .page-text ul, 
[dir="rtl"] .page-text ol {
    padding-right: 2rem;
    padding-left: 0;
}

.page-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Quote Styles */
.page-quote {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #007bff;
    margin: 3rem 0;
    position: relative;
    font-style: italic;
    font-size: 1.2rem;
    color: #495057;
}

[dir="rtl"] .page-quote {
    border-left: none;
    border-right: 5px solid #007bff;
}

.page-quote::before {
    content: '"';
    font-size: 4rem;
    color: #007bff;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

[dir="rtl"] .page-quote::before {
    left: auto;
    right: 20px;
}

/* Info Boxes */
.info-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    border-top: 4px solid #007bff;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-box.success {
    border-top-color: #28a745;
}

.info-box.warning {
    border-top-color: #ffc107;
}

.info-box.info {
    border-top-color: #17a2b8;
}

.info-box h4 {
    color: #007bff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-box.success h4 {
    color: #28a745;
}

.info-box.warning h4 {
    color: #ffc107;
}

.info-box.info h4 {
    color: #17a2b8;
}

.info-box h4 i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

[dir="rtl"] .info-box h4 i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Call to Action */
.page-cta {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: rotate 20s infinite linear;
}

.page-cta .container {
    position: relative;
    z-index: 2;
}

.page-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.page-cta .btn {
    background: white;
    color: #007bff;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.page-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
}

/* Related Links */
.related-links {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 4rem;
}

.related-links h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.related-links .row {
    gap: 1rem;
}

.related-link {
    display: block;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.related-link:hover {
    color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
    text-decoration: none;
}

.related-link i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.related-link h5 {
    margin-bottom: 0.5rem;
}

.related-link p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 2rem;
        margin-top: -80px;
        padding-top: 120px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 3rem 0;
    }
    
    .page-text {
        font-size: 1rem;
    }
    
    .page-text h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .page-text h3 {
        font-size: 1.3rem;
        margin: 2rem 0 1rem;
    }
    
    .page-quote {
        padding: 1.5rem;
        font-size: 1rem;
        margin: 2rem 0;
    }
    
    .info-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .page-cta {
        padding: 2rem 1rem;
        margin: 3rem 0;
    }
    
    .page-cta h3 {
        font-size: 1.5rem;
    }
    
    .page-cta p {
        font-size: 1rem;
    }
    
    .related-links {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 3rem 0 2rem;
        margin-top: -60px;
        padding-top: 100px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-breadcrumb {
        font-size: 0.9rem;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .page-image {
        margin-bottom: 2rem;
    }
}
