/*
Theme Name: Aged Care
Description: Child theme of Twenty Twenty-Five for aged care educational resources
Template: twentytwentyfive
Version: 1.0.0
*/

/* ==========================================================================
   AGED CARE CUSTOM STYLES
   ========================================================================== */



  /* Page introduction styling */
  .page-intro {
      text-align: center;
      margin: 40px auto 50px auto;
      max-width: 800px;
      padding: 0 20px;
  }

  .intro-statement {
      color: #374151;
      font-size: 1.125rem;
      line-height: 1.6;
      margin: 0;
      font-weight: 400;
  }

  .intro-statement strong {
      color: #1f2937;
      font-weight: 600;
  }

  .intro-statement a {
      color: #10b981;
      text-decoration: none;
      transition: color 0.2s ease;
  }

  .intro-statement a:hover {
      color: #059669;
      text-decoration: underline;
  }
/* Container for card layout */
.aged-care-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0 60px 0;
    padding: 0 20px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* Card styling */
.care-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    padding-bottom: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    height: 100%;
}

.care-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.care-card h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #10b981;
}

.care-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

.care-card a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.care-card a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Educational modules section */
.educational-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.educational-section h2 {
    color: #1f2937;
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #10b981;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.educational-intro {
    text-align: left;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* LemlinkLMS menu category headings - reduce size */
.lemlinklms-category h3,
.lemlinklms-category-title,
.lms-category-header,
.educational-section h3 {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 20px 0 15px 0 !important;
}

/* Ensure good spacing between category sections */
.lemlinklms-category {
    margin-bottom: 35px;
}

/* Telehealth section styling */
.telehealth-section {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 40px;
    margin: 60px auto;
    max-width: 1200px;
}

.telehealth-section h2 {
    color: #1f2937;
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 25px;
}

/* Hide horizontal rules */
hr {
    display: none;
}

/* Button styling for any CTAs */
.care-card .btn-primary {
    display: inline-block;
    background-color: #10b981;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-align: center;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Generic button styling for non-card buttons */
.btn-primary {
    display: inline-block;
    background-color: #10b981;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: #059669;
    color: white !important;
}

/* Ensure external tiles have proper spacing */
.lemlinklms-external-tiles {
    margin: 30px 0 35px 0;
}

/* Add spacing between external tile rows */
.lemlinklms-external-tiles + .lemlinklms-external-tiles {
    margin-top: 35px;
}

/* Additional spacing for clean, sparse look */
.page-content > * {
    margin-bottom: 30px;
}

/* ==========================================================================
   HEALTHPATHWAYS PAGE STYLES
   ========================================================================== */

/* Introduction section */
.healthpathways-intro {
    text-align: center;
    margin: 40px auto 60px auto;
    max-width: 800px;
    padding: 0 20px;
}

.healthpathways-intro h2 {
    color: #1f2937;
    font-size: 2.25rem;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #10b981;
    display: inline-block;
}

.intro-text {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

/* Grid layout for pathway cards */
.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 0 auto 60px auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* Individual pathway cards */
.pathway-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.pathway-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #10b981;
}

.pathway-card h3 {
    color: #1f2937;
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.pathway-card p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Pathway links */
.pathway-link {
    display: inline-block;
    background-color: #10b981;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
    font-size: 0.9rem;
}

.pathway-link:hover {
    background-color: #059669;
    color: white !important;
    transform: translateY(-1px);
}

/* Access note section */
.access-note {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 30px;
    margin: 60px auto 40px auto;
    max-width: 800px;
    text-align: center;
}

.access-note p {
    color: #1e40af;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.access-note p:last-child {
    margin-bottom: 0;
}

.access-note a {
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: underline;
}

.access-note a:hover {
    color: #1e3a8a;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .aged-care-cards {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .care-card {
        padding: 20px;
    }

    .educational-section,
    .telehealth-section {
        padding: 20px 15px;
    }

    .pathways-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .pathway-card {
        padding: 20px;
        min-height: 160px;
    }

    .healthpathways-intro {
        padding: 0 15px;
    }

    .healthpathways-intro h2 {
        font-size: 1.875rem;
    }

    .access-note {
        padding: 20px;
        margin: 40px 15px 30px 15px;
    }
}

@media (min-width: 1200px) {
    .pathways-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure consistent card heights in each row */
@supports (display: grid) {
    .pathways-grid {
        align-items: stretch;
    }
}

/* ==========================================================================
   HEALTHPATHWAYS DETAILED PAGE STYLES
   ========================================================================== */

/* Header section */
.healthpathways-header {
    text-align: center;
    margin: 40px auto 60px auto;
    max-width: 900px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    color: white;
}

.healthpathways-header h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.header-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

/* Benefits grid - override to force single column */
.benefits-grid {
    display: none !important;
}

/* Make sure benefits-grid-compact is visible */
.benefits-grid-compact {
    display: block !important;
    margin: 0 auto 50px auto;
    max-width: 900px;
    padding: 0 20px;
}

.benefit-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.benefit-card h2 {
    color: #1f2937;
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #10b981;
    padding-bottom: 8px;
}

.benefit-card ul {
    margin: 0;
    padding-left: 20px;
}

.benefit-card li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Main pathways section */
.pathways-main-section {
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 20px;
}

.pathways-main-section > h2 {
    text-align: center;
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #10b981;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* Pathways category grid */
.pathways-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #10b981;
}

/* Pathway links container */
.pathway-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.pathway-link {
    color: #374151 !important;
    text-decoration: none !important;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
    display: block;
    background: #f9fafb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pathway-link:hover {
    background-color: #f0f9ff !important;
    border-color: #10b981 !important;
    color: #059669 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pathway badges */
.pathway-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 8px;
}

.pathway-badge.new {
    background-color: #fef3c7;
    color: #92400e;
}

.pathway-badge.recent {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Access credentials section */
.access-credentials {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin: 60px auto 40px auto;
    max-width: 600px;
}

.access-credentials h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.access-credentials p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.access-credentials a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.access-credentials a:hover {
    color: #f0f9ff;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR HEALTHPATHWAYS PAGE
   ========================================================================== */

@media (max-width: 768px) {
    .healthpathways-header {
        padding: 30px 20px;
        margin: 30px 15px 40px 15px;
    }

    .healthpathways-header h1 {
        font-size: 2rem;
    }

    .header-description {
        font-size: 1.1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .benefit-card {
        padding: 20px;
    }

    .pathways-main-section {
        padding: 0 15px;
    }

    .pathways-category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-section {
        padding: 20px;
    }

    .category-section h3 {
        font-size: 1.25rem;
    }

    .pathway-links {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pathway-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .access-credentials {
        margin: 40px 15px 30px 15px;
        padding: 25px 20px;
    }

    .access-credentials p {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .pathways-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   COMPACT BENEFITS GRID
   ========================================================================== */

/* Benefits grid - single column layout with cards */
.benefits-grid-compact {
    display: block;
    margin: 0 auto 50px auto;
    max-width: 900px;
    padding: 0 20px;
}

.benefit-card-compact {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    padding: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.benefit-card-compact:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.benefit-card-compact h2 {
    color: #1f2937 !important;
    font-size: 1.1rem !important;
    margin: 0 0 12px 0 !important;
    font-weight: 600;
    border-bottom: 2px solid #10b981;
    padding-bottom: 6px;
    display: block !important;
    visibility: visible !important;
}

.benefit-card-compact ul {
    margin: 0 !important;
    padding-left: 18px !important;
    display: block !important;
    visibility: visible !important;
}

.benefit-card-compact li {
    color: #4b5563 !important;
    line-height: 1.5;
    margin-bottom: 6px !important;
    font-size: 0.9rem !important;
    display: list-item !important;
    visibility: visible !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits-grid-compact {
        padding: 0 15px;
        gap: 15px;
    }

    .benefit-card-compact {
        padding: 15px;
    }

    .benefit-card-compact h2 {
        font-size: 1rem;
    }

    .benefit-card-compact li {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   HP FEATURES - COMPLETELY NEW APPROACH
   ========================================================================== */

.hp-features-container {
    max-width: 900px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.hp-feature-box {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hp-feature-box h2 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #10b981;
}

.hp-feature-box ul {
    margin: 0;
    padding-left: 20px;
}

.hp-feature-box li {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .hp-features-container {
        padding: 0 15px;
    }

    .hp-feature-box {
        padding: 20px;
        margin-bottom: 20px;
    }
}