/**
 * WARN Landing Pages Styles
 * 
 * Brand Colors:
 * - Primary (Red): #C24747
 * - Accent (Dark Blue): #295174
 * - Background: #FFFFFF
 * - Text: #295174
 * - Font: Oxygen, sans-serif
 */

/* ==========================================================================
   Layout & Container
   ========================================================================== */

   .warn-landing-page {
    max-width: 100%;
    font-family: 'Oxygen', sans-serif;
}

.warn-landing-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.warn-landing-page .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 375px;
    gap: 30px;
    align-items: start;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.landing-hero {
    background: linear-gradient(135deg, #295174 0%, #1d3a52 100%);
    padding: 80px 0;
    color: #ffffff;
    border-top: solid 5px #ffffff;
}

.landing-featured-image {
    margin-bottom: 30px;
}

.landing-featured-image .featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.landing-headline {
    font-size: 2.75rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.landing-content {
    padding: 60px 0 80px;
}

.main-content {
    color: #333333;
}

.intro-content {
    margin-bottom: 40px;
}

.intro-content h2,
.intro-content h3,
.intro-content h4 {
    color: #295174;
    margin-top: 0.75em;
    margin-bottom: 0.25em;
    font-size: 1.75rem;
}

.intro-content h2:first-child,
.intro-content h3:first-child,
.intro-content h4:first-child {
    margin-top: 0;
}

.intro-content p,
.company-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.25em;
}

.company-info p:last-child{
    margin-bottom: 0;
}

.intro-content ul,
.intro-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.intro-content a {
    color: #C24747;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.intro-content a:hover {
    color: #295174;
}

.company-info {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-left: 4px solid #295174;
    border-radius: 0 8px 8px 0;
}

.company-info h2,
.company-info h3 {
    color: #295174;
    margin-top: 0;
    margin-bottom: 0.75em;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

/* FAQ Link Section (replaces accordion) */
.faq-link-section {
    margin-top: 50px;
    padding: 35px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.faq-link-section h2 {
    color: #295174;
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.faq-link-section p {
    color: #555;
    margin: 0 0 20px;
    font-size: 1.05rem;
}

.faq-link-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #295174;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.faq-link-btn:hover {
    background: #1d3a52;
    color: #ffffff;
}

.faq-link-btn i {
    margin-right: 8px;
}

/* Legacy FAQ Accordion (kept for reference) */
.faq-section {
    margin-top: 50px;
    /* padding-top: 40px; */
    /* border-top: 1px solid #e0e0e0; */
}

.faq-section>h2 {
    color: #295174;
    font-size: 1.75rem;
    margin-bottom: 25px;
}

.faq-accordion {
    border-top: 1px solid #e0e0e0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: #295174;
    font-family: 'Oxygen', sans-serif;
    transition: color 0.2s ease;
    gap: 15px;
}

.faq-question:hover {
    color: #C24747;;
    background-color: transparent;
}

.faq-question:focus {
    background-color: transparent;
    color: #295174;
}

.faq-question-text {
    flex: 1;
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    display: none; /* jQuery handles show/hide */
    overflow: hidden;
}

.faq-answer-inner {
    padding-bottom: 25px;
    line-height: 1.8;
    color: #444444;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Sidebar & Form
   ========================================================================== */

.landing-sidebar {
    position: sticky;
    top: 30px;
}

.form-wrapper {
    background: #f8f9fa;
    padding: 25px;
    /* border-radius: 8px; */
    border-top: 4px solid #C24747;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-wrapper h2 {
    font-size: 1.5rem;
    margin: 0px 0 20px;
    color: #295174;
    font-weight: 600;
}

.form-notice {
    color: #666;
    font-style: italic;
}

/* Gravity Forms Styling */
.form-wrapper .gform_wrapper {
    margin: 0;
}

.form-wrapper .gform_wrapper .gfield {
    margin-bottom: 0;
}

.form-wrapper .gform_wrapper .gfield_label {
    font-weight: 600 !important;
    color: #295174;
    margin-bottom: 0px !important;
    font-size: 0.95rem !important;
}

.form-wrapper .gform_wrapper .gfield_required {
    color: #C24747;
}

.form-wrapper .gform_wrapper input[type="text"],
.form-wrapper .gform_wrapper input[type="email"],
.form-wrapper .gform_wrapper input[type="tel"],
.form-wrapper .gform_wrapper input[type="date"],
.form-wrapper .gform_wrapper select,
.form-wrapper .gform_wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Oxygen', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-wrapper .gform_wrapper input[type="text"]:focus,
.form-wrapper .gform_wrapper input[type="email"]:focus,
.form-wrapper .gform_wrapper input[type="tel"]:focus,
.form-wrapper .gform_wrapper input[type="date"]:focus,
.form-wrapper .gform_wrapper select:focus,
.form-wrapper .gform_wrapper textarea:focus {
    border-color: #295174;
    box-shadow: 0 0 0 3px rgba(41, 81, 116, 0.1);
    outline: none;
}

.form-wrapper .gform_wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.form-wrapper .gform_wrapper .gform_button,
.form-wrapper .gform_wrapper input[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: #C24747;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Oxygen', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-wrapper .gform_wrapper .gform_button:hover,
.form-wrapper .gform_wrapper input[type="submit"]:hover {
    background: #a83c3c;
}

.form-wrapper .gform_wrapper .gform_button:active,
.form-wrapper .gform_wrapper input[type="submit"]:active {
    transform: translateY(1px);
}

.form-wrapper .gform_wrapper .gform_button:focus,
.form-wrapper .gform_wrapper input[type="submit"]:focus {
    outline: 2px solid #295174;
    outline-offset: 2px;
}

/* Validation styles */
.form-wrapper .gform_wrapper .gfield_error input,
.form-wrapper .gform_wrapper .gfield_error textarea,
.form-wrapper .gform_wrapper .gfield_error select {
    border-color: #C24747;
}

.form-wrapper .gform_wrapper .validation_message {
    color: #C24747;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-wrapper .gform_wrapper .gform_confirmation_message {
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.charleft.ginput_counter {
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   Latest Landing Pages (Homepage Shortcode)
   ========================================================================== */

.latest-landing-pages {
    padding: 20px 0 60px 0;
}

.latest-landing-pages h2 {
    color: #295174;
    font-size: 2rem;
    margin-bottom: 30px;
}

.landing-pages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.landing-page-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.landing-page-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Stretched link to make entire card clickable */
.landing-page-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.landing-page-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    position: relative;
    z-index: 0;
}

.landing-page-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease !important;
}

.landing-page-item:hover .landing-page-img {
    transform: scale(1.05);
}

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

.landing-page-item h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #295174;
    transition: color 0.2s ease;
}

.landing-page-item:hover h3 {
    color: #C24747;
}

.landing-page-date {
    display: inline-block;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 8px;
}

.landing-page-excerpt {
    margin: 10px 0 0;
    color: #444444;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 5px !important;
}

.landing-pages-view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 35px;
    background: #295174;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.view-all-btn:hover {
    background: #1d3a52;
    color: #ffffff;
}

.view-all-btn:active {
    transform: translateY(1px);
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

.warn-landing-archive {
    font-family: 'Oxygen', sans-serif;
}

.warn-landing-archive .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-hero {
    background: linear-gradient(135deg, #295174 0%, #1d3a52 100%);
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
    border-top: solid 5px #ffffff;
}

.archive-headline {
    font-size: 2.5rem;
    margin: 0 0 15px;
    font-weight: 700;
    color: #ffffff;
}

.archive-description {
    font-size: 1.15rem;
    margin: 0;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-content {
    padding: 60px 0 80px;
}

.warn-landing-archive .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 375px;
    gap: 30px;
    align-items: start;
}

/* Uses same .landing-pages-list and .landing-page-item styles from shortcode */

.warn-landing-archive .landing-page-item h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #295174;
    transition: color 0.2s ease;
}

.warn-landing-archive .landing-page-item:hover h2 {
    color: #C24747;
}

.no-landing-pages {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Archive Pagination */
.archive-pagination,
.navigation.pagination {
    margin-top: 50px;
    text-align: center;
}

.archive-pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #295174;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
    background: #295174;
    color: #ffffff;
}

.archive-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: #295174;
    color: #ffffff;
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    font-weight: 600;
}

.external-links h2 {
    color: #295174;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.external-links a{
    display: block;
}

@media (max-width: 1024px) {
    .warn-landing-archive .content-wrapper {
        grid-template-columns: 1fr 350px;
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .warn-landing-archive .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Archive Mobile */
@media (max-width: 600px) {
    .archive-hero {
        padding: 40px 0;
    }

    .archive-headline {
        font-size: 1.85rem;
    }

    .archive-description {
        font-size: 1rem;
    }

    .archive-content {
        padding: 40px 0 60px;
    }
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .warn-landing-page .content-wrapper {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .warn-landing-page .content-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .landing-sidebar {
        position: static;
        max-width: 500px;
    }

    .landing-headline {
        font-size: 2.25rem;
    }

    .landing-hero {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .landing-hero {
        padding: 50px 0;
    }

    .landing-featured-image {
        margin-bottom: 20px;
    }

    .landing-content {
        padding: 40px 0 60px;
    }

    .landing-headline {
        font-size: 1.85rem;
    }

    .form-wrapper {
        padding: 25px 20px;
    }

    .form-wrapper h2 {
        font-size: 1.35rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 18px 0;
    }

    .intro-content p,
    .company-info p {
        font-size: 1rem;
    }

    .latest-landing-pages h2 {
        font-size: 1.65rem;
    }

    .landing-pages-list {
        grid-template-columns: 1fr;
    }

    .landing-page-item h3 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .landing-sidebar,
    .form-wrapper {
        display: none;
    }

    .warn-landing-page .content-wrapper {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .landing-headline {
        color: #000;
    }

    .faq-answer[hidden] {
        display: block !important;
    }
}
