/* ==========================================================
   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 1
   Background picture with welcome text on the left side
========================================================== */
.section-1 {
    background-image: url('section1-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: 80px 40px;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.section-1-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: 30px;
    border-radius: 10px;
}

.section-1-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.section-1-text p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.section-1-text .btn {
    margin-right: 10px;
}


/* ==========================================================
   BODY - SECTION 2
   Introduction box about PILCS
========================================================== */
.section-2 {
    background-color: white;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
}

.intro-box {
    background-color: #EAF1FB;     /* light blue shade fill */
    border: 2px solid #2E5AAC;      /* romanian flag blue border */
    border-radius: 20px;           
    padding: 40px;
    max-width: 1150px;      
    width: 90%;
    text-align: center;
}

.intro-box h2 {
    margin-bottom: 15px;
    color: #2E5AAC;
}

.intro-box p {
    margin-bottom: 20px;
    line-height: 1.6;
}


/* ==========================================================
   BODY - SECTION 3
   Left half: list. Right half: 6 buttons.
========================================================== */
.section-3 {
    background-color: white;
    display: flex;
    padding: 60px 40px;
    gap: 40px;
}

.section-3-left,
.section-3-right {
    flex: 1;
    min-height: 300px;
}

.section-3-left h2 {
    margin-bottom: 20px;
    color: #2E5AAC;
}

.section-3-left ul {
    padding-left: 20px;
    line-height: 2;
    font-size: 19px;    
}



/* ==========================================================
   BODY - SECTION 4
   Future Programs, full width Romanian flag blue
========================================================== */
.section-4 {
    background-color: #2E5AAC;
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.section-4 h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.future-programs-content {
    display: flex;
    justify-content: center;
    gap: 140px;      
    flex-wrap: wrap;
}

.dropdown select {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-top: 10px;
}

.dropdown label {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.coming-soon h3 {
    font-size: 18px;
}


/* ==========================================================
   BODY - SECTION 5
   Employers and Partners
========================================================== */
.section-5 {
    background-image: url('section5-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
}

/* White see-through box so the text stays easy to read
   on top of the photo background */
.section-5-box {
    background-color: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 40px;
    max-width: 900px;
    color: #333333;   /* dark gray text */
}

.section-5-box h2 {
    color: black;
    margin-bottom: 20px;
}

.section-5-box p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.section-5-box h3 {
    margin-bottom: 10px;
}

.partners-list {
    list-style: none;
}

.partners-list li {
    margin-bottom: 10px;
}

.partners-list a {
    color: #2E5AAC;
    text-decoration: none;
}

.partners-list a:hover {
    text-decoration: underline;
}


/* ==========================================================
   BODY - SECTION 6
   News and Announcements
========================================================== */
.section-6 {
    background-color: white;
    padding: 60px 40px;
    text-align: center;
}

.section-6 h2 {
    margin-bottom: 30px;
}

.news-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.news-box {
    background-color: #EAF1FB;
    border-radius: 10px;
    padding: 30px;
    width: 250px;
}

.news-box p {
    font-weight: bold;
    margin-bottom: 10px;
}

.news-box a {
    color: #2E5AAC;
    text-decoration: none;
    font-weight: bold;
}

.news-box a:hover {
    text-decoration: underline;
}

/* The fourth box that only says "All News" */
.news-box-all {
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* ==========================================================
   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;
}
