/* Define Brand Colors */
:root {
  --primary-color: #b31a22; /* Main brand color */
  --white: #FFFFFF; /* White for background */
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--white); /* Set background to white */
    color: #333; /* Default text color */
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    text-align: center;
}

/* Icons */
i {
    color: var(--primary-color); /* Primary color for all icons */
}

/* Container for standard margins */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #ffffff;
    position: fixed;
    width: 61%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .logo img {
    width: 150px;
}

.nav-links {
    list-style: none;
    display: none; /* Hidden by default */
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-links.active {
    display: flex; /* Show menu when active */
}

.nav-links li {
    text-align: center;
    margin: 10px 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #0056b3;
}

.menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    .navbar {
        width: 90vw;
    }
}

/* Hero Section */
.hero-section {
    padding: 100px 20px; /* Increased padding for desktop devices */
    background: linear-gradient(180deg, #e6f0ff, #ffffff);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-search {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.hero-search h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.search-form .form-group {
    display: flex;
    flex: 1;
    gap: 20px;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-form button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #B02A30; /* Red accent */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #8A1F25; /* Darker red on hover */
}

.hero-image {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add spacing below the navbar and move the image below the heading for mobile screens */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px; /* Add space below the navbar */
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        order: 2; /* Move the image below the text */
        max-width: 100%;
        margin-top: 20px;
    }

    .hero-search {
        width: 90%;
        margin: 20px auto 0;
    }

    .search-form .form-group {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }
}

/* Ad Banners */
.add-banner {
    margin: 20px 0;
    text-align: center;
}

.add-banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#banner-first {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Growing Numbers Section */
.growth-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.growth-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.growth-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
}

/* Services Section */
.services-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 250px;
}

.service-card i {
  font-size: 40px;
  color: #0056b3;
  margin-bottom: 10px;
}

/* Benefits Section */
.benefits-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.benefit-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
}

/* How to Select Section */
.how-to-select-section {
    padding: 50px 20px;
    background: linear-gradient(180deg, #ffffff, #e6f0ff);
    text-align: center;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.step-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
    position: relative;
}

.step-card::before {
    content: "➔";
    position: absolute;
    top: 10px;
    left: -20px;
    font-size: 1.5rem;
    color: #0056b3;
}

/* Key Points Section */
.key-points-section {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.key-points-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.key-point {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
}

/* Testimonials Section */
.testimonials-section {
  padding: 50px 20px;
  background-color: #fff;
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonial-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
}

/* FAQ Section */
.faq-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    background-color: #0056b3;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #ffffff;
    border-left: 3px solid #0056b3;
    margin-top: 5px;
}

/* Plans Section */
.plans-section {
    padding: 50px 20px;
    background-color: #ffffff;
}

.plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.plan-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-card p {
    margin-bottom: 20px;
}

.plan-card button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #B02A30;
    color: #fff;
    cursor: pointer;
}

.plan-card button:hover {
    background-color: #8A1F25;
}

/* Insurance Plans Section */
.insurance-plans-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.insurance-plans-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.insurance-plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.insurance-plan-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insurance-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.insurance-plan-card i {
    font-size: 3rem;
    color: #B02A30;
    margin-bottom: 15px;
}

.insurance-plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.insurance-plan-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.insurance-plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.insurance-plan-card ul li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.insurance-plan-card ul li::before {
    content: "✔";
    color: #B02A30;
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.insurance-plan-card button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #B02A30;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.insurance-plan-card button:hover {
    background-color: #8A1F25;
}

/* How Does Life Insurance Work Section */
.how-it-works-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.flowchart-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.flowchart-step {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 22%;
    text-align: center;
}

.arrow {
    font-size: 2rem;
    color: #0056b3;
}

/* Why Should I Buy Life Insurance Section */
.why-life-insurance-section {
    padding: 50px 20px;
    background: linear-gradient(180deg, #f4f4f4, #e6f0ff);
}

.why-life-insurance-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.why-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

/* Important Terms Section */
.important-terms-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.terms-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.term-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

/* Who Should Buy Life Insurance Section */
.who-should-buy-section {
    padding: 50px 20px;
    background: linear-gradient(180deg, #f4f4f4, #e6f0ff);
}

.who-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.who-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

    .hero-search {
        width: 90%;
        margin: 20px auto 0;
    }

    .search-form .form-group {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .add-banner img {
        margin: 10px 0;
    }

    .services-container, .testimonials-container {
        flex-direction: column;
    }

    .growth-container {
        flex-direction: column;
        align-items: center;
    }

    .growth-card {
        width: 90%;
    }

    .site-seal {
        flex-direction: column;
    }

    .benefits-container,
    .steps-container,
    .key-points-container {
        flex-direction: column;
        align-items: center;
    }

    .benefit-card,
    .step-card,
    .key-point {
        width: 90%;
    }

    .insurance-plans-container {
        flex-direction: column;
        align-items: center;
    }

    .insurance-plan-card {
        width: 90%;
    }
}

/* Footer Section */
.footer {
    padding: 40px 20px;
    background: #f4f4f4;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color); /* Primary color for footer headings */
}

.footer-about p,
.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #0056b3; /* Blue accent on hover */
}

.footer-social a {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #555;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #0056b3; /* Blue accent on hover */
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        min-width: 100%;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }
}