/* --------------------------------------------------
   GLOBAL RESET & BASE
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #F2F4F7;
    color: #1A1A1A;
    line-height: 1.6;
    padding-bottom: 60px;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
    background: #0A0A0A;
    color: #FFFFFF;
    padding: 20px;
    border-bottom: 3px solid #004AAD;
}

.top-contact {
    display: flex;
    gap: 25px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.main-nav {
    display: flex;
    gap: 25px;
    margin-bottom: 12px;
    align-items: center;
}

.main-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
}

.main-nav a:hover {
    color: #00A8FF;
}

.cta-banner {
    background: #004AAD;
    color: #FFFFFF;
    padding: 10px 14px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    margin-top: 10px;
}

/* Mobile/dark mode buttons */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
}

.hero-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #004AAD;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-btn {
    background: #004AAD;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.cta-btn:hover {
    background: #00337A;
}

.hero-image-wrapper {
    max-width: 420px;
}

.hero-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
section {
    padding: 40px 20px;
}

section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #004AAD;
}

section p {
    font-size: 17px;
    max-width: 800px;
}

/* Dynamic cards */
#homeModules .home-card,
#servicesList .service-card,
#faqList .faq-item,
#messagesList .message-item,
#calendarList li {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.home-card-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.faq-question {
    font-weight: bold;
}

.faq-answer {
    margin-top: 4px;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
    background: #0A0A0A;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
    font-size: 15px;
    border-top: 3px solid #004AAD;
    margin-top: 40px;
}

/* --------------------------------------------------
   RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .top-contact {
        flex-direction: column;
        gap: 5px;
    }

    .main-nav {
        flex-direction: column;
        display: none;
        align-items: flex-start;
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: inline-block;
    }
}

/* Global CTA */
.global-cta {
    background: #004AAD;
    color: #FFFFFF;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 25px;
    border-radius: 4px;
}

.global-cta p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.global-cta .cta-btn {
    background: #FFFFFF;
    color: #004AAD;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.global-cta .cta-btn:hover {
    background: #E6E6E6;
}

/* Hero image */
.page-hero {
    text-align: center;
    margin: 20px 0;
}

.page-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: inline-block;
}

/* --------------------------------------------------
   LOGIN PAGE
-------------------------------------------------- */
#loginContainer {
    max-width: 420px;
    margin: 60px auto;
    padding: 20px;
}

.login-box {
    background: #FFFFFF;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    border-top: 4px solid #004AAD;
}

.login-box h2 {
    font-size: 26px;
    font-weight: 800;
    color: #004AAD;
    margin-bottom: 20px;
    text-align: center;
}

.login-box label {
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    color: #1A1A1A;
}

.login-box input,
.login-box select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #C9CED6;
    border-radius: 6px;
    font-size: 16px;
    background: #F9FAFB;
}

.login-box input:focus,
.login-box select:focus {
    outline: none;
    border-color: #004AAD;
    box-shadow: 0 0 0 2px rgba(0,74,173,0.15);
}

.login-box .cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    background: #004AAD;
    color: #FFFFFF;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
}

.login-box .cta-btn:hover {
    background: #00337A;
}

/* --------------------------------------------------
   NAV GREETING
-------------------------------------------------- */
.nav-greeting {
    color: #FFFFFF;
    font-weight: 700;
    margin-left: auto;
    padding-left: 20px;
}

/* --------------------------------------------------
   PAGE TRANSITIONS
-------------------------------------------------- */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.page-transition.show {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------
   TOAST NOTIFICATIONS
-------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #004AAD;
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------
   DARK MODE
-------------------------------------------------- */
body.dark {
    background: #0A0A0A;
    color: #FFFFFF;
}

body.dark .site-header,
body.dark .site-footer {
    background: #000000;
}

body.dark .cta-btn {
    background: #00A8FF;
    color: #000000;
}

/* --------------------------------------------------
   WIDGET ANIMATIONS
-------------------------------------------------- */
.widget-animate {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.widget-animate.show {
    opacity: 1;
    transform: scale(1);
}

/* Fade-slide-up class used for staggered content */
.fade-slide-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-slide-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for in-page anchors */
html {
    scroll-behavior: smooth;
}

.small-hero {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.module-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}