/* ================================================
   CODERSERA GHOST THEME — Brand overrides on Casper
   ================================================ */

/* --- Reset Casper header padding ----------------------------------------- */
.site-content,
.is-head-stacked .site-content,
.is-head-left-logo .site-content,
.is-head-middle-logo .site-content {
    padding-top: 0 !important;
}
.gh-head { display: none !important; }

/* --- Viewport flex so footer stays at bottom ------------------------------ */
.viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-content { flex: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.cs-navbar {
    position: sticky;
    top: 0;
    z-index: 2999;
    background-color: #011034;
    width: 100%;
}

.cs-navbar-inner {
    max-width: 1272px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    min-height: 70px;
}

/* Brand */
.cs-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    width: 20%;
    flex-shrink: 0;
    gap: 10px;
    border: none !important;
    box-shadow: none !important;
}
.cs-brand-name {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Desktop nav links */
.cs-nav {
    display: flex;
    justify-content: space-evenly;
    width: 40%;
    align-items: center;
}
.cs-nav a {
    color: #fff;
    text-decoration: none !important;
    font-size: 1rem;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border: none !important;
    box-shadow: none !important;
    transition: opacity 0.2s;
}
.cs-nav a:hover { opacity: 0.8; }

/* CTA buttons */
.cs-nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 13px;
    flex: 1;
}

.cs-btn-primary {
    background-color: #ffdb41;
    color: #011443 !important;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 3px;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-block;
    transition: opacity 0.2s;
    box-shadow: none !important;
}
.cs-btn-primary:hover { opacity: 0.9; }

.cs-btn-outline {
    border: 2px solid #228fff;
    color: #228fff !important;
    background: #fff;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 3px;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-block;
    transition: opacity 0.2s;
    box-shadow: none !important;
}
.cs-btn-outline:hover { opacity: 0.9; }

/* Hamburger */
.cs-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}
.cs-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.cs-burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cs-burger-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.cs-burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.cs-mobile-menu {
    background-color: #011034;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.cs-mobile-menu.cs-mobile-open { max-height: 100vh; }

.cs-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 5px;
}
.cs-mobile-nav a {
    color: #fff;
    text-decoration: none !important;
    font-size: 1rem;
    letter-spacing: 0.04em;
    padding: 18px 0;
    border: none !important;
    border-bottom: 1px solid #4d5069 !important;
    box-shadow: none !important;
    display: block;
}
.cs-mobile-nav a:last-child { border-bottom: none !important; }

.cs-mobile-actions {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 28px;
    gap: 16px;
}
.cs-mobile-btn {
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

/* Responsive navbar */
@media (max-width: 768px) {
    .cs-nav,
    .cs-nav-actions { display: none; }
    .cs-burger { display: flex; }
    .cs-brand { width: auto; }
    .cs-navbar-inner { justify-content: space-between; }
}

/* ============================================================
   FLOATING SIDEBAR CTA — fixed right, desktop only
   Does NOT wrap or touch article layout/content at all.
   ============================================================ */
.cs-sidebar-float {
    position: fixed;
    top: 100px;
    right: 24px;
    width: 260px;
    z-index: 500;
}

/* Only show when viewport is wide enough that it won't overlap content */
@media (max-width: 1380px) {
    .cs-sidebar-float { display: none; }
}

/* CTA card */
.cs-cta-card {
    background: linear-gradient(135deg, #228fff 0%, #1a73e8 100%);
    padding: 24px 20px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(34, 143, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cs-cta-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #fff;
}
.cs-cta-card p {
    font-size: 13px;
    margin: 0 0 14px;
    line-height: 1.5;
    opacity: 0.95;
    color: #fff;
}
.cs-cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
    font-size: 12px;
    opacity: 0.9;
    color: #fff;
}
.cs-cta-btn {
    display: block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.cs-cta-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cs-footer {
    background-color: #011443;
    margin-top: auto;
}

/* Casper's own .site-footer — hide it */
.site-footer { display: none !important; }

.cs-footer-main {
    padding: 48px 0 40px;
}

.cs-footer-inner {
    max-width: 1272px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

/* Brand column */
.cs-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 28%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cs-footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 8px;
    border: none !important;
    box-shadow: none !important;
}
.cs-footer-logo-text {
    color: #fff;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cs-footer-rating { display: flex; flex-direction: column; gap: 4px; }
.cs-footer-rating-stars { display: flex; align-items: center; }
.cs-rating-value { color: #fff; font-size: 1.7em; padding-left: 6px; }
.cs-rating-total { color: #fff; font-size: 0.9em; }
.cs-rating-label { color: #fff; font-size: 0.875rem; margin: 4px 0 0; }

.cs-footer-ctas { display: flex; flex-direction: column; gap: 10px; }

.cs-footer-btn-outline {
    border: 1px solid rgba(255,255,255,0.5);
    color: #ffdb41 !important;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 3px;
    text-decoration: none !important;
    text-align: center;
    display: block;
    box-shadow: none !important;
    transition: opacity 0.2s;
}
.cs-footer-btn-outline:hover { opacity: 0.8; }

.cs-footer-btn-text {
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff !important;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 3px;
    text-decoration: none !important;
    text-align: center;
    display: block;
    box-shadow: none !important;
    transition: opacity 0.2s;
}
.cs-footer-btn-text:hover { opacity: 0.8; }

/* Link columns */
.cs-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    flex: 1;
    justify-content: space-between;
}

.cs-footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}

.cs-footer-col-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px;
    padding: 0;
}

.cs-footer-col a {
    color: #b3b4bf !important;
    font-size: 0.8rem;
    text-decoration: none !important;
    line-height: 1.4;
    padding: 4px 0;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.2s;
}
.cs-footer-col a:hover { color: #fff !important; }

/* Bottom bar */
.cs-footer-bottom { background-color: #010529; }

.cs-footer-bottom-inner {
    max-width: 1272px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-footer-copyright { color: #fff; font-size: 0.875rem; }

.cs-footer-social { display: flex; gap: 14px; align-items: center; }
.cs-footer-social a {
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.cs-footer-social a:hover { opacity: 1; }

/* Footer mobile */
@media (max-width: 768px) {
    .cs-footer-inner {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0 16px;
        text-align: center;
    }
    .cs-footer-brand-col {
        width: 100%;
        align-items: center;
    }
    .cs-footer-rating-stars { justify-content: center; }
    .cs-footer-links {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
    }
    .cs-footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 16px;
    }
}
