/* Modern Pages Styles - Clean and Professional */

/* CSS Variables */
:root {
    --primary-color: #313380;
    --primary-color-rgb: 49, 51, 128;
    --gradient-primary: linear-gradient(135deg, #313380 0%, #7C3AED 100%);
    --gradient-secondary: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
}

/* Page Container */
.modern-page-container {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 60vh;
    position: relative;
}

.modern-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(49, 51, 128, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Page Header Section */
.modern-page-header {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    margin: 0 0 60px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 10px 40px rgba(49, 51, 128, 0.2);
}

.modern-page-header::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.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.modern-page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 50%;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

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

.modern-page-header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.modern-page-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.modern-page-header .page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Content Section */
.modern-page-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    color: #333 !important;
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    overflow: visible;
}

/* Ensure all text elements have good readability */
.modern-page-content * {
    color: inherit;
}

/* Force text visibility - override any conflicting styles */
.modern-page-content p,
.modern-page-content div,
.modern-page-content span,
.modern-page-content td,
.modern-page-content th {
    color: #333 !important;
}

.modern-page-content table th {
    color: #ffffff !important;
}

.modern-page-content div,
.modern-page-content span {
    color: #333 !important;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
}

.modern-page-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

/* Typography Improvements */
.modern-page-content h1,
.modern-page-content h2,
.modern-page-content h3,
.modern-page-content h4,
.modern-page-content h5,
.modern-page-content h6 {
    color: #1a1c26;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.modern-page-content h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}

.modern-page-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.modern-page-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 35px;
}

.modern-page-content h3 {
    font-size: 1.5rem;
    color: #333;
}

.modern-page-content h4 {
    font-size: 1.3rem;
}

.modern-page-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: #333 !important;
    margin-bottom: 25px;
    text-align: justify;
    position: relative;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 0;
    padding-right: 0;
}

/* Ensure all text is visible */
.modern-page-content * {
    color: inherit;
}

.modern-page-content p,
.modern-page-content div,
.modern-page-content span {
    color: #333 !important;
}

.modern-page-content h1,
.modern-page-content h2,
.modern-page-content h3,
.modern-page-content h4,
.modern-page-content h5,
.modern-page-content h6 {
    color: #1a1c26 !important;
}

/* Special styling for paragraphs that contain membership information */
.modern-page-content p:first-of-type {
    font-size: 1.2rem;
    color: #2a2a2a;
    font-weight: 500;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-right: 4px solid var(--primary-color);
    margin-bottom: 30px;
}

.modern-page-content ul,
.modern-page-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.modern-page-content li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333 !important;
    margin-bottom: 12px;
    font-weight: 400;
}

.modern-page-content ul {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.modern-page-content ul li {
    list-style-type: none;
    position: relative;
    padding: 18px 25px 18px 50px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333 !important;
    font-weight: 400;
}

.modern-page-content ul li:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(49, 51, 128, 0.1);
    transform: translateX(-5px);
}

.modern-page-content ul li::before {
    content: '✓';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(49, 51, 128, 0.3);
}

.modern-page-content ol li {
    padding-right: 10px;
}

/* Links */
.modern-page-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.modern-page-content a:hover {
    color: #7C3AED;
    border-bottom-color: #7C3AED;
}

/* Lists with better styling */
.modern-page-content ul li,
.modern-page-content ol li {
    position: relative;
}

/* Numbered lists with custom styling */
.modern-page-content ol {
    counter-reset: item;
    list-style: none;
    display: grid;
    gap: 20px;
    margin: 40px 0;
    overflow: visible;
    width: 100%;
}

.modern-page-content ol li {
    counter-increment: item;
    padding: 25px 130px 25px 40px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333 !important;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    white-space: normal;
    text-align: right;
}

.modern-page-content ol li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(49, 51, 128, 0.15);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
}

.modern-page-content ol li::before {
    content: counter(item);
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(49, 51, 128, 0.3);
    transition: all 0.3s ease;
}

.modern-page-content ol li:hover::before {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(49, 51, 128, 0.4);
}

/* Special styling for membership items with dash format (e.g., "1-9-") */
.modern-page-content ol li {
    font-weight: 500;
}

/* Enhanced list items for membership page */
.modern-page-content ol li strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 8px;
}

/* Styling for text that starts with numbers (membership format) */
.modern-page-content p:first-letter,
.modern-page-content li:first-letter {
    font-weight: 600;
}

/* Divider styling */
.modern-page-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to left, var(--primary-color), transparent);
    margin: 50px 0;
    border-radius: 2px;
}

/* Enhanced blockquote for important information */
.modern-page-content blockquote {
    border-right: 5px solid var(--primary-color);
    padding: 25px 30px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    font-style: italic;
    color: #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
}

.modern-page-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

/* Style paragraphs that start with numbers - enhance first character */
.modern-page-content p:first-letter {
    font-weight: 600;
}

/* Style strong tags within paragraphs */
.modern-page-content p strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Better spacing for paragraphs */
.modern-page-content p + p {
    margin-top: 15px;
}

.modern-page-content p + h2,
.modern-page-content p + h3,
.modern-page-content p + h4 {
    margin-top: 35px;
}

/* Content sections with better spacing */
.modern-page-content > *:first-child {
    margin-top: 0;
}

.modern-page-content > *:last-child {
    margin-bottom: 0;
}

/* Special content blocks - moved to enhanced section below */

/* Tables */
.modern-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modern-page-content table th {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    text-align: right;
    font-weight: 600;
}

.modern-page-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #2a2a2a;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.modern-page-content table tr:hover {
    background: #f8f9fa;
}

