/* Reset some default styles for consistency */
body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0; /* Changed from 4px to 0 to prevent unwanted margin on body */
}

/* --- Header Styles --- */
.header-div {
    position: relative;
    width: 100%; /* Ensure it takes full width */
    box-sizing: border-box; /* Include padding/border in element's total width/height */
}

.header {
    background-color: #f6efe600; /* Transparent background */
    height: 80px;
    /* border-top-left-radius: 20px; - This might not be visible with transparent background */
    margin-bottom: 0;
    display: flex;
    justify-content: space-between; /* Space out logo and nav */
    align-items: center;
    padding: 0 20px; /* Add some padding on sides */
    box-sizing: border-box;
    position: relative; /* Needed for absolute positioning of mobile menu */
}

.poldot-logo {
    height: 70px;
    padding-top: 10px;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 0;
}

.header-image-div {
    flex-shrink: 0; /* Prevent logo from shrinking */
    padding-left: 0; /* Removed fixed padding-left: 100px; as it breaks on small screens */
    display: flex;
    align-items: center;
}

.header-left-section {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between nav links */
    flex-grow: 1; /* Allow nav section to grow */
    justify-content: flex-end; /* Push links to the right */
}

.head-ops {
    color: #1c26db;
    font-weight: bold;
    cursor: pointer; /* Changed from hand to pointer */
    background-color: transparent;
    display: inline-block;
    padding: 10px 15px; /* Adjusted padding */
    font-size: 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth transitions */
}

.head-ops:hover {
    background-color: rgba(28, 38, 219, 0.1); /* Light background on hover */
    color: #0056b3; /* Darker blue on hover */
}

/* Mobile Menu Button - Initially hidden on desktop */
.mobile-menu-button {
    display: none; /* Hide by default on larger screens */
    background: none;
    border: none;
    font-size: 2rem;
    color: #1c26db;
    cursor: pointer;
    z-index: 100; /* Ensure it's above other content */
}

/* --- Slider Styles (from your inline styles) --- */
/* .slider-container, .slide, .slide img, .slide.active, .slide-text, .slide-text-div, .slide-headear, .slide-body, .slide-button, .nav-arrow, .nav-arrow.left, .nav-arrow.right
   These were defined in the <style> block of index.html.
   The responsive adjustments for them are now inside the media queries at the bottom of THIS CSS.
   It's generally better to have ALL slider-related CSS here.
*/

/* --- Center Content Section --- */
.center-content-div {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 30px; /* Space between flex items */
}

.center-content-div2 {
    flex: 1; /* Allows it to grow and shrink */
    padding-right: 20px;
    min-width: 300px; /* Minimum width before wrapping */
    box-sizing: border-box;
    display: flex; /* Changed to flex for vertical centering of its content */
    flex-direction: column;
    /* align-items: center; - Removed this from here, will use text-align on p tags */
    text-align: left; /* Default text alignment */
}

.center-content-div2 h1 {
    font-size: 2.5rem; /* Adjusted font size */
    margin-bottom: 20px;
    color: #1c26db; /* A distinct color for headings */
    text-align: center; /* Center the heading */
}

.center-content-div2 p {
    font-size: 1.15rem; /* Slightly larger font */
    margin-bottom: 15px;
    line-height: 1.7; /* Improved readability */
    /* margin-left: 20px; - Removed fixed margin-left */
    padding: 0 10px; /* Add slight padding */
}

.center-picture-div {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
    display: flex; /* Use flex to center the image if needed */
    justify-content: center;
    align-items: center;
}

.poldot-image1 {
    height: auto; /* Changed from fixed 700px to auto for responsiveness */
    max-width: 100%; /* Ensure it doesn't overflow */
    border-radius: 10px;
    object-fit: cover; /* Ensures image covers its area nicely */
}

/* --- Our Services Section --- */
#our-services-section {
    background-color: rgba(231, 225, 226, 0.255); /* Original background */
    transition: background-color 5s ease;
    padding: 50px 20px; /* Add overall padding */
    box-sizing: border-box;
}

.our-service {
    font-size: 2.5rem; /* Adjusted font size */
    font-weight: bold;
    margin-top: 20px; /* Adjusted margin */
    text-align: center; /* Center the heading */
    margin-bottom: 50px;
    color: #2c3e50;
}

