/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #2c3e50;
    --accent-color: #16a085;
    --accent-hover: #1abc9c;
    --white: #ffffff;
    --text-muted: #666;
    --border-color: #e1e4e8;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
    background-color: #f0f2f5;
    min-height: 100vh;
    padding-top: 80px;

    /* SAME BACKGROUND AS PREVIOUS PAGES */
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.75);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}


/* =========================================
   3. RIGHTS CONTAINER
   ========================================= */
.rights-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.rights-card {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    /* Wider card for reading */
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    /* Allows card to grow with content */
    height: fit-content;
    margin-bottom: 40px;
}

.rights-header {
    text-align: center;
    margin-bottom: 30px;
}

.rights-header h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.rights-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* =========================================
   4. SEARCH BAR
   ========================================= */
.search-wrapper {
    position: relative;
    margin-bottom: 30px;
}

#rights-search {
    width: 100%;
    padding: 15px 15px 15px 45px;
    /* Space for icon */
    border: 1px solid var(--border-color);
    border-radius: 50px;
    /* Pill shape */
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.2s;
}

#rights-search:focus {
    background-color: var(--white);
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}


/* =========================================
   5. ACCORDION LIST
   ========================================= */
.rights-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.right-item:hover {
    border-color: #cbd5e0;
}

.right-header {
    width: 100%;
    background-color: var(--white);
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.right-header:hover {
    background-color: #f8f9fa;
}

/* Active State */
.right-item.active .right-header {
    background-color: #e8f8f5;
    /* Light Teal */
    border-bottom: 1px solid #d1f2eb;
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title .icon {
    font-size: 1.4rem;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 300;
    transition: transform 0.3s;
}

.right-item.active .toggle-icon {
    transform: rotate(45deg);
    /* Turns + into x */
}

/* Hidden Content */
.right-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.right-content p {
    padding: 0 20px 15px 20px;
}

.right-content p:first-child {
    padding-top: 15px;
}


/* =========================================
   6. DOWNLOAD SECTION
   ========================================= */
.download-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.btn-download:hover {
    background-color: #1a252f;
}