/* style.css */

/* General Styles */
body {
    font-family: sans-serif;
    /* Choose a professional font */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    /* Light grey background */
    color: #333;
    /* Dark grey text */
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: #333;
    /* Default link color */
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background-color: #fff;
    /* White header background */
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    /* Light grey border */
}

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

.logo a {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    /* Example brand color - blue */
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: #555;
    /* Grey navigation links */
    padding: 8px 12px;
    border-radius: 5px;
    /* Slightly rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth hover effect */
}

nav ul li a:hover {
    background-color: #007bff;
    /* Blue hover background */
    color: #fff;
    /* White text on hover */
}

/* Hero Section */
.hero {
    background-image: url('/asserts/images/Connectiono.jpg');
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    /*  Scales the image to cover the entire container */
    background-position: center;
    /* Centers the image within the container */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background-color: #007bff;
    /* Blue button background */
    color: #fff;
    /* White button text */
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

/* Footer */
footer {
    background-color: #333;
    /* Dark grey footer */
    color: #fff;
    /* White footer text */
    padding: 20px 0;
    text-align: center;
}

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

footer nav ul li a {
    color: #fff;
    /* White footer links */
}

footer nav ul li a:hover {
    text-decoration: underline;
    /* Underline on hover in footer */
}


/* ---  You will need to add styles for other sections like 'Services', 'About', etc.  --- */
/* ---  Example for a basic Services section style (you can extend this) --- */
.services-section {
    padding: 60px 0;
}

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

.services-section h2 {
    font-size: 2em;
    margin-bottom: 40px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive grid */
    gap: 30px;
    text-align: left;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    /* Slight lift on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* More pronounced shadow on hover */
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #007bff;
}

.service-item p {
    color: #555;
}

/* style.css (Additions for Back to Top Button) */

/* ... (previous CSS styles - keep all your existing styles) ... */

/* Back to Top Button */
#backToTopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed position relative to the viewport */
    bottom: 20px;
    /* Distance from the bottom */
    right: 20px;
    /* Distance from the right */
    z-index: 99;
    /* Ensure it's on top of other content */
    border: none;
    /* Remove default button border */
    outline: none;
    /* Remove default button outline on focus */
    background-color: #007bff;
    /* Blue background */
    color: white;
    /* White text */
    cursor: pointer;
    /* Pointer cursor on hover */
    padding: 15px;
    /* Padding around text */
    border-radius: 50%;
    /* Circular shape */
    font-size: 16px;
    /* Text size */
    transition: background-color 0.3s ease;
    /* Smooth background color transition */
}

#backToTopBtn:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

.services-overview-section {
    padding: 60px 0;
    /* Adjust padding as needed */
    background-color: #f9f9f9;
    /* Example background color, adjust as needed */
    text-align: center;
}

.services-overview-section h2,
.why-choose-us-section h2 {
    margin-bottom: 30px;
    /* Spacing below the main heading */
    color: #333;
    /* Example heading color */
}

.services-grid,
.value-props-grid {
    display: grid;
    /* Use CSS Grid for layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive grid columns */
    gap: 30px;
    /* Spacing between grid items */
    max-width: 1200px;
    /* Maximum width of the grid container */
    margin: 0 auto;
    /* Center the grid container */
    padding: 0 20px;
    /* Add some side padding on smaller screens */
}

.service-item,
.value-prop-item {
    background-color: #fff;
    /* Background for each service/value item */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    /* Subtle shadow for depth */
    text-align: center;
    /* Center text within each item */
}

.service-item img,
.value-prop-item img {
    display: block;
    /* Make image a block-level element */
    max-width: 100%;
    /* Image width to be max 100% of its container */
    height: auto;
    /* Maintain aspect ratio */
    margin: 0 auto 20px;
    /* Center image horizontally and add bottom margin */
    border-radius: 8px;
    /* Optional: Rounded corners for images */
}

.service-item h3,
.value-prop-item h3 {
    margin-bottom: 15px;
    color: #555;
    /* Example heading color for service/value titles */
}

.service-item p,
.value-prop-item p {
    color: #777;
    /* Example paragraph text color */
    line-height: 1.6;
}

.learn-more-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    /* Example button background color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.learn-more-link:hover {
    background-color: #0056b3;
    /* Darker color on hover */
}

/* style.css - Contact Page Styles */

/* Contact Hero Section */
.contact-hero {
    background-color: #e0f7fa;
    /* Light cyan background, consistent with homepage hero or adjust as needed */
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3em;
    /* Consistent with homepage hero heading size */
    margin-bottom: 20px;
    color: #222;
    font-weight: 800;
    line-height: 1.2;
}

