/* --- CSS Variables for Theming --- */
:root {
    --bg-color-light: #f9f9f9;
    --card-bg-light: #ffffff;
    --text-color-light: #fdaaaa;
    --secondary-text-light: black;
    --border-color-light: #ecf0f1;
    --primary-color: #fdaaaa;
    --button-text-color: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-color-light: #1d1e22;
    --card-bg-light: #2c3e50;
    --text-color-light: #bd86fc;
    --secondary-text-light: white;
    --border-color-light: #bd86fc;
    --primary-color: #bd86fc;
    --shadow: rgba(0, 0, 0, 0.4);
}

/* --- Global Styles --- */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    overflow: auto;
    padding: 20px;
}

.article-container {
    background-color: var(--card-bg-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 40px;
    width: 95%;
    max-width: 800px;
    position: relative;
}

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

.article-header h1 {
    color: var(--primary-color);
    margin: 0 0 10px;
    font-size: clamp(1.8em, 5vw, 2.5em);
}

.article-header p {
    color: var(--secondary-text-light);
    margin: 0;
    font-size: clamp(0.9em, 2vw, 1.1em);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.timer-icon {
    color: var(--primary-color);
}

.article-content {
    line-height: 1.6;
}

.article-content h2 {
    font-size: clamp(1.4em, 4vw, 1.8em);
    color: var(--text-color-light);
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.article-content h3 {
    font-size: clamp(1.2em, 3vw, 1.4em);
    color: var(--text-color-light);
    margin-top: 20px;
    margin-bottom: 5px;
}

.article-content p {
    margin: 0 0 15px 0;
    color: var(--secondary-text-light);
    font-size: clamp(1em, 2.5vw, 1.1em);
}

.article-content ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    color: var(--secondary-text-light);
}

.article-content ul li {
    margin-bottom: 5px;
}

.cta-btn-container {
    text-align: center;
    margin-top: 40px;
}
.crisis-support {
    background-color: red;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    align-items: center;
    color: white;
}
.crisis{
    background-color: white;
    color: black;
    border-radius: 5%;
    padding: 1%;
}
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    background-color: #5a3ce0;
    transform: translateY(-2px);
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color-light);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
    z-index: 101;
    box-shadow: 0 2px 4px var(--shadow);
}
.theme-toggle:hover {
    background-color: var(--bg-color-light);
    transform: scale(1.05);
}
.theme-toggle .material-icons {
    font-size: 24px;
    color: var(--text-color-light);
    transition: color 0.3s;
}

.resources-section {
    width: 100%;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color-light);
    text-align: center;
}
.resources-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: clamp(1em, 4vw, 1.5em);
}
.resources-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
}
.resources-list a {
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-color-light);
    text-decoration: none;
    color: var(--text-color-light);
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    font-weight: bold;
}
.resources-list a:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    color: white;
}
.resources-list a:hover .material-icons {
     color: white;
}
.resources-list a .material-icons {
    margin-right: 8px;
    color: var(--primary-color);
    transition: color 0.2s;
}