/* Basic Setup */
:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --text: #333;
    --bg: #fff;
    --nav-bg: #f8f9fa;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;


}

/* THE BANNER GRADIENT 
           This reproduces the sharp diagonal cut seen in your image.
           Dark Navy (#19263a) -> Hard stop -> Light Slate Blue (#7998b9 to #9abddb)
        */
.custom-banner-bg {
    background: rgb(25, 38, 58);
    background: linear-gradient(105deg,
            #152033 0%,
            #152033 42%,
            /* The cut-off point for the dark blue */
            #7998b9 42.1%,
            /* Start of light blue */
            #9dbde0 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Typography matching */
.brand-text {
    font-family: 'Playfair Display', serif;
    /* Serif font for the Name */
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-text a,
.brand-text a:hover,
.brand-text a:focus {
    text-decoration: none !important;
}

.tagline-text {
    font-family: 'Lato', sans-serif;
    /* Clean sans-serif for tagline */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hamburger Icon Animation */
.hamburger-line {
    transition: all 0.3s ease-in-out;
}

/* When 'open' class is added to the button */
.menu-open .line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .line-2 {
    opacity: 0;
}

.menu-open .line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Adjustments for the gradient */
@media (max-width: 768px) {
    .custom-banner-bg {
        /* On mobile, we reduce the angle or stack it so text doesn't overlap weirdly */
        background: linear-gradient(180deg,
                #152033 0%,
                #152033 60%,
                #7998b9 60.1%,
                #9dbde0 100%);
    }
}





p,
ul,
ol {
    margin: 1.5rem;
    padding: 2px 0;
}

li {
    margin-bottom: 0.5rem;
}

.container {
    max-width: 80ch;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Nav */
header {
    background: var(--nav-bg);
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav>ul>li {
    position: relative;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 100;
    flex-direction: column;
}

nav li:hover .dropdown {
    display: flex;
}

.dropdown li a {
    padding: 0.5rem 1rem;
    display: block;
    color: var(--text);
}

.dropdown li a:hover {
    background: #f1f1f1;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: 60vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    /* Matching the brand font for consistency but making it pop */
    color: var(--primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    padding-top: 4px;
    padding-bottom: 4px;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.2em;
    margin-top: 0;
}

h4 {
    font-size: 1.5rem;
    color: var(--secondary);
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
    margin-top: 2rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Footer */

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Testimonials */
.testimonial {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.testimonial:last-child {
    border-bottom: none;
}

.testimonial .quote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
}

.testimonial .attribution {
    font-family: Helvetica, Arial, sans-serif;
}

.testimonial .name {
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

.testimonial .title,
.testimonial .company,
.testimonial .location {
    font-size: 0.9rem;
    display: block;
    color: #555;
    line-height: 1.4;
}

.testimonial .context {
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--primary);
}

/* TOC Styling */
.toc-container {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 4px;
    max-width: 600px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.toc-container h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    padding-top: 0;
    display: block;
    /* ensure it breaks line */
    width: 100%;
}

.toc-container ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.toc-container li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.toc-container a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

.toc-container a:hover {
    text-decoration: underline;
    color: var(--accent);
}