/* Images */
.modern-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Code blocks */
.modern-page-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.modern-page-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.modern-page-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Membership Cards - Special styling for membership page */
.membership-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.membership-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 35px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.membership-card:hover::before {
    transform: scaleX(1);
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(49, 51, 128, 0.2);
    border-color: var(--primary-color);
}

.membership-card-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(49, 51, 128, 0.3);
}

.membership-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.membership-card-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-page-header {
        padding: 50px 0 40px;
        border-radius: 0 0 20px 20px;
    }

    .modern-page-header h1 {
        font-size: 2.2rem;
    }

    .modern-page-header h1::after {
        width: 60px;
    }

    .modern-page-header .page-subtitle {
        font-size: 1rem;
    }

    .modern-page-content {
        padding: 35px 20px;
        border-radius: 16px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .modern-page-content h1 {
        font-size: 1.8rem;
    }

    .modern-page-content h2 {
        font-size: 1.5rem;
    }

    .modern-page-content h3 {
        font-size: 1.3rem;
    }

    .modern-page-content p {
        font-size: 1rem;
        text-align: right;
        color: #2a2a2a;
        font-weight: 400;
    }
    
    .modern-page-content div,
    .modern-page-content span {
        color: #2a2a2a;
        font-size: 1rem;
        line-height: 1.7;
    }

    .modern-page-content ol li {
        padding: 20px 100px 20px 30px;
        font-size: 1rem;
        overflow: visible;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modern-page-content ol li::before {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        right: 20px;
    }

    .modern-page-content ul li {
        padding: 15px 20px 15px 45px;
        color: #2a2a2a;
        font-weight: 400;
    }
    
    .modern-page-content ol li {
        color: #2a2a2a;
        font-weight: 400;
    }
    
    .modern-page-content table td {
        color: #2a2a2a;
        font-weight: 400;
    }
    
    .modern-page-content blockquote {
        color: #2a2a2a;
        font-weight: 400;
    }

    .membership-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .membership-card {
        padding: 25px;
    }
}

/* Print Styles */
@media print {
    .modern-page-header {
        background: #fff !important;
        color: #000 !important;
        padding: 20px 0;
    }

    .modern-page-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modern-page-content {
    animation: fadeInUp 0.6s ease-out;
}

.modern-page-content ol li {
    animation: slideInRight 0.5s ease-out;
    animation-fill-mode: both;
}

.modern-page-content ol li:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-page-content ol li:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-page-content ol li:nth-child(3) {
    animation-delay: 0.3s;
}

.modern-page-content ol li:nth-child(4) {
    animation-delay: 0.4s;
}

.modern-page-content ol li:nth-child(5) {
    animation-delay: 0.5s;
}

/* Breadcrumb (if needed) */
.modern-breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
}

.modern-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-breadcrumb a:hover {
    color: var(--primary-color);
}

.modern-breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

/* Additional styles for better text readability */
.modern-page-content {
    /* Ensure all text has good contrast */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Style for text inside content that might be from editor */
.modern-page-content .text-content,
.modern-page-content .content-text,
.modern-page-content .editor-content {
    color: #2a2a2a;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Ensure headings have good contrast */
.modern-page-content h1,
.modern-page-content h2,
.modern-page-content h3,
.modern-page-content h4,
.modern-page-content h5,
.modern-page-content h6 {
    color: #1a1c26;
    font-weight: 700;
}

/* Style for any nested content */
.modern-page-content .content-wrapper,
.modern-page-content .text-wrapper {
    color: #2a2a2a;
}

/* Improve readability for small text */
.modern-page-content small,
.modern-page-content .small {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Style for emphasized text */
.modern-page-content em {
    color: #2a2a2a;
    font-style: italic;
}

/* Ensure links are visible */
.modern-page-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.modern-page-content a:hover {
    color: #7C3AED;
    border-bottom-color: #7C3AED;
}

/* Enhanced Breadcrumb Navigation */
.modern-breadcrumb-wrapper {
    padding: 20px 0 10px;
    margin-bottom: 10px;
    direction: rtl;
}

.modern-breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
    direction: rtl;
}

.modern-breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.modern-breadcrumb li a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modern-breadcrumb li a:hover {
    color: var(--primary-color);
}

.modern-breadcrumb li.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

/* Page Header Icon */
.page-header-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header-icon i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Title with Shadow Effect */
.modern-page-header h1.page-title-gradient {
    color: #ffffff;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    font-size: 3.5rem;
}

.modern-page-header h1.page-title-gradient::after {
    width: 120px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Page Header Decoration */
.page-header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.decoration-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Related Links Section */
.related-links-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-links-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.related-links-title i {
    font-size: 1.6rem;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-link-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.related-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.related-link-card:hover::before {
    transform: scaleX(1);
}

.related-link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.related-link-card span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.related-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(49, 51, 128, 0.2);
    border-color: var(--primary-color);
}

.related-link-card:hover i {
    transform: scale(1.2);
    color: #7C3AED;
}

.related-link-card:hover span {
    color: var(--primary-color);
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .modern-breadcrumb {
        font-size: 0.85rem;
    }
    
    .page-header-icon i {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    
    .modern-page-header h1 {
        font-size: 2rem;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    .related-links-section {
        padding: 25px 20px;
        margin-top: 40px;
    }
    
    .related-links-title {
        font-size: 1.4rem;
    }
    
    .related-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-link-card {
        padding: 20px 15px;
    }
    
    .related-link-card i {
        font-size: 2rem;
    }
    
    .related-link-card span {
        font-size: 1rem;
    }
}