.our-service-grid-container { /* New wrapper for grid layout */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid columns */
    gap: 30px; /* Space between grid items */
    max-width: 1200px;
    margin: 0 auto; /* Center the grid container */
    padding: 0 20px;
    box-sizing: border-box;
}

.our-service-content-div {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within each card */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden;
    padding-bottom: 20px; /* Padding inside the card */
    text-align: center; /* Center text within the card */
}

.content-picture {
    height: 200px;
    width: 100%; /* Ensure picture takes full width of its container */
    object-fit: cover; /* Cover the area, may crop if aspect ratio differs */
    margin-bottom: 15px; /* Space below image */
}

.topic-class {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 1.8rem; /* Adjusted font size */
    margin-bottom: 10px;
    color: #1c26db;
}

.our-service-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
    height: auto; /* Allow height to adjust to content */
    padding: 0 20px; /* Padding for text and button */
    box-sizing: border-box;
}

.p-3 {
    width: auto; /* Removed fixed width, allows full width of container */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.read-button {
    background-color: #F7941D;
    padding: 10px 20px; /* Adjusted padding */
    text-decoration: none;
    border-color: #1c26db; /* Assuming this is your brand blue */
    color: white;
    border-radius: 20px;
    margin-top: 10px; /* Space above button */
    display: inline-block; /* Allows padding and margin */
    transition: background-color 0.3s ease;
    align-self: center; /* Center the button within the flex container */
}

.read-button:hover {
    background-color: #1c26db;
    cursor: pointer;
}

/* Removed .read-more-button as it was a duplicate/unused class */

/* --- Why Choose Poldot Section --- */
.why-poldot {
    font-size: 2.5rem; /* Consistent heading size */
    text-align: center;
    margin: 70px 0 50px 0; /* Adjusted margins */
    color: #2c3e50;
}

.points {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Space items evenly */
    max-width: 1200px;
    margin: 0 auto 50px auto; /* Center with bottom margin */
    padding: 0 20px;
    box-sizing: border-box;
    gap: 30px; /* Space between point cards */
}

.title-div1,
.title-div {
    flex: 1; /* Allow flex items to grow and shrink */
    padding: 30px; /* Increased padding */
    margin-bottom: 0; /* Removed fixed margin-bottom as gap handles it */
    border: 1px solid #eee; /* Lighter border */
    border-radius: 10px;
    min-width: 300px; /* Minimum width before wrapping */
    box-sizing: border-box;
    background-color: #f9f9f9; /* Light background for cards */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    text-align: center; /* Center content within these divs */
}

.title {
    font-size: 1.6rem; /* Adjusted font size */
    margin-bottom: 15px; /* Space below title */
    color: #1c26db; /* Use brand blue for titles */
}

.title-body {
    font-size: 1rem; /* Adjusted font size */
    color: #555;
    line-height: 1.6;
}

/* Removed unused .topic-div and .topic-list styles as they were likely from a different page or context.
   If these are needed for a specific page, they should be in a separate CSS file for that page. */

/* --- Footer Section --- */
.bottom1 {
    background-color: #333;
    color: white;
    padding: 30px 20px; /* Adjusted padding */
    text-align: center;
    box-sizing: border-box;
    display: flex; /* Use flexbox for layout */
    flex-direction: row; /* Default to row on desktop */
    justify-content: space-around; /* Space out items */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between sections */
}

.policy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0; /* Removed fixed margin-bottom */
    box-sizing: border-box;
}

