:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a; /* Inherited from shared.css body */
    --login-color: #EA7C07;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if section backgrounds are not set */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(0, 0, 0, 0.8)); /* Blend brand color with dark background */
    color: var(--text-light);
    overflow: hidden; /* For image positioning */
    min-height: 600px;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-resources__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* General Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background-color: #1a7fb3; /* Darker version of #26A9E0 */
    border-color: #1a7fb3;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Sections General */
.page-resources__updates-section,
.page-resources__guides-section,
.page-resources__security-section,
.page-resources__video-section,
.page-resources__faq-section,
.page-resources__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

.page-resources__dark-section {
    background-color: var(--primary-color); /* Using brand color for dark section */
    color: var(--text-light);
}

.page-resources__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Default for dark sections */
}

.page-resources__dark-section .page-resources__section-title {
    color: var(--secondary-color);
}

.page-resources__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.8); /* Lighter text for dark sections */
}

.page-resources__dark-section .page-resources__section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Card Grid Layout */
.page-resources__updates-grid,
.page-resources__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources__update-card,
.page-resources__guide-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--text-dark); /* Dark text for light background */
}

.page-resources__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-resources__card-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #1a7fb3;
}

.page-resources__card-text {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__read-more:hover {
    color: #1a7fb3;
}

.page-resources__arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.page-resources__read-more:hover .page-resources__arrow {
    transform: translateX(5px);
}

.page-resources__cta-full-width {
    margin-top: 30px;
}

/* Security Section */
.page-resources__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-resources__security-text {
    flex: 1;
}

.page-resources__sub-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-resources__security-section p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__security-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.page-resources__security-section li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__security-section li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.page-resources__link-text {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__link-text:hover {
    color: var(--primary-color);
}

.page-resources__security-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer; /* Indicates clickability for JS redirect */
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: var(--bg-dark); /* Ensure dark background for FAQ */
    color: var(--text-light);
}

.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-resources__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary-color);
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px 20px;
}