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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/homepage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hamburger-menu {
    position: absolute;
    left: 40px;
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
}

.logo-image {
    height: 179px;
    width: auto;
    object-fit: cover;
    object-position: center 85%;
    display: block;
}

.nav-icons {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.search-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.search-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
}

.search-icon::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 6px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transform: rotate(45deg);
}

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 40px;
    z-index: 100;
    max-width: 600px;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-description {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-organization {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 300;
}

@media (max-width: 768px) {
    .top-nav {
        padding: 10px 20px;
    }

    /* .hamburger-menu {
        left: 279px;
        top: 20px;
        width: 40px;
        height: 4880px;
    } */

    .logo {
        top: -15px;
    }

    .logo-image {
        height: 90px;
        width: auto;
        object-fit: cover;
        object-position: center 85%;
    }

    .hero-content {
        bottom: 80px;
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-organization {
        font-size: 13px;
    }
}

/* Navigation Modal */
.nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #2b2b2b;
    color: white;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    display: block;
    height: 100px;
    width: 400px;
}

.modal-logo-image {
    height: 105px;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: scale(1.2);
    margin-top: -10px;
}

.modal-menu {
    display: flex;
    height: 100%;
    padding-top: 80px;
    padding-left: 60px;
}

.menu-section {
    width: 50%;
    padding: 0 40px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #444;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: #ccc;
    transition: color 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
    color: #ff8500;
}

.menu-arrow {
    font-size: 24px;
    opacity: 0.7;
}

.submenu-section {
    width: 50%;
    padding: 0 40px;
    position: relative;
}

.submenu {
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.submenu.active {
    opacity: 1;
    visibility: visible;
}

.submenu-item {
    padding: 20px 0;
    border-bottom: 1px solid #444;
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    display: block;
}

.submenu-item:hover {
    color: white;
}

.submenu-default-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.submenu-default-logo.active {
    opacity: 1;
    visibility: visible;
}

.submenu-logo-image {
    height: 223px;
    width: auto;
    max-width: 600px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        left: 20px;
    }

    .modal-logo {
        top: 20px;
        font-size: 16px;
    }

    .modal-logo-image {
        height: 34px;
        max-width: 220px;
    }

    .submenu-logo-image {
        height: 112px;
        max-width: 300px;
    }

    .modal-menu {
        flex-direction: column;
        padding-top: 100px;
    }

    .menu-section,
    .submenu-section {
        width: 100%;
        padding: 0 20px;
    }

    .submenu {
        position: static;
        left: auto;
        right: auto;
        margin-top: 20px;
    }

    .menu-item {
        font-size: 16px;
        padding: 25px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-organization {
        font-size: 12px;
    }

    .modal-menu {
        padding-top: 80px;
    }

    .menu-item {
        font-size: 15px;
        padding: 20px 0;
    }

    .submenu-item {
        font-size: 14px;
        padding: 15px 0;
    }
}

/* Departments Section */
.departments-section {
    background: #000;
    position: relative;
}

.gradient-transition {
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, #000 100%);
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.departments-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.department {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
}

.department-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.department-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.department-content {
    flex: 1;
}

.department-title {
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.department-title a {
    color: white;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.department-title a:hover {
    text-decoration: underline;
}

.department-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

@media (max-width: 968px) {
    .departments-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 40px;
    }

    .department {
        gap: 30px;
    }

    .department-image {
        width: 180px;
        height: 135px;
    }

    .department-title a {
        font-size: 26px;
    }

    .department-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .departments-container {
        padding: 40px 20px;
        gap: 25px;
    }

    .department {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .department-image {
        width: 200px;
        height: 150px;
        align-self: center;
    }

    .department-title a {
        font-size: 24px;
    }

    .department-description {
        font-size: 14px;
        text-align: left;
    }
}

/* Fellowship Section */
.fellowship-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.fellowship-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
    z-index: 5;
}

.fellowship-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Homepage Planning/fellowship.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fellowship-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 60px;
    z-index: 10;
}

.fellowship-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 35px;
    width: 420px;
    height: 680px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fellowship-title {
    color: #333;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.5px;
}

.fellowship-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    font-family: 'Roboto', sans-serif;
    flex-grow: 1;
}

.fellowship-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fellowship-link {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.fellowship-link:last-child {
    border-bottom: none;
}

.fellowship-link:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .fellowship-content {
        padding: 0 40px;
    }

    .fellowship-sidebar {
        width: 380px;
        height: 620px;
        padding: 45px 30px;
        border-radius: 10px;
    }

    .fellowship-title {
        font-size: 38px;
        margin-bottom: 22px;
    }

    .fellowship-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .fellowship-link {
        font-size: 16px;
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .fellowship-section {
        height: auto;
        min-height: 500px;
        padding: 60px 0;
    }

    .fellowship-content {
        padding: 0 20px;
        align-items: center;
        justify-content: center;
    }

    .fellowship-sidebar {
        width: 100%;
        height: auto;
        padding: 30px 25px;
        margin: 0;
        max-width: 400px;
        border-radius: 8px;
    }

    .fellowship-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .fellowship-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .fellowship-link {
        font-size: 14px;
        padding: 14px 0;
    }

    .fellowship-link::before {
        left: -25px;
        width: 20px;
    }
}

/* About Section */
.about-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
    z-index: 5;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Homepage Planning/About Us.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 60px;
    z-index: 10;
}

.about-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 35px;
    width: 420px;
    height: 680px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-title {
    color: #333;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.5px;
}

.about-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    font-family: 'Roboto', sans-serif;
    flex-grow: 1;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-link {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.about-link:last-child {
    border-bottom: none;
}

.about-link:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .about-content {
        padding: 0 40px;
    }

    .about-sidebar {
        width: 380px;
        height: 620px;
        padding: 45px 30px;
        border-radius: 10px;
    }

    .about-title {
        font-size: 38px;
        margin-bottom: 22px;
    }

    .about-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .about-link {
        font-size: 16px;
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .about-section {
        height: auto;
        min-height: 500px;
        padding: 60px 0;
    }

    .about-content {
        padding: 0 20px;
        align-items: center;
        justify-content: center;
    }

    .about-sidebar {
        width: 100%;
        height: auto;
        padding: 30px 25px;
        margin: 0;
        max-width: 400px;
        border-radius: 8px;
    }

    .about-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .about-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .about-link {
        font-size: 14px;
        padding: 14px 0;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-on-scroll.fade-in {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.pop-up {
    transform: translateY(50px) scale(0.95);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}