body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

h1 {
    font-size: 1em;
}

h3 {
    font-size: 14px;
    font-weight: 200;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fbfaf5;
    border-bottom: 0.2px solid #2b2b2b;
}

.material-symbols-outlined {
    display: none;
    /* Hide menu icon by default */
}

#top-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#top-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

#top-nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

#top-nav a:hover {
    color: #4D80E6;
}

#top-nav form {
    margin-left: 1rem;
}

#top-nav input[type="search"] {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

#top-nav input[type="search"]:focus {
    outline: none;
    border-color: #4D80E6;
    box-shadow: 0 0 5px rgba(77, 128, 230, 0.2);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .material-symbols-outlined {
        display: block;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .material-symbols-outlined:hover {
        transform: scale(1.1);
    }

    #top-nav {
        display: none;
        position: absolute;
        top: 100px;
        right: 0;
        background-color: #f8f8f8;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 12px;
    }

    #top-nav.active {
        display: flex;
    }

    #top-nav ul {
        flex-direction: column;
        width: 100%;
    }

    #top-nav li {
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

    #top-nav li:last-child {
        border-bottom: none;
    }

    #top-nav form {
        margin: 1rem 0 0 0;
        width: 100%;
    }

    #top-nav input[type="search"] {
        width: 100%;
        padding: 10px 15px;
    }
}

body {
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #fff;
    padding: 30px;
    gap: 20px;
    width: calc(100% - 100px);
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.navbar h3 {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: normal;
}

.dropdown-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: white;
    font-size: 16px;
    padding: 8px 55px;
    border: 1px solid #2b2b2b;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn:hover {
    background-color: #44617b;
    color: #fff;
}

/* Arrow Icon */
.dropbtn::after {
    content: '▾';
    font-size: 24px;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border-radius: 12px;
}

.dropdown-content a {
    display: block;
    color: black;
    padding: 10px 25px;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #44617b;
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .dropdown-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown {
        width: 100%;
        max-width: 300px;
    }

    .dropbtn {
        width: 100%;
        justify-content: flex-start;
    }
}


.program-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 5px;
    margin: auto;
}

.card {
    background-color: #fffffc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #2b2b2b;
    text-decoration: none;
    border: 0.5px solid #2b2b2b;
}

.card:hover {
    background-color: #fbfaf5;
    transform: scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-body p {
    width: auto;
    font-size: 16px;
    font-weight: 100;
}

.card-body h4 {
    font-weight: 100;
    font-size: 14px;
}

.card-body h3 {
    font-size: 18px;
    font-weight: 300;
}

.card-body {
    padding: 10px;
    margin: none;
    gap: 5px;
}

#wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.button {
    padding: 12px 45px;
    border-radius: 50px;
    background-color: #4D80E6;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #3a6bc7;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: calc(100% - 100px);
    margin: 0 auto;
    gap: 30px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(images/queens-college.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    border-radius: 8px;
    padding: 20px;
}

.hero p {
    font-size: 46px;
    font-weight: 600;
    width: 80%;
    margin: 0;
    color: white;
}

h1 a {
    color: #2D5C9A;
    text-decoration: none;
    font-weight: 700;
    font-size: 30px;
}

h1 a:hover {
    color: #4D80E6;
    text-decoration: none;
}

a {
    color: #2b2b2b;
    text-decoration: none;
}

a:hover {
    color: #4D80E6;
    text-decoration: none;
}

.responsive-img {
    width: 100%;
    border-radius: 8px;
}


/* Mobile styles for program cards */
@media screen and (max-width: 768px) {
    .program-card {
        grid-template-columns: 1fr;
        width: calc(100% - 40px);
        gap: 20px;
        padding: 10px;
    }
}

.main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;

}

.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #fbfaf5;
    border-radius: 8px;
    padding: 2rem;
}

.sidebar {
    background-color: #fbfaf5;
    padding: 1rem;
    border-radius: 8px;
}

.sidebar img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.event-info {
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-event a {
    color: #2b2b2b;
    text-decoration: none;
}

.section-event a:hover {
    color: #4D80E6;
    text-decoration: none;
}

.content h2 {
    color: #2b2b2b;
    font-size: 30px;
    font-weight: 600;
}

.content h3 {
    font-size: 24px;
    font-weight: 600;
}

.content h4 {
    font-size: 16px;
    font-weight: 400;
}

.content p {
    font-size: 14px;
    font-weight: 300;
}

article p {
    font-size: 14px;
    font-weight: 300;
    color: #2b2b2b;
}

/* Mobile styles */
@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 2rem;
    }
    .hero p {
        font-size: 30px;
    }
}