/* Header Styling */
header {
    background-color: #8B0000; /* Fallback: dark red */
    background-image: linear-gradient(to right, #8B0000, #00004C); /* Dark Red to Very Dark Blue */
    color: #fff;
    padding: 1rem 0; /* Keeps current padding for larger screens */
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Base padding for desktop, adjust as needed */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Navigation Styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700; /* A golden yellow for hover effect */
}

/* Main Content Area */
main {
    padding: 20px;
    max-width: 960px;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Hero Section (for Home page) */
#hero {
    text-align: center;
    padding: 50px 20px;
    background-color: #e2e2e2;
    margin-bottom: 30px;
}

#hero h1 {
    color: #222;
    font-size: 3rem;
    margin-bottom: 20px;
}

#hero img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px; /* Slightly rounded corners for the image */
}

#hero p {
    font-size: 1.2rem;
    color: #555;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Update Header/Nav for logo alignment */
header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav .logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space between logo and nav links */
}

header nav .logo img {
    height: 50px; /* Adjust as needed */
    margin-right: 10px;
}

header nav ul {
    flex-wrap: wrap; /* Allow navigation items to wrap on smaller screens */
    padding: 0 10px;
}

/* Specific styling for the hero image */
#hero img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto; /* Centering and spacing */
    border-radius: 0; /* Remove rounded corners if not desired for this image */
}

/* Contact Info Section */
#contact-info {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

#contact-info h2 {
    color: #000;
    margin-bottom: 15px;
}

#contact-info p {
    margin: 5px 0;
}

#contact-info a {
    color: #990000; /* Matching old link color for consistency */
    text-decoration: underline;
}

/* Feature Grid for Offerings */
#features {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}

#features h2 {
    color: #000;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.feature-grid div {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-grid h3 {
    color: #990000;
    margin-top: 0;
}

.button {
    display: inline-block;
    background-color: #990000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #c00;
}

/* Responsive Adjustments (find or add this block) */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0; /* Reduced vertical padding for header on small screens */
    }

    header nav .logo img {
        height: 40px; /* Make logo image smaller on mobile */
    }

    header nav .logo h1 {
        font-size: 1.8rem; /* Make header title smaller on mobile */
    }

    /* Adjust padding-top for body when header is fixed and condensed on mobile */
    body {
        padding-top: 80px; /* Adjust this value based on your new condensed header height */
    }

    /*
       If you still have the hamburger menu code from previous attempt,
       ensure this doesn't conflict. For Option 1, the full nav is always visible.
       If you want *only* Option 1, you can remove the hamburger specific CSS
       and JS that hides the nav for mobile.
       But for now, we are just making the existing fixed header smaller.
    */
}

/* Styling for general page content sections */
.page-content {
    padding: 20px;
}

.page-content h1 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.8rem;
}

/* Image with Text Layout */
.image-with-text {
    display: flex;
    flex-wrap: wrap; /* Allows content to stack on small screens */
    align-items: flex-start; /* Align text and image at the top */
    margin-bottom: 30px;
    gap: 20px; /* Space between image and text */
}

