/*=======================
 * COMMUNITY PAGE STYLES
 * 1. Community Hero Section
 * 2. Image Link Containers
 * 3. Level Sections (if applicable)
 * 4. User Profile Styles
 * 5. Responsive Design
 =======================*/

/*======================
 * 1. Community Hero Section
 =======================*/
.community__area {
    height: 700px;
    width: auto;
    background-color: #f5e2c0;
    padding: 60px 0;
    text-align: center;
}

.community__title--2 {
    margin-bottom: 20px;
}

.title__line {
    font-size: 50px;
    color: #333333;
    margin-bottom: 20px;
    margin-top: 80px;
    text-align: center;
}

.community__area p {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.community-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

/*======================
 * 2. Image Link Containers
 =======================*/
.image-link-container {
    display: inline-block;
    text-align: center;
    margin-right: 50px;
}

.community-image {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

/*======================
 * 3. Level Sections (if applicable)
 =======================*/
.level__area {
    height: auto;
    background-color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.level {
    display: flex;
    align-items: flex-start;
    width: 80%;
}

.level-number-a {
    background-color: #00b8e6;
    color: white;
    padding: 20px;
    font-size: 24px;
    text-align: center;
    margin-right: 20px;
    min-width: 200px;
}

.level-number-b {
    background-color: #91f56c;
    color: white;
    padding: 20px;
    font-size: 24px;
    text-align: center;
    margin-right: 20px;
    min-width: 200px;
}

.level-number-c {
    background-color: #f8cd76;
    color: white;
    padding: 20px;
    font-size: 24px;
    text-align: center;
    margin-right: 20px;
    min-width: 200px;
}

.level-content {
    background-color: #ffffff;
    padding: 20px;
    border-left: 1px solid #ddd;
    flex: 1;
    text-align: left;
}

.level-content h2 {
    color: #333;
    margin-bottom: 10px;
}

.level-content h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.level-content p {
    margin-bottom: 10px;
}

.level-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.level-content ul li {
    margin-bottom: 5px;
}

/*======================
 * 4. User Profile Styles
 =======================*/
.user-profile {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    display: none;
}

.user-profile.visible {
    display: inline-block;
}

.profile-btn {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    height: 80px;
    line-height: 60px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    padding: 0 15px;
}

.profile-btn:hover {
    color: #4285f4;
}

.profile-btn::after {
    content: "▼";
    font-size: 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.user-profile .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 0px;
    right: 0;
    top: 80px;
    padding: 0;
}

.user-profile:hover .dropdown-content {
    display: block;
}

.user-profile .dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px !important;
    color: #333333 !important;
    margin-top: 1px;
    text-decoration: none !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.user-profile .dropdown-content a:last-child {
    border-bottom: none;
}

.user-profile .dropdown-content a:hover {
    background-color: #f0f0f0 !important;
    color: #4285f4 !important;
}

.auth-buttons.hidden {
    display: none !important;
}

/*======================
 * 5. Responsive Design
 =======================*/
@media screen and (max-width: 1200px) {
    .level {
        width: 90%;
    }
    
    .image-link-container {
        margin-right: 40px;
    }
}

@media screen and (max-width: 992px) {
    .community__area {
        height: auto;
        padding: 40px 0;
    }
    
    .title__line {
        font-size: 42px;
        margin-top: 60px;
    }
    
    .community__area p {
        font-size: 18px;
    }
    
    .level {
        width: 95%;
        flex-direction: column;
    }
    
    .level-number-a,
    .level-number-b,
    .level-number-c {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .level-content {
        border-left: none;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
    
    .image-link-container {
        margin-right: 30px;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .community__area {
        padding: 30px 0;
    }
    
    .title__line {
        font-size: 36px;
        margin-top: 50px;
    }
    
    .community__area p {
        font-size: 16px;
    }
    
    .community-image {
        max-width: 120px;
        margin-bottom: 15px;
    }
    
    .image-link-container {
        margin-right: 20px;
        margin-bottom: 20px;
    }
    
    .level__area {
        padding: 30px 0;
    }
    
    .level-number-a,
    .level-number-b,
    .level-number-c {
        padding: 15px;
        font-size: 20px;
    }
    
    .level-content {
        padding: 15px;
    }
}

@media screen and (max-width: 576px) {
    .community__area {
        padding: 20px 0;
    }
    
    .title__line {
        font-size: 28px;
        margin-top: 40px;
    }
    
    .community__area p {
        font-size: 15px;
    }
    
    .community-image {
        max-width: 100px;
        margin-bottom: 10px;
    }
    
    .image-link-container {
        margin-right: 15px;
        margin-bottom: 15px;
        display: block;
        margin-right: 0;
    }
    
    .level__area {
        padding: 20px 0;
    }
    
    .level-number-a,
    .level-number-b,
    .level-number-c {
        padding: 12px;
        font-size: 18px;
    }
    
    .level-content {
        padding: 12px;
    }
    
    .level-content h2 {
        font-size: 20px;
    }
    
    .level-content h3 {
        font-size: 18px;
    }
    
    .level-content p {
        font-size: 14px;
    }
}