/*=======================
 * GLOBAL IMPACT PAGE STYLES
 * 1. Global Impact Section
 * 2. Event Items & Grid
 * 3. Research & Impact Details
 * 4. User Profile Styles
 * 5. Language Content
 * 6. Responsive Design
 =======================*/

/*======================
 * 1. Global Impact Section
 =======================*/
.events__area {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.section__title--2 {
    margin-top: 10%;
}

.section__title--2 .title__line {
    font-size: 2.5em;
    color: #333;
}

/*======================
 * 2. Event Items & Grid
 =======================*/
.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.event-item {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.event-item h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.event-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4285f4;
}

.event-item p {
    color: #555;
    line-height: 1.6;
}

/* Expanded Item Styles */
.expanded-item {
    padding-bottom: 35px;
}

/*======================
 * 3. Research & Impact Details
 =======================*/
.research-details, 
.impact-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.research-details h4,
.impact-details h4 {
    font-size: 18px;
    color: #444;
    margin: 20px 0 12px;
}

.research-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.research-list li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

.research-links {
    margin: 15px 0 25px;
}

.research-paper {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.research-paper:hover {
    background-color: #eef2fd;
}

.research-paper i {
    color: #4285f4;
    font-size: 18px;
    margin-right: 12px;
}

.paper-title {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.paper-link {
    color: #4285f4;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.paper-link:hover {
    text-decoration: underline;
}

/* Impact Stats */
.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.impact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #4285f4;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/*======================
 * 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. Language Content
 =======================*/

/* Main content language styling */
.main-language-content {
    text-align: left;
    font-size: 1.1em;
    color: #0f0f0f;
    width: 100%;
}

.main-language-content p {
    margin-bottom: 15px;
}

/* Footer language content styling */
.language-content {
    text-align: center;
    font-size: 1em;
    color: #fff;
    width: 100%;
}

.language-content p {
    margin-bottom: 15px;
}



/*======================
 * 6. Responsive Design
 =======================*/
@media (max-width: 1200px) {
    .events-grid {
        gap: 15px;
    }
    
    .event-item {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .section__title--2 .title__line {
        font-size: 2em;
    }
    
    .event-item h3 {
        font-size: 20px;
    }
    
    .impact-stats {
        padding: 15px 0;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .events__area {
        padding: 40px 0;
    }
    
    .section__title--2 {
        margin-top: 8%;
    }
    
    .section__title--2 .title__line {
        font-size: 1.8em;
    }
    
    .events-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .event-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .impact-stats {
        padding: 10px 0;
        flex-direction: column;
        gap: 15px;
    }
    
    .impact-stat {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .research-paper {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .research-paper i {
        margin-bottom: 8px;
    }
    
    .paper-title {
        margin-bottom: 8px;
    }
    
    .footer__area {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .events__area {
        padding: 30px 0;
    }
    
    .section__title--2 {
        margin-top: 5%;
    }
    
    .section__title--2 .title__line {
        font-size: 1.5em;
    }
    
    .event-item {
        padding: 15px;
    }
    
    .event-item h3 {
        font-size: 18px;
    }
    
    .research-details h4,
    .impact-details h4 {
        font-size: 16px;
    }
    
    .paper-title {
        font-size: 13px;
    }
    
    .paper-link {
        font-size: 13px;
    }
    
    .footer__area {
        padding: 30px 0;
    }
    
    .footer-logo-img {
        max-width: 120px;
    }
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #4285f4;
}

.scroll-top-btn .arrow-up {
    font-size: 1.5em;
}