/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700; /* Auxiliary color for titles */
}

.page-resources__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--header-offset, 120px); /* Apply header offset here if shared doesn't */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #0A1931 0%, #1A2B47 100%); /* Dark gradient background */
    color: #ffffff;
    overflow: hidden;
}

.page-resources__hero-content {
    flex: 1;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 1;
    max-width: 600px;
    margin-left: auto; /* Push content to the left */
}

.page-resources__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Push image to the right */
    align-items: center;
    padding-right: 20px;
}

.page-resources__hero-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size for all images */
    min-height: 200px; /* Min size for all images */
    object-fit: cover;
}

.page-resources__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffd700; /* Auxiliary color for main title */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__hero-buttons {
    display: flex;
    gap: 20px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background-color: #ffd700; /* Auxiliary color */
    color: #0A1931; /* Main color for text */
    border: 2px solid #ffd700;
}

.page-resources__btn-primary:hover {
    background-color: #ffeb80;
    border-color: #ffeb80;
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffd700; /* Auxiliary color */
    border: 2px solid #ffd700;
}

.page-resources__btn-secondary:hover {
    background-color: #ffd700;
    color: #0A1931; /* Main color for text */
    transform: translateY(-2px);
}

.page-resources__btn-link {
    background-color: transparent;
    color: #ffd700;
    border: 1px solid #ffd700;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
}

.page-resources__btn-link:hover {
    background-color: #ffd700;
    color: #0A1931;
}

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-resources__intro-section .page-resources__section-title {
    color: #0A1931; /* Main color for title on light background */
}

.page-resources__intro-section .page-resources__section-description {
    color: #555555;
}

.page-resources__intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__intro-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-resources__intro-card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0A1931;
}

.page-resources__intro-card-text {
    font-size: 16px;
    color: #666666;
}

/* Categories Section */
.page-resources__categories-section {
    padding: 80px 0;
    background-color: #0A1931; /* Main color as background */
    color: #ffffff; /* White text for dark background */
}

.page-resources__categories-section .page-resources__section-title {
    color: #ffd700; /* Auxiliary color for titles */
}

.page-resources__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}