/*=======================
 * SCHOOL PAGE STYLES
 * 1. School Hero Section
 * 2. Resource Schools Section
 * 3. Relative Schools Section
 * 4. User Profile Styles
 * 5. Language Content
 * 6. Responsive Design
 =======================*/

/*======================
 * 1. School Hero Section
 =======================*/
.school__area {
    height: 360px;
    background-color: #f7eaa0; 
    padding: 50px 0; 
    text-align: center; 
}

.school-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    text-align: center;
}

.school__title--2 {
    margin-bottom: 20px; 
}

.title__line {
    font-size: 80px; 
    color: #f8f8f6; 
    margin-bottom: 20px; 
    margin-top: 100px;
}

.school__area p {
    font-size: 20px; 
    color: #666; 
    line-height: 1.5; 
    margin-bottom: 20px; 
}

/*======================
 * 2. Resource Schools Section
 =======================*/
.resource__school__area {
    background-color: #ffffff; 
    padding: 50px 0; 
    text-align: center; 
}

.resource__school {
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    margin: 20px; 
}

.resource__school__text {
    flex: 1; 
    margin-right: 50px; 
}

.resource__school__area h2 {
    font-size: 40px;
    text-align: left;
    margin-bottom: 20px;
    color: #333;
}

.resource__school__area p {
    font-size: 20px;
    text-align: left;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.resource__school__image {
    flex: 0 0 auto; 
    margin-top: 80px;
}

.resource__school__image img {
    max-width: 100%; 
    height: auto; 
    border-radius: 8px;
}

/*======================
 * 3. Relative Schools Section
 =======================*/
.rel__school__area {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 80px; 
}

.school-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: center;
    margin-bottom: 50px;
}

.school {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    margin-bottom: 20px;
    padding: 20px;
}

.school:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.school img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Logo size classes */
.logo1 { width: 80px; }
.logo2 { width: 150px; }
.logo3 { width: 250px; }
.logo4 { width: 180px; }
.logo5 { width: 210px; }
.logo6 { width: 150px; }
.logo7 { width: 250px; }
.logo8 { width: 250px; }
.logo9 { width: 250px; }

.school-name {
    margin-top: 10px;
    width: 300px;
    font-size: 16px;
    color: #333;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

/*======================
 * 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
 =======================*/
.language-content {
    width: 100%;
}


/*======================
 * 6. Responsive Design
 =======================*/
@media screen and (max-width: 1200px) {
    .school-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .resource__school__text {
        margin-right: 30px;
    }
}

@media screen and (max-width: 992px) {
    .title__line {
        font-size: 60px;
        margin-top: 80px;
    }
    
    .resource__school__area h2 {
        font-size: 32px;
    }
    
    .resource__school__area p {
        font-size: 18px;
    }
    
    .resource__school {
        flex-direction: column;
        align-items: center;
    }
    
    .resource__school__text {
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .resource__school__area h2,
    .resource__school__area p {
        text-align: center;
    }
    
    .resource__school__image {
        margin-top: 40px;
    }
    
    .rel__school__area {
        padding: 60px 40px;
    }
}

@media screen and (max-width: 768px) {
    .title__line {
        font-size: 40px;
        margin-top: 60px;
    }
    
    .school__area {
        height: 300px;
        padding: 40px 0;
    }
    
    .resource__school__area {
        padding: 40px 0;
    }
    
    .resource__school__area h2 {
        font-size: 28px;
    }
    
    .resource__school__area p {
        font-size: 16px;
    }
    
    .school-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .school {
        width: 180px;
        padding: 15px;
    }
    
    .school img {
        max-width: 250px;
    }
    
    .school-name {
        width: 250px;
        font-size: 14px;
    }
    
    .rel__school__area {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 576px) {
    .title__line {
        font-size: 32px;
        margin-top: 50px;
    }
    
    .school__area {
        height: 250px;
        padding: 30px 0;
    }
    
    .resource__school__area {
        padding: 30px 0;
    }
    
    .resource__school__area h2 {
        font-size: 24px;
    }
    
    .resource__school__area p {
        font-size: 15px;
    }
    
    .school {
        width: 160px;
        padding: 12px;
    }
    
    .school img {
        max-width: 200px;
    }
    
    .school-name {
        width: 200px;
        font-size: 13px;
    }
    
    .rel__school__area {
        padding: 30px 15px;
    }
    
    /* Logo size adjustments for mobile */
    .logo1, .logo2, .logo3, .logo4, 
    .logo5, .logo6, .logo7, .logo8, .logo9 {
        width: auto;
        max-width: 150px;
    }
}