/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Updated for PayDayLoans Info Center */
:root {
    --primary-green: #2ecc71;
    --primary-blue: #003b70;
    --accent: #e0e4ea;
    --navy-blue: #001f3f;
    --light-blue: #f8f9fa;
    --white: #ffffff;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #eeeeee;
    --cta-green: #27ae60;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-blue);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #f8f9fa;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    vertical-align: middle;
    max-height: 48px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo a:hover img {
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.phone-number i {
    color: var(--primary-green);
}

.top-cta {
    margin-left: 2rem;
    padding: 0.6rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.top-cta, .cta-button, .interactive-button {
    background-color: var(--cta-green);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.top-cta:hover, .cta-button:hover, .interactive-button:hover {
    background-color: var(--accent);
    color: var(--primary-blue);
}

/* Advertisement Banner */
.ad-banner {
    background-color: var(--light-gray);
    padding: 0;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
}

.ad-label {
    font-weight: bold;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Blog Post Styles */
.blog-post {
    margin-top: 0;
    padding: 0;
}

article {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.post-header {
    padding: 4px 0 0 0;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
    background-color: var(--white);
}

.post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--primary-blue);
}

.post-header h1 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-header h1 a:hover {
    color: var(--primary-green);
}

h2 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

h2 a:hover {
    color: var(--primary-green);
}

h3 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

h3 a:hover {
    color: var(--primary-green);
}

.post-meta {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.post-meta span {
    margin: 0 0.7rem;
    display: inline-block;
}

.featured-image {
    margin-top: 0;
    line-height: 0;
}

.featured-image img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.post-content {
    padding: 0.8rem;
    background-color: #fff;
}

.intro {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

h2 {
    color: var(--primary-blue);
    margin: 0.8rem 0 0.4rem;
    font-size: 1.8rem;
    font-weight: 700;
}

p {
    margin-bottom: 0.6rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

ul {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.4rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.info-box {
    background: var(--light-blue);
    border-left: 4px solid var(--primary-green);
    padding: 0.8rem;
    margin: 0.8rem 0;
}

.info-box h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.conclusion {
    background: var(--light-blue);
    padding: 1.6rem;
    border-radius: 6px;
    margin-top: 2.4rem;
    border: 2px solid var(--primary-green);
}

.conclusion .cta-box {
    display: none;
    margin-top: 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.conclusion .cta-box p {
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-box {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1.2rem;
    border-radius: 6px;
    text-align: center;
    margin: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-box h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.cta-box p {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.cta-box p strong {
    color: var(--cta-green);
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.cta-button:hover {
    background-color: var(--accent);
    color: var(--primary-blue);
}

.post-footer {
    padding: 1.6rem;
    border-top: 1px solid #eee;
    background-color: #fff;
}

.share-buttons {
    text-align: center;
}

.share-buttons h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-blue);
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.social-links .facebook:hover {
    background-color: #1877f2;
}

.social-links .twitter:hover {
    background-color: #1da1f2;
}

.social-links .linkedin:hover {
    background-color: #0077b5;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    color: var(--white);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0;
    }
    
    .featured-image img {
        max-width: 100%;
        height: auto;
    }
    
    .post-content {
        padding: 0.6rem;
    }
    
    .intro {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }
    
    h2 {
        font-size: 1.3rem;
        margin: 0.6rem 0 0.3rem;
    }

    p {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    ul {
        margin-bottom: 0.4rem;
        padding-left: 1rem;
    }

    li {
        margin-bottom: 0.3rem;
        font-size: 0.95rem;
    }

    .info-box {
        padding: 0.6rem;
        margin: 0.6rem 0;
    }

    .conclusion {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .cta-box {
        padding: 1rem;
        margin: 0.6rem 0;
    }

    .cta-box h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .cta-box p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        margin-top: 0.4rem;
    }

    .interactive-section {
        padding: 0.6rem;
        margin: 0.6rem 0;
    }

    .interactive-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .interactive-section p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .interactive-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .sticky-footer {
        padding: 0.5rem 0;
    }

    .sticky-footer-content {
        gap: 0.3rem;
    }
    
    .sticky-footer p {
        font-size: 0.85rem;
    }
    
    .sticky-footer .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .post-meta span {
        display: block;
        margin: 0;
    }
    
    .sticky-footer .cta-button {
        background-color: var(--cta-green);
    }
    
    .sticky-footer .cta-button:hover {
        background-color: var(--accent);
        color: var(--primary-blue);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-content {
    animation: fadeIn 0.6s ease-out forwards;
}

.content-image a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.content-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.content-image a:hover img {
    opacity: 0.95;
}

.image-caption {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

main {
    flex: 1 0 auto;
}

.content-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.content-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sticky-footer.hidden {
    transform: translateY(100%);
}

.sticky-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.sticky-footer p {
    color: var(--white);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.sticky-footer .cta-button {
    margin: 0;
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    background-color: var(--cta-green);
}

.sticky-footer .cta-button:hover {
    background-color: var(--accent);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .sticky-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .sticky-footer p {
        font-size: 0.9rem;
    }
    
    .sticky-footer .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

.interactive-section {
    background: var(--white);
    border-radius: 6px;
    padding: 0.8rem;
    margin: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-blue);
}

.interactive-section h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    text-align: center;
}

.interactive-section p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    text-align: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 600px;
    margin: 0 auto;
}

.interactive-button {
    display: block;
    background-color: var(--cta-green);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.interactive-button:hover {
    background-color: var(--accent);
    color: var(--primary-blue);
    border-color: var(--cta-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.insurance-section {
    background: linear-gradient(to right, var(--white), #f8f9fa);
}

.accident-section {
    background: linear-gradient(to right, #f8f9fa, var(--white));
}

@media (max-width: 768px) {
    .interactive-section {
        padding: 0.6rem;
        margin: 0.6rem 0;
    }

    .interactive-section h2 {
        font-size: 1.2rem;
    }

    .interactive-section p {
        font-size: 0.9rem;
    }

    .interactive-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Header mobile fix: keep CTA right-aligned and full-width on mobile */
@media (max-width: 600px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 56px;
  }
  .logo img {
    max-height: 32px;
  }
  .header-right {
    width: auto;
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
  }
  .top-cta {
    width: 110px;
    padding: 0.4rem 0.5rem;
    font-size: 1rem;
    margin-left: 0;
    text-align: center;
    max-width: 110px;
    margin-right: 0;
  }
  .content-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
  }
}

/* Hero image sizing for desktop */
.hero-image img {
  max-width: 100%;
  width: 100%;
  height: 560px;
  object-fit:cover;
  display: block;
  margin: 0 auto 1.5rem auto;
}

/* Content images (2nd and 3rd images) sizing and centering */
.content-image img {
  max-width: 60%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.2rem auto;
}

@media (max-width: 900px) {
  .hero-image img {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-image img,
  .content-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
  }
} 