/* style/resources.css */

/* Base Styles & Color Contrast for Dark Body */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources a {
    color: #FFD700; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: #e0b000;
}

.page-resources h1,
.page-resources h2,
.page-resources h3,
.page-resources h4,
.page-resources h5,
.page-resources h6 {
    color: #ffffff; /* White for headings on dark sections */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Sections */
.page-resources__section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.page-resources__dark-section {
    background-color: #0A192F; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #1a2a40; /* Slightly lighter dark for contrast */
    color: #f0f0f0;
}

/* Buttons */
.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background: #FFD700; /* Gold for primary action */
    color: #0A192F; /* Dark blue text on gold */
}

.page-resources__btn-primary:hover {
    background: #e0b000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
    background: transparent;
    color: #FFD700; /* Gold text for secondary action */
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background: #FFD700;
    color: #0A192F;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Image Styles */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Video Section */
.page-resources__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-resources__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event on the link */
}

.page-resources__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-resources__video-link:hover .page-resources__video-overlay {
  opacity: 1;
}

.page-resources__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.8); /* Using gold with transparency */
  border-radius: 5px;
  white-space: nowrap;
}

.page-resources__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-resources__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Gold */
  color: #0A192F; /* Dark blue */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-resources__play-now-button:hover {
  background: #e0b000; /* Darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Title Section */
.page-resources__title-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #0A192F;
    color: #ffffff;
    box-sizing: border-box;
}

.page-resources__title-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Gold for main title */
}

.page-resources__title-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #f0f0f0;
}


/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 20px;
    background-color: #1a2a40; /* Slightly lighter dark for FAQ section */
    box-sizing: border-box;
}

.page-resources__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__faq-main-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #FFD700;
}

.page-resources__faq-list {
    margin-top: 30px;
}

/* FAQ item styles */
.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #0A192F; /* Dark blue background for FAQ items */
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A192F; /* Dark blue */
  border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #1a2a40; /* Slightly lighter dark blue on hover */
  border-color: #FFD700;
}

.page-resources__faq-question:active {
  background: #000000;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #FFD700; /* Gold for FAQ questions */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Plus sign rotates to X */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0; /* Light text for answers */
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  background: #1a2a40; /* Slightly lighter dark blue for answer background */
  border-radius: 0 0 5px 5px;
}

/* Brand Section */
.page-resources__brand-section {
    padding: 60px 20px;
    background-color: #0A192F;
    box-sizing: border-box;
}

.page-resources__brand-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__brand-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #FFD700;
}

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

.page-resources__brand-item {
    background-color: #1a2a40; /* Slightly lighter dark for brand items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-resources__brand-item h3 {
    font-size: 24px;
    margin-top: 20px;
    color: #FFD700;
}

.page-resources__brand-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-resources__brand-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Blog Section */
.page-resources__blog-section {
    padding: 60px 20px;
    background-color: #1a2a40; /* Slightly lighter dark for blog section */
    box-sizing: border-box;
}

.page-resources__blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__blog-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #FFD700;
}

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

.page-resources__blog-item {
    background-color: #0A192F; /* Dark blue for blog cards */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__blog-item-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__blog-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
    flex-grow: 1;
}

.page-resources__blog-item-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #FFD700; /* Gold for blog titles */
}

.page-resources__blog-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__blog-item-date {
    font-size: 14px;
    color: #aaaaaa;
    text-align: right;
    display: block;
    margin-top: auto; /* Push to bottom */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__title-description {
        font-size: 16px;
    }
    .page-resources__faq-main-title,
    .page-resources__brand-title,
    .page-resources__blog-title {
        font-size: 32px;
    }
    .page-resources__brand-item h3 {
        font-size: 22px;
    }
    .page-resources__blog-item-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-resources__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    
    .page-resources__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px;
        overflow: hidden !important;
    }
    
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        object-fit: contain;
    }
    
    .page-resources__video-cta {
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-resources__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General sections */
    .page-resources__section,
    .page-resources__title-section,
    .page-resources__faq-section,
    .page-resources__brand-section,
    .page-resources__blog-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__main-title {
        font-size: 32px;
    }
    .page-resources__title-description {
        font-size: 15px;
    }

    /* CTA buttons mobile */
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }

    /* FAQ mobile */
    .page-resources__faq-main-title,
    .page-resources__brand-title,
    .page-resources__blog-title {
        font-size: 28px;
    }
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }

    /* Brand section mobile */
    .page-resources__brand-item {
        padding: 20px;
    }
    .page-resources__brand-item h3 {
        font-size: 20px;
    }
    .page-resources__brand-item p {
        font-size: 15px;
    }
    .page-resources__brand-image {
        height: 200px;
    }

    /* Blog section mobile */
    .page-resources__blog-item {
        padding: 20px;
    }
    .page-resources__blog-item-image {
        height: 150px;
    }
    .page-resources__blog-item-title {
        font-size: 18px;
    }
    .page-resources__blog-item-excerpt {
        font-size: 14px;
    }

    /* Ensure all images and containers do not overflow */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__blog-item-image,
    .page-resources__brand-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow auto height for responsive scaling */
    }
    .page-resources__content-area,
    .page-resources__faq-container,
    .page-resources__brand-container,
    .page-resources__blog-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}