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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #004883; /* Deep Blue */
    --secondary-color: #d83e4b; /* Red */
    --text-color: #2c3e50; /* Dark Grey for better readability */
    --light-text-color: #555;
    --bg-color: #ffffff; /* White */
    --light-gray: #f8f9fa; /* Lighter gray for backgrounds */
    --medium-gray: #e9ecef; /* Medium gray for borders/dividers */
    --border-color: #dee2e6;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

body {
    font-family: 'Open Sans', sans-serif; /* Modern, clean font */
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Stronger headings */
    color: var(--primary-color);
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2em;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* Add Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Navigation */
.main-nav {
    background-color: var(--bg-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--card-shadow);
    border-bottom: 1px solid var(--border-color);
}

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

.logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-apply-btn {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    padding: 0.7rem 1.6rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(216, 62, 75, 0.2);
}

.nav-apply-btn:hover {
    background-color: #c02e3b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(216, 62, 75, 0.4);
}

.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.has-submenu .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.has-submenu:hover .arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    list-style: none;
    min-width: 220px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid var(--medium-gray);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    transition: all 0.2s;
}

.submenu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    color: var(--bg-color);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bg-color); /* Ensure title is white */
    text-align: left;
}

.hero-text .hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-align: left;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    max-height: 450px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1, .hero-text .hero-subtitle {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #c02e3b;
    border-color: #c02e3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(216, 62, 75, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-color);
    border-color: var(--bg-color);
}

.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Sections for main content */
section {
    padding: 5rem 0;
}

section.bg-light {
    background-color: var(--light-gray);
}

section h2.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.card p {
    color: var(--light-text-color);
    flex-grow: 1;
}

.card .btn {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

.device-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--bg-color);
}

.device-badge.free {
    background-color: #28a745; /* Green */
}

.device-badge.discounted {
    background-color: var(--secondary-color); /* Red */
}

/* 3 Simple Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.step-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--hover-shadow);
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 72, 131, 0.3);
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.step-card p {
    color: var(--light-text-color);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Lifeline Overview Section */
.lifeline-overview-section {
    padding: 5rem 0;
}

.lifeline-overview-section .content-column {
    padding-right: 2rem;
}

.lifeline-overview-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.lifeline-overview-section h3 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.lifeline-overview-section p, .lifeline-overview-section ul {
    color: var(--light-text-color);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.lifeline-overview-section ul {
    list-style: disc;
    padding-left: 1.5em;
}

.lifeline-overview-section li {
    margin-bottom: 0.5em;
}

.free-smartphone-section {
    padding: 5rem 0;
    background-color: var(--light-gray); /* Use a light grey base */
    background-image: linear-gradient(45deg, rgba(255,255,255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255, 0.2) 50%, rgba(255,255,255, 0.2) 75%, transparent 75%, transparent);
    background-size: 20px 20px; /* Size of the pattern */
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.free-smartphone-section h2 {
    text-align: left;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.free-smartphone-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--light-text-color);
}

.free-smartphone-section .content-column {
    padding-right: 2rem;
}

.free-smartphone-section .image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.free-smartphone-section .image-column img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--hover-shadow);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.testimonial-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--hover-shadow);
}

.testimonial-card p {
    font-style: italic;
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: right;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-item p {
    color: var(--light-text-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
    padding-top: 0;
}

.faq-item.active p {
    max-height: 200px; /* Adjust based on expected content length */
    padding-top: 1rem;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 3rem 0 1rem;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--bg-color);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.8rem;
    padding: 0;
    background: none;
    border-radius: 0;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--bg-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius);
    background-color: rgba(255,255,255,0.1);
    color: var(--bg-color);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--bg-color);
}

.newsletter-form .btn-primary {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    margin-top: 2rem;
}

/* Page Content Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    color: var(--bg-color);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: var(--bg-color); /* Ensure page titles are white */
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.page-content {
    padding: 5rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

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

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    text-align: left;
}

.content-section h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-section p {
    color: var(--light-text-color);
}

.content-section ul,
.content-section ol {
    margin-left: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text-color);
}

.content-section li {
    margin-bottom: 0.8rem;
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 72, 131, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    background-color: var(--bg-color);
    margin-right: 0.3rem; /* Adjust space between checkbox and label */
}

.checkbox-item input[type="checkbox"]:checked,
.radio-item input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item label, .radio-item label {
    font-weight: 400;
    color: var(--light-text-color);
    font-size: 1rem;
    margin-bottom: 0;
}

.form-actions {
    margin-top: 2.5rem;
    text-align: center;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.card p {
    color: var(--light-text-color);
    flex-grow: 1;
}

.card .btn {
    margin-top: 1.5rem;
    align-self: flex-start;
}

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.provider-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.provider-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.provider-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    flex: 1;
}

.provider-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.provider-badge.free {
    background-color: #28a745;
    color: var(--bg-color);
}

.provider-badge.discounted {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

.provider-description {
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.provider-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.provider-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.provider-features i {
    color: #28a745;
    font-size: 0.9rem;
}

.provider-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.provider-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
}

/* States Grid */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.state-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.state-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.state-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.state-header h3 i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.state-badge {
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    background-color: #28a745;
    color: var(--bg-color);
    white-space: nowrap;
}

.state-description {
    color: var(--light-text-color);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.state-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.state-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--light-text-color);
    font-size: 0.85rem;
}

.state-stats i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.state-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.product-brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-model {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.product-image-wrapper {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 1rem;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-apply-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    border: none;
    color: var(--bg-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-apply-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b82e3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 62, 75, 0.3);
}

/* Product Page Styles */
.product-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    color: var(--bg-color);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.product-page-header h1 {
    color: var(--bg-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image-large {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

.product-image-large img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.product-price-note {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 0.5rem;
}

.product-features {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.product-features h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.faq-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active h4::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-item p {
    color: var(--light-text-color);
    line-height: 1.7;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
    padding-top: 0;
}

.faq-item.active p {
    max-height: 300px; /* Adjust based on expected content length */
    padding-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-actions {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.8rem 1.5rem;
        color: var(--text-color);
        width: 100%;
    }

    .nav-menu a::after {
        content: none;
    }

    .nav-actions {
        display: none; /* Hide apply button in mobile menu, show in main nav */
    }

    .nav-wrapper {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .logo {
        flex-basis: auto;
        margin-bottom: 0;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding-left: 1.5rem;
        border: none;
        border-radius: 0;
    }
    
    .submenu li {
        border-bottom: 1px solid var(--border-color);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .programs-grid,
    .devices-grid {
        grid-template-columns: 1fr;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .states-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-features-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

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

    .product-features-grid {
        grid-template-columns: 1fr !important;
    }

    .faq-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Sub-submenu styling */
.has-submenu .sub-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--bg-color);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.has-submenu:hover .sub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-submenu li {
    position: relative;
}

.sub-submenu li a {
    padding: 0.75rem 1rem;
    display: block;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.sub-submenu li:last-child a {
    border-bottom: none;
}

.sub-submenu li a:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}