/* ===== Base Styles & Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ===== UNIFORM NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-item {
    color: white;
    text-align: center;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    margin: 0 4px;
    min-width: 120px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Logo in navbar - same height as other items */
.navbar-item:first-child {
    padding: 0;
    min-width: 150px;
    margin-right: 20px;
}

.navbar-item:first-child .logo {
    width: 150px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.navbar-item:hover:not(:first-child) {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-item.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* Ensure the test intro doesn't get cut off */
.test-intro {
    padding-top: 20px;
}

/* Logo Styles */
.logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.05);
}

/* ===== Main Content Area ===== */
main {
    flex: 1;
    padding: 30px 0;
    width: 100%;
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* ===== Page Heading - WITH underline ===== */
.container > h1:first-child,
.page-heading {
    text-align: center;
    margin: 0 auto 40px auto;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    width: 100%;
    position: relative;
    padding-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Underline for page heading */
.container > h1:first-child::after,
.page-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background-color: #3498db;
    border-radius: 0;
}

/* ===== Welcome Section ===== */
.welcome-section {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.welcome-section h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Flip Card Container ===== */
.flip-container-wrapper {
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 950px;
}

.flip-container {
    perspective: 1000px;
    width: 600px;
    height: auto; /* AUTO HEIGHT - CRITICAL FIX */
    min-height: 950px; /* Minimum height */
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.flip-container:hover {
    transform: scale(1.03);
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-container.flip .flipper {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    box-sizing: border-box;
    overflow: hidden; /* Hide overflow on front only */
}

.front {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    z-index: 2;
    transform: rotateY(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-content {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
}

.front-content h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 2.2rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.front-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== BACK CARD - FULL CONTENT, NO SCROLLING ===== */
.back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    overflow: visible !important; /* CRITICAL: Allow content to overflow */
    text-align: left;
    display: flex;
    flex-direction: column;
}

.back-content {
    text-align: left;
    padding: 0;
    width: 100%;
    height: auto; /* Auto height to fit content */
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
}

.back-content h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    width: 100%;
    background: white;
    position: relative;
    top: 0;
    margin-top: 0;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.philosophy-content {
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
    padding: 0;
    color: #444;
    width: 100%;
    height: auto; /* Auto height */
    min-height: 950;
    overflow: visible;
    display: block; /* Change from flex to block */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.philosophy-content h4 {
    margin: 20px 0 12px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.philosophy-content ul,
.philosophy-content ol {
    margin: 10px 0 10px 25px;
    padding-left: 5px;
}

.philosophy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.philosophy-content p {
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.philosophy-content p:last-child {
    margin-bottom: 0;
}

.instructions {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 16px;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== TEST/QUIZ BUTTON ===== */
.start-test-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    letter-spacing: 0.5px;
}

.start-test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #34495e 100%);
}

.start-test-btn:active {
    transform: translateY(-1px);
}

/* ===== ARTICLE NAVIGATION - ENHANCED LAYOUT ===== */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 30px;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* Navigation buttons - enhanced styling */
.article-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    color: white;
    min-width: 180px;
    height: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.article-nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.article-nav-btn:hover::after {
    left: 100%;
}

.article-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Previous button - left side */
.article-nav-btn.prev-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    order: 0;
}

/* Next button - right side */
.article-nav-btn.next-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    order: 2;
}

/* Article numbers container - FLEXIBLE WIDTH */
.article-numbers-container {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin: 0 15px;
    padding: 15px 20px;
    min-height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    min-width: 0; /* Allow flex item to shrink below content size */
    width: 100%;
    max-width: none;
}

/* Ensure scrollbar styling */
.article-numbers-container::-webkit-scrollbar {
    height: 6px;
}

.article-numbers-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.article-numbers-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.article-numbers-container::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Number buttons - adjust for flexible layout */
.article-number-btn {
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #2c3e50;
    background: white;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
}

.article-number-btn:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.article-number-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.article-number-btn.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 700;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ===== DESKTOP LAYOUT - FLEXIBLE SPACING ===== */
@media (min-width: 768px) {
    .article-navigation {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 15px;
    }
    
    .article-numbers-container {
        flex: 1 1 auto;
        margin: 0 10px;
        justify-content: flex-start;
        max-width: calc(100vw - 450px); /* Flexible width based on viewport */
        width: auto;
        min-width: 200px;
    }
    
    .article-nav-btn {
        flex-shrink: 0;
    }
    
    /* When there are many numbers, allow scrolling */
    .article-numbers-container.scrollable {
        justify-content: flex-start;
    }
}

/* ===== LARGE DESKTOP - MORE SPACIOUS ===== */
@media (min-width: 1200px) {
    .article-navigation {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .article-numbers-container {
        max-width: calc(100vw - 500px);
        padding: 15px 25px;
        gap: 10px;
    }
    
    .article-number-btn {
        min-width: 44px;
        height: 44px;
        font-size: 15px;
    }
}

/* ===== MOBILE LAYOUT ===== */
@media (max-width: 767px) {
    .article-navigation {
        flex-direction: column;
        gap: 15px;
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .article-numbers-container {
        order: 1;
        width: 100%;
        margin: 10px 0;
        justify-content: flex-start;
        padding: 12px 15px;
        min-height: 55px;
        max-width: 100vw;
    }
    
    .article-nav-btn {
        order: 2;
        width: 100%;
        min-width: 100%;
        height: 56px;
        padding: 16px 24px;
    }
    
    .article-number-btn {
        min-width: 40px;
        height: 40px;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .article-numbers-container {
        padding: 10px 12px;
        min-height: 50px;
        gap: 6px;
    }
    
    .article-number-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .article-nav-btn {
        padding: 14px 20px;
        font-size: 15px;
        height: 52px;
    }
}

/* ===== EXTRA WIDE SCREENS ===== */
@media (min-width: 1600px) {
    .article-navigation {
        max-width: 1400px;
    }
    
    .article-numbers-container {
        max-width: calc(100vw - 600px);
        padding: 15px 30px;
        gap: 12px;
    }
    
    .article-number-btn {
        min-width: 46px;
        height: 46px;
        font-size: 16px;
    }
}

/* Make numbers spread evenly when there's space */
.article-numbers-container.spread-evenly {
    justify-content: space-around;
}

/* Button text adjustment */
.article-nav-btn .btn-text {
    flex-grow: 1;
    text-align: center;
    padding: 0 8px;
}

/* Add arrows to buttons */
.article-nav-btn.prev-btn::before {
    content: "←";
    font-size: 18px;
    font-weight: bold;
}

.article-nav-btn.next-btn::after {
    content: "→";
    font-size: 18px;
    font-weight: bold;
}

/* Button disabled state */
.article-nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.article-nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-nav-btn:disabled::after {
    display: none;
}

/* ===== Back to Top Button - FIXED ===== */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    width: 60px;
    height: 60px;
    display: none !important; /* Force display with JavaScript */
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top:hover {
    background: linear-gradient(135deg, #2980b9 0%, #34495e 100%);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

#back-to-top:active {
    transform: translateY(-1px);
}

#back-to-top.show {
    display: flex !important;
}

/* ===== Back to Bottom Button ===== */
#back-to-bottom {
    position: fixed;
    bottom: 30px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-bottom.show {
    opacity: 0.9;
    transform: translateY(0);
    display: flex;
}

#back-to-bottom:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#back-to-bottom:active {
    transform: translateY(-1px);
}

/* Adjust positioning when both buttons are visible */
#back-to-top {
    bottom: 100px;
}

#back-to-bottom {
    bottom: 30px;
}

/* ===== Contact Page ===== */
.contact-section {
    text-align: center;
    padding: 2rem 1rem;
}

.linkedin-container {
    margin: 2rem 0;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0077b5;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linkedin-link:hover {
    background-color: #005582;
    text-decoration: none;
    transform: translateY(-2px);
}

.linkedin-icon {
    width: 24px;
    height: 24px;
}

.contact-note {
    margin-top: 1.5rem;
    color: #666;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Forms ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

form label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

form input,
form textarea,
form select {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

input[type="submit"] {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: #ecf0f1;
    width: 100%;
    margin-top: 60px;
    flex-shrink: 0;
    font-size: 15px;
}

footer p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== ENHANCED AD STYLING WITH PERFECT TEXT FITTING ===== */

/* Business Ad Section */
.business-ad-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ad-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-label i {
    font-size: 14px;
    min-width: 16px;
}

/* Ad Content Grid */
.ad-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

/* Ad Card Base Styling */
.ad-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #4299e1;
}

/* Available Ad Space Styling */
.ad-card-available {
    border-left: 4px solid #ff6b35;
    background: linear-gradient(to right, rgba(255, 107, 53, 0.05), white);
}

/* Active Partner Styling */
.ad-card-active {
    border-left: 4px solid #4299e1;
    background: linear-gradient(to right, rgba(66, 153, 225, 0.05), white);
}

/* Icon Circle */
.ad-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-card:hover .ad-icon-circle {
    transform: scale(1.1);
}

.ad-icon-circle i {
    color: white;
    font-size: 24px;
}

/* Ad Details */
.ad-details {
    flex: 1;
    min-width: 0; /* Critical for text truncation */
}

.ad-details h4 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-tagline {
    font-size: 15px;
    color: #4a5568;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-description {
    font-size: 14px;
    color: #718096;
    margin: 0 0 16px 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Buttons */
.ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.ad-card-available .ad-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #ff5a2f 100%);
}

.ad-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(66, 153, 225, 0.3);
    text-decoration: none;
    color: white;
}

.ad-card-available .ad-cta:hover {
    box-shadow: 0 8px 15px rgba(255, 107, 53, 0.3);
}

/* Badges */
.ad-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ad-card-available .ad-badge {
    background: linear-gradient(135deg, #ff6b35, #ff5a2f);
    color: white;
}

.ad-card-active .ad-badge {
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    color: white;
}

/* Ad Disclosure */
.ad-disclosure {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    color: #718096;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.ad-disclosure i {
    margin-right: 6px;
    color: #a0aec0;
}

.ad-contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.ad-contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ad-contact-link i {
    margin-right: 6px;
    color: inherit;
}

/* ===== ARTICLES AD SECTION COMPATIBILITY ===== */
.articles-ad-section {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.articles-ad-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.top-ad {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.middle-ad {
    margin: 2.5rem 0;
}

.bottom-ad {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

/* ===== CONTACT PAGE AD SECTION ===== */
.contact-ad-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* ===== CRITICAL MOBILE FIXES ===== */
@media (max-width: 767px) {
    /* General mobile fixes */
    .navbar {
        flex-direction: column;
        padding: 10px 0;
    }

    .navbar-item {
        font-size: 14px;
        padding: 10px 16px;
        margin: 2px 0;
        width: 90%;
        max-width: 200px;
        min-width: 160px;
        height: 44px;
    }
    
    /* Logo in mobile */
    .navbar-item:first-child {
        min-width: 140px;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .navbar-item:first-child .logo {
        width: 140px;
        height: 44px;
    }
    
    .logo {
        width: 120px;
        margin-bottom: 5px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .container > h1:first-child,
    .page-heading {
        font-size: 2rem;
    }
    
    .container > h1:first-child::after,
    .page-heading::after {
        width: 200px;
        height: 2px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    /* ===== FLIP CARD MOBILE FIX - SHOW ALL CONTENT ===== */
    .flip-container-wrapper {
        margin: 20px auto;
        min-height: auto; /* Remove fixed height */
        align-items: flex-start; /* Align to top */
    }

    .flip-container {
        width: 100%;
        max-width: 95%;
        min-height: 400px; /* Smaller minimum */
        height: auto; /* Auto adjust to content */
    }

    .flipper {
        min-height: inherit;
        height: auto;
    }

    /* Front and back cards - ALLOW OVERFLOW */
    .front, .back {
        padding: 20px;
        border-radius: 15px;
        overflow: visible !important; /* Allow content to show */
        height: auto; /* Auto height */
        min-height: 400px; /* Minimum height */
    }

    /* Back card - SHOW ALL CONTENT, allow to be taller than container */
    .back {
        overflow: visible !important;
        display: block; /* Change to block */
        position: relative;
        height: auto;
    }

    /* Back content */
    .back-content {
        height: auto;
        display: block;
        overflow: visible;
        position: relative;
    }

    /* Philosophy content */
    .philosophy-content {
        font-size: 14px; /* Smaller font for mobile */
        line-height: 1.5;
        padding: 0;
        height: auto;
        overflow: visible;
        display: block;
    }

    /* Header */
    .back-content h3 {
        font-size: 1.3rem;
        padding-bottom: 10px;
        margin-bottom: 10px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    /* Content styling for better fit */
    .philosophy-content h4 {
        margin: 12px 0 8px 0;
        font-size: 1rem;
    }

    .philosophy-content ul,
    .philosophy-content ol {
        margin: 6px 0 6px 18px;
        padding-left: 4px;
    }

    .philosophy-content li {
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.4;
    }

    .philosophy-content p {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .front-content h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .front-content p {
        font-size: 14px;
    }
    
    .instructions {
        margin-top: 20px;
        padding: 15px;
        font-size: 14px;
    }
    
    /* TEST BUTTON MOBILE */
    .start-test-btn {
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        margin: 1rem auto;
    }
    
    /* Article display adjustments */
    .article-card {
        padding: 20px;
        margin: 15px auto;
        min-height: auto;
    }
    
    #article-display {
        padding: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 10px;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .article-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
        min-width: 140px;
    }
    
    /* ARTICLE NUMBERS MOBILE - SCROLLABLE */
    .article-numbers-container {
        padding: 12px 8px;
        min-height: 50px;
        margin: 15px auto;
        max-width: 95%;
    }
    
    .article-number-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .article-tags {
        gap: 4px;
    }
    
    .article-tag {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .article-navigation-info {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Back to top/bottom buttons mobile */
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    #back-to-bottom {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Adjust positioning when both buttons are visible on mobile */
    #back-to-top {
        bottom: 80px;
    }
    
    #back-to-bottom {
        bottom: 20px;
    }
    
    .welcome-section {
        padding: 1.5rem 1rem;
    }
    
    .welcome-section h1 {
        font-size: 1.6rem;
    }
    
    .linkedin-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .article-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .article-content {
        font-size: 15px;
        text-align: left;
    }
    
    /* AD SECTION MOBILE OPTIMIZATIONS */
    .business-ad-section {
        padding: 16px;
        margin: 20px 0;
    }
    
    .ad-label {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 16px;
    }
    
    .ad-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    
    .ad-icon-circle {
        margin: 0 auto 12px;
    }
    
    .ad-details {
        text-align: center;
        width: 100%;
    }
    
    .ad-details h4 {
        font-size: 16px;
        -webkit-line-clamp: 2;
        max-height: 2.6em;
    }
    
    .ad-tagline {
        font-size: 14px;
        -webkit-line-clamp: 2;
        max-height: 2.8em;
    }
    
    .ad-description {
        font-size: 13px;
        -webkit-line-clamp: 3;
        max-height: 4.5em;
    }
    
    .ad-cta {
        max-width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .ad-badge {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto 12px;
        width: fit-content;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Navbar for very small screens */
    .navbar-item {
        min-width: 140px;
        height: 42px;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .navbar-item:first-child {
        min-width: 120px;
    }
    
    .navbar-item:first-child .logo {
        width: 120px;
        height: 42px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .container > h1:first-child,
    .page-heading {
        font-size: 1.6rem;
    }
    
    .container > h1:first-child::after,
    .page-heading::after {
        width: 150px;
    }
    
    .flip-container {
        min-height: 350px;
    }
    
    .front, .back {
        padding: 15px;
        min-height: 350px;
    }
    
    .front-content h2 {
        font-size: 1.3rem;
    }
    
    .back-content h3 {
        font-size: 1.2rem;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    
    .philosophy-content {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .philosophy-content h4 {
        font-size: 0.95rem;
        margin: 10px 0 6px 0;
    }
    
    .philosophy-content li {
        font-size: 12px;
    }
    
    .navbar a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        font-size: 14px;
    }

    .article-content {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .flip-container-wrapper {
        margin: 15px auto;
    }
    
    .article-card {
        padding: 15px;
        margin: 10px auto;
        border-radius: 10px;
    }
    
    .article-nav-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 120px;
    }
    
    /* ARTICLE NUMBERS - SMALL MOBILE */
    .article-numbers-container {
        padding: 10px 6px;
        min-height: 45px;
    }
    
    .article-number-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .article-tags {
        gap: 3px;
    }
    
    .article-tag {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .article-navigation-info {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .start-test-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    form input,
    form textarea,
    form select {
        padding: 0.75rem;
    }
    
    input[type="submit"] {
        padding: 0.75rem 1.5rem;
    }
    
    /* Back to top/bottom buttons small mobile */
    #back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    #back-to-bottom {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* Adjust positioning when both buttons are visible on small mobile */
    #back-to-top {
        bottom: 70px;
    }
    
    #back-to-bottom {
        bottom: 15px;
    }
    
    /* AD SECTION SMALL MOBILE OPTIMIZATIONS */
    .business-ad-section {
        padding: 12px;
        margin: 16px 0;
    }
    
    .ad-label {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .ad-card {
        padding: 16px;
    }
    
    .ad-icon-circle {
        width: 48px;
        height: 48px;
    }
    
    .ad-icon-circle i {
        font-size: 20px;
    }
    
    .ad-details h4 {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    
    .ad-tagline {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .ad-description {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
    
    .ad-cta {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .ad-disclosure {
        font-size: 11px;
    }
}

/* Desktop - maintain styling */
@media (min-width: 768px) {
    .flip-container .back {
        overflow: hidden !important;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .start-test-btn,
    #back-to-top,
    #back-to-bottom,
    form,
    .flip-container,
    .business-ad-section,
    .articles-ad-section,
    .contact-ad-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ddd;
        margin: 0;
        padding: 1rem;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}

/* ===== MODERN CONTACT PAGE STYLES ===== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.contact-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.contact-hero h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* LinkedIn Card */
.linkedin-card {
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
    color: white;
    text-align: center;
}

.linkedin-card h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.linkedin-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.linkedin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    text-decoration: none;
}

.linkedin-icon {
    width: 48px;
    height: 48px;
    background: white;
    padding: 8px;
    border-radius: 50%;
}

.linkedin-text {
    font-size: 1.1rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.linkedin-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Contact Methods Card */
.contact-methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #3498db;
}

.contact-method-content h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-method-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-method-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-method-link:hover {
    text-decoration: underline;
}

/* Response Times Card */
.response-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 1.5rem;
}

.response-info h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Response Times Grid - 2x2 Layout */
.response-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(2, auto);   /* 2 rows */
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Response Item Styling */
.response-item {
    text-align: center;
    padding: 1.25rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 110px;
}

.response-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

/* Different color accents for each response item */
.response-item:nth-child(1) {
    border-top: 3px solid #3498db;
}

.response-item:nth-child(2) {
    border-top: 3px solid #2ecc71;
}

.response-item:nth-child(3) {
    border-top: 3px solid #e74c3c;
}

.response-item:nth-child(4) {
    border-top: 3px solid #f39c12;
}

/* Response Time Styling */
.response-time {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.response-item:nth-child(1) .response-time {
    color: #3498db;
}

.response-item:nth-child(2) .response-time {
    color: #2ecc71;
}

.response-item:nth-child(3) .response-time {
    color: #e74c3c;
}

.response-item:nth-child(4) .response-time {
    color: #f39c12;
}

/* Response Label Styling */
.response-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 5px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .response-times {
        gap: 0.75rem;
    }
    
    .response-item {
        padding: 1rem 0.75rem;
        min-height: 100px;
    }
    
    .response-time {
        font-size: 1.6rem;
    }
    
    .response-label {
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .response-times {
        grid-template-columns: 1fr; /* Stack on very small screens */
        grid-template-rows: repeat(4, auto);
        gap: 0.5rem;
    }
    
    .response-item {
        padding: 0.875rem 0.75rem;
        min-height: 90px;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .response-item-content {
        text-align: left;
        flex: 1;
    }
    
    .response-time {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
        margin-right: 1rem;
    }
    
    .response-label {
        font-size: 0.8rem;
        text-align: left;
    }
    
    /* Add icons for small mobile */
    .response-item::before {
        content: '';
        width: 40px;
        height: 40px;
        background: currentColor;
        opacity: 0.1;
        border-radius: 8px;
        margin-right: 12px;
        flex-shrink: 0;
    }
}

/* Desktop - 4 items in a row for larger screens */
@media (min-width: 1024px) {
    .response-times {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: 1.25rem;
    }
    
    .response-item {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }
    
    .response-time {
        font-size: 2rem;
    }
    
    .response-label {
        font-size: 0.95rem;
    }
}

/* Optional: Add icons to response items */
.response-item {
    position: relative;
    overflow: hidden;
}

.response-item::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: currentColor;
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.response-item .response-time,
.response-item .response-label {
    position: relative;
    z-index: 1;
}

/* Tips Card */
.tips-list {
    margin: 0;
    padding-left: 1.5rem;
}

.tips-list li {
    margin-bottom: 0.75rem;
    color: #555;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.faq-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item summary {
    font-weight: 600;
    color: #2c3e50;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 1rem;
    margin: 0;
    color: #555;
    background: white;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.action-button-primary {
    background: #3498db;
    color: white;
}

.action-button-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    text-decoration: none;
}

.action-button-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #dee2e6;
}

.action-button-secondary:hover {
    background: #e9ecef;
    text-decoration: none;
}

/* Article display styles */
.article-display-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    min-height: 400px;
}

.article-card {
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
    border-bottom: 3px solid #333;
    padding-bottom: 10px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.article-content {
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.article-content br {
    margin-bottom: 10px;
    display: block;
    content: "";
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.article-tag {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    color: #666;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-navigation-info {
    text-align: center;
    color: #666;
    font-weight: bold;
    font-size: 0.9em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== MUG LIST STYLES ===== */
.mug-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.mug-list li {
    position: relative;
    padding: 12px 0 12px 50px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mug-list li:before {
    content: '☕️';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mug-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mug-list li:hover {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding-left: 50px;
    margin-left: -10px;
    padding-right: 10px;
}

.mug-list li:hover:before {
    background: #fff9e6;
    transform: translateY(-50%) scale(1.1);
    transition: all 0.3s ease;
}

/* Alternative styling with colored mugs */
.mug-list.colored li:nth-child(1):before { background: #ffe5cc; }
.mug-list.colored li:nth-child(2):before { background: #e6f7ff; }
.mug-list.colored li:nth-child(3):before { background: #f0ffe6; }
.mug-list.colored li:nth-child(4):before { background: #fff0f5; }
.mug-list.colored li:nth-child(5):before { background: #f5f0ff; }

/* Mobile responsive */
@media (max-width: 767px) {
    .mug-list li {
        padding: 10px 0 10px 40px;
        font-size: 16px;
    }
    
    .mug-list li:before {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .mug-list li:hover {
        padding-left: 40px;
        margin-left: -5px;
    }
}

/* ===== SHARE BUTTONS STYLES ===== */
.share-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.share-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.share-label i {
    color: #4299e1;
    font-size: 18px;
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    text-decoration: none;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 150px;
    min-height: 44px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn i {
    font-size: 16px;
}

.share-btn-text {
    font-size: 13px;
    font-weight: 600;
}

/* Platform-specific colors */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.linkedin-btn {
    background: linear-gradient(135deg, #0077B5, #005582);
}

.instagram-btn {
    background: linear-gradient(135deg, #E4405F, #C13584);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #0A5DC6);
}

.tumblr-btn {
    background: linear-gradient(135deg, #35465D, #2C3E50);
}

.reddit-btn {
    background: linear-gradient(135deg, #FF5700, #E04400);
}

.x-btn {
    background: linear-gradient(135deg, #000000, #333333);
}

.pinterest-btn {
    background: linear-gradient(135deg, #E60023, #C8001F);
}

.email-btn {
    background: linear-gradient(135deg, #EA4335, #D14836);
}

.copy-btn {
    background: linear-gradient(135deg, #6B7280, #4B5563);
}

/* Hover effects for each platform */
.whatsapp-btn:hover { background: linear-gradient(135deg, #128C7E, #0D6E63); }
.linkedin-btn:hover { background: linear-gradient(135deg, #005582, #003D5C); }
.instagram-btn:hover { background: linear-gradient(135deg, #C13584, #A12669); }
.facebook-btn:hover { background: linear-gradient(135deg, #0A5DC6, #0849A1); }
.tumblr-btn:hover { background: linear-gradient(135deg, #2C3E50, #1A2530); }
.reddit-btn:hover { background: linear-gradient(135deg, #E04400, #B83700); }
.x-btn:hover { background: linear-gradient(135deg, #333333, #1A1A1A); }
.pinterest-btn:hover { background: linear-gradient(135deg, #C8001F, #A3001A); }
.email-btn:hover { background: linear-gradient(135deg, #D14836, #B83C2D); }
.copy-btn:hover { background: linear-gradient(135deg, #4B5563, #374151); }

/* Success state for copy button */
.copy-btn.success {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Share status message */
.share-status {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.share-status.success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    display: block;
}

.share-status.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    display: block;
}

.share-status.info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
    display: block;
}

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

/* Mobile responsiveness for share buttons */
@media (max-width: 768px) {
    .share-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .share-buttons-container {
        gap: 8px;
    }
    
    .share-btn {
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .share-btn i {
        font-size: 14px;
    }
    
    .share-btn-text {
        font-size: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .share-section {
        padding: 16px;
        margin: 15px 0;
    }
    
    .share-label {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .share-buttons-container {
        gap: 6px;
    }
    
    .share-btn {
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 8px 10px;
        min-height: 40px;
    }
    
    .share-btn-text {
        display: none; /* Hide text on very small screens */
    }
    
    .share-btn i {
        font-size: 16px;
        margin: 0;
    }
}

/* Desktop optimization */
@media (min-width: 1024px) {
    .share-buttons-container {
        gap: 12px;
    }
    
    .share-btn {
        min-width: 140px;
        max-width: 140px;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1023px) {
    .share-btn {
        min-width: calc(33.333% - 12px);
        max-width: calc(33.333% - 12px);
    }
}

/* Accessibility improvements */
.share-btn:focus-visible {
    outline: 3px solid #4299e1;
    outline-offset: 2px;
}

/* Loading state for share buttons */
.share-btn.loading {
    position: relative;
    color: transparent;
}

.share-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .share-section {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .share-label {
        color: #e2e8f0;
    }
    
    .share-label i {
        color: #63b3ed;
    }
}

.share-status {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s ease;
}

.share-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.share-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.share-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== UI/UX ENHANCEMENTS ===== */
/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Better focus states */
:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Improved contrast ratios */
h1, h2, h3, h4, h5, h6 {
    color: #1a202c;
}

/* Better line heights for readability */
p, li, .article-content {
    line-height: 1.75;
}

/* Improved button tap targets on mobile */
@media (max-width: 767px) {
    button, 
    .btn, 
    .article-nav-btn,
    .ad-cta,
    .share-btn,
    .action-button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Error states */
.error {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

/* Success states */
.success {
    border-color: #38a169 !important;
    background-color: #f0fff4 !important;
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Text truncation utilities */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive typography */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 15px;
    }
}

/* Print optimizations */
@media print {
    * {
        background-color: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .no-print {
        display: none !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
    
    .business-ad-section,
    .articles-ad-section,
    .contact-ad-section,
    .ad-card,
    .contact-card {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .ad-details h4,
    .contact-card h3,
    .faq-item summary {
        color: #e2e8f0;
    }
    
    .ad-tagline {
        color: #a0aec0;
    }
    
    .ad-description,
    .faq-item p {
        color: #cbd5e0;
    }
}

/* ===== BACK TO TOP FIX ===== */
#back-to-top {
    display: none !important; /* Important to override inline styles */
}

#back-to-top.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.9; transform: translateY(0); }
}

/* ===== DESKTOP NAVBAR LAYOUT ===== */
@media (min-width: 769px) {
    .navbar {
        flex-direction: row;
        justify-content: flex-start; /* Changed from center */
        align-items: center;
        padding: 14px 30px;
        position: relative;
    }
    
    /* Logo positioned at left */
    .navbar-logo {
        margin-right: 40px;
        margin-bottom: 0;
        align-self: center;
    }
    
    /* Navigation menu positioned to the right of logo */
    .navbar-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
        right: auto;
        transform: none;
        overflow: visible;
        align-items: center;
    }
    
    /* Navigation items in a row */
    .navbar-menu .navbar-item {
        display: flex;
        margin: 0 8px;
        padding: 12px 20px;
        text-align: center;
        width: auto;
        min-width: 120px;
        justify-content: center;
        border-radius: 6px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    /* Mobile toggle hidden on desktop */
    .navbar-toggle {
        display: none;
    }
    
    /* Icon styling */
    .navbar-item i {
        margin-right: 8px;
        font-size: 18px;
    }
    
    /* Hover effects for desktop */
    .navbar-item:hover:not(.navbar-logo) {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }
}

/* ===== LARGER DESKTOP SCREENS ===== */
@media (min-width: 1024px) {
    .navbar {
        padding: 14px 60px;
    }
    
    .navbar-menu .navbar-item {
        margin: 0 12px;
        padding: 12px 24px;
        min-width: 140px;
    }
    
    .navbar-logo {
        margin-right: 60px;
    }
}

/* ===== VERY LARGE SCREENS ===== */
@media (min-width: 1400px) {
    .navbar {
        padding: 14px 100px;
    }
    
    .navbar-menu .navbar-item {
        margin: 0 15px;
        min-width: 150px;
    }
    
    .navbar-logo {
        margin-right: 80px;
    }
}

/* ===== MOBILE STYLES (keep existing but ensure they're properly scoped) ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
        min-height: 70px;
    }
    
    .navbar-logo {
        margin: 0;
        z-index: 1002;
    }
    
    .navbar-menu {
        /* Your existing mobile styles remain */
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-menu .navbar-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 15px;
        margin: 10px 0;
        text-align: left;
        gap: 10px;
    }
    
    .navbar-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
}

/* Additional styles for dropdown trigger as link */
.dropdown-trigger {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-trigger.active {
    background: rgba(255,255,255,0.2);
    font-weight: 500;
}

/* Mobile styles for dropdown trigger */
@media (max-width: 768px) {
    .dropdown-trigger {
        padding: 15px;
        justify-content: space-between;
        background: rgba(255,255,255,0.05);
        margin: 5px 0;
        width: 100%;
    }
}
