/* ===================================================================
   MASTER STYLESHEET
   1. Variables & Reset
   2. Base Typography & Layout
   3. Components (Buttons, Forms, Cards)
   4. Header & Navigation (Top bar, Navbar, Sticky, Dropdown)
   5. Section Specifics (Hero, Why Us, Blog, etc.)
   6. Footer
   7. Page Specific: Login Theme
   8. Media Queries (Responsiveness)
=================================================================== */

/* --- FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('/assets/fonts/stylesheet.css');

/* --- 1. VARIABLES --- */
:root {
    /* Main Branding */
    --primary-color: #015764;   /* Professional Teal */
    --accent-color: #E66F47;    /* Professional Coral */
    --theme-color: #008970;     /* Legacy Theme Green */
    
    /* Neutral Colors */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light-grey: #F9F9F9;
    --border-color: #EAEAEA;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Omni/Login Page Specifics */
    --omni-primary: #0056b3;
    --omni-accent: #00a8cc;
    --omni-bg: #f4f7f6;
    --omni-text: #2c3e50;
    --omni-radius: 12px;
}

/* --- 2. BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #3291e6;
    text-decoration: none;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }

section {
    padding: 60px 0;
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.themeColor {
    background: var(--theme-color) !important;
}

.section-bg {
    background-color: #f1f7fd;
}

/* --- 3. COMPONENTS --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #013B1D;
    border-top-color: #d1e6f9;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: #013B1D;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 28px;
    color: #fff;
    line-height: 40px; /* Centered */
    text-align: center;
    display: block;
}

.back-to-top:hover {
    background: #298ce5;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* --- 4. HEADER & NAVIGATION --- */

/* Top Bar */
#topbar {
    background: #fff;
    height: 40px;
    font-size: 14px;
    transition: all 0.5s;
    z-index: 996;
}

#topbar.topbar-scrolled { top: -40px; }

#topbar .contact-info a,
#topbar .social-links a {
    color: #444444;
    transition: 0.3s;
    line-height: 1;
    display: inline-block;
}

#topbar .social-links a {
    color: #437099;
    padding-left: 15px;
}

#topbar a:hover { color: #013B1D; }
#topbar .contact-info i {
    color: #013B1D;
    padding-right: 4px;
    margin-left: 15px;
}
#topbar .contact-info i:first-child { margin-left: 0; }

/* Main Navbar (Sticky) */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

/* Nav Links */
.navbar .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar .nav-links li { margin-left: 25px; }

.navbar .nav-links a {
    color: var(--text-dark);
    font-weight: 600;
}

.navbar .nav-links a:hover { color: var(--primary-color); }

.navbar .nav-links .btn {
    margin-left: 15px;
    padding: 10px 20px;
}

/* Dropdown Menus */
.nav-item-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1001;
    list-style: none;
}

.dropdown-menu li { margin-left: 0 !important; }

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light-grey);
    color: var(--primary-color);
}

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

/* --- 5. SECTIONS --- */

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    color: var(--text-dark);
    font-size: 3.2rem;
}

.hero h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dark);
    max-width: 600px;
    margin: 20px auto 30px;
}

.hero .hero-buttons .btn { margin: 0 10px; }
.hero-image { margin-bottom: 30px; }

/* Section Titles */
.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #013B1D;
}

.section-title h2::before {
    content: "";
    position: absolute;
    width: 120px; height: 1px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 60px);
}

.section-title h2::after {
    content: "";
    position: absolute;
    width: 40px; height: 3px;
    background: #013B1D;
    bottom: 0;
    left: calc(50% - 20px);
}

/* How It Works */
.how-it-works { background-color: var(--bg-light-grey); }

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.how-it-works-grid .card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.how-it-works-grid .card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Professional Network */
.pro-network .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pro-network .image-placeholder {
    text-align: center;
    color: #999;
    background-color: var(--bg-light-grey);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    min-height: 300px;
}

/* Why Us */
.why-us .content {
    padding: 30px;
    background: #013B1D;
    border-radius: 4px;
    color: #fff;
}

.why-us .content h3 {
    font-weight: 700;
    font-size: 34px;
    margin-bottom: 30px;
    color: #fff;
}

.why-us .content .more-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 30px 8px 30px;
    color: #fff;
    border-radius: 50px;
    transition: all ease-in-out 0.4s;
}

.why-us .content .more-btn:hover {
    color: #013B1D;
    background: #fff;
}

.why-us .icon-boxes .icon-box {
    text-align: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    width: 100%;
}

.why-us .icon-boxes .icon-box i {
    font-size: 40px;
    color: #013B1D;
    margin-bottom: 30px;
}

/* About */
.about .icon-boxes h4 {
    font-size: 18px;
    color: #4b7dab;
    margin-bottom: 15px;
}

.about .icon-boxes h3 {
    font-size: 28px;
    font-weight: 700;
    color: #013B1D;
    margin-bottom: 15px;
}

/* Blog Section */
.blog-section { background-color: var(--bg-light-grey); }

.blog-section h2 + p {
    text-align: center;
    max-width: 550px;
    margin: 0 auto 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-grid .card {
    background-color: var(--text-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.blog-grid .card-image, .card-img-top {
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    width: 100%;
    background-color: #E0E0E0;
}

.blog-grid .card-content { padding: 20px; }
.blog-grid .card-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 60px 20px;
    border-radius: 8px;
}

.cta-banner h2 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 25px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background-color: #f1f7fd;
    min-height: 40px;
    margin-top: 120px;
}

.breadcrumbs h2 {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 14px;
}

.breadcrumbs ol li+li { padding-left: 10px; }
.breadcrumbs ol li+li::before {
    display: inline-block;
    padding-right: 10px;
    color: #6c757d;
    content: "/";
}

/* --- 6. FOOTER --- */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer .logo-col .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
}

.footer .logo-col p { color: #ccc; max-width: 250px; }
.footer .footer-col h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
}

.footer .footer-col ul { list-style: none; }
.footer .footer-col ul li { margin-bottom: 10px; }
.footer .footer-col ul li a { color: #ccc; font-weight: 400; }
.footer .footer-col ul li a:hover { color: var(--text-light); }

.footer .footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
}

/* --- 7. PAGE SPECIFIC: MODERN HEALTH LOGIN --- */
/* Scoped specifically for /users-login page elements */

body.login-page {
    background-color: var(--omni-bg);
    background-image: linear-gradient(135deg, #f4f7f6 0%, #e2ebf0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container, .auth-box {
    background: #ffffff;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border-radius: var(--omni-radius);
    box-shadow: 0 10px 25px rgba(0, 50, 100, 0.08);
    border-top: 5px solid var(--omni-primary);
}

.login-container h1, .login-container h2 {
    color: var(--omni-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-container input:focus {
    border-color: var(--omni-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.1);
}

.login-container button, 
.login-container input[type="submit"], 
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--omni-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s;
}

.login-container button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

/* --- 8. MEDIA QUERIES (RESPONSIVENESS) --- */

@media (max-width: 992px) {
    .breadcrumbs { margin-top: 100px; }
    .breadcrumbs h2 { margin: 0 0 10px 0; }
}

@media (max-width: 768px) {
    /* Typography Scaling */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    /* Header Stacking */
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .navbar .nav-links li {
        margin-left: 0;
        width: 100%;
        text-align: left;
        padding: 8px 0;
    }

    .navbar .nav-links .btn {
        padding: 10px;
        text-align: center;
        margin-left: 0;
        margin-top: 5px;
    }

    /* Hide Dropdowns on Mobile (Simplify UX) */
    .dropdown-menu { display: none !important; }
    .nav-item-dropdown > a::after { display: none; }

    /* Grid Stacking */
    .how-it-works-grid,
    .pro-network .container,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Layout Adjustments */
    .pro-network .container .image-placeholder {
        order: -1; /* Image on top */
        margin-bottom: 20px;
    }

    .how-it-works-grid .card { margin-bottom: 20px; }

    /* Hero Adjustments */
    .hero h3 { font-size: 1.1rem; }
    .hero .hero-buttons {
        display: flex;
        flex-direction: column;
    }
    .hero .hero-buttons .btn { margin: 5px 0; }
    
    /* Breadcrumbs */
    .breadcrumbs .d-flex { display: block !important; }
    .breadcrumbs ol { display: block; }
    .breadcrumbs ol li { display: inline-block; }
}