/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light background */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    color: #212529; /* Darker heading color */
}

h1 { font-size: 2.2em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.2em; }

p {
    margin-bottom: 1em;
    color: #555; /* Slightly lighter paragraph text */
}

a {
    text-decoration: none;
    color: #007bff; /* Primary blue for links */
}

li {
    margin-left: 30px;
}

#peicing li {
    margin-left: 0;
}

ul, ol {
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
}

#pricing ul {
    list-style: none;
    margin-bottom: 20px;
}

/* Header */
header {
    background-color: #ffffff; /* White header */
    padding: 10px 0;
    border-bottom: 1px solid #e7e7e7;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin-bottom: 0;
    font-size: 1.5em;
    color: #0056b3; /* Darker blue for logo */
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #555;
    font-weight: 500;
}
header nav ul li a:hover {
    color: #007bff;
}

/* Hero Section */
#hero {
    background-color: #e9ecef; /* Light gray hero background */
    text-align: center;
    padding: 30px 0;
}

#features h3 {
    margin-top: 35px;
}

#hero h2, #hero h1, #features h3, #pricing h3, #faq h3 {
    color: #0056b3; /* Darker blue heading */
}

#hero p {
    max-width: 600px;
    margin: 0 auto 25px auto;
    font-size: 1.1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d; /* Gray secondary button */
    color: #fff;
    border: 1px solid #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

/* Features Section */
#features {
    padding: 50px 0;
    background-color: #ffffff; /* White background */
}

#features h3 {
    text-align: center;
    margin-bottom: 40px;
}

.feature-list {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 30px; /* Add gap between items */
}

.feature-item {
    flex-basis: 30%; /* Adjust basis for spacing */
}

.feature-item h4 {
    color: #007bff; /* Blue feature titles */
    margin-bottom: 10px;
}

/* Pricing Section */
#pricing {
    padding: 25px 0 50px 0;
    background-color: #f8f9fa; /* Light background */
}

#pricing h3 {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: stretch; /* Make cards same height */
}

.pricing-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    flex-basis: 31%; /* Adjusted basis for three cards */
    max-width: 350px; /* Max width for cards */
    display: flex;
    flex-direction: column; /* Align items vertically */
    justify-content: space-between; /* Space out content */
    position: relative; /* Needed for absolute positioning of the tag */
    overflow: hidden; /* Hide tag overflow */
}

/* Add gray top border to the Free card */
.pricing-card:not(.premium) {
    border-top: 5px solid #6c757d; /* Gray border matching the secondary button */
}

.pricing-card.premium.annual-saver { /* Styles for Annual Saver card */
    border-top: 5px solid #007bff; /* Blue top border */
    transform: scale(1.05); /* Make it slightly larger */
    z-index: 10; /* Ensure it's above others if overlapping */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

/* Best Deal Tag Styling */
.best-deal-tag {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: #ffc107; /* Yellow background */
    color: #333;
    padding: 5px 30px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 11; /* Ensure tag is above card content */
}


/* Specific styles for Monthly Premium card */
.pricing-card.premium-monthly {
    border-top: 5px solid #28a745; /* Green top border */
}

.pricing-card.premium-monthly .price {
    color: #007bff; /* Changed from Green to Blue price text */
}

.pricing-card.premium-monthly .btn-primary {
    background-color: #28a745; /* Green button */
    border-color: #28a745;
}

.pricing-card.premium-monthly .btn-primary:hover {
    background-color: #218838; /* Darker green on hover */
    border-color: #1e7e34;
}


.pricing-card h4 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.pricing-card .price span {
    font-size: 0.5em;
    font-weight: normal;
    color: #6c757d;
}

.pricing-card .annual-deal {
    font-size: 0.9em;
    color: #28a745; /* Green for savings */
    margin-bottom: 20px;
}

.pricing-card ul {
    margin-bottom: 25px;
    text-align: left;
    padding-left: 20px; /* Indent list */
}

.pricing-card ul li {
    margin-bottom: 10px;
    position: relative; /* For checkmark */
    padding-left: 25px; /* Space for checkmark */
}

/* Simple checkmark using pseudo-element */
.pricing-card ul li::before {
    content: '✔';
    color: #28a745; /* Green checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card .btn {
    margin-top: auto; /* Push button to bottom */
    width: 100%; /* Make button full width */
}

/* FAQ Section */
#faq {
    padding: 50px 0 0 0;
    background-color: #ffffff;
}

#faq h3 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 15px;
}

.faq-item h4 {
    margin-bottom: 5px;
    color: #0056b3;
}

/* Footer */
footer {
    background-color: #343a40; /* Dark footer */
    color: #f8f9fa; /* Light text */
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin-bottom: 0;
    color: #adb5bd; /* Lighter gray text */
}

/* Center specific elements in Features section */
#features .container > h4 { /* Target the specific h4 */
    text-align: center;
    margin-top: 40px; /* Add some space above it */
    margin-bottom: 20px; /* Add space below it */
}

#features .container > img[src='assets/images/example.webp'] { /* Target the specific image */
    display: block; /* Make it a block element */
    margin: 0 auto; /* Center it horizontally */
    max-width: 100%; /* Ensure it's responsive */
    height: auto; /* Maintain aspect ratio */
    border: 1px solid #dee2e6; /* Optional: Add a light border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: Add subtle shadow */
}


/* Responsive Adjustments (Basic Example) */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        margin-top: 10px;
        justify-content: center;
    }
    .feature-list {
        flex-direction: column;
        gap: 20px;
    }
    .pricing-options {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card {
        flex-basis: 80%; /* Wider cards on smaller screens */
        max-width: 400px;
    }
}

.small {
    font-size: small;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px; /* Location of the box */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px; /* Max width for larger screens */
    border-radius: 8px;
    position: relative; /* Needed for close button positioning */
}

.modal-content h4 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.modal-content button[type="submit"] {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    background-color: #0056b3;
}


/* Close Button */
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.center {
    text-align: center;
}