/* Global Styles */
:root {
    --primary-color: #2a4099; /* HBECS blue from logo */
    --secondary-color: #ffffff; /* White */
    --accent-color-1: #e63946; /* Red dots from logo */
    --accent-color-2: #2a9d8f; /* Teal dots from logo */
    --accent-color-3: #27ae60; /* Green dots from logo */
    --accent-color-4: #f8a5c2; /* Pink dots from logo */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color-1);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-container h2 {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: var(--accent-color-3);
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.ai-assistant {
    background-color: #f0f8ff;
    border: 1px solid #d1e7ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.ai-assistant h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ai-assistant p {
    margin-bottom: 1rem;
}

.ai-assistant button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.ai-assistant button:hover {
    background-color: var(--accent-color-3);
}

/* Scholarships Section */
.scholarships-section {
    padding: 3rem 0;
    background-color: white;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.scholarship-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.scholarship-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.scholarship-card-content {
    padding: 1.5rem;
}

.scholarship-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.scholarship-card p {
    color: #666;
    margin-bottom: 1rem;
}

.scholarship-card .details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.scholarship-card .country {
    display: flex;
    align-items: center;
    color: #666;
}

.scholarship-card .country i {
    margin-right: 0.5rem;
}

.scholarship-card .deadline {
    color: var(--accent-color-1);
    font-weight: 500;
}

.scholarship-card .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.scholarship-card .btn:hover {
    background-color: var(--accent-color-3);
}

/* Scholarship Header */
.scholarship-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.scholarship-header h2 {
    color: white;
    margin-bottom: 0;
}

/* Scholarship Content */
.scholarship-content {
    padding: 2rem 0;
}

.scholarship-section {
    margin-bottom: 2rem;
}

.scholarship-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.scholarship-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color-3);
}

.scholarship-section ul, .scholarship-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.scholarship-section li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.back-link i {
    margin-right: 0.5rem;
}

/* Team Section */
.team-section {
    padding: 3rem 0;
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--light-bg);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
    margin-bottom: 1rem;
}

.team-member .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-member .social-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.about-section h3 {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Privacy Policy */
.privacy-policy {
    padding: 3rem 0;
}

.privacy-policy h2 {
    margin-bottom: 2rem;
}

.privacy-policy h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy p, .privacy-policy ul {
    margin-bottom: 1rem;
}

.privacy-policy ul {
    margin-left: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .search-box button {
        border-radius: 4px;
        padding: 0.8rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .scholarships-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}
