/* CSS Variables */
:root {
    --primary-brand: #003566;
    --primary-light: #e6eaf0;
    --primary-dark: #002346;
    --secondary-color: #4f6d7a;
    --secondary-light: #f1f4f6;
    --tertiary-color: #ff6b35;
    --tertiary-light: #fff0ec;
    --accent-color: #00a8cc;
    --accent-light: #e6f7fb;
    --neutral-color: #8e9aaf;
    --neutral-light: #f8f9fb;
    --info-color: #17a2b8;
    --warning-color: #dc3545;
    --success-color: #28a745;
    --text-color: #002346;
    --light-text: #ffffff;
    --border-radius: 0px;
    --transition-speed: 0.34s;
    --box-shadow: 0 7px 21px rgba(0, 53, 102, 0.13);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-text);
    overflow-x: hidden;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 21px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 13px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 13px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Navigation */
.primary-navigation {
    background: var(--light-text);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 0;
    position: relative;
}

.brand-logo img {
    height: 45px;
    width: auto;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.hamburger {
    width: 34px;
    height: 3px;
    background: var(--text-color);
    position: relative;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 34px;
    height: 3px;
    background: var(--text-color);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.hamburger:before {
    top: -9px;
}

.hamburger:after {
    top: 9px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 21px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 34px;
    margin: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
@media screen and (max-width: 890px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 17px;
        z-index: 2001;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--light-text);
        transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding-top: 89px;
        flex-direction: column;
        align-items: center;
        z-index: 2000;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 17px 0;
    }

    .nav-link {
        display: inline-block;
        padding: 13px 21px;
        font-size: 1.3rem;
        color: var(--text-color);
    }

    .nav-toggle:checked ~ .nav-wrapper {
        left: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger:before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger:after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* Hero Section */
.hero-showcase {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    padding: 89px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.hero-text h1 {
    color: var(--primary-brand);
    margin-bottom: 21px;
    font-size: 3.2rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 34px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 21px;
    flex-wrap: wrap;
}

.primary-action-btn, .secondary-action-btn {
    display: inline-block;
    padding: 17px 34px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.primary-action-btn {
    background: var(--accent-color);
    color: var(--light-text);
    border-color: var(--accent-color);
}

.primary-action-btn:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.secondary-action-btn {
    background: transparent;
    color: var(--primary-brand);
    border-color: var(--primary-brand);
}

.secondary-action-btn:hover {
    background: var(--primary-brand);
    color: var(--light-text);
    transform: translateY(-2px);
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: var(--box-shadow);
}

/* Services Section */
.services-showcase {
    padding: 89px 0;
    background: var(--light-text);
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-header h2 {
    color: var(--primary-brand);
    margin-bottom: 17px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--neutral-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 34px;
}

.service-card {
    background: var(--neutral-light);
    padding: 34px 21px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

.service-icon {
    width: 89px;
    height: 89px;
    margin: 0 auto 21px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.service-icon img {
    width: 34px;
    height: 34px;
    filter: hue-rotate(180deg) saturate(1.5);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.service-card:hover .service-icon img {
    filter: brightness(0) invert(1);
}

.service-card h3 {
    color: var(--primary-brand);
    margin-bottom: 13px;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Programs Section */
.programs-section {
    padding: 89px 0;
    background: var(--primary-light);
}

.programs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.program-item {
    display: flex;
    gap: 21px;
    margin-bottom: 34px;
    padding: 21px;
    background: var(--light-text);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 13px rgba(0, 53, 102, 0.08);
    transition: all var(--transition-speed);
}

.program-item:hover {
    transform: translateX(7px);
    box-shadow: var(--box-shadow);
}

.program-icon {
    width: 55px;
    height: 55px;
    background: var(--tertiary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-icon img {
    width: 21px;
    height: 21px;
    filter: hue-rotate(30deg) saturate(1.3);
}

.program-details h3 {
    color: var(--primary-brand);
    margin-bottom: 7px;
    font-size: 1.3rem;
}

.program-details p {
    color: var(--text-color);
    margin: 0;
}

.program-visual img {
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: var(--box-shadow);
}

/* CTA Section */
.cta-section {
    padding: 89px 0;
    background: linear-gradient(135deg, var(--primary-brand) 0%, var(--primary-dark) 100%);
    color: var(--light-text);
    text-align: center;
}

.cta-content h2 {
    color: var(--light-text);
    margin-bottom: 21px;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 34px;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item img {
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
}

.cta-button {
    display: inline-block;
    background: var(--tertiary-color);
    color: var(--light-text);
    padding: 21px 55px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid var(--tertiary-color);
}

.cta-button:hover {
    background: transparent;
    border-color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 13px 34px rgba(255, 107, 53, 0.4);
}

/* Contact Section */
.contact-section {
    padding: 89px 0;
    background: var(--neutral-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: start;
}

.contact-info h2 {
    color: var(--primary-brand);
    margin-bottom: 21px;
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 34px;
    font-size: 1.15rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.contact-item img {
    width: 21px;
    height: 21px;
    filter: hue-rotate(180deg) saturate(1.2);
}

/* Contact Form */
.contact-form {
    background: var(--light-text);
    padding: 34px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 17px;
    border: 2px solid var(--neutral-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed);
    background: var(--light-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--light-text);
    padding: 17px 34px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.submit-btn:hover {
    background: var(--primary-brand);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: var(--light-text);
    padding: 55px 0 21px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
    margin-bottom: 34px;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 17px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.link-group h4 {
    color: var(--light-text);
    margin-bottom: 17px;
    font-size: 1.2rem;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 7px;
}

.link-group ul li a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.link-group ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 17px;
}

.footer-contact .contact-item {
    margin-bottom: 13px;
    opacity: 0.8;
}

.footer-contact .contact-item img {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 21px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    .content-wrapper {
        padding: 0 34px;
    }
}

@media screen and (max-width: 890px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .programs-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 17px;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media screen and (max-width: 640px) {
    .content-wrapper {
        padding: 0 21px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 21px 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .primary-action-btn,
    .secondary-action-btn {
        width: 100%;
        text-align: center;
    }

    .contact-form {
        padding: 21px;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.program-item {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Human-like imperfections */
.service-card:nth-child(3) {
    margin-top: 2px; /* slight misalignment */
}

.program-item:last-child {
    margin-bottom: 35px; /* inconsistent spacing */
}

/* Left behind debug comment */
/* TODO: clean up transitions later */

.nav-item:first-child {
    margin-left: 1px; /* subtle offset */
}

.contact-item span {
    color: #fff;
}

/* About Page Specific Styles */

.about-hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 89px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-hero-text h1 {
    color: var(--primary-brand);
    margin-bottom: 21px;
    font-size: 2.8rem;
}

.about-hero-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
}

.about-hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: var(--box-shadow);
}

/* Background Section */
.background-section {
    padding: 89px 0;
    background: var(--light-text);
}

.background-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.background-item {
    display: flex;
    gap: 21px;
    margin-bottom: 34px;
    padding: 21px;
    background: var(--neutral-light);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.background-item:hover {
    transform: translateX(7px);
    box-shadow: var(--box-shadow);
}

.background-icon {
    width: 55px;
    height: 55px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.background-icon img {
    width: 21px;
    height: 21px;
    filter: hue-rotate(180deg) saturate(1.3);
}

.background-details h3 {
    color: var(--primary-brand);
    margin-bottom: 7px;
    font-size: 1.3rem;
}

.background-details p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.background-visual img {
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: var(--box-shadow);
}

/* Philosophy Section */
.philosophy-section {
    padding: 89px 0;
    background: var(--primary-light);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.philosophy-visual img {
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: var(--box-shadow);
}

.philosophy-text h2 {
    color: var(--primary-brand);
    margin-bottom: 21px;
}

.philosophy-text p {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 34px;
    line-height: 1.7;
}

.philosophy-principles {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.principle-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    background: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
}

.principle-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 13px rgba(0, 53, 102, 0.1);
}

.principle-item img {
    width: 21px;
    height: 21px;
    filter: hue-rotate(30deg) saturate(1.2);
}

/* Success Stories Section */
.success-stories-section {
    padding: 89px 0;
    background: var(--light-text);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 34px;
}

.story-card {
    background: var(--neutral-light);
    padding: 34px 21px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}

.story-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow);
    border-color: var(--tertiary-color);
}

.story-icon {
    width: 89px;
    height: 89px;
    margin: 0 auto 21px;
    background: var(--tertiary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.story-icon img {
    width: 34px;
    height: 34px;
    filter: hue-rotate(20deg) saturate(1.4);
}

.story-card:hover .story-icon {
    background: var(--tertiary-color);
    transform: scale(1.1);
}

.story-card:hover .story-icon img {
    filter: brightness(0) invert(1);
}

.story-card h3 {
    color: var(--primary-brand);
    margin-bottom: 13px;
    font-size: 1.4rem;
}

.story-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Training and Research Section */
.training-research-section {
    padding: 89px 0;
    background: var(--secondary-light);
}

.training-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.training-info h2 {
    color: var(--primary-brand);
    margin-bottom: 21px;
}

.training-info > p {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 34px;
    line-height: 1.7;
}

.training-features {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.feature-item {
    display: flex;
    gap: 17px;
    padding: 21px;
    background: var(--light-text);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 13px rgba(0, 53, 102, 0.08);
    transition: all var(--transition-speed);
}

.feature-item:hover {
    transform: translateX(7px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: var(--info-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.1;
}

.feature-icon img {
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
}

.feature-details h3 {
    color: var(--primary-brand);
    margin-bottom: 7px;
    font-size: 1.3rem;
}

.feature-details p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.training-visual img {
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: var(--box-shadow);
}

/* Resources Section */
.resources-section {
    padding: 89px 0;
    background: var(--neutral-light);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 34px;
}

.resource-card {
    background: var(--light-text);
    padding: 34px 21px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}

.resource-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow);
    border-color: var(--info-color);
}

.resource-icon {
    width: 89px;
    height: 89px;
    margin: 0 auto 21px;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.resource-icon img {
    width: 34px;
    height: 34px;
    filter: hue-rotate(200deg) saturate(1.3);
}

.resource-card:hover .resource-icon {
    background: var(--info-color);
    transform: scale(1.1);
}

.resource-card:hover .resource-icon img {
    filter: brightness(0) invert(1);
}

.resource-card h3 {
    color: var(--primary-brand);
    margin-bottom: 13px;
    font-size: 1.3rem;
}

.resource-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Thank You Page Specific Styles */

.thankyou-main-section {
    padding: 89px 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary-light) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thankyou-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 55px;
    align-items: center;
    text-align: center;
}

.thankyou-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon-wrapper {
    width: 144px;
    height: 144px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon {
    width: 89px;
    height: 89px;
    filter: brightness(0) invert(1);
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 21px rgba(40, 167, 69, 0);
    }
}

.thankyou-text {
    text-align: left;
}

.thankyou-text h1 {
    color: var(--primary-brand);
    margin-bottom: 21px;
    font-size: 2.5rem;
}

.thank-message {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 34px;
    line-height: 1.8;
}

.next-steps {
    margin-bottom: 34px;
}

.next-steps h3 {
    color: var(--primary-brand);
    margin-bottom: 21px;
    font-size: 1.5rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.step-item {
    display: flex;
    gap: 17px;
    padding: 17px;
    background: var(--light-text);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 13px rgba(0, 53, 102, 0.08);
    transition: all var(--transition-speed);
}

.step-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.step-number {
    width: 34px;
    height: 34px;
    background: var(--accent-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-brand);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-reminder {
    display: flex;
    gap: 17px;
    padding: 21px;
    background: var(--tertiary-light);
    border-radius: var(--border-radius);
    margin-bottom: 34px;
    border: 1px solid var(--tertiary-color);
}

.reminder-icon {
    width: 34px;
    height: 34px;
    background: var(--tertiary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reminder-icon img {
    width: 17px;
    height: 17px;
    filter: brightness(0) invert(1);
}

.reminder-text h4 {
    color: var(--primary-brand);
    margin-bottom: 7px;
    font-size: 1.1rem;
}

.reminder-text p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 21px;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    display: inline-block;
    padding: 17px 34px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.primary-button {
    background: var(--accent-color);
    color: var(--light-text);
    border-color: var(--accent-color);
}

.primary-button:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.secondary-button {
    background: transparent;
    color: var(--primary-brand);
    border-color: var(--primary-brand);
}

.secondary-button:hover {
    background: var(--primary-brand);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* Resources Preview Section */
.resources-preview-section {
    padding: 89px 0;
    background: var(--neutral-light);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px;
}

.preview-card {
    background: var(--light-text);
    padding: 34px 21px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

.preview-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 21px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.preview-icon img {
    width: 28px;
    height: 28px;
    filter: hue-rotate(180deg) saturate(1.3);
}

.preview-card:hover .preview-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.preview-card:hover .preview-icon img {
    filter: brightness(0) invert(1);
}

.preview-card h3 {
    color: var(--primary-brand);
    margin-bottom: 13px;
    font-size: 1.2rem;
}

.preview-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design for About and Thank You pages */
@media screen and (max-width: 890px) {
    .about-hero-content,
    .background-content,
    .philosophy-content,
    .training-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .thankyou-content {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    .thankyou-text {
        text-align: center;
    }

    .action-buttons {
        justify-content: center;
    }

    .stories-grid,
    .resources-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-principles {
        align-items: center;
    }
}

@media screen and (max-width: 640px) {
    .about-hero-text h1 {
        font-size: 2.2rem;
    }

    .thankyou-text h1 {
        font-size: 2rem;
    }

    .success-icon-wrapper {
        width: 120px;
        height: 120px;
    }

    .success-icon {
        width: 75px;
        height: 75px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }

    .steps-list {
        gap: 13px;
    }

    .step-item {
        padding: 13px;
    }

    .contact-reminder {
        padding: 17px;
    }

    .philosophy-content {
        text-align: center;
    }
}

/* Human imperfections for About and Thank You */
.story-card:nth-child(2) {
    margin-top: 3px; /* slight misalignment */
}

.feature-item:last-child {
    margin-bottom: 22px; /* inconsistent spacing */
}

/* Left over debug style */
/* NOTE: review transition timing later */

.preview-card:first-child {
    margin-left: 1px; /* subtle offset */
}