 /* 
---------------------------------------------
reset
--------------------------------------------- 
*/

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    --color-primary: #6c63ff;
    --color-success: #00bf8e;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247, 88, 66, 0.4);
    --color-white: #fff;
    --color-light: rgba(255, 255, 255, 0.7);
    --color-black: #000000;
    --color-bg: #1f2641;
    --color-bg1: #2e3267;
    --color-bg2: #424890;
    
    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

h1, h2, h3, h4, h5 {
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.3rem;
}

a {
    color: var(--color-white);
    font-weight: bold;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 1rem;
}

.btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-primary {
    background: var(--color-danger);
    color: var(--color-white);
}

 /* 
---------------------------------------------
NAVBAR
--------------------------------------------- 
*/

nav {
    background: transparent;
    width: 100vw;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 11;
}

 /* 
---------------------------------------------
FORMATING OF NAVBAR
--------------------------------------------- 
*/

.window-scroll {
    background: var(--color-primary);
    box-shadow: 1 1rem 2rem rgba(0, 0, 0, 0.2);
}

.nav_container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav button {
    display: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav__menu a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav__menu a:hover {
    color: var(--color-bg2);
}

 /* 
---------------------------------------------
HEADER
--------------------------------------------- 
*/

header {
    position: relative;
    overflow: hidden;
    height: 50vh;
    margin-bottom: 5rem;
    margin-top: 4rem;
}

.header__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
}

.header__left p {
    margin: 1rem 0 2.4rem;
}

 /* 
---------------------------------------------
FUN-FACTS
--------------------------------------------- 
*/

.facts {
    background: var(--color-bg1);
    height: 29rem;
}

.facts h1 {
    line-height: 1;
    margin-bottom: 3rem;
}

.facts__container {
    display: grid;
    grid-template-columns: 40% 60%;
}

.facts__left {
    margin-right: 4rem;
}

.facts__right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.fact {
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.fact:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.fact:nth-child(1) .fact__icon {
    background: var(--color-warning);
}

.fact:nth-child(2) .fact__icon {
    background: var(--color-danger);
}

.fact:nth-child(3) .fact__icon {
    background: var(--color-success);
}

.fact__icon {
    background: var(--color-primary);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.fact h4 {
    margin: 2rem 0 1rem;
}

.fact p {
    font-size: 1rem;
}

 /* 
---------------------------------------------
PRINCIPAL'S DESK
--------------------------------------------- 
*/

.messages__container {
  display: flex;
  flex-wrap: wrap; /* Wraps on small screens */
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

.message__image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.message {
  flex: 1;
  min-width: 250px;
  background: var(--color-bg1);
  text-align: left;
  border: 1px solid transparent;
  transition: var(--transition);
  overflow-wrap: break-word;
  padding: 2rem;
  border-radius: 8px;
  box-sizing: border-box;
}

.message:hover {
  background: transparent;
  border-color: var(--color-primary);
}

 /* 
---------------------------------------------
FAQS
--------------------------------------------- 
*/

.faqs {
    background: var(--color-bg1);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
}

.faqs__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.faq {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: var(--color-primary);
    cursor: pointer;
}

.faq h4 {
    font-size: 1rem;
    line-height: 2.2rem;
}

.faq__icon {
    align-self: flex-start;
    font-size: 1.2rem;
}

.faq p {
    margin-top: 0.8rem;
}

 /* 
---------------------------------------------
FOOTER
--------------------------------------------- 
*/

footer {
    background: var(--color-bg2);
    padding-top: 2rem;
    font-size: 1rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(1 1fr);
    text-align: center;
}

 /* 
---------------------------------------------
MEDIA QUERIES (TABLET)
--------------------------------------------- 
*/

@media screen and (max-width: 1024px) {
    .container {
        width: var(--container-width-md);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

 /* 
 ---------------------------------------------
 NAVBAR (TABLET)
 --------------------------------------------- 
 */

 nav button {
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
 }

 nav button#close-menu-btn {
    display: none;
 }

 .nav__menu {
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0;
    display: none;
 }

 .nav__menu li {
    width: 100%;
    height: 5.8rem;
    animation: animateNavItems 400ms linear forwards;
    transform-origin: top right;
    opacity: 0;
 }

 .nav__menu li:nth-child(2) {
    animation-delay: 200ms;
 }

  .nav__menu li:nth-child(3) {
    animation-delay: 400ms;
 }

  .nav__menu li:nth-child(4) {
    animation-delay: 600ms;
 }

 @keyframes animateNavItems {
    0% {
        transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
    }

    100% {
        transform: rotateZ(0) rotateX(0) scale(1);
        opacity: 1;
    }
 }

 .nav__menu li a {
    background: var(--color-primary);
    box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
 }

 .nav__menu li a:hover {
    background: var(--color-bg2);
    color: var(--color-white);
 }

 /* 
 ---------------------------------------------
 HEADER (TABLET)
 --------------------------------------------- 
 */

    header {
        height: 52vh;
        margin-bottom: 2rem;
    }

    .header__container {
        gap: 0.1;
        padding-bottom: 3rem;
    }

    .header__left a {
        display: flex;
        margin-left: 0.7rem;
        margin-bottom: 0.7rem;
    }

 /* 
 ---------------------------------------------
 PREVIOUS ASSISTANCE (TABLET)
 --------------------------------------------- 
 */

    .facts {
        height: auto;     
    }

    .facts__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .facts__left {
        margin-right: 0;
    }

 /* 
 ---------------------------------------------
 PRINCIPAL'S DESK (TABLET)
 ---------------------------------------------
 */
  .messages {
    margin-top: -8rem;
  }

  .messages__container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
  }

  .message__image {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .message {
    width: 100%;
  }

 /* 
 ---------------------------------------------
 FAQS (TABLET)
 --------------------------------------------- 
 */

    .faqs__container {
        grid-template-columns: 1fr;
    }

    .faq {
        padding: 1.5rem;
    }
}

 /* 
---------------------------------------------
MEDIA QUERIES (PHONE)
--------------------------------------------- 
*/

@media screen and (max-width: 600px) {
    .container {
        width: var(--container-width-sm);
    }

 /* 
 ---------------------------------------------
 NAVBAR (PHONE)
 --------------------------------------------- 
 */

    .nav__menu {
        right: 3%;
    }

 /* 
 ---------------------------------------------
 BANNER (PHONE)
 --------------------------------------------- 
 */

    .slideshow-container {
        margin-top: 10rem;
    }

 /* 
 ---------------------------------------------
 HEADER (PHONE)
 --------------------------------------------- 
 */

   header {
    height: auto;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    text-align: center;
  }

  .header__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .header__left h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .header__left h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }

  .header__left p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .header__left a {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0.4rem auto;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px;
  }

  .header__right {
    display: none;
  }

 /* 
 ---------------------------------------------
 PREVIOUS ASSISTANCE (PHONE)
 --------------------------------------------- 
 */

    .facts__right {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .fact {
        padding: 1rem;
        border-radius: 1rem;
     }

    .fact__icon {
        margin-top: 4px;
        display: inline-block;
 }  

 /* 
 ---------------------------------------------
 PRINCIPAL'S DESK (PHONE)
 --------------------------------------------- 
 */

  .messages__container {
    flex-direction: column;
  }

  .message__image {
    max-width: 100%;
  }

 /* 
 ---------------------------------------------
 FAQS (PHONE)
 --------------------------------------------- 
 */
    .question__answer {
        width: 70vw;
    }   

}