.contact-hero p {
    font-size: 1.3em;
    /* Consistent with homepage hero paragraph size */
    color: #555;
    max-width: 700px;
    /* Slightly narrower paragraph width for contact page hero */
    margin: 0 auto 40px auto;
    /* Center paragraph and add bottom margin */
}


/* Contact Info and Form Section */
.contact-info-form-section {
    padding: 80px 0;
    /* Vertical padding for the section */
    background-color: #fff;
    /* White background for this section */
}

.contact-info-form-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Responsive grid for info and form */
    gap: 40px;
    align-items: start;
    /* Align items to the start of the grid cell */
}

.contact-info {
    padding: 30px;
}

.contact-form {
    padding: 30px;
    background-color: #f9f9f9;
    /* Light grey background for the form area */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for the form */
}

.contact-info h2,
.contact-form h2 {
    font-size: 2em;
    /* Section heading size */
    margin-bottom: 30px;
    color: #333;
}

.contact-info p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.contact-info strong {
    font-weight: 600;
    /* Bold for labels like "Address", "Phone" */
    color: #444;
}

.contact-info a {
    color: #007bff;
    /* Link color for email and phone if you want to make phone clickable */
}

.contact-info a:hover {
    color: #0056b3;
}

/* Social Links */
.contact-info .social-links {
    margin-top: 25px;
    text-align: left;
    /* Align social links to the left within contact info */
}

.contact-info .social-links a {
    display: inline-block;
    margin-right: 15px;
    opacity: 0.7;
    /* Slightly faded social icons initially */
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.contact-info .social-links a:hover {
    opacity: 1;
    /* Full opacity on hover */
    transform: scale(1.1);
    /* Slightly scale up on hover */
}

.contact-info .social-links img {
    height: 30px;
    /* Adjust social icon size */
    width: auto;
    vertical-align: middle;
    /* Vertically align icons with text if any */
}


/* Contact Form Styles */
.contact-form h2 {
    /* Inherits heading styles from .contact-info h2, if you want to style differently, add styles here */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    /* Stack form elements vertically */
    gap: 20px;
    /* Spacing between form groups */
}

.form-group {
    margin-bottom: 0;
    /* Remove default margin from form-group if any */
}

.form-group label {
    display: block;
    /* Make labels take full width */
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    /* Make input and textarea take full width of form-group */
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 1em;
    font-family: inherit;
    /* Inherit body font */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    /* Remove default focus outline */
    border-color: #007bff;
    /* Blue border on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
    /* Subtle blue shadow on focus */
}

.form-group textarea {
    resize: vertical;
    /* Allow vertical resizing of textarea */
    min-height: 150px;
    /* Minimum height for textarea */
}

.contact-form .button {
    /* Inherits button styles from .button class (homepage buttons), if you want to style differently for contact form button, add styles here */
    margin-top: 15px;
    /* Add margin above the submit button */
    align-self: flex-start;
    /* Align button to the start in the form container, if needed */
}


/* style.css - Content Sections Styles */

/* Some Content Section */
.content-section {
    padding: 80px 0;
    /* Vertical padding for the section */
    background-color: #fff;
    /* White background */
}

.content-section .container {
    max-width: 900px;
    /* Slightly narrower container for content */
    margin: 0 auto;
    text-align: center;
    /* Center align content within the section */
}

.content-section h2 {
    font-size: 2.5em;
    /* Heading size */
    color: #333;
    margin-bottom: 30px;
}

.content-section p {
    font-size: 1.1em;
    /* Paragraph size */
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    /* Spacing below paragraph */
}


/* Call to Action Section (Ready to Take Your Business...) */
.cta-section {
    padding: 100px 0;
    /* Larger vertical padding for emphasis */
    background-color: #f0f0f0;
    /* Very light grey background for visual contrast */
    text-align: center;
}

.cta-section .container {
    max-width: 800px;
    /* Narrower container for focused CTA */
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.8em;
    /* Larger heading size for CTA */
    color: #222;
    margin-bottom: 25px;
    line-height: 1.3;
}

.cta-section p {
    font-size: 1.2em;
    /* Slightly larger paragraph size */
    color: #555;
    margin-bottom: 40px;
    /* More space before the button */
    max-width: 700px;
    /* Limit paragraph width */
    margin-left: auto;
    margin-right: auto;
    /* Center paragraph */
}

/* style.css - CTA Section Button Styling */

.cta-section .button {
    font-size: 1.2em; /* Slightly larger font size for CTA button */
    padding: 14px 30px; /* Slightly increased padding for a larger button */
    font-weight: 700; /* Make the button text even bolder */
    background-color: #0080ff; /* Slightly brighter shade of blue for emphasis */
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2); /* Slightly more pronounced shadow */
}

.cta-section .button:hover {
    background-color: #0066cc; /* Darker blue on hover (adjust shade to match brighter blue) */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25); /* Increased shadow on hover for more lift */
}

