/* ==========================================================
   BASIC RESET
   This removes the default spacing browsers add so our
   sizes are easier to control.
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    /* This pushes the page content down so it is not hidden
       behind the sticky navigation bar at the top */
    padding-top: 50px;
}


/* ==========================================================
   HEADER SECTION
   Soft Romanian-flag blue background, comfortable on the eyes
========================================================== */
.main-header {
    background-color: #2E5AAC;   /* soft comfortable blue */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}

/* Holds both logos together on the left side */
.header-logos {
    display: flex;
    gap: 15px;
}

/* The circle that holds each logo */
.logo-circle {
    width: 120px;              /* made bigger than before */
    height: 120px;
    border-radius: 50%;      /* this makes the box a circle */
    background-color: black;
    overflow: hidden;         /* keeps the image inside the circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The middle text: title and subtitle */
.header-text {
    text-align: center;
    color: white;
}

.header-text h1 {
    font-size: 85px;
}

.header-text p {
    font-size: 20px;
    margin-top: 5px;
}

/* The Apply Now and Login buttons in the header */
.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ==========================================================
   GENERAL BUTTON STYLES
   Every button on the page uses the ".btn" class, then a
   second class gives it its own color
========================================================== */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 25px;      
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-blue {
    background-color: #3B82F6; /* shiny light blue */
}

.btn-red {
    background-color: #E63946; /* shiny red */
}

.btn-green {
    background-color: #4CAF50; /* light green */
}

.btn-darkblue {
    background-color: #1B3A6B; /* dark blue */
}


/* ==========================================================
   NAVIGATION SECTION
   This bar stays on top of the page even when scrolling
========================================================== */
.main-nav {
    background-color: #2E5AAC;
    position: fixed;      /* keeps the nav bar always on screen */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 40px;
    z-index: 100;          /* keeps the nav bar above other content */
}


.nav-list {
    list-style: none;      
    display: flex;
    justify-content: center;
    gap: 30px;
    flex: 1;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 19px;    
    font-weight: bold;   
}

.nav-list a:hover {
    text-decoration: underline;
}

/* ==========================================================
   PROGRAMS DROPDOWN MENU
   Shows the list of Program steps when hovering over
   "Programs" in the navigation bar
========================================================== */
.has-dropdown {
    position: relative;   /* so the dropdown-menu can position itself under this link */
}

.dropdown-menu {
    display: none;             /* hidden until the user hovers */
    list-style: none;
    position: absolute;
    top: 100%;                 /* sits right below the "Programs" link */
    left: 0;
    background-color: #2E5AAC;
    min-width: 260px;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.has-dropdown:hover .dropdown-menu {
    display: block;             /* reveal the dropdown on hover */
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: normal;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #1B3A6B;
}

/* Search bar in the navigation */
.search-form {
    display: flex;
}

.search-form input {
    padding: 6px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.search-form button {
    padding: 6px 10px;
    border: none;
    background-color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* ==========================================================
   BODY SECTION
========================================================== */

/* ============================== Body section 01 ===================================  */

.section01 {
    background-image: url('mscot-bg.jpg');
    background-size: contain; /* shows the whole picture, no cropping */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #12121f; /* fills the empty space around the picture */
    padding: 120px 50px;
    min-height: 750px;
    display: flex;
    align-items: center;
}

    .section01-text {
        max-width: 50%; /* keeps the text on the left half of the picture */
        background-color: rgba(255, 255, 255, 0.7); /* light box so text is easy to read */
        padding: 40px;
        border-radius: 10px;
    }

        .section01-text h1 {
            font-size: 50px;
            margin-bottom: 20px;
        }


        .section01-text h2 {
            font-size: 36px;
            margin-bottom: 15px;
        }

        .section01-text p {
            font-size: 18px;
            margin-bottom: 20px;
            line-height: 1.5;
            text-align: justify;
        }

        .section01-text .btn {
            margin-right: 10px;
        }

/*=====================================Body - Setion 02 =========================================*/
.section02 {
    background-color: white;
    padding: 80px 50px;
    display: flex;
    justify-content: center;
}

.section02-text {
    background-color: #EAF1FB; /* light blue shade fill */
    border: 2px solid #2E5AAC; /* romanian flag blue border */
    border-radius: 20px;
    padding: 50px;
    max-width: 1250px;
    width: 95%;
    text-align: center;
}

    .section02-text h2 {
        font-size: 40px;
        margin-bottom: 20px;
        color: #2E5AAC;
    }

    .section02-text p {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .section02-text ul {
        font-size: 18px;
        list-style-type: disc;
        padding-left: 20px;
        text-align: left;
    }

/* ============== Body section 03 ===================================  */

.section03 {
    background-color:darkblue;
    color: white;
    padding: 60px 40px;
    text-align: center;
}

    .section03-text h2 {
        margin-bottom: 30px;
        font-size: 40px;
    }

.section03-text p {
    font-size: 22px;
    margin-left: 40px;
    margin-right: 40px;
}

/* ========================= Body section 04 ===================================*/

.section04 {
    background-color: white;
    padding: 80px 50px;
    display: flex;
    justify-content: center;
}

.section04-text {
    background-color: #EAF1FB; /* light blue shade fill */
    border: 2px solid #2E5AAC; /* romanian flag blue border */
    border-radius: 20px;
    padding: 50px;
    max-width: 1250px;
    width: 95%;
    text-align: center;
}

    .section04-text h2 {
        font-size: 40px;
        margin-bottom: 20px;
        color: #2E5AAC;
    }

    .section04-text p {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.6;
    }

/*------------------------- bodu section 05 ===============================*/

.section05 {
    background-image: url('ephebg.png');
    background-size: contain; /* shows the whole picture, no cropping */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #12121f; /* fills the empty space around the picture */
    padding: 120px 50px;
    min-height: 815px;
    display: flex;
    align-items: center;
}

.section05-text {
    max-width: 50%; /* keeps the text on the left half of the picture */
    background-color: rgba(255, 255, 255, 0.7); /* light box so text is easy to read */
    padding: 40px;
    border-radius: 10px;
}

    .section05-text h2 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .section05-text p {
        font-size: 18px;
        margin-bottom: 20px;
        line-height: 1.5;
        text-align: justify;
    }

    .section05-text .btn {
        margin-right: 10px;
    }

    
/* ==========================================================
   FOOTER SECTION
========================================================== */
        .main-footer {
            background-color: #2E5AAC;
            color: white;
            display: flex;
            padding: 40px;
            position: relative;
        }

        .footer-left,
        .footer-right {
            flex: 1;
            padding: 0 30px;
        }

            .footer-left h3 {
                margin-bottom: 15px;
            }

            .footer-left p {
                margin-bottom: 8px;
            }
        /* Thin white line between the two footer sections */
        .footer-divider {
            width: 1px;
            background-color: white;
        }

        .footer-right {
            display: flex;
            flex-direction: column;
        }

            .footer-right a {
                color: white;
                text-decoration: none;
                margin-bottom: 10px;
            }

                .footer-right a:hover {
                    text-decoration: underline;
                }

        .copyright {
            margin-top: 15px;
            font-size: 14px;
        }
        /* Small logo circle in the corner of the footer */
        .footer-logo {
            position: absolute;
            right: 20px;
            top: 20px;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            overflow: hidden;
            background-color: white;
        }

            .footer-logo img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        /* ==========================================================
   EPHE INSTITUTE LINK
   Every place the words "EPHE Institute" appear as a link
========================================================== */
        .ephe-link {
            color: inherit; /* keeps the same text color as the paragraph */
            font-weight: bold;
        }
