/* ========================================
   KNOW YOUR RIGHTS SECTION STYLES
   Matches the "Oasis" theme from Welcome page
   ======================================== */

:root {
    --rights-primary: #4A90E2;      /* Trust blue */
    --rights-success: #5CB85C;      /* Hope green */
    --rights-warning: #F0AD4E;      /* Alert amber */
    --rights-danger: #D9534F;       /* Emergency red */
    --rights-arrival: #87CEEB;      /* Sky blue */
    --rights-interview: #9370DB;    /* Calm purple */
    --rights-housing: #90EE90;      /* Light green */
    --rights-healthcare: #FF6B9D;   /* Caring pink */
}

/* ========================================
   HERO SECTION
   ======================================== */
.rights-hero {
    background: linear-gradient(135deg, var(--rights-primary) 0%, #6FB1FF 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.rights-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-icon i {
    font-size: 80px;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

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

/* ========================================
   RIGHTS SECTION CARDS
   ======================================== */
.rights-sections {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.rights-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
}

.rights-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--rights-primary), var(--rights-success));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.rights-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.rights-card.rights-arrival::before {
    background: linear-gradient(90deg, var(--rights-arrival), #5FA8D3);
}

.rights-card.rights-interview::before {
    background: linear-gradient(90deg, var(--rights-interview), #7B68EE);
}

.rights-card.rights-housing::before {
    background: linear-gradient(90deg, var(--rights-housing), #76D776);
}

.rights-card.rights-healthcare::before {
    background: linear-gradient(90deg, var(--rights-healthcare), #FF1493);
}

.rights-card .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--rights-primary);
}

.rights-card.rights-arrival .card-icon { color: var(--rights-arrival); }
.rights-card.rights-interview .card-icon { color: var(--rights-interview); }
.rights-card.rights-housing .card-icon { color: var(--rights-housing); }
.rights-card.rights-healthcare .card-icon { color: var(--rights-healthcare); }

.rights-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.rights-card .card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rights-card .card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--rights-primary);
    transition: transform 0.3s ease;
}

.rights-card:hover .card-arrow {
    transform: translateX(5px);
}

/* ========================================
   KEY FACTS SECTION
   ======================================== */
.key-facts {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fact-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.fact-item span {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   MYTHS VS FACTS SECTION
   ======================================== */
.myths-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .myths-grid {
        grid-template-columns: 1fr;
    }
}

.myth-fact-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.myth-section {
    padding: 25px;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFD4D4 100%);
    border-left: 5px solid var(--rights-danger);
}

.fact-section {
    padding: 25px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-left: 5px solid var(--rights-success);
}

.myth-badge, .fact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 20px;
}

.myth-badge {
    background: rgba(217, 83, 79, 0.2);
    color: var(--rights-danger);
}

.fact-badge {
    background: rgba(92, 184, 92, 0.2);
    color: var(--rights-success);
}

.myth-text, .fact-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* ========================================
   DOWNLOADABLE GUIDES SECTION
   ======================================== */
.guide-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.guide-icon {
    font-size: 4rem;
    color: var(--rights-danger);
    margin-bottom: 20px;
}

.guide-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.guide-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #888;
}

.btn-download {
    background: linear-gradient(135deg, var(--rights-primary) 0%, #6FB1FF 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    color: white;
}

/* ========================================
   CALL TO ACTION SECTION
   ======================================== */
.rights-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-content {
    padding: 40px;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-emergency {
    background: var(--rights-danger);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-emergency:hover {
    background: #c9302c;
    transform: scale(1.05);
    color: white;
}

/* ========================================
   DETAIL PAGE STYLES
   ======================================== */
.rights-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb {
    margin-bottom: 0;
}

.detail-header {
    background: linear-gradient(135deg, var(--rights-primary) 0%, #6FB1FF 100%);
    color: white;
    padding: 60px 0 40px;
}

.detail-header.rights-arrival {
    background: linear-gradient(135deg, var(--rights-arrival) 0%, #5FA8D3 100%);
}

.detail-header.rights-interview {
    background: linear-gradient(135deg, var(--rights-interview) 0%, #7B68EE 100%);
}

.detail-header.rights-housing {
    background: linear-gradient(135deg, var(--rights-housing) 0%, #76D776 100%);
}

.detail-header.rights-healthcare {
    background: linear-gradient(135deg, var(--rights-healthcare) 0%, #FF1493 100%);
}

.detail-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-intro {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ========================================
   DETAIL CONTENT
   ======================================== */
.content-section {
    margin-bottom: 40px;
}

.content-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--rights-primary);
    margin-bottom: 15px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.important-box {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFEB99 100%);
    border-left: 5px solid var(--rights-warning);
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
}

.important-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.important-header i {
    font-size: 1.8rem;
    color: var(--rights-warning);
}

.important-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

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

.important-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
    line-height: 1.6;
}

.important-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ========================================
   MISCONCEPTIONS
   ======================================== */
.misconceptions-section {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.section-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.misconception-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.misconception-myth {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffe0e0;
}

.misconception-reality {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.misconception-myth i,
.misconception-reality i {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   NEXT STEPS
   ======================================== */
.next-steps-section {
    padding: 30px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 15px;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .next-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.next-step-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step-icon {
    font-size: 2rem;
    color: var(--rights-primary);
    flex-shrink: 0;
}

.step-text {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.resource-list li {
    margin-bottom: 10px;
}

.resource-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: var(--rights-primary);
    color: white;
    transform: translateX(5px);
}

.resource-link i:first-child {
    margin-right: 10px;
}

.resource-link i:last-child {
    margin-left: auto;
}

.emergency-contact,
.legal-support {
    border: 2px solid #e9ecef;
}

.emergency-header,
.legal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.emergency-header i,
.legal-header i {
    font-size: 1.8rem;
    color: var(--rights-danger);
}

.legal-header i {
    color: var(--rights-primary);
}

.emergency-header h4,
.legal-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons button {
    flex: 1;
}

/* ========================================
   RELATED PAGES NAVIGATION
   ======================================== */
.related-page-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 120px;
}

.related-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: var(--rights-primary);
}

.related-page-card.active {
    background: linear-gradient(135deg, var(--rights-primary) 0%, #6FB1FF 100%);
    color: white;
}

.related-page-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.related-page-card span {
    font-weight: 600;
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .rights-hero,
    .rights-breadcrumb,
    .sidebar-section,
    .related-pages,
    .rights-cta {
        display: none;
    }
    
    .detail-content {
        padding: 0;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
}
