* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

:root {
    --sidebar-width: 250px;
    --header-height: 60px;
    --primary-color: #1898e9;
    --secondary-color: #152154;
    --light-color: #f8f6f6;
    --dark-color: #69838e;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-color: #f8f6f6;
}


h1 span {
    display: block;
    margin-top: 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 60px;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #2c3e50, #152154);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#logo {
    max-width: 80px;
}

.logo {
    flex-shrink: 0;
    z-index: 10;
}

.logo img {
    width: 100%;
    height: auto;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s;
    border-radius: 4px;
    font-size: clamp(12px, 1.5vw, 18px);
    white-space: nowrap;
}

nav ul li a:hover {
    color: #1898e9;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons {
    justify-content: end;
    align-items: end;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.container-2 {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}


.card h-100 {
    width: 300px;
    flex-shrink: 0;
}


.btn {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    color: white;
    border: 1px solid #1898e9;
    font-size: clamp(14px, 1vw, 1.5vw);
}

.btn-login:hover {
    background-color: #1898e9;
}

.btn-signup {
    background-color: #1898e9;
    color: white;
}

.btn-signup:hover {
    background-color: #2980b9;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    color: white;
    padding: 2.4rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.btn-hero {
    background-color: #1898e9;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-hero:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.search-section {
    max-width: 1000px;
    margin: 30px auto;
}

.search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.search-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.search-bar {
    display: flex;
    margin-top: 10px;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #1898e9;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-button {
    padding: 0 25px;
    background-color: #1898e9;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #2980b9;
}

.search-results {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

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

.professor-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.professor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.professor-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.professor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.professor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professor-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.professor-subject {
    background: #1898e9;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.professor-details {
    margin: 1rem 0;
}

.professor-details p {
    margin-bottom: 0.5rem;
    color: #555;
}

.professor-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.contact-button {
    background: #1898e9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #2980b9;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.features {
    padding: 5rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-title p {
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: #1898e9;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#map {
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-marker {
    background: #1898e9;
    border: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.marker-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.marker-popup h4 {
    color: #1898e9;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
    }

    .search-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .search-button {
        border-radius: 8px;
        padding: 12px;
    }
}

.testimonials {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.newsletter {
    background: linear-gradient(135deg, #1898e9, #2c3e50);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1.5rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #152154;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #1898e9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #1898e9;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        min-height: auto;
    }

    nav {
        position: static;
        transform: none;
    }

    #logo {
        max-width: 60px;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    nav ul li a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .btn-login {
        font-size: 14px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    #logo {
        max-width: 70px;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    nav ul {
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin: 1rem 0;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    .auth-buttons {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 4px;
        padding: 12px;
    }
}

