/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #7ba27a;
    color: #333;
}

/* Header Section */
header {
    background-image: url('images/header-background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between the profile picture and text */
}

.profile-pic {
    width: 100px; /* Set the size of the profile picture */
    height: 100px;
    border-radius: 50%; /* Make the image round */
    border: 3px solid #fff; /* Add a border around the image */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1); /* Slightly enlarge the image on hover */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Add a glow effect */
}

header h1 {
    margin: 0;
    font-size: 3em;
}

header p {
    font-size: 1.2em;
    margin: 10px 0 0;
}

/* Navigation */
.tabs {
    background-color: #103f14;
    text-align: center;
    padding: 10px 0;
}

.tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tabs ul li {
    display: inline;
    margin: 0 15px;
}

.tabs ul li a {
    color: #fdfdfd;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tabs ul li a.active,
.tabs ul li a:hover {
    background-color: #439552;
}

/* Content */
.container {
    width: 90%; /* Adjusted for smaller screens */
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin: 10px 0 5px;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
}

#contact-form button {
    padding: 10px 20px;
    background-color: #6a0492;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #8e44ad;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 20px;
}

/* Publications List */
#publications-list {
    list-style-type: none;
    padding: 0;
}

#publications-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

#publications-list a {
    color: #007BFF; /* Blue color for links */
    text-decoration: none; /* Remove underline */
}

#publications-list a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Icon Links */
.icon-links {
    display: flex;
    gap: 20px; /* Space between icons */
    margin-top: 20px;
    justify-content: center; /* Center icons */
}

.icon-links a {
    text-decoration: none; /* Remove underline from links */
}

.icon-links img.icon {
    width: 40px; /* Set the size of the icons */
    height: 40px;
    transition: transform 0.3s ease; /* Add a hover effect */
}

.icon-links img.icon:hover {
    transform: scale(1.2); /* Enlarge the icon on hover */
}

/* Resources Section */
#resources {
    text-align: center;
}

.book-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.book-list a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.book-list a:hover {
    transform: scale(1.05);
}

.book-list img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Optional Hover Effect */
.book-list a:hover img {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column; /* Stack the profile picture and text vertically */
        text-align: center;
    }

    .profile-pic {
        width: 80px; /* Smaller profile picture for mobile */
        height: 80px;
    }

    header h1 {
        font-size: 2em; /* Smaller font size for mobile */
    }

    header p {
        font-size: 1em; /* Smaller font size for mobile */
    }

    /* Navigation */
    .tabs ul li {
        display: block; /* Stack navigation items vertically */
        margin: 10px 0;
    }

    .tabs ul li a {
        display: block; /* Make links full width */
        padding: 10px;
    }

    /* Container */
    .container {
        width: 95%; /* Full width on small screens */
        padding: 15px;
    }

    /* Icon Links */
    .icon-links {
        flex-direction: column; /* Stack icons vertically */
        align-items: center;
    }

    /* Resources Section */
    .book-list {
        flex-direction: column; /* Stack book images vertically */
        align-items: center;
    }

    .book-list img {
        width: 150px; /* Smaller images for mobile */
    }
}

@media (max-width: 480px) {
    /* Header */
    header h1 {
        font-size: 1.5em; /* Even smaller font size for very small screens */
    }

    header p {
        font-size: 0.9em; /* Even smaller font size for very small screens */
    }

    /* Contact Form */
    #contact-form input,
    #contact-form textarea {
        padding: 8px; /* Smaller padding for form inputs */
    }

    #contact-form button {
        padding: 8px 16px; /* Smaller button for mobile */
    }
}