.policy-content {
    font-size: 1rem;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.policy-content:hover {
    color: #F7941D; /* Highlight on hover */
}

.icon-div {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0; /* Removed fixed margin-bottom */
    box-sizing: border-box;
}

.social-icon {
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

.bottom2 {
    background-color: #222; /* Slightly darker footer bottom */
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
    text-align: center; /* Center text within bottom2 */
}

.rotating-image {
    height: 50px;
    animation: rotate 5s linear infinite;
    flex-shrink: 0; /* Prevent shrinking */
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#details { /* Changed class to ID to match HTML */
    font-size: 0.95rem; /* Slightly smaller font */
    line-height: 1.8; /* Improved line spacing */
}

#details div {
    margin-bottom: 5px; /* Space between lines in details */
}
.phone {
    white-space: nowrap; /* Prevent phone number from breaking */
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    /* Header */
    .header {
        flex-direction: row; /* Keep logo and hamburger on one row */
        justify-content: space-between;
        align-items: center;
    }

    .header-left-section {
        display: none; /* Hide navigation links by default */
        flex-direction: column;
        position: absolute;
        top: 80px; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #f6efe6; /* Background for mobile menu */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
        z-index: 99;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Start off-screen */
        align-items: stretch; /* Stretch links to full width */
    }

    .header-left-section.mobile-menu-open {
        display: flex; /* Show when active */
        transform: translateY(0); /* Slide in */
    }

    .head-ops {
        width: 100%; /* Full width for mobile menu items */
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #eee; /* Separator for menu items */
    }

    .head-ops:last-child {
        border-bottom: none;
    }

    .mobile-menu-button {
        display: block; /* Show hamburger button */
    }

    /* Center Content */
    .center-content-div {
        flex-direction: column;
        text-align: center;
        padding: 0 15px; /* Adjusted padding */
    }

    .center-content-div2,
    .center-picture-div {
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Take full width */
        padding-right: 0; /* Remove right padding */
        margin-bottom: 20px; /* Space between stacked items */
    }
    .center-content-div2 h1 {
        font-size: 2rem;
    }
    .center-content-div2 p {
        font-size: 1rem;
        padding: 0; /* Remove horizontal padding */
        text-align: center; /* Center align text */
    }

    /* Our Services Grid */
    .our-service {
        font-size: 2rem;
        padding-left: 0; /* Remove fixed padding-left */
    }
    .our-service-grid-container {
        grid-template-columns: 1fr; /* Stack cards in a single column */
        padding: 0 15px; /* Adjusted padding */
    }
    .our-service-content-div {
        margin-left: 0; /* Remove fixed margin-left */
    }
    .topic-class {
        font-size: 1.5rem;
    }
    .p-3 {
        font-size: 0.95rem;
    }

    /* Why Choose Poldot */
    .why-poldot {
        font-size: 2rem;
    }
    .points {
        flex-direction: column;
        padding: 0 15px; /* Adjusted padding */
    }
    .title-div1, .title-div {
        min-width: unset; /* Remove min-width */
        width: 100%; /* Take full width */
        padding: 20px;
    }
    .title {
        font-size: 1.4rem;
    }
    .title-body {
        font-size: 0.95rem;
    }

    /* Footer */
    .bottom1, .bottom2 {
        flex-direction: column; /* Stack items vertically */
        padding: 20px 15px; /* Adjusted padding */
        gap: 15px; /* Smaller gap */
    }
    .policy, .icon-div {
        width: 100%; /* Full width for policies and icons */
        flex-direction: column; /* Stack policies and icons individually */
        gap: 10px; /* Smaller gap for stacked items */
    }
    .policy-content, #details div {
        font-size: 0.9rem; /* Smaller footer text */
    }
}

/* Even smaller screens (e.g., small phones) */
@media (max-width: 480px) {
    /* Header */
    .header {
        height: 70px; /* Slightly shorter header */
        padding: 0 10px;
    }
    .poldot-logo {
        height: 60px; /* Smaller logo */
    }
    .mobile-menu-button {
        font-size: 1.8rem;
    }

    /* Slider (already handled in inline <style> but moved here for consistency) */
    .slider-container {
        max-height: 250px;
        aspect-ratio: 1.5 / 1;
    }
    .slide-headear {
        font-size: 1.5rem;
    }
    .slide-body {
        font-size: 0.85rem;
        display: block; /* Ensure it's still visible unless explicitly hidden */
    }
    .slide-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .slide-text-div {
        padding: 10px;
    }
    .nav-arrow {
        font-size: 1rem;
        padding: 6px 10px;
    }

    /* Center Content */
    .center-content-div2 h1 {
        font-size: 1.6rem;
    }
    .center-content-div2 p {
        font-size: 0.9rem;
    }

    /* Our Services */
    .our-service {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .topic-class {
        font-size: 1.3rem;
    }
    .p-3 {
        font-size: 0.85rem;
    }
    .read-button {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    /* Why Choose Poldot */
    .why-poldot {
        font-size: 1.8rem;
    }
    .title {
        font-size: 1.2rem;
    }
    .title-body {
        font-size: 0.9rem;
    }

    /* Footer */
    .social-icon {
        height: 25px;
    }
    .policy-content, #details div {
        font-size: 0.8rem;
    }
}