.join-section {
    padding: 60px 0;
}

.page-header-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 0px;
    text-align: center;
}

.page-header-custom h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f48120;
}

.page-header-custom p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-right: 5px solid var(--primary-blue);
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.step-card ul {
    margin-top: 15px;
}

.step-card ul li {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.requirements-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.requirements-box h4 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.requirement-item i {
    color: var(--primary-green);
    font-size: 20px;
    margin-left: 15px;
    margin-top: 3px;
}

.faq-section {
    margin-top: 50px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-item h5 {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-item p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.contact-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.contact-box h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-box i {
    margin-left: 10px;
}

.join-section {
    padding: 60px 0;
}

.page-header-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 0px;
    text-align: center;
}

.page-header-custom h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f48120;
}

.page-header-custom p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.reader-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.reader-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

/* Rank Specific Styles */
.rank-1-card {
    border-top: 6px solid #ffd700;
    background: linear-gradient(to bottom, #fffcf0, #ffffff);
}

.rank-2-card {
    border-top: 6px solid #c0c0c0;
}

.rank-3-card {
    border-top: 6px solid #cd7f32;
}

.reader-photo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.reader-photo-icon {
    font-size: 110px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.rank-badge {
    position: absolute;
    bottom: 5px;
    right: -10px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    color: white;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.rank-1-badge {
    background: linear-gradient(45deg, #ffd700, #ffae00);
}

.rank-2-badge {
    background: linear-gradient(45deg, #c0c0c0, #8e8e8e);
}

.rank-3-badge {
    background: linear-gradient(45deg, #cd7f32, #a0522d);
}

.rank-default-badge {
    background: #126698;
}

.reader-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #2c3e50;
}

.reader-stats {
    background: rgba(18, 102, 152, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    border: 1px solid rgba(18, 102, 152, 0.1);
}

.reader-stats h4 {
    margin: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

.reader-description {
    min-height: 60px;
}

/* Animated Stars for Rank 1 - Now around the card */
.rank-1-wrapper {
    position: relative;
    padding: 100px;
    margin-bottom: 30px;
}

.stars-background {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: 10;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    /* Base color white for brightness */
    border-radius: 50%;
    opacity: 0;
    animation: moveStar linear infinite;
    filter: blur(0.3px);
    box-shadow: 0 0 4px #fff, 0 0 10px #ffd700;
    /* Intense golden glow */
}

@keyframes moveStar {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-50px) translateX(15px) scale(1.2);
        opacity: 1;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px) translateX(-15px) scale(0.5);
        opacity: 0;
    }
}

.page-header {
    background: linear-gradient(135deg, #126698, #2980b9);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

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

    .reader-name {
        font-size: 1.6rem;
    }

    .reader-card {
        padding: 25px 15px;
    }

    .rank-1-wrapper {
        padding: 10px;
    }

    .reader-photo-icon {
        font-size: 80px;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 16px;
        right: -5px;
    }
}

/* =============================================================
   PREMIUM MODERN FOOTER STYLES
 ============================================================ */
.main-footer {
    background: #0f2c42; /* Deep Navy Blue */
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 0 0;
    margin-top: 60px;
    font-family: 'Cairo', Arial, sans-serif;
    border-top: 4px solid var(--primary-text); /* Orange border for brand consistency */
    direction: rtl;
    text-align: right;
}

.footer-top {
    padding-bottom: 50px;
}

.footer-logo-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo-title i {
    margin-left: 10px;
    color: var(--primary-text); /* Orange accent color */
}

.footer-about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-social-btn:hover {
    background: var(--primary-text);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-col-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-text);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

.footer-links-list a i {
    margin-left: 8px;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-right: 5px;
}

.footer-links-list a:hover i {
    color: var(--primary-text);
    transform: translateX(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-left: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--primary-text);
    color: #ffffff;
}

.footer-contact-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-content strong {
    display: block;
    color: #ffffff;
    margin-bottom: 2px;
}

.footer-contact-content a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
}

.footer-contact-content a:hover {
    color: #ffffff;
}

.footer-bottom {
    background: #081d2c; /* Slightly darker shade */
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copy {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-logout-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-logout-btn:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.footer-logout-btn i {
    margin-left: 6px;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 50px 0 0 0;
    }
    .footer-top {
        padding-bottom: 30px;
    }
    .footer-col {
        margin-bottom: 35px;
    }
    .footer-col-title {
        margin-bottom: 18px;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}