/* Base Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333333;
}

/* Global Layout */
main {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: #ffffff;
    color: #333333;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

header .logo {
    font-size: 1.8rem;
    font-weight: 500;
    margin-left: 20px;
    color: #333;
}

/* Tab Button Styles */
header nav ul {
    list-style-type: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

header nav ul li a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #ffffff;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

header nav ul li a:hover {
    background-color: #555;
    transform: translateY(-2px);
}

header nav ul li a:active {
    transform: translateY(0);
    background-color: #444;
}

/* Typography */
h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #222222;
}

p, ul {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.8;
}

/* List Styling */
ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 10px;
}

/* Form Styling */
form {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
    color: #444444;
}

form input, form textarea, form button {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #f9f9f9;
}

form input:focus, form textarea:focus {
    border-color: #999999;
    outline: none;
}

form button {
    background-color: #333333;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
}

form button:hover {
    background-color: #555555;
}

/* Footer Styles */
footer {
    background-color: #f7f7f7;
    color: #555555;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

/* About Us Page - Tutors Grid */
.tutors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.tutor-card {
    width: calc(33.333% - 20px); /* Three columns */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.tutor-card:hover {
    transform: translateY(-3px);
}

.tutor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .tutor-card {
        width: 100%; /* Stack cards on smaller screens */
    }
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 40px; /* Adjust size as needed */
    height: auto;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

/* Additional spacing between sections */
.section-space {
    margin-top: 30px;
}

/* Social Link Styling */
.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: #555;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Resource Link Styling */
.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.resource-link:hover {
    color: #555;
}

.resource-icon {
    width: 24px;
    height: 24px;
}

/* Founder Profile Styling */
.founder-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    max-width: 100%; /* Allow more space for content */
    flex-wrap: wrap; /* Allows stacking on smaller screens */
}

.founder-photo {
    width: 100px; /* Adjust size to provide more room for text */
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.founder-profile h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 8px;
    flex-basis: 100%; /* Allows header to span full width if needed */
}

.founder-profile p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    max-width: 600px; /* Limit width for better readability */
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .founder-profile {
        flex-direction: column; /* Stack image and text on smaller screens */
        align-items: center;
        text-align: center;
    }

    .founder-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .founder-profile h3 {
        text-align: center;
        font-size: 1.6rem;
    }

    .founder-profile p {
        font-size: 1rem;
        text-align: center;
    }
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555555;
}

footer a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #555555;
}

/* Resources Page Styling */
.resources a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    display: inline-block;
    transition: color 0.3s, border-color 0.3s;
}

.resources a:hover {
    color: #555;
    border-color: #aaa;
}

/* Initially hide the menu on larger screens */
#menu-toggle {
    display: none;
}

header nav ul {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    /* Show only the menu button on small screens */
    #menu-toggle {
        display: block;
        background-color: #333;
        color: #fff;
        padding: 10px 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
    }

    /* Hide navigation links on small screens by default */
    header nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 10px;
    }

    /* Show navigation links when 'visible' class is added */
    header nav ul.visible {
        display: flex;
    }
}