/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Base Styles */
html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

main {
    background-color: #0C2340;
    padding: 0 0 10px 0;
    flex: 1;
}

/* Header */
header {
    margin: 0;
    padding: 0;
}

.header {
    opacity: 1;
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    top: 0;
    width: 100%;
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: rgb(237, 242, 245);
    margin: 0;
    padding: 0 0 0 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header.fixed {
    position: fixed;
    top: 0;
    opacity: 0;
    pointer-events: none;
}

.header.slide-down {
    opacity: 1;
    transform: translateY(0);
}

.header.scrolled {
    background-color: rgba(237, 242, 245, 1); /* corrected RGBA syntax */
    transition: background-color 0.3s ease;
}

.header.hidden {
    top: -120px;
    opacity: 0;
    pointer-events: none;
}

.header.fade-in {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.header.slide-up {
    transform: translateY(50px);
    opacity: 0;
    pointer-events: none;
}

/* Logo and Titles */
.header .logo {
    font-size: 25px;
    font-family: 'Sriracha', cursive;
    color: #000;
    text-decoration: none;
    margin-left: 30px;
    padding: 0;
}

.header-left {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 10px;
    padding-bottom: 0;
}

.sa-title {
    font-family: 'Cinzel';
    font-size: 32.64px;
    font-weight: 550;
    color: #0C2340;
    padding: 0 30px 0 10px;
    margin-bottom: 0;
}

.sa-title-s,
.sa-title-a {
    font-size: 43px;
}

.sa-motto {
    font-size: 19px;
    font-family: 'Cinzel', serif;
    color: #0C2340;
    margin: 0;
    padding-top: 0;
}

.sa-motto-2 {
    font-size: 10px;
    font-family: 'Cinzel', serif;
    color: #0C2340;
    margin: 0;
    padding: 0 0 5px 0;
}

/* Navigation */
.nav-items {
    font-size: 14.4px;
    font-family: 'Raleway';
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgb(237, 242, 245);
    margin: 0 30px 0 0;
    padding-bottom: 0;
}

.nav-items a {
    text-decoration: none;
    color: #000;
    padding: 0 20px;
}

.nav-items a:hover {
    background: rgb(237, 242, 245);
    color: #0C2340;
    font-weight: bold;
}


.nav-items a.active {
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding-left: 30px;
    padding-right: 0;
}

.separator {
    margin-left: 10px;
    width: 1px;
    height: 20px;
    background-color: #ccc;
}

/* Dropdown */
.dropdown {
    position: relative;
    margin-left: 20px;
    margin-top: 0;
}

.menu-btn,
.menu-button {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu-btn span,
.menu-button span {
    margin-top: 0;
    margin-right: 0;
}

.menu-btn::after {
    content: "▼";
    font-size: 10px;
    margin-left: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(237, 242, 245);
    color: black;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

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

.dropdown-menu a:hover {
    background-color: white;
}

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

/* Login Button */
.login-btn {
    font-size: 14.4px;
    font-weight: 500;
    font-family: 'Raleway';
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-right: 10px;
    margin-top: 0;
    padding-bottom: 0;
    border-radius: 5px;
}

.login-btn a {
    color: #000;
    text-decoration: none;
    padding: 10px;
}

/* Sign Up Button */
.signup-btn {
    font-size: 14.4px;
    font-weight: 500;
    font-family: 'Raleway';
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #0C2340;
    margin-right: 0;
    margin-top: 0;
    padding-bottom: 0;
    border-radius: 5px;
}

.signup-btn a {
    color: #ae9142;
    text-decoration: none;
    padding: 10px;
}

.courses-banner {
    height: 120px;
    background-image: url('https://www.memoriaacademy.com/wp-content/uploads/2024/10/background1.webp'); /* Replace with actual image path */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.courses-banner h1 {
    color: #FFFFFF;
    font-family: 'Cinzel';
    font-size: 32.64px;
    font-weight: 500;
    border-bottom: 3px solid #ae9142;
    margin: 0;
    padding-bottom: 8px;
    line-height: 20px;
}

.main-content {
    background: white;
    display: flex;
    align-items: center;     /* Vertical alignment */
    justify-content: center; /* Horizontal alignment (optional) */
    height: 100vh;           /* Full viewport height */
}

.button-container {
    display: flex;
    justify-content: center;  /* Center the group horizontally */
    align-items: center;
    gap: 40px;                /* Space between buttons */
    flex-wrap: wrap;          /* Allow wrapping on smaller screens */
    margin-top: 200px;
    margin-bottom: 30px;    
  }

  .buttons {
    background-color: rgb(237, 242, 245);
    border-radius: 5px;
    padding: 20px;
    width: 280px; /* You can adjust width as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 70px;
  }
  

  .buttons h1 {
    color: #0C2340;
    font-size: 16px;
    font-family: 'Cinzel';
    margin: 0;
    border-bottom: none;
  }

  .btn-link {
    text-decoration: none;
  }

/* Animation for buttons */
 .buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .buttons.animate {
    opacity: 1;
    transform: translateY(0);
  }



/* footer section */
.footer {
    background-color: #0C2340;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    position: relative;
    width: 100%;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #ae9142;
    text-decoration: none;
    margin: 0 8px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    color: #fff;
}