.image-with-text img {
    flex: 1; /* Allows image to grow/shrink */
    min-width: 300px; /* Minimum width for the image */
    max-width: 45%; /* Max width for image when alongside text */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-with-text p {
    flex: 1; /* Allows paragraph to grow/shrink */
    min-width: 300px; /* Minimum width for the paragraph */
    padding: 10px 0;
    line-height: 1.8;
    color: #444;
}

/* Reverse layout for alternating image/text */
.image-with-text.reverse {
    flex-direction: row-reverse;
}

/* Centered image container */
.image-centered {
    text-align: center;
    margin: 40px 0;
}

.image-centered img {
    max-width: 80%; /* Adjust as needed */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive adjustments for image-with-text */
@media (max-width: 768px) {
    .image-with-text {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center; /* Center items when stacked */
    }

    .image-with-text img,
    .image-with-text p {
        max-width: 100%; /* Take full width when stacked */
        min-width: unset; /* Remove min-width restriction when stacked */
    }

    .image-with-text.reverse {
        flex-direction: column; /* Ensure stacking even in reverse */
    }

    .image-centered img {
        max-width: 100%;
    }
}

/* Intro Paragraph with Image (for Kalaripayattu page) */
.intro-paragraph {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.intro-paragraph img {
    flex: 1;
    min-width: 250px; /* Adjust as needed */
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.intro-paragraph p {
    flex: 1.5; /* Give text more space */
    min-width: 300px;
    line-height: 1.8;
    color: #444;
}

/* General Text Block Styling */
.text-block {
    margin-bottom: 20px;
    padding: 10px 0;
}

.text-block p {
    line-height: 1.8;
    color: #444;
}

/* Summary Block */
.summary-block {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background-color: #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    font-weight: bold;
}

/* Responsive adjustments for intro-paragraph */
@media (max-width: 768px) {
    .intro-paragraph {
        flex-direction: column;
        align-items: center;
    }

    .intro-paragraph img,
    .intro-paragraph p {
        max-width: 100%;
        min-width: unset;
    }
}

/* Training Stages Section */
.training-stages {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.training-stages h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.stage-list {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    display: flex; /* Use flexbox for image/text layout */
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow content to wrap on small screens */
}

.stage-list h3 {
    margin-top: 0;
    color: #990000;
    font-size: 1.4rem;
    flex-basis: 100%; /* Make heading take full width */
}

.stage-list h3 a {
    color: inherit; /* Keep link color same as heading */
    text-decoration: none;
}

.stage-list h3 a:hover {
    text-decoration: underline;
}

.stage-list p {
    flex: 1; /* Allow text to take remaining space */
    line-height: 1.7;
    color: #555;
    min-width: 280px; /* Ensure text doesn't get too narrow */
}

.stage-list img {
    max-width: 250px; /* Max width for images within stages */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Specific adjustment for intro-paragraph image/text split */
.intro-paragraph div {
    flex: 1.5; /* Give text more space in the intro */
    min-width: 300px;
}

.intro-paragraph img {
    flex: 1;
    min-width: 250px;
    max-width: 40%;
}

/* Responsive adjustment for stage-list images */
@media (max-width: 768px) {
    .stage-list {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;
        text-align: center;
    }

    .stage-list img,
    .stage-list p {
        max-width: 100%;
        min-width: unset;
    }
}

/* Treatment Section General Styling */
.treatment-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.treatment-section h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

/* Individual Treatment Method Styling */
.treatment-method {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd; /* Separator for methods */
}

.treatment-method:last-child {
    border-bottom: none; /* No separator after the last method */
}

.treatment-method h3 {
    color: #990000;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center; /* Center method titles */
}

.treatment-method p,
.treatment-method ul {
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.treatment-method ul {
    list-style-type: disc;
    margin-left: 25px;
}

/* Image within Treatment Method (reusing .image-with-text) */
.treatment-method .image-with-text {
    align-items: center; /* Vertically align image and text */
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.treatment-method .image-with-text img {
    max-width: 300px; /* Adjust as needed for smaller images in these sections */
    flex-basis: auto; /* Allow content to dictate image width */
}

/* Ensure text in .image-with-text within .treatment-method has enough space */
.treatment-method .image-with-text div {
    flex: 1;
    min-width: 300px;
}

/* Responsive adjustments for treatment methods */
@media (max-width: 768px) {
    .treatment-method .image-with-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Gurukkal Intro Section */
.gurukkal-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gurukkal-intro img {
    max-width: 300px; /* Adjust size of Gurukkal's portrait */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gurukkal-intro p {
    flex: 1;
    min-width: 300px;
    line-height: 1.8;
    color: #444;
}

/* Gurukkal Biography Section */
.gurukkal-bio {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gurukkal-bio h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.gurukkal-bio p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* Reusing .image-with-text and .reverse for image within bio */
.gurukkal-bio .image-with-text {
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: flex-start; /* Align text to top of image */
    background-color: transparent; /* No extra background */
    box-shadow: none; /* No extra shadow */
    padding: 0;
}

.gurukkal-bio .image-with-text img {
    max-width: 350px; /* Adjust size of image within bio */
    min-width: 250px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gurukkal-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gurukkal-intro img,
    .gurukkal-intro p {
        max-width: 100%;
        min-width: unset;
    }

    .gurukkal-bio .image-with-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Demonstration Details Section */
.demonstration-details {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.demonstration-details h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.demonstration-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.demonstration-item:last-child {
    border-bottom: none;
}

.demonstration-item h3 {
    color: #990000;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.demonstration-item p,
.demonstration-item ul {
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.demonstration-item ul {
    list-style-type: disc;
    margin-left: 25px;
}

/* Image Grid for Multiple Images in a Section */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid for images */
    gap: 20px;
    margin-top: 20px;
    justify-items: center; /* Center images in their grid cells */
}

.image-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Past Events Section */
.past-events {
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.past-events h2 {
    text-align: center;
    color: #000;
    margin-bottom: 20px;
}

.past-events p,
.past-events ul {
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.past-events ul {
    list-style-type: disc;
    margin-left: 25px;
}

/* Reusing .intro-paragraph style but adjusting image width for first section */
.page-content .intro-paragraph img {
    max-width: 45%; /* Adjust as needed */
    min-width: 280px; /* Ensure sufficient width on larger screens */
}

/* Responsive adjustment for image-grid */
@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr; /* Stack images vertically on small screens */
    }
}

/* Cultural History Section */
.cultural-history,
.cultural-influence {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cultural-history h2,
.cultural-influence h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

/* Ensure text in .image-with-text within these sections has enough space */
.cultural-history .image-with-text p,
.cultural-influence .image-with-text p {
    line-height: 1.8;
    color: #444;
}

.cultural-influence ul {
    list-style-type: disc;
    margin-left: 25px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

/* Image Caption */
.image-caption {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive grid for images */
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.gallery-grid a {
    display: block; /* Make the link block-level */
    text-decoration: none; /* Remove underline from links */
    overflow: hidden; /* Hide overflow for rounded corners */
    border-radius: 8px; /* Consistent rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.gallery-grid a:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-grid img {
    width: 100%;
    height: 150px; /* Fixed height for consistent thumbnail size */
    object-fit: cover; /* Crop images to fit without distortion */
    display: block; /* Remove extra space below images */
    border-radius: 8px; /* Apply rounded corners to image too */
}

/* Page title for gallery */
.page-content h1 {
    margin-bottom: 30px;
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Adjust this value as needed based on your header's height */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

.header .home-link img {
    display: block;
    max-width: 100px;
    height: auto;
}

.header .logo-title {
    display: flex;
    align-items: center;
}

.header .logo-title .logo {
    max-width: 74px;
    height: auto;
    margin-right: 15px;
}

.header .logo-title .title-image {
    max-width: 300px;
    height: auto;
}

/* Guestbook Form Container */
.guestbook-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.guestbook-form-container h1 {
    text-align: center;
    color: #000;
    margin-bottom: 25px;
}

.guestbook-form-container p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group label span {
    color: #990000; /* Color for required indicator */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #990000;
    outline: none;
    box-shadow: 0 0 5px rgba(153, 0, 0, 0.3);
}

/* Checkbox specific styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Form button (reusing .button class) */
.guestbook-form button.button {
    width: auto; /* Let button size itself */
    padding: 12px 25px;
    font-size: 1.1rem;
    cursor: pointer;
    display: block; /* Make it a block element to center if needed */
    margin: 0 auto 15px auto; /* Center button */
}

.form-note {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

.view-guestbook {
    background-color: #555; /* Different color for 'view' button */
}

.view-guestbook:hover {
    background-color: #333;
}

/* Travel Info Section */
.travel-info {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.travel-info h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-grid div {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.info-grid h3 {
    color: #990000;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.info-grid p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
}

/* Route Guide Section */
.route-guide {
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.route-guide h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

/* Reusing .image-with-text for the map and directions */
.route-guide .image-with-text {
    align-items: center; /* Vertically center image and text */
    background-color: transparent; /* No extra background */
    box-shadow: none; /* No extra shadow */
    padding: 0;
    margin-top: 20px;
}

.route-guide .image-with-text img {
    max-width: 400px; /* Adjust size of map image */
    min-width: 250px;
    height: auto;
}

.route-guide .image-with-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* Stack info blocks on small screens */
    }

    .route-guide .image-with-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Contact Header Section */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-header img {
    max-width: 200px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 20px;
}

.contact-header .call-to-action-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #990000;
}

/* Inquiry Topics Section */
.inquiry-topics {
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.inquiry-topics h2 {
    text-align: center;
    color: #000;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.inquiry-topics p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.inquiry-topics ul {
    list-style-type: disc;
    margin-left: 30px;
    line-height: 1.8;
    color: #444;
}

.inquiry-topics ul li {
    margin-bottom: 8px;
}

/* Meythari Details Section */
.meythari-details {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.meythari-details h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.meythari-details ul {
    list-style-type: disc;
    margin-left: 25px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

/* Benefits Section */
.benefits-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.benefits-section h3 {
    text-align: center;
    color: #990000;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Combat Section General Styling */
.combat-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.combat-section h2 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

/* Individual Combat Item Styling */
.combat-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd; /* Separator for items */
}

.combat-item:last-child {
    border-bottom: none; /* No separator after the last item in a section */
}

.combat-item h3 {
    color: #990000;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center; /* Center item titles */
}

.combat-item p,
.combat-item ul {
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

/* Reuse .image-with-text for images within combat items */
.combat-item .image-with-text {
    align-items: center; /* Vertically align image and text */
    background-color: transparent; /* No extra background */
    box-shadow: none; /* No extra shadow */
    padding: 0;
    margin-top: 15px;
}

.combat-item .image-with-text img {
    max-width: 300px; /* Adjust as needed for images in these sections */
    flex-basis: auto; /* Allow content to dictate image width */
}

/* Ensure text in .image-with-text within .combat-item has enough space */
.combat-item .image-with-text div {
    flex: 1;
    min-width: 300px;
}

/* Intro text on the page */
.page-content .intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 20px auto 40px auto;
    color: #333;
}

/* Responsive adjustments for combat items */
@media (max-width: 768px) {
    .combat-item .image-with-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .combat-item .image-with-text img,
    .combat-item .image-with-text div {
        max-width: 100%;
        min-width: unset;
    }
}

/* Homepage Images Section */
#homepage-images {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.image-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.image-pair img {
    max-width: 100%; /* Ensure images don't overflow */
    width: 45%; /* Take up roughly half the container width */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#homepage-images p {
    font-size: 1.1rem;
    color: #444;
    margin-top: 20px;
}

/* Responsive adjustment for image pair */
@media (max-width: 768px) {
    .image-pair img {
        width: 90%; /* Stack images vertically on small screens */
    }
}