.cta-section .button:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Slightly adjusted shadow when active */
}

/* style.css - Spacing Adjustment between Why Choose Us and Content Section */

.why-choose-us-section {
    margin-bottom: 0px;
    /* Adjusted: Reduced bottom margin of "Why Choose Us" section slightly if it had any */
    padding-bottom: 80px;
    /* Keep or adjust padding within the "Why Choose Us" section as needed */
}

.content-section {
    margin-top: 0px;
    /* Adjusted: Reduced top margin of "Some Content Section" slightly if it had any */
    padding-top: 80px;
    /* Keep or adjust padding within the "Some Content Section" as needed */
}

/* style.css - About Page Styles (Overlapping Sections) */

/* About Hero Section - No Changes Needed (Keep as is from previous enhanced version) */
.about-hero {
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #e0f7fa 0%, #f8f9fa 100%);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 3.2em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.about-hero p {
    font-size: 1.3em;
    color: #555;
    max-width: 750px;
    margin: 0 auto 50px auto;
    font-weight: 400;
}

/* style.css - About Page Styles (Overlapping Sections) - Add Horizontal Padding in Mission */

/* About Hero Section - Keep as is */
.about-hero {
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #e0f7fa 0%, #f8f9fa 100%);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 3.2em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.about-hero p {
    font-size: 1.3em;
    color: #555;
    max-width: 750px;
    margin: 0 auto 50px auto;
    font-weight: 400;
}

/* About Content Section - Modified for Overlapping - Keep as is */
.about-content {
    padding-top: 10px;
    padding-bottom: 60px;
    background-color: #fff;
    position: relative;
}

.about-content .container {
    max-width: 950px; /* Keep the max-width */
    margin: 0 auto; /* Keep centering */
    padding: 0 20px; /* Keep the default container side padding (you can adjust if needed for other sections) */
}

/* "Our Story" Section - Styles (within .about-content) - Keep as is */
.about-content .our-story-section {
    background-color: #fff;
    padding: 80px 0;
    margin-bottom: -60px;
    position: relative;
    z-index: 2;
}

.about-content .our-story-section h2 {
    font-size: 2.4em;
    color: #3a3a3a;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 12px;
    text-align: left;
    font-weight: 600;
}

.about-content .our-story-section p {
    font-size: 1.15em;
    color: #5a5a5a;
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: left;
    font-weight: 400;
}


/* "Our Mission" Section - Styles (within .about-content) - Overlapping Section - Add Container Padding */
.about-content .our-mission-section {
    background-color: #f0f2f5;
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

/* Target the .container *inside* .our-mission-section */
.about-content .our-mission-section .container {
    max-width: 950px; /* Keep the same max-width as other content containers */
    margin: 0 auto; /* Keep centering */
    padding-left: 40px;  /*  <<<<<  ADD LEFT PADDING  <<<<< */
    padding-right: 40px; /*  <<<<<  ADD RIGHT PADDING  <<<<< */
}


.about-content .our-mission-section h2 {
    font-size: 2.4em;
    color: #3a3a3a;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 12px;
    text-align: left;
    font-weight: 600;
}

.about-content .our-mission-section p {
    font-size: 1.15em;
    color: #5a5a5a;
    line-height: 2.0;
    margin-bottom: 40px;
    text-align: left;
    font-weight: 400;
    /* background-color: red;  <- REMOVE RED BACKGROUND TEST */
}


/* "Meet the Team" Section - Styles (Within About Content) - No Change */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid #f0f0f0;
}

.team-member h3 {
    font-size: 1.7em;
    color: #3a3a3a;
    margin-bottom: 12px;
    font-weight: 600;
}

.team-member p {
    font-size: 1.05em;
    color: #6a6a6a;
    line-height: 1.6;
}

/* Services Page Styles - INTEGRATED BELOW */

/* Services Hero Section */
.services-hero {
    background-color: #e0f7fa; /* Light cyan background, similar to contact hero, or choose a color */
    padding: 120px 0;
    text-align: center;
}

.services-hero .container {
    /* Inherits container styles */
}

.services-hero h1 {
    font-size: 3em; /* Hero heading size */
    color: #222;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.services-hero p {
    font-size: 1.3em; /* Hero paragraph size */
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
}


/* All Services Section */
.all-services-section {
    padding: 80px 0; /* Vertical padding for the section */
    background-color: #fff; /* White background for services section */
}

.all-services-section .container {
    /* Inherits container styles */
}

.all-services-section h2 {
    font-size: 2.5em; /* Main section heading */
    color: #333;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}


/* Detailed Services List (Grid) */
.services-list.detailed-services-list { /* Target services-list with class detailed-services-list */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive grid columns - slightly wider min width */
    gap: 40px; /* Increased gap between service items */
}


/* Detailed Service Item */
.service-item.detailed-service-item { /* Target service-item with class detailed-service-item */
    background-color: #f9f9f9; /* Light grey background for service items */
    padding: 35px; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06); /* Subtle box shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effect */
}

