/* Shared header styles for all pages */
header {
    border-bottom: 2px solid #0B1215;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFC;
    z-index: 1200;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger-menu {
    display: none;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0B1215;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #FFFFFC;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 30px 30px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.header-nav {
    display: flex;
    align-items: baseline;
    gap: 30px;
    position: relative;
}

.nav-link {
    color: #0B1215;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s;
    padding-bottom: 4px;
    position: relative;
}

.nav-link:hover {
    opacity: 0.6;
}

/* Dropdown menu styles */
.nav-item-with-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.nav-item-with-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFC;
    border: 2px solid #0B1215;
    margin-top: 4px;
    padding-top: 4px;
    min-width: 150px;
    display: none;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Bridge the gap between nav item and dropdown to maintain hover state */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #0B1215;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

/* Mobile submenu styles */
.nav-link-submenu {
    display: block;
    padding: 10px 0 10px 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-bottom: none;
}

.nav-underline {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: #0B1215;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.tagline {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

h1 {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 a {
    color: #0B1215;
    text-decoration: none;
}

h1 a:hover {
    opacity: 0.8;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .tagline {
        display: none;
    }

    .header-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav {
        display: block;
    }
}

/* Newsletter Modal Styles */
.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 18, 21, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.newsletter-modal-content {
    background: #FFFFFC;
    border: 2px solid #0B1215;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #0B1215;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.newsletter-modal-close:hover {
    opacity: 0.6;
}

.newsletter-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0B1215;
}

.newsletter-modal-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.newsletter-form-group {
    margin-bottom: 20px;
}

.newsletter-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #0B1215;
}

.newsletter-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #0B1215;
    background: #FFFFFC;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.newsletter-form-group input:focus {
    outline: none;
    border-color: #0B1215;
    box-shadow: 0 0 0 3px rgba(11, 18, 21, 0.1);
}

.newsletter-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #0B1215;
    color: #FFFFFC;
    border: 2px solid #0B1215;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.newsletter-submit-btn:hover:not(:disabled) {
    background: #FFFFFC;
    color: #0B1215;
}

.newsletter-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 20px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.newsletter-message.error {
    display: block;
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

@media (max-width: 768px) {
    .newsletter-modal-content {
        padding: 30px 20px;
    }

    .newsletter-modal-title {
        font-size: 24px;
    }

    .newsletter-modal-description {
        font-size: 14px;
    }
}

/* Floating CTAs Container */
.floating-cta-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    align-items: flex-end;
}

.floating-cta-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0B1215;
    color: #FFFFFC;
    border: 2px solid #0B1215;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(11, 18, 21, 0.3);
}

.floating-cta-close:hover {
    background: #FFFFFC;
    color: #0B1215;
    transform: rotate(90deg);
}

.floating-cta-button {
    background: #0B1215;
    color: #FFFFFC;
    border: 2px solid #0B1215;
    border-radius: 50px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(11, 18, 21, 0.3);
}

.floating-cta-button:hover {
    background: #FFFFFC;
    color: #0B1215;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(11, 18, 21, 0.4);
}

.floating-cta-icon {
    font-size: 18px;
    line-height: 1;
}

.floating-cta-text {
    line-height: 1;
}

/* Podcast Dropdown */
.floating-cta-dropdown {
    display: none;
    flex-direction: column;
    background: #FFFFFC;
    border: 2px solid #0B1215;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 18, 21, 0.3);
    margin-bottom: -4px;
}

.floating-cta-dropdown.active {
    display: flex;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-dropdown-item {
    padding: 14px 20px;
    text-decoration: none;
    color: #0B1215;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.floating-dropdown-item:last-child {
    border-bottom: none;
}

.floating-dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-icon {
    font-size: 10px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .floating-cta-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .floating-cta-button {
        padding: 12px 16px;
        font-size: 11px;
        flex: 1;
        justify-content: center;
        max-width: 160px;
    }

    .floating-cta-icon {
        font-size: 14px;
    }

    .floating-cta-text {
        font-size: 11px;
    }

    .floating-cta-dropdown {
        position: absolute;
        bottom: 100%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 10px;
        width: 200px;
    }

    .floating-dropdown-item {
        padding: 12px 18px;
        font-size: 12px;
    }
}
