/* resources/css/research-resources.css */

.research-page-wrapper {
    font-family: 'Quicksand', sans-serif;
    color: #111827;
    width: 100%;
}

.hero-section {
    position: relative;
    background-image: url("../../../images/marketing-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 675px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 52, 139, 0.9977);
    /* dark purple with opacity */
    z-index: 1;
}

.hero-section>* {
    position: relative;
    z-index: 2;
    color: white;
    /* or your text color */
}

.hero-section .container {
    margin-top: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.hero-pill {
    background-color: #FFFFFF2E;
    border-radius: 100px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Teachers';
    font-size: 82px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 82px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 40px;
    max-width: 741px;
    text-align: center;
}

.cta-transform-btn-container {
    display: flex;
    width: 504px;
    justify-content: center;
    height: 54px;
    margin: 0 auto;
}

.search-container {
    width: 448px;
    margin: 0 auto;
    position: relative;
}

.search-container-1 {
    width: 328px;
}


.search-input {
    width: 100%;
    background-color: #493FA6;
    border: 1px solid #5146B9;
    border-radius: 55px;
    padding: 16px 54px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-1 {
    width: 100%;
    position: relative;
    background-color: #F1F0F9;
    border: 1px solid #EBE9F6;
    border-radius: 55px;
    padding: 16px 54px;
    color: #1E1E1EA1;
    font-weight: 700;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-input::placeholder {
    color: #FFFFFFA1;
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    width: 1.25rem;
    height: 1.25rem;
}

.search-icon-1 {
    position: absolute !important;
    left: 26.2px;
    top: 50%;
    transform: translateY(-50%);
    color: #1E1E1EA1;
    width: 1.25rem;
    height: 1.25rem;
    z-index: 2 !important;

}



.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: #FFFFFF1A;
    border: 1px solid #FFFFFF1A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.stat-info {
    text-align: left;
}

.stat-value {
    font-size: 20px;
    font-family: 'Teachers';
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 12px;
    color: #FFFFFF80;
}

/* Tabs Section */
.tabs-section {
    padding: 100px 0 45px 0;
    display: flex;
    justify-content: center;
}

.tabs-container {
    display: flex;
    gap: 12px;
    background-color: white;
    padding: 10px;
    border-radius: 200px;
    border: 2px solid #E7E6F5;
}

.tab-btn {
    padding: 24px 33px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: #F8F8FC;
    color: #1B1B1B99;
}

.tab-btn.active {
    background-color: #3D3B8E;
    color: white;
}

.tab-btn:not(.active):hover {
    background-color: #f8fafc;
    color: #0f172a;
}

/* Tab Contents */
.tab-content {
    display: none;
    max-width: 1130px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 100px;
    /* padding: 0 155px 100px; */
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Latest Issue Card */
.latest-issue-card {
    background: linear-gradient(180deg, #3D3B8E 0%, #2E2A5E 100%);
    border-radius: 32px;
    padding: 32px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 17px;
}

.latest-badge {
    background-color: #FB2C36;
    color: white;
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    margin-right: 22px;
}

.issue-date {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #FFFFFF;
}

.issue-title {
    font-family: 'Teachers';
    font-size: 32px;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    line-height: 32px;
}

.issue-desc {
    font-size: 14px;
    color: #FFFFFF99;
    margin-bottom: 17px;
    line-height: 22px;
    font-weight: 400;
}

.issue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.issue-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #FFFFFF;
}

.meta-pill {
    background-color: #FFFFFF1A;
    padding: 6px 11.89px;
    border-radius: 9999px;
    font-size: 12px;
    line-height: 12px;
    font-weight: 600;
}

.btn-primary {
    background-color: #FFAA3E;
    color: #2E2A5E;
    padding: 10.5px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7.9px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

/* Article List */
.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
    border-bottom: 1px solid #F3F4F6;
    /* transition: all 0.3s ease; */
}

.article-item:hover {
    background: linear-gradient(180deg, #3D3B8E 0%, #2E2A5E 100%);
    border-radius: 32px;
    border-bottom-color: transparent;
}

.article-content {
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.article-category {
    background-color: #3D3B8E1A;
    color: #3D3B8E;
    padding: 6px 8px;
    border-radius: 9999px;
    font-size: 10px;
    line-height: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.article-item:hover .article-category {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.article-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #99A1AF;
    transition: all 0.3s ease;
}

.article-item:hover .article-date {
    color: rgba(255, 255, 255, 0.8);
}

.article-title {
    font-family: 'Teachers';
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
    color: #101828;
    margin-bottom: 12px;
    letter-spacing: -0.31px;
    transition: all 0.3s ease;
}

.article-item:hover .article-title {
    color: white;
}

.article-desc {
    color: #6A7282;
    font-size: 14px;
    line-height: 19px;
    font-weight: 600;
    max-width: 613px;
    transition: all 0.3s ease;
}

.article-item:hover .article-desc {
    color: rgba(255, 255, 255, 0.7);
}

.article-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #99A1AF;
    transition: all 0.3s ease;
}

.article-arrow a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.article-arrow img {
    width: 16px;
    height: 16px;
    transition: filter 0.3s ease;
}


.article-item:hover .article-arrow {
    background-color: #FFAA3E;
    color: #2E2A5E;
    border-color: #FFAA3E;
}

.article-item:hover .article-arrow img {
    filter: brightness(0);
}

.article-item:hover .article-read-time {
    color: rgba(255, 255, 255, 0.8) !important;
}

.article-item:hover .article-read-time svg {
    stroke: rgba(255, 255, 255, 0.8);
}

/* Media Grid for Webinars & Podcasts */
.media-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

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

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

.media-card {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .media-image {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.media-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tag-newest {
    background-color: #FFAA3E;
    color: #2E2A5E;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
}

.tag-type {
    border: 1px solid white;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 500;
}

.media-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Teachers', sans-serif;
}

/* Play button overlay */
.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
}

.play-button {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.play-button svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
    /* optical alignment */
}

.media-card:hover .play-button-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Subscribe Section */
.subscribe-section {
    background-color: #fafaf9;
    /* Light squiggly background pattern approximation */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.18 20c.39-4.83 2.26-8.63 5.59-11.39C30.13 5.83 34.69 4 40.5 4c5.81 0 10.37 1.83 13.73 4.61 3.33 2.76 5.2 6.55 5.59 11.39h-2.12c-.38-4.1-1.93-7.29-4.63-9.57C50.33 8.14 46.12 6.5 40.5 6.5c-5.62 0-9.83 1.64-12.56 3.93-2.71 2.28-4.25 5.46-4.63 9.57h-2.12zM80.5 4c5.81 0 10.37 1.83 13.73 4.61 3.33 2.76 5.2 6.55 5.59 11.39H97.7c-.38-4.1-1.93-7.29-4.63-9.57C90.33 8.14 86.12 6.5 80.5 6.5c-5.62 0-9.83 1.64-12.56 3.93-2.71 2.28-4.25 5.46-4.63 9.57h-2.12c0 0 0 0 0 0 .39-4.83 2.26-8.63 5.59-11.39C70.24 5.83 74.8 4 80.5 4z' fill='%23f1f5f9' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 150px;
    padding: 6rem 1rem;
    text-align: center;
}

.sub-pill {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sub-title {
    font-size: 3rem;
    font-weight: 800;
    color: #312e81;
    margin-bottom: 1rem;
}

.sub-desc {
    color: #475569;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.sub-form {
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .sub-form {
        flex-direction: row;
    }
}

.sub-input-wrapper {
    flex: 1;
    position: relative;
}

.sub-input {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 1rem 1.5rem 1rem 3rem;
    color: #0f172a;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.sub-input:focus {
    border-color: #818cf8;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.sub-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 1.25rem;
    height: 1.25rem;
}

.sub-btn {
    background-color: #4338ca;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.sub-btn:hover {
    background-color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(67, 56, 202, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .hero-section .container {
        max-width: 346px;
        margin-top: 130px;
    }

    .hero-title {
        font-size: 38px;
        line-height: 46px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .search-container {
        width: 346px;
    }

    .stats-container {
        gap: 1.5rem;
    }


    .tabs-section {
        padding-top: 50px;
    }

    .tabs-container {
        /* width: 345px; */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 1rem;
        border: none;
        gap: 8px;
    }

    .tabs-container svg {
        display: none;
    }


    .tab-btn {
        flex: 0 0 40%;
        padding: 16px;
        font-size: 16px;
        line-height: 16px;
        color: #737375;
        background-color: #F8F8FC;
        border: 2px solid #EAEAF6;
        justify-content: center;
        border-radius: 14px;
        white-space: nowrap;

    }

    .tab-btn:last-child {
        flex: 0 0 25%;
        /* adjust width as you like */
        margin: 0 auto;
    }


    .tab-content {
        padding: 24px;
    }

    .latest-issue-card {
        padding: 24px;
    }

    .issue-title {
        font-size: 20px;
        line-height: 26px;
        letter-spacing: 0.07px;
    }

    .issue-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .btn-primary {
        width: 100%;
        padding: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-primary svg {
        display: block;
    }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .article-item svg {
        display: block;
    }

    .article-arrow {
        align-self: flex-end;
    }

    .cta-transform-btn-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: auto;
        align-items: center;
    }

    .cta-transform-btn {
        width: 328px;
        height: 54px;
        padding: 19px 0px;
    }

    .search-container-1 svg {
        display: block;
    }

}