/* Custom CSS for Mingnify Homepage */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #49B1F5;
    --primary-hover: #3aa0e0;
    --text-color: #374151;
    --heading-color: #111827;
    --bg-color: #f9fafb;
    --sidebar-bg: #ffffff;
    --sidebar-text: #4b5563;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Typography */
body,
input,
select,
textarea {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-color) !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    /* Reset to px for better control */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    margin-bottom: 1rem !important;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: inherit !important;
    border-bottom: none !important;
}

p {
    margin-bottom: 1.5rem !important;
}

/* Layout & Background */
body {
    background-color: var(--bg-color) !important;
}

#wrapper {
    background-color: transparent !important;
}

#main {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius);
    margin: 2em;
    overflow: hidden;
    /* Ensure rounded corners clip content */
}

@media screen and (max-width: 736px) {
    #main {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Sidebar / Header */
#header {
    background-color: var(--sidebar-bg) !important;
    border-left: 1px solid #e5e7eb;
    color: var(--sidebar-text) !important;
}

#header header .image.avatar {
    width: 8em;
    margin-bottom: 1.5em;
}

#header header .image.avatar img {
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
}

#header header .image.avatar:hover img {
    transform: scale(1.05);
}

#header header h1 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

#header header p {
    color: var(--sidebar-text);
    font-size: 0.9em;
    font-style: normal;
    line-height: 1.6;
}

#nav ul li {
    border-top: none !important;
}

#header>nav ul li a {
    color: var(--sidebar-text) !important;
    border: none !important;
    font-weight: 500;
    padding: 0.5em 0;
    transition: var(--transition);
}

#header>nav ul li a:hover,
#header>nav ul li a.active {
    color: var(--primary-color) !important;
    background: rgba(73, 177, 245, 0.05);
    border-radius: 6px;
    padding-left: 1em;
}

#header>nav ul li a.active {
    font-weight: 600;
}

#header>footer .icons li a {
    color: #9ca3af !important;
    transition: var(--transition);
}

#header>footer .icons li a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

#footer .icons li a {
    color: #9ca3af !important;
    transition: var(--transition);
}

#footer .icons li a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Content Sections */
.container {
    padding: 4em 4em 2em 4em !important;
    max-width: 100% !important;
    width: 100% !important;
}

@media screen and (max-width: 736px) {
    .container {
        padding: 2em 1.5em 1em 1.5em !important;
    }
}

section>header.major {
    margin-bottom: 3em !important;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 2em;
}

section>header.major h2 {
    font-size: 2.25em !important;
    margin-bottom: 0.5em !important;
}

section>header.major p {
    color: #6b7280;
    font-size: 1.1em;
    font-style: normal;
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--primary-color) !important;
    border-bottom: 1px solid transparent !important;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover) !important;
    border-bottom-color: var(--primary-hover) !important;
}

/* Buttons */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
    background-color: transparent !important;
    box-shadow: inset 0 0 0 1px #d1d5db !important;
    color: var(--text-color) !important;
    border-radius: 50px !important;
    /* Pill shape */
    font-weight: 600 !important;
    text-transform: none !important;
    /* Remove uppercase */
    letter-spacing: normal !important;
    padding: 0 2em !important;
    height: 3em !important;
    line-height: 3em !important;
    transition: var(--transition) !important;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
    box-shadow: inset 0 0 0 1px var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
    background-color: var(--primary-color) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover {
    background-color: var(--primary-hover) !important;
    box-shadow: 0 4px 6px -1px rgba(73, 177, 245, 0.3) !important;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0.75em 1em !important;
    transition: var(--transition) !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(73, 177, 245, 0.1) !important;
    background-color: #ffffff !important;
}

/* Images */
.image.main img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    /* Only top corners if at top */
}

/* Footer */
#footer .copyright {
    color: #9ca3af;
    font-size: 0.8em;
}

#footer .copyright li {
    border-left: 1px solid #e5e7eb;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Mobile TitleBar Overrides */
#titleBar {
    background: #ffffff !important;
    color: var(--heading-color) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid #e5e7eb;
}

#titleBar .title {
    color: var(--heading-color) !important;
}

#titleBar .toggle:before {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Slogan Header Style (Option A) */
.slogan-header {
    text-align: left;
    margin-bottom: 0 !important;
    /* Reduced bottom margin since it's a separate section now */
    border-bottom: none !important;
    /* Remove border for cleaner look */
    padding-bottom: 2em;
}

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1.5em;
}

.slogan-header h1 {
    font-size: 3em !important;
    /* Approx 48px */
    line-height: 1.2 !important;
    margin-bottom: 0.5em !important;
    color: var(--heading-color) !important;
    letter-spacing: -0.02em;
}

.slogan-header h1 .highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-color);
    /* Fallback */
}

.slogan-header p.subtitle {
    font-size: 1.35em;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}

@media screen and (max-width: 736px) {
    .slogan-header h1 {
        font-size: 2.2em !important;
    }

    .slogan-header p.subtitle {
        font-size: 1.1em;
    }
}

/* Consistent Section Heights */
#one,
#two,
#four {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Adjust mobile height if needed */
@media screen and (max-width: 736px) {

    #one,
    #two,
    #four {
        min-height: auto;
        /* Let content dictate height on mobile */
        padding-top: 4em;
        padding-bottom: 4em;
    }
}