.service-item.detailed-service-item:hover {
    transform: translateY(-8px); /* More lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* More pronounced shadow on hover */
}

.service-item.detailed-service-item img {
    max-width: 100%; /* Image width to 100% of container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image in some browsers */
    margin: 0 auto 25px auto; /* Center image and add bottom margin */
    border-radius: 8px; /* Slightly rounded corners for images */
}

.service-item.detailed-service-item h3 {
    font-size: 1.8em; /* Service heading size */
    color: #007bff; /* Brand blue color for service headings */
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left; /* Align service headings to the left */
}

.service-item.detailed-service-item p {
    font-size: 1.1em; /* Service description size */
    color: #666;
    line-height: 1.7;
    text-align: left; /* Align service descriptions to the left */
}

/* style.css - Portfolio Page Styles - Flexbox Alignment & Visual Refinements */

/* Portfolio Hero Section - No changes */
.portfolio-hero {
    background-color: #f0f2f5; /* Very light grey/beige background */
    padding: 120px 0;
    text-align: center;
}

.portfolio-hero .container {
    /* Inherits container styles */
}

.portfolio-hero h1 {
    font-size: 3em;
    color: #222;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.portfolio-hero p {
    font-size: 1.3em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
}


/* Portfolio Grid Section - Slightly Changed Background */
.portfolio-grid-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Changed to light grey for subtle background */
}

.portfolio-grid-section .container {
    /* Inherits container styles */
}

.portfolio-grid-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}


/* Portfolio Grid Layout - No changes */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive grid columns */
    gap: 40px;
}


/* Portfolio Item - FLEXBOX ADDED & Padding/Margin Refinements */
.portfolio-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden; /* To ensure rounded corners on image work */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Slightly adjusted shadow - more pronounced */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;          /*  <<<<<  FLEXBOX ENABLED  <<<<< */
    flex-direction: column; /*  <<<<<  Stack content vertically <<<<< */
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Slightly adjusted hover shadow */
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block; /* Ensure no extra space below image */
    border-radius: 10px 10px 0 0; /* Rounded corners at the top of the image */
}

.portfolio-item h3 {
    font-size: 1.7em;
    color: #3a3a3a;
    margin: 25px 20px 10px 20px; /* Adjusted bottom margin to 10px */
    font-weight: 600;
    text-align: left;
}

.portfolio-item p {
    font-size: 1.1em;
    color: #6a6a6a;
    line-height: 1.6;
    margin: 0 20px 20px 20px; /* Adjusted bottom margin to 20px */
    text-align: left;
    flex-grow: 1;         /*  <<<<<  Allow paragraph to take up available space <<<<< */
}

.portfolio-item .learn-more-link {
    display: block; /* Make link take full width */
    text-align: center; /* Center the link text */
    padding: 15px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 0 0 10px 10px; /* Rounded corners at the bottom of the item */
    transition: background-color 0.3s ease;
    margin-top: auto;      /*  <<<<<  Push link to the bottom using auto margin <<<<< */
}

.portfolio-item .learn-more-link:hover {
    background-color: #0056b3;
}

/* style.css - Modal Styles - Centered Modal */

/* Modal Container (hidden by default) - FLEXBOX FOR CENTERING */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed - for background if modal is taller than viewport */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity - background overlay */

    display: flex;         /*  <<<<<  FLEXBOX for centering  <<<<< */
    justify-content: center; /*  <<<<<  Center horizontally   <<<<< */
    align-items: center;     /*  <<<<<  Center vertically     <<<<< */
}

/* Modal Content/Box - ADJUSTED MARGIN & POSITIONING */
.modal-content {
    background-color: #fefefe;
    /* margin: 10% auto;  <- REMOVE auto margins - Flexbox will handle centering */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px; /* Limit maximum width */
    border-radius: 10px;
    position: relative; /* For close button positioning */
    /* No need for absolute positioning or transforms anymore - Flexbox centers it */
}

/* Modal Body (scrollable content area) - No Changes Needed */
.modal-body {
    max-height: 70vh; /* Limit body height to 70% of viewport height */
    overflow-y: auto; /* Enable vertical scrolling in the body */
    padding-right: 10px; /* Add some padding for scrollbar */
}


/* Modal Close Button - No Changes Needed */
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style headings and paragraphs within the modal body - No Changes Needed */
.modal-content h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

.modal-content h3 {
    font-size: 1.6em;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-content a {
    color: #007bff;
    text-decoration: underline;
}

.modal-content a:hover {
    color: #0056b3;
}