/* ===========================
   About Page Redesign Styles
   =========================== */

.about-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
}

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #673AB7 0%, #9C27B0 50%, #E91E63 100%);
}

.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.value-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* High-contrast adjustments for Values section (visibility fix).
   .value-icon intentionally excluded so each icon keeps its inline color. */
.our-values-section .section-title,
.our-values-section .section-subtitle,
.our-values-section .value-title {
    color:#ffffff !important;
    text-shadow:0 1px 2px rgba(0,0,0,0.35);
}
.our-values-section .value-card {
    background:rgba(0,0,0,0.28) !important;
    border:1px solid rgba(255,255,255,0.25);
}
.our-values-section .value-card:hover {
    background:rgba(0,0,0,0.38) !important;
}

.service-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-item:hover {
    transform: translateX(5px);
    border-color: #673AB7;
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.1) !important;
}

.service-item:hover .service-icon {
    color: #673AB7 !important;
}

.mission-highlight {
    border-left: 4px solid #673AB7;
}

.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.btn-primary {
    background-color: #673AB7;
    border-color: #673AB7;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5E35B1;
    border-color: #5E35B1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.3);
}

.text-primary {
    color: #673AB7 !important;
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.pl-lg-5 {
    padding-left: 3rem !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .pl-lg-5 {
        padding-left: 15px !important;
        margin-top: 40px;
    }
    
    .py-80 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card, .service-item {
        margin-bottom: 20px;
    }
    
    .value-card {
        margin-bottom: 15px;
    }
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Additional utility classes */
.rounded-lg {
    border-radius: 0.75rem !important;
}

.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.text-white {
    color: #ffffff !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

/* New utility & component styles added */
.gradient-text {
    background: linear-gradient(90deg,#673AB7,#9C27B0,#E91E63);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-stats .stat-item {
    background:#fff;
    border:1px solid #e2e6ea;
    border-radius:12px;
    padding:16px 12px;
    text-align:center;
    box-shadow:0 4px 16px rgba(0,0,0,0.05);
    transition:.3s ease;
}
.hero-stats .stat-item:hover { transform:translateY(-4px); box-shadow:0 6px 22px rgba(0,0,0,0.08); }
.stat-number { font-size:1.75rem; font-weight:700; margin:0; }
.stat-label { font-size:.85rem; letter-spacing:.5px; text-transform:uppercase; margin:4px 0 0; color:#6c757d; }

.feature-icon-wrapper { position:relative; display:inline-block; }
.feature-icon-bg { position:absolute; inset:0; border-radius:50%; filter:blur(14px); opacity:.35; }
.feature-icon { position:relative; z-index:1; }

.mission-highlight-card { border:1px solid #e2e6ea; box-shadow:0 4px 18px rgba(0,0,0,0.08); }
.mission-quote { font-size:.95rem; color:#444; border-left:4px solid #673AB7; padding-left:12px; }

.cta-icon { font-size:2rem; }
.cta-features h6 { font-weight:600; }
.cta-features p { line-height:1.3; }

@media (prefers-reduced-motion: reduce) {
  .animate-fadeInUp { animation:none !important; }
  .feature-card, .service-item, .hero-stats .stat-item { transition:none; }
}

/* NDIS badge styling for About page */
.ndis-badge { display:inline-flex; align-items:center; gap:10px; background:#fff; border:1px solid #e2e6ea; border-radius:999px; padding:8px 12px; box-shadow:0 4px 16px rgba(0,0,0,0.06); }
.ndis-badge-img { height:24px; width:auto; object-fit:contain; filter:drop-shadow(0 1px 3px rgba(0,0,0,0.15)); }
.ndis-badge-text { font-weight:600; color:#2c3e50; font-size:.95rem; }
@media (max-width:767px){ .ndis-badge { padding:6px 10px; } .ndis-badge-img { height:20px; } .ndis-badge-text { font-size:.9rem; } }

/* ===========================
     Design Refinements Override
     =========================== */
/* Consistent vertical rhythm helpers */
.section-spacing { padding-top:92px; padding-bottom:92px; }
.section-spacing-sm { padding-top:60px; padding-bottom:60px; }

/* Hero adjustments */
.about-hero-section {
    background: linear-gradient(125deg,#ffffff 0%,#f3f5f9 45%,#e9ecf2 100%);
    padding-top:40px;
    padding-bottom:40px;
}

/* Spacing scale overrides */
.py-80 { padding-top:92px; padding-bottom:92px; }
.py-60 { padding-top:64px; padding-bottom:64px; }

/* Card & item styling */
.feature-card {
    transition: all .35s cubic-bezier(.16,.84,.44,1);
    border:1px solid #e3e7eb;
    padding:28px 22px;
    border-radius:18px;
    background:#fff;
}
.service-item {
    transition: all .35s cubic-bezier(.16,.84,.44,1);
    border:1px solid #e3e7eb;
    background:#fff;
    border-radius:14px;
    padding:18px 16px;
}

.mission-highlight-card { border:1px solid #e2e6ea; box-shadow:0 4px 18px rgba(0,0,0,0.08); border-radius:20px; padding:32px 28px; background:#fff; }
.mission-highlight-card h5 { font-weight:600; }
.mission-highlight-card p { line-height:1.55; }

/* Focus accessibility */
.feature-card:focus, .service-item:focus, .btn-primary:focus, .cta-icon:focus {
    outline:3px solid #9C27B0;
    outline-offset:3px;
}

/* Container refinement */
#main-content .auto-container { max-width:1220px; }

@media (max-width:1200px){
    .section-title { font-size:2.25rem; }
    .feature-card { padding:24px 18px; }
}
@media (max-width:991px){
    .feature-card { margin-bottom:24px; }
    .service-item { margin-bottom:20px; }
    .mission-highlight-card { padding:28px 22px; }
    .py-80, .section-spacing { padding-top:72px; padding-bottom:72px; }
}
@media (max-width:767px){
    .section-title { font-size:1.85rem; }
    .hero-stats .stat-item { margin-bottom:14px; }
    .mission-highlight-card { padding:24px 20px; }
    .feature-card, .service-item { padding:20px 16px; }
}

/* Modern glassmorphism & refined shadows */
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%) !important;
    box-shadow: 0 8px 32px rgba(103, 58, 183, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    transition: all .4s cubic-bezier(.16,.84,.44,1);
    border: 1px solid rgba(103, 58, 183, 0.08);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(103, 58, 183, 0.15), 0 4px 16px rgba(0,0,0,0.08);
    border-color: rgba(103, 58, 183, 0.2);
}

.service-item {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all .35s cubic-bezier(.16,.84,.44,1);
    border: 1px solid #e9ecf0;
}

.service-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 24px rgba(103, 58, 183, 0.12);
    border-color: #673AB7;
}

/* Enhanced value cards with modern depth */
.our-values-section.force-visible .value-card {
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    transition: all .4s cubic-bezier(.16,.84,.44,1);
    border: 1px solid #e2e6eb;
}

.our-values-section.force-visible .value-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    background: #fafbfc !important;
}

/* Typography refinements */
.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-description, .lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4a5568;
    font-weight: 400;
}

/* Enhanced stat items */
.hero-stats .stat-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all .35s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(103, 58, 183, 0.12);
    border-color: rgba(103, 58, 183, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #673AB7, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: #718096;
}

/* Mission highlight card refinement */
.mission-highlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(103, 58, 183, 0.08);
    border-radius: 24px;
    padding: 36px 32px;
    transition: all .35s ease;
}

.mission-highlight-card:hover {
    box-shadow: 0 12px 40px rgba(103, 58, 183, 0.12);
    transform: translateY(-4px);
}

.mission-quote {
    font-size: 1rem;
    color: #4a5568;
    border-left: 4px solid #673AB7;
    padding-left: 16px;
    font-style: italic;
    line-height: 1.6;
}

/* Button enhancements */
.btn-primary {
    background: linear-gradient(135deg, #673AB7 0%, #9C27B0 100%);
    border: none;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all .35s cubic-bezier(.16,.84,.44,1);
    box-shadow: 0 4px 16px rgba(103, 58, 183, 0.3);
    border-radius: 12px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5E35B1 0%, #8E24AA 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(103, 58, 183, 0.4);
}

/* CTA icons enhancement */
.cta-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #673AB7, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(103, 58, 183, 0.2));
}

/* Approach highlights refinement */
.highlight-item {
    transition: all .3s ease;
    padding: 16px;
    border-radius: 12px;
}

.highlight-item:hover {
    background: #f8f9fc;
    transform: translateX(8px);
}

.highlight-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #2d3748;
    margin-bottom: 6px;
}

.highlight-text {
    color: #718096;
    line-height: 1.6;
}

/* Image enhancements */
.about-hero-image img,
.approach-image img,
.thrive-image img,
.goals-image img {
    transition: all .4s ease;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.about-hero-image img:hover,
.approach-image img:hover,
.thrive-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 56px rgba(0,0,0,0.16);
}

/* Background section refinements */
.bg-light {
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%) !important;
}

/* Responsive typography adjustments */
@media (max-width: 1200px) {
    .section-title { font-size: 2.35rem; }
}

@media (max-width: 991px) {
    .section-title { font-size: 2rem; }
    .hero-description, .lead { font-size: 1.05rem; }
}

@media (max-width: 767px) {
    .section-title { font-size: 1.75rem; }
    .section-subtitle { font-size: 0.8rem; letter-spacing: 1.5px; }
    .hero-description, .lead { font-size: 1rem; }
    .stat-number { font-size: 1.65rem; }
    .btn-primary { padding: 14px 32px; font-size: 0.95rem; }
}

/* === Visibility fixes === */

/* Values section: cards are white (force-visible), so text inside must be dark.
   Earlier rules force white text via !important, which makes text invisible
   on the white card backgrounds. Override with higher specificity + !important. */
.our-values-section.force-visible .value-title {
    color: #1a202c !important;
    text-shadow: none !important;
    font-weight: 700;
}
.our-values-section.force-visible .value-icon {
    text-shadow: none !important;
}
/* Section heading sits on the purple gradient — keep it white. */
.our-values-section.force-visible .section-title,
.our-values-section.force-visible .section-subtitle {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Goals & Mission section sits on the same purple gradient but had no
   overrides — default dark text was nearly invisible on purple. */
.goals-mission-section .section-title,
.goals-mission-section .subtitle,
.goals-mission-section .contact-info h5,
.goals-mission-section .contact-info p,
.goals-mission-section .contact-info svg {
    color: #ffffff !important;
}
.goals-mission-section .section-title {
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.goals-mission-section .subtitle {
    opacity: 0.92;
    font-weight: 600;
}
.goals-mission-section .contact-info h5 {
    font-weight: 700;
    margin-bottom: 4px;
}
.goals-mission-section .contact-info p {
    opacity: 0.95;
}