/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

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

/* Header */
.header {
    background-color: #667eea;
    color: #fff;
    padding: 15px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.btn-primary {
    background-color: #764ba2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background-color: #667eea;
    color: #fff;
    padding: 80px 0;
    position: relative;
    /* overflow: hidden; */
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 50%;
    
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-content .rating {
    margin-top: 20px;
    font-size: 16px;
}

.hero-images {
    position: relative;
    width: 45%;
    height: 500px; /* Adjust as needed */
}

.hero-images img {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-img-large {
    width: 62%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-img-small {
    width: 30%;
    height: auto;
    z-index: 1;
}

.hero-img-small.top-right {
    top: 0;
    right: 0;
}

.hero-img-small.bottom-left {
    bottom: 0;
    left: 0;
}

.hero-img-small.bottom-right {
    bottom: 0;
    right: 0;
}

/* Templates Section */
.templates-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f8f8;
}

.tag {
    display: inline-block;
    background-color: #e0e7ff; /* A lighter shade for reviews section */
    color: #764ba2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.templates-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
    row-gap: 30px;
    column-gap: 30px;
    justify-content: center;
}

.template-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.template-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.template-item h3 {
    font-size: 20px;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.features-section .container {
    text-align: center;
}

.features-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
    row-gap: 30px;
    column-gap: 30px;
}

.feature-item {
    text-align: left;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background-color: #e0e7ff;
    text-align: center;
}

.reviews-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-template-rows: auto;
    row-gap: 30px;
    column-gap: 30px;
    justify-content: center;
}

.review-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
}

.review-item .stars {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 20px;
}

.review-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.review-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-item h4 {
    font-size: 18px;
    margin: 0;
}

.review-item span {
    font-size: 14px;
    color: #777;
}

/* CTA Section */
.cta-section {
    background-color: #667eea;
    color: #fff;
    padding: 80px 0 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-section a {
    color:#fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section{
    padding-top:20px
  }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 110px;
        display: flex;
        flex-direction: column;
        align-items: center;

        h1{
          font-size: 32px;
        }
    }

    .hero-images {
        width: 80%;
        height: 300px;
    }

    .hero-img-large {
        width: 62%;
    }

    .hero-img-small {
        width: 40%;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav ul li {
        margin: 10px 0;
    }

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