/* Community Page Styles */

/* Base Resets */
.tabs,
body,
html {
    margin: 0;
    padding: 0
}

.dropdown,
.tabs li {
    position: relative
}

.dropbtn,
body {
    font-family: Oswald, sans-serif;
    display: flex
}

.dropbtn,
.tabs,
body,
main,
nav {
    display: flex
}

.dropdown:hover .dropdown-content,
.tabs a {
    display: block
}

.dropbtn,
.menu-icon {
    cursor: pointer
}

body,
html {
    min-height: 100vh;
    background-color: #000
}

html {
    scroll-behavior: smooth
}

body {
    color: #191919;
    font-weight: 500;
    flex-direction: column
}

main {
    flex: 1;
    align-items: center;
    justify-content: center
}

/* Navigation Styles */
.tabs {
    list-style: none
}

.dropbtn,
.tabs a {
    padding: .5rem 0;
    transition: color .3s;
    font-size: 1.1rem
}

.tabs li {
    margin: 0 1rem
}

.tabs a {
    color: #fff
}

.tabs .active a,
.tabs a:hover {
    color: rgba(236, 105, 26, .85)
}

.dropbtn {
    background-color: transparent;
    color: #fff !important;
    align-items: center;
    gap: .5rem;
    border: none
}

.dropbtn:hover {
    color: #2e5c9dd9 !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0000007a;
    color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2);
    z-index: 1;
    border-radius: 4px
}

.dropdown-content a {
    padding: 12px 16px;
    color: #fff;
    display: block;
    transition: background-color .3s;
    text-decoration: none;
}

.dropdown-content a:hover {
    color: #ababab
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    margin-left: auto
}

.menu-icon span {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: .3s
}

.menu-icon.active span:first-child {
    transform: translateY(9px) rotate(45deg)
}

.menu-icon.active span:nth-child(2) {
    opacity: 0
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

/* Dashboard Content */
.dashboard-content {
    width: 100%;
    margin: 0 auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Hero Section */
.community-hero {
    overflow: hidden;
    color: #fff;
    padding-bottom: 120px;
    flex-direction: row;
    gap: 5%;
    justify-content: center;
    align-items: center;
    width: 95%;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
}

.community-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.community-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-top: 15%;
    color: #fff;
    text-align: center;
}

.community-hero .hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 0.5em;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 800px;
}

.community-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 1em;
    line-height: 1.4;
    font-family: Lato, sans-serif;
    font-style: normal;
    color: #c5c5c5;
}

/* Content Sections */
.community-section {
    width: 100%;
    padding: 4rem 0;
    background-color: #000;
}

.community-section-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5rem;
}

.community-section-content.reverse {
    flex-direction: row-reverse;
}

.community-text {
    flex: 1;
    text-align: left;
    max-width: 550px;
}

.community-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E5C9D;
    margin-bottom: 1.5rem;
    font-family: Oswald, sans-serif;
}

.community-text p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #fff;
    font-family: Lato, sans-serif;
    margin-bottom: 1rem;
}

.community-text .emphasis {
    font-weight: 400;
    color: #ec691a;
    font-style: italic;
    margin-top: 1.5rem;
}

/* Section Images */
.community-image {
    flex-shrink: 0;
    width: 350px;
    height: 400px;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Foundation Partners Section */
.foundations-section {
    width: 100%;
    padding: 4rem 0;
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foundations-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.foundations-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E5C9D;
    margin-bottom: 1rem;
    font-family: Oswald, sans-serif;
}

.foundations-intro p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #c5c5c5;
    font-family: Lato, sans-serif;
    line-height: 1.7;
}

.foundations-grid {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-content: center;
}

.foundation-card {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: border-color 0.3s;
}

.foundation-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.foundation-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}

.foundation-logo img {
    max-width: 180px;
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.foundation-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-family: Oswald, sans-serif;
    text-transform: uppercase;
}

.foundation-info p {
    font-size: 1rem;
    font-weight: 300;
    color: #c5c5c5;
    font-family: Lato, sans-serif;
    line-height: 1.7;
    margin-bottom: 0;
}

.foundation-link {
    margin-top: 1.5rem;
}

.foundation-link a {
    color: #2E5C9D;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: Oswald, sans-serif;
    transition: color 0.3s;
}

.foundation-link a:hover {
    color: #ec691a;
}

.foundation-link .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s;
    display: inline-block;
}

.foundation-link a:hover .arrow {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 20px 0;
    border-top: .25px solid #414141;
    text-align: center;
}

.footer p {
    margin: 0;
    color: #fff;
    font-family: Lato, sans-serif;
    font-weight: 500;
    font-size: 1rem;
}

.footer a {
    color: #2e5c9d;
    transition: color .2s;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.footer a:hover {
    color: #234d88;
    text-decoration: underline
}

.footer a:visited {
    color: #0e3468
}

.footer a+span {
    margin: 0 5px
}

/* CTA Section */
.community-cta {
    width: 100%;
    padding: 4rem 2rem;
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.community-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E5C9D;
    margin-bottom: 1rem;
    font-family: Oswald, sans-serif;
}

.community-cta p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #c5c5c5;
    font-family: Lato, sans-serif;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cta-email {
    color: #fff !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: Oswald, sans-serif;
    transition: color 0.3s;
}

.cta-email:hover {
    color: #ec691a;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .community-hero .hero-content h1 {
        font-size: 3.5rem;
    }

    .community-section-content {
        gap: 3rem;
    }

    .community-text h2 {
        font-size: 2.25rem;
    }
}

@media screen and (max-width: 900px) {

    .community-section-content,
    .community-section-content.reverse {
        flex-direction: column;
        text-align: center;
    }

    .community-text {
        text-align: center;
        max-width: 100%;
    }

    .community-image {
        width: 100%;
        max-width: 350px;
        height: 400px;
    }

    .foundations-grid {
        flex-direction: column;
        align-items: center;
    }

    .foundation-card {
        max-width: 500px;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {

    .community-hero,
    nav .tabs {
        flex-direction: column
    }

    .dropbtn,
    .dropdown {
        width: 100%;
        max-height: none;
        border: none
    }

    .dashboard-content {
        margin-top: 45px
    }

    header {
        padding: 1rem
    }

    .logo-container img {
        height: 25px
    }

    .logo-container h1 {
        font-size: 1.4rem
    }

    .menu-icon,
    nav.active .tabs {
        display: flex
    }

    nav .tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, .1);
        z-index: 1000
    }

    .tabs li {
        margin: .5rem 1rem;
        width: 90%;
        text-align: left
    }

    .dropbtn {
        justify-content: space-between;
        padding: .5rem 0
    }

    .dropbtn::after {
        transition: transform .3s
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        width: 100%;
        border-radius: 0;
        margin-top: .5rem
    }

    .dropdown-content a {
        background-color: #000 !important
    }

    .dropdown.active .dropdown-content {
        display: block !important
    }

    .dropdown:hover .dropdown-content {
        display: none
    }

    .dropbtn,
    .dropdown {
        background-color: transparent !important
    }

    .dropdown .dropbtn::after {
        font-size: .8em;
        transition: transform .3s
    }

    .dropdown.active .dropbtn::after {
        transform: rotate(180deg)
    }

    .community-hero {
        margin-top: 0;
        padding-bottom: 80px;
        background-size: cover;
    }

    .community-hero .hero-content {
        padding-top: 25%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .community-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .community-hero .hero-subtitle {
        font-size: 1.2rem;
    }

    .community-section {
        padding: 3rem 0;
    }

    .community-section-content {
        padding: 0 1.5rem;
    }

    .community-text h2 {
        font-size: 2rem;
    }

    .community-text p {
        font-size: 1rem;
    }

    .foundations-section {
        padding: 3rem 0;
    }

    .foundations-intro h2 {
        font-size: 2rem;
    }

    .foundations-grid {
        padding: 0 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .dashboard-content {
        margin-top: 70px
    }

    .community-hero .hero-content h1 {
        font-size: 2rem;
    }

    .community-image {
        max-width: 280px;
        height: 320px;
    }

    .foundation-card {
        padding: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-container img {
        height: 25px
    }

    .logo-container h1 {
        font-size: 1.2rem
    }

    .community-hero .hero-content h1 {
        font-size: 1.75rem;
    }

    .community-hero .hero-subtitle {
        font-size: 1rem;
    }

    .community-text h2 {
        font-size: 1.75rem;
    }

    .community-text p {
        font-size: 0.95rem;
    }

    .community-image {
        max-width: 240px;
        height: 274px;
    }

    .foundations-grid {
        padding: 0 1rem;
        gap: 2rem;
    }

    .foundation-card {
        padding: 1.5rem;
    }

    .foundation-info h3 {
        font-size: 1.3rem;
    }
}
