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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap');

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Logo Styles */
.site-logo {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    margin: 0.5rem 0;
    line-height: 1;
    position: relative;
    display: inline-block;
    transform: scale(0.8);
    transform-origin: center top;
}

.logo-proud {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 2px 2px 0 #003366;
    margin-bottom: 0.2rem;
}

.logo-veteran {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffd700 0%, #ffeb99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
}

.logo-savings {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #cc0000;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    letter-spacing: 0.02em;
}

.logo-stars {
    position: absolute;
    top: 50%;
    left: -1.8rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.logo-star {
    width: 0.8rem;
    height: 0.8rem;
    background: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Header Styles */
header {
    background: #003366;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid #cc0000;
}

.header-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .site-logo {
        margin: 0.3rem 0;
        transform: scale(0.7);
    }

    .logo-proud {
        font-size: 1.4rem;
    }

    .logo-veteran {
        font-size: 1.8rem;
    }

    .logo-savings {
        font-size: 1.6rem;
    }

    .logo-stars {
        left: -1.2rem;
    }

    .logo-star {
        width: 0.6rem;
        height: 0.6rem;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    /* All images 16:9 aspect ratio on mobile */
    .featured-image img,
    .list-item img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
    }
}

.header-content h1 span.highlight {
    color: #cc0000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header-content h1 span.emphasis {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Add these new styles after the header styles section */
.meta-info {
    display: none;
}

/* Remove rounded corners */
.featured-image img,
.notice-box,
.list-item,
.modal-content,
.quiz-btn,
.read-more {
    border-radius: 0;
}

.featured-image {
    max-width: 700px;
    margin: 1.5rem auto;
    padding: 0 0.5rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 1rem auto;
    line-height: 1.5;
    padding: 0 0.5rem;
}

.notice-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    margin: 1.5rem auto 0;
    max-width: 700px;
}

.notice-box p {
    color: #e2e8f0;
    margin: 0;
    font-size: 0.9rem;
}

/* Main Content Styles */
.listicle-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.list-item {
    background: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
}

.list-item img {
    width: 100%;
    height: 336px;
    object-fit: cover;
}

.text-content {
    padding: 1rem;
    text-align: center;
}

h2 {
    color: #003366;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    text-align: left;
}

h2 .amount {
    color: #cc0000;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(204, 0, 0, 0.2);
}

h2 .keyword {
    color: #003366;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 51, 102, 0.25);
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 0 0.2rem;
}

p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: left;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(204, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0);
    }
}

.read-more {
    display: inline-block;
    background: #cc0000;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.3s;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulsate 2s infinite;
}

.read-more:focus {
    outline: 3px solid #1a237e;
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

.expanded-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Footer Styles */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    border-top: 4px solid #cc0000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0.6;
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-section p {
    margin: 0.5rem 0;
    color: #e2e8f0;
    font-size: 0.8rem;
}

.footer-links {
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
    opacity: 1;
}

.footer-disclaimer {
    margin-top: 1rem;
}

.footer-disclaimer p {
    color: #a0aec0;
    font-size: 0.7rem;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer {
    color: #a0aec0 !important;
    font-style: italic;
}

/* Accessibility Improvements */
.read-more:focus {
    outline: 3px solid #1a237e;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .read-more {
        display: none;
    }

    .hidden {
        display: block;
    }

    .list-item {
        break-inside: avoid;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        max-width: 945px;
    }

    .featured-image {
        max-width: 945px;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .subtitle {
        font-size: 1.2rem;
        margin: 1.5rem auto;
        max-width: 945px;
    }

    .notice-box {
        padding: 1.5rem;
        margin: 2rem auto 0;
        max-width: 945px;
    }

    .notice-box p {
        font-size: 1.1rem;
    }

    .list-item img {
        height: 588px;
    }

    .text-content {
        padding: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    
    h2 .alert {
        font-size: 0.85em;
    }

    p {
        font-size: 1.1rem;
    }

    .read-more {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    footer {
        padding: 2rem;
        margin-top: 3rem;
    }

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

    .footer-links a {
        font-size: 0.9rem;
        margin: 0 1rem;
    }

    .footer-disclaimer p {
        font-size: 0.8rem;
    }

    .listicle-container {
        max-width: 945px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.quiz-step {
    text-align: center;
    padding: 20px 0;
}

.quiz-step h3 {
    margin-bottom: 20px;
    color: #003366;
    font-size: 1.2rem;
}

.quiz-btn {
    background: #1a237e;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(26, 35, 126, 0.2);
}

.quiz-btn:hover {
    background-color: #283593;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 35, 126, 0.3);
}

.hidden {
    display: none !important;
}

.progress-container {
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    margin: 20px 0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #1a237e;
    transition: width 3s ease-in-out;
}

.provider-logo {
    max-width: 200px;
    margin: 20px auto;
    display: block;
}

.countdown {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

.urgency {
    color: #cc0000;
    font-weight: bold;
    margin: 20px 0;
}

.success-content {
    opacity: 0;
    transition: opacity 0.5s;
}

.success-content.visible {
    opacity: 1;
}

.content-wrapper.filler-content {
    padding: 1.5rem;
    background: #f8f9fa;
}

.content-wrapper.filler-content .text-content {
    padding: 0;
}

.content-wrapper.filler-content h2 {
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: left;
}

.content-wrapper.filler-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .content-wrapper.filler-content {
        padding: 2rem;
    }
    
    .content-wrapper.filler-content h2 {
        font-size: 1.5rem;
    }
}

.text-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
    text-align: left;
}

.text-content ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-align: left;
}

.text-content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #003366;
}

.conclusion {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.conclusion .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.conclusion h2 {
    color: #1a237e;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.benefits-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
    text-align: left;
}

.benefits-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.1rem;
    color: #333;
    text-align: left;
}

.benefits-list li a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
    display: block;
    text-align: left;
}

.benefits-list li a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.benefits-list .amount {
    color: #cc0000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .conclusion h2 {
        font-size: 1.5rem;
    }
    
    .benefits-list li {
        font-size: 1rem;
    }
    
    .benefits-list {
        padding-left: 1.2rem;
    }
}