/**
 * Naloxone Awareness Day Template Styles
 */

.page-template-template-naloxone-awareness-day {
    .toolkit-hero {
        padding-top: 50px;

        @media (max-width: 768px) {
            padding-top: 20px;
        }
    }
    .toolkit-hero-wrapper {
        gap: var(--spacing-lg);

        @media (max-width: 992px) {
            gap: 0;
        }
        .toolkit-hero-title {
            width: 100%;
            margin-bottom: var(--spacing-md);

            @media (max-width: 992px) {
                text-align: center;
            }
            h2 {
                font-size: 0;
                margin-bottom: 0;

                img {
                    max-width: 500px;
                    width: 100%;
                    height: auto;
                    display: block;
                    margin: 0;
                }
            }
        }
        .toolkit-hero-left {
            width: calc(50% - (var(--spacing-lg) / 2));
            margin-bottom: -1rem;

            @media (max-width: 992px) {
                width: 100%;
                margin-bottom: 0;
            }
            h2 {
                text-wrap: pretty;
            }
            p {
                max-width: 550px;
                text-wrap: pretty;

                @media (max-width: 992px) {
                    max-width: none;
                }
                strong {
                    font-weight: bold;
                }
                a {
                    color: var(--color-pink);
                    text-decoration: underline;

                    &:hover, &:focus-visible {
                        text-decoration: none;
                    }
                }
            }
        }
        .toolkit-hero-right {
            width: calc(50% - (var(--spacing-lg) / 2));
            display: flex;
            flex-direction: column;
            justify-content: flex-end;

            @media (max-width: 992px) {
                width: 100%;
                padding-top: var(--spacing-md);
            }
            .toolkit-hero-right-inner {
                padding: 2.2rem;
                background: linear-gradient(to bottom, #000000 0%, #181818 100%);
                border: 1px solid rgba(var(--color-yellow-rgb), .5);
                box-shadow: 0px 0px 20px rgba(var(--color-yellow-rgb), .5);
                border-radius: var(--border-radius-secondary);

                @media (max-width: 768px) {
                    padding: 1.5rem;
                }
            }
            p, ul {
                text-wrap: pretty;
                
                &:last-child {
                    margin-bottom: 0;
                }
            }
            ul {
                li {
                    &:last-of-type {
                        padding-bottom: 0;
                    }
                }
            }
        }
    }
    .toolkit-hero-callouts {
        gap: 30px;
        margin-top: var(--spacing-xl);

        @media (max-width: 991px) {
            margin-top: 30px;
        }
        .accounts {
            flex: 2;
            width: 66.666%;
            padding: 2.5rem;
            background: linear-gradient(to bottom, #959595 0%, #ffffff 100%);
            border-radius: var(--border-radius-secondary);
            text-align: center;

            @media (max-width: 1200px) {
                padding: 1.5rem;
            }
            @media (max-width: 991px) {
                flex: none;
                width: 100%;
            }
            .accounts-wrapper {
                display: flex;
                flex-wrap: wrap;
                gap: 20px;
                margin-top: var(--spacing-md);

                @media (max-width: 991px) {
                    margin-top: 0;
                }
                @media (max-width: 576px) {
                    display: block;
                }
            }
            .accounts-bhdd, .accounts-jpk {
                width: calc(50% - 10px);

                @media (max-width: 576px) {
                    width: 100%;
                }
            }
            .accounts-bhdd {
                @media (max-width: 576px) {
                    margin-top: var(--spacing-sm);
                }
                p {
                    width: 124px;     
                    
                    &:last-of-type {
                        margin-bottom: 0;
                    }
                }
            }
            .accounts-jpk {
                @media (max-width: 576px) {
                    margin-top: var(--spacing-md);
                }
                p {
                    width: 139px;

                    &:last-of-type {
                        margin-bottom: 0;
                    }
                }
            }
            h3 {
                line-height: 1.3;
                color: black;
            }
            h4 {
                font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.5rem);
                color: black;
            }
            p {
                color: black;
                margin: 0 auto 5px;
                font-size: 1.1rem;
                font-weight: bold;
                display: flex;
                align-items: center;

                .social {
                    width: 20px;
                    height: 20px;
                    display: inline-block;
                    margin-right: 8px;
                    position: relative;
                    top: 1px;
                    background-repeat: no-repeat;
                    background-size: contain;
                    transition: .2s ease-in-out;

                    &:hover, &:focus-visible {
                        transform: scale(1.15);
                    }
                    &.facebook {
                        background-image: url('../../../assets/svg/facebook-icon-pink.svg');
                    }
                    &.instagram {
                        background-image: url('../../../assets/svg/instagram-icon-pink.svg');
                    }
                    &.x {
                        background-image: url('../../../assets/svg/x-icon-pink.svg');
                    }
                }
            }
        }
        .hashtags {
            flex: 1;
            width: 33.333%;
            padding: 2.5rem;
            background: linear-gradient(to bottom, #000000 0%, #181818 100%);
            border: 1px solid rgba(255, 255, 255, .5);
            border-radius: var(--border-radius-secondary);
            text-align: center;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            justify-content: center;

            @media (max-width: 1200px) {
                padding: 1.5rem;
            }
            @media (max-width: 991px) {
                flex: none;
                width: 100%;
            }
            h3 {
                line-height: 1.3;
            }
            p {
                font-family: var(--font-heading-primary);
                font-size: 1.4rem;
                font-weight: bold;
                margin-bottom: .5rem;
                
                @media (max-width: 1200px) {
                    font-size: 1.3rem;
                }
                @media (max-width: 991px) {
                    font-size: 1.25rem;
                    margin-bottom: .3rem;
                }
                &:last-of-type {
                    margin-bottom: 0px;
                }
                span {
                    color: var(--color-pink);
                }
            }
        }
    }
    .toolkit-content {
        padding-top: 0;
    }
    .accordion-section {
        padding-top: 100px;

        @media (max-width: 768px) {
            padding-top: 50px;
        }
    }
    .accordion-item {
        margin-bottom: 25px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
        background: linear-gradient(to bottom, #000000 0%, #181818 100%);
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: var(--border-radius-secondary);
        transition: .3s ease-in-out;

        &:hover, &:focus-visible {
            border: 1px solid rgba(var(--color-yellow-rgb), .5);
            box-shadow: 0px 0px 20px rgba(var(--color-yellow-rgb), .5);
        }
        &:last-of-type {
            margin-bottom: 0px;
        }
    }
    .accordion-header {
        width: 100%;
    }
    .accordion-button {
        width: 100%;
        text-align: left;
        cursor: pointer;
        display: flex;
        align-items: center;
        font-family: var(--font-body);
        font-size: 2rem;
        position: relative;
        background: transparent;
        border: none;
        padding: 2.2rem;
        transition: all 0.3s ease;

        @media (max-width: 768px) {
            padding: 1.5rem;
        }
        &:hover {
            .toggle-icon {
                transform: scale(1.2);
                background-color: var(--color-orange);
            }
        }
        &:focus {
            outline: none;
        }
        &.collapsed {
            .icon-minus {
                display: none;
            }
            .icon-plus {
                display: block;
            }
        }
        &:not(.collapsed) {
            .icon-minus {
                display: block;
            }
            .icon-plus {
                display: none;
            }
        }
    }
    .toggle-icon {
        position: relative;
        display: inline-block;
        width: 30px;
        height: 30px;
        background-color: var(--color-primary);
        border-radius: 50%;
        border: 2px solid white;
        transition: .3s ease-in-out;

        span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1rem;
            color: white;
        }
    }
    .accordion-title {
        margin-left: var(--spacing-sm);
        color: white;
        font-family: var(--font-heading-primary);
        font-weight: bold;
        font-size: 1.5rem;
        line-height: 1.2;
        margin-top: 4px;

        @media (max-width: 768px) {
            font-size: 1.3rem;
        }
    }
    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        
        .downloads {
            padding: 2.2rem;
            padding-top: 0;
            opacity: 0;
            transition: opacity 0.2s ease;

            @media (max-width: 768px) {
                padding: 1.5rem;
                padding-top: 0;
            }
        }
        &.open {
            max-height: 5000px; /* Large enough to accommodate content */

            .downloads {
                opacity: 1;
            }
        }
    }
    .downloads {
        .download-intro-text {
            padding-bottom: 2.2rem;

            @media (max-width: 768px) {
                padding-bottom: 1.5rem;
            }
            p {
                strong {
                    font-weight: bold;
                }
                &:last-of-type {
                    margin-bottom: 0px;
                }
            }
        }      
        .download-item {
            display: flex;
            flex-wrap: wrap;
            border-top: 1px solid rgba(255, 255, 255, .5);
            padding-top: 2.2rem;
            margin-bottom: 2.2rem;

            @media (max-width: 768px) {
                flex-direction: column-reverse;
                padding-top: 1.5rem;
                margin-bottom: 1.5rem;
            }
            &:last-of-type {
                margin-bottom: 0;
            }
            .download-img {
                width: 250px;

                @media (max-width: 768px) {
                    width: 100%;
                    max-width: 250px;
                    margin: 0px auto;
                }
                img {
                    width: 100%;
                    display: block;
                    border: 1px solid rgba(255, 255, 255, 0.4);
                    border-radius: var(--border-radius-secondary);
                    overflow: hidden;
                }
            }
            .download-content {
                width: calc(100% - 250px);
                padding-left: 2.2rem;

                @media (max-width: 768px) {
                    width: 100%;
                    padding-left: 0;
                    padding-bottom: 1.5rem;
                }
                &.no-padding {
                    width: 100%;
                    padding-left: 0;
                }
                h3 {
                    font-size: 1.5rem;
                    line-height: 1.2;

                    @media (max-width: 768px) {
                        font-size: 1.3rem;
                    }
                }
                p, ul {
                    strong {
                        font-weight: bold;
                    }
                }
                p {
                    text-wrap: pretty;

                    a {
                        color: var(--color-pink);
                        text-decoration: underline;

                        &:hover, &:focus-visible {
                            text-decoration: none;
                        }
                    }
                }
                ul {
                    padding-left: 40px;

                    @media (max-width: 768px) {
                        padding-left: 30px;
                    }
                }
                .graphics-grid {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 30px;
                    margin-top: 45px;
                    
                    .download-img {
                        width: calc(25% - 23px);
                        border-radius: var(--border-radius-secondary);
                        border: 1px solid rgba(255, 255, 255, 0.4);
                        overflow: hidden;
                        position: relative;

                        @media (max-width: 991px) {
                            width: calc((100% / 3) - 20px);
                        }
                        @media (max-width: 768px) {
                            width: 50%;
                        }
                        @media (max-width: 576px) {
                            width: 100%;
                        }
                        &:hover, &:focus-visible {
                            .download-overlay {
                                opacity: 1;
                                visibility: visible;
                                transform: scale(1);
                            }
                        }
                        img {
                            width: 100%;
                            display: block;
                            border: none;
                            border-radius: 0px;
                            overflow: visible;
                        }
                        .download-overlay {
                            position: absolute;
                            width: 100%;
                            height: 100%;
                            top: 0;
                            left: 0;
                            background: rgba(0, 0, 0, .85);
                            color: white;
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            align-items: center;
                            opacity: 0;
                            visibility: hidden;
                            transform: scale(.9);
                            transition: .3s ease-in-out;

                            .btn {
                                width: fit-content;

                                svg {
                                    width: 16px;
                                    height: 16px;
                                    transform: translate(0px, 1px);
                                }
                            }
                        }
                    }
                }
                .download-share {
                    p {
                        margin-bottom: 1rem;
                    }
                    a {
                        margin-bottom: 1rem;

                        &:last-of-type {
                            margin-bottom: 0;
                        }
                    }
                }
            }
        }
    }
}