/* General Reset */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
}

/* Sticky Social Media Bar */
.social-media-bar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1001; /* Ensure social media bar is always on top */
    padding-left: 10px; /* Increase padding from the edge */
}

.social-media-bar a {
    margin: 15px 0; /* Increased margin for better spacing */
    transition: transform 0.3s ease;
}

.social-media-bar a:hover {
    transform: scale(1.1);
}

/* Header */
header {
    background-color: #9DC209;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 100px; /* Keep the current height */
    padding: 0; /* Remove any padding to make it flush */
    margin: 0; /* Remove any margin for better alignment */
}

/* Navbar */
.navbar ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-family: 'Cabin Condensed', sans-serif;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #DC381F;
}

/* Active Page Link */
.navbar ul li a.active {
    color: #DC381F; /* Red color for active link */
    font-style: italic; /* Italic style for active link */
}

/* CTA Button in Navbar */
.cta-button {
    background-color: #DC381F;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ba2e1b;
}

/* Hamburger Menu Icon for Better Control */
.hamburger {
    display: none;  /* Display it only for mobile, usually in media queries */
    font-size: 30px;
    cursor: pointer;
    position: fixed; /* Fixed position for consistency across scroll */
    top: 20px; /* Adjust this for vertical alignment */
    right: 20px; /* Decrease the value to move it left as needed */
    z-index: 3001; /* Make sure it's above other elements */
}


/* General Container for Consistent Alignment */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header */
header {
    background-color: #9DC209;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px; /* Set a fixed height for the header */
}

/* General Container for Consistent Alignment */
.header-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure it uses the full height of the header */
}

/* Banner Section */
.banner-section {
    background-color: #9DC209;
    color: white;
    padding: 5px 20px; /* Adjusted padding for consistency */
    margin-top: 80px; /* Offset the header height to avoid overlapping */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px; /* Adjust the height to ensure balanced space */
    font-family: 'Nunito', sans-serif;
}

.banner-section .container h1 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
    font-family: 'Nunito', sans-serif;
}

.banner-section .container h1 .bigger {
    font-size: 2.5em;
    color: #FFFFFF;
}

.banner-section .container h1 .red {
    font-size: 2.5em;
    color: #DC381F;
}

.banner-section .container p {
    font-size: 1.0em;
    font-style: italic;
    color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
    margin-top: 5px; /* Reduced to balance spacing */
}

/* Image Brochure Section */
.image-brochure-section {
    background-color: #f9f9f9; /* Light background to differentiate the section */
    padding: 60px 20px 40px; /* Add padding for spacing */
}

.index-image {
    display: grid;
    grid-template-rows: auto auto; /* Two rows: 1 for image, 1 for text */
    text-align: center; /* Center all content */
    border-radius: 15px; /* Rounds the corners of the grid container */
    overflow: hidden; /* Ensures the rounded corners apply to contents as well */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow for depth */
}

.index-image .brochure-image {
    width: 100%; /* Ensures the image scales within the container */
    max-width: 1200px; /* Limits the width to fit the container */
    height: auto; /* Maintains image aspect ratio */
    border-radius: 15px; /* Remove any extra radius on the image */
}

.index-image .brochure-text {
    font-size: 2.0em;
    color: #DC381F; /* Matches the red used elsewhere in the design */
    margin-top: 20px; /* Space between image and text */
    font-weight: bold; /* Adds emphasis to the text */
    font-family: 'Nunito', sans-serif;
    padding: 10px 20px; /* Adds padding inside the text area */
    background-color: #fff; /* White background for text row */
}

/* Introduction Section */
.introduction-section {
    background-color: #fff;
    padding: 40px 20px 40px; /* Added extra padding left and right */
    font-family: 'Nunito', sans-serif
}

.introduction-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.introduction-section p {
    text-align: left;
}

/* Services Overview Section */
.services-overview {
    background-color: #f4f4f4;
    padding: 60px 40px; /* Added extra padding left and right */
    font-family: 'Nunito', sans-serif
}

.services-overview h2 {
    text-align: center;
    margin-bottom: 20px;
}

.services-overview p {
    text-align: left;
}

.services-overview .cta-button {
    background-color: #DC381F;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.services-overview .cta-button:hover {
    background-color: #ba2e1b;
}

/* Image Gallery Section */
.image-gallery {
    background-color: #fff;
    padding: 60px 40px;
}

.image-gallery h2 {
    text-align: center;
    margin-bottom: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f4f4f4;
    padding: 60px 40px; /* Keep existing padding */
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.testimonials-section blockquote {
    font-style: italic;
    color: #333;
    padding: 20px;
    border-left: 5px solid #DC381F;
    margin: 20px 0;
}

.testimonials-section .testimonial-text {
    text-align: left; /* Align testimonial text to the left */
    font-style: italic;
}

.testimonials-section .testimonial-author {
    color: #DC381F;
    font-style: italic;
    font-weight: bold;
    text-align: right; /* Align author to the center */
    display: block;
    margin-top: 10px;
    background-color: #f4f4f4;; /* Keep existing white background */
    padding: 10px;
}

/* Mission & Vision Page - Banner Section */
.hero-section {
    background-color: #9DC209;
    color: white;
    padding: 5px 20px; /* Match padding from index.php */
    margin-top: 80px; /* Account for fixed header height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px; /* Adjust the height to ensure balanced space */
}

.hero-section h1 {
    font-weight: bold;
    font-size: 2.5em; /* Match the size used in index.php */
    color: #FFFFFF;
}

.hero-section p {
    font-size: 1.0em;
    font-style: italic;
    color: #FFFFFF;
    font-family: 'Georgia', serif;
    margin-top: 5px; /* Reduced for balanced spacing */
}

/* Mission & Vision Content Section */
.content-section {
    max-width: 1200px; /* Match container width with index.php */
    margin: 0 auto; /* Center container */
    padding: 40px 20px; /* Match padding with index.php */
    text-align: left; /* Ensure text is left-aligned */
}

.content-section h2 {
    text-align: center; /* Center-align headings for consistency */
    margin-bottom: 20px;
}

.content-section h3 {
    text-align: center; /* Center-align headings for consistency */
    margin-top: 40px; /* Add some spacing above each section */
    margin-bottom: 20px;
}

.content-section p {
    text-align: left; /* Left-align paragraphs */
    margin-bottom: 20px; /* Add spacing between paragraphs */
}

.content-section ul {
    list-style-type: disc; /* Maintain bullet points */
    padding-left: 40px; /* Proper indentation for bullet points */
    text-align: left;
    margin-bottom: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    text-align: left;
}
/* Tailored Solutions Cards Section Styling */
.cards-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x3 Grid Layout */
    gap: 20px;
    margin-top: 75px;
    margin-bottom: 150px; 
    justify-items: center;
    background-color: #f4f4f4;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left; /* Set default text alignment to left */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    max-width: 300px; /* Control max width to keep consistent sizing */
    display: flex;
    flex-direction: column;
    font-family: 'Cabin', sans-serif;
    align-items: center; /* Center the icon and heading */
}

.card:hover {
    transform: translateY(-10px); /* Card animation on hover */
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px; /* Space below icon */
}

.card h3 {
    text-align: center; /* Center the heading */
    margin-bottom: 10px;
}

.card p {
    text-align: left; /* Left-align the paragraph text */
    margin: 0;
}

/* Full Card Details Popup Styling */
.card-details-section {
    display: none; /* Initially hidden */
    background-color: #f4f4f4;
    padding: 40px 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    z-index: 2000; /* Place above all elements */
    overflow-y: auto; /* Add scroll if content overflows */
    max-height: 90vh; /* Prevent the details section from exceeding viewport height */
}

.card-details {
    display: none;
    text-align: left; /* Default text alignment is left */
    font-family: 'Cabin Condensed', sans-serif;
}

.card-details.show {
    display: block;
}

.card-details h2 {
    text-align: center; /* Center the heading in details */
    margin-bottom: 15px;
}

.card-details p {
    text-align: left; /* Left-align the text in details */
    margin-bottom: 15px;
}

.card-details ul, .card-details ol {
    text-align: left; /* Left-align lists */
    margin-left: 20px; /* Indent lists */
}

.card-details-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px; /* Space below icon */
}

.close-button {
    background-color: #DC381F;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.close-button:hover {
    background-color: #ba2e1b;
}
/* Card Details Section Gallery */
.gallery-container {
    border-radius: 15px;
    overflow: hidden;
    max-width: 600px; /* Adjust this value as needed */
    margin: 0 auto; /* Centers the gallery if it's narrower than its parent */
}

.gallery-container img {
    width: 100%;
    height: 400px; /* Fixed height, adjust as needed */
    object-fit: cover; /* This ensures the image covers the area without distortion */
    display: block;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.gallery-controls button {
    background-color: #333;  /* Dark button color for contrast */
    color: #fff;             /* White text for the buttons */
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;      /* Slight rounding for buttons for accessibility */
}

.gallery-controls button:hover {
    background-color: #555;  /* Lighter shade on hover */
}

.gallery-controls span {
    font-size: 1rem;         /* Suitable font size for easy readability */
}

/* Three-Column List Styling */
.three-column-list {
    column-count: 3;
    column-gap: 20px;
    list-style: disc;
    padding-left: 20px; /* Proper indentation */
    margin-bottom: 20px;
    text-align: left; /* Align bullets properly */
}

.three-column-list li {
    margin-bottom: 10px;
}

/* Placements Section Styling */
.placements-section {
    padding: 10px 20px; /* Adjust padding as needed */
    background-color: #f4f4f4; /* Adjust background color to match the design */
}

/* Placements Card Grid - Specific to 2x1 Grid Layout */
.placements-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Fixed 2-column layout for desktop */
    gap: 20px;
    justify-items: center;
    margin-top: 75px;
    margin-bottom: 150px;
}
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px; /* Space below icon */
}

/* Our Team Card Grid Styling */
.team-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always show a 3-column grid */
    max-width: 1000;
    gap: 20px;
    margin-top: 120px;
    margin-bottom: 150px;
    justify-items: center;
    background-color: #f4f4f4;
}

.team-card-grid .card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 300px; /* Uniform card size */
}

.team-card-grid .card:hover {
    transform: translateY(-10px);
}

.team-card-grid .card img {
    width: 150px; /* Fixed width for consistency */
    max-height: auto; /* Limit the maximum height to maintain balance */
    border-radius: 10px; /* Rounded corners for a softer look */
    object-fit: cover; /* Ensure the image fills the space neatly */
    margin-bottom: 15px;
}

.team-card-icon {
    width: 150px;
    height: auto;
    margin-bottom: 15px; /* Space below icon */
}

.team-card-grid .card .email-link {
    display: inline-block;
    margin-top: 10px;
    color: #DC381F;
    text-decoration: none;
    font-weight: bold;
}

.team-card-grid .card .email-link:hover {
    text-decoration: underline;
}

.contact-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.contact-cta-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #DC381F;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
 }

.contact-cta-button:hover {
    background-color: #ba2e1b;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.office-locations .location {
    margin-bottom: 40px;
    text-align: center;
}

.map-section {
    margin-top: 40px;
}

.map-iframe {
    border: 0;
    width: 600px;
    height: 450px;
}

.map-container {
    margin-bottom: 40px;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #9DC209;
    padding: 20px;
    color: white;
    text-align: center;
}

.footer-content a {
    color: white;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #DC381F;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    /* Hamburger Menu Visibility for Mobile */
    .hamburger {
        display: block; /* Show hamburger icon on mobile */
    }

    /* Navbar Styles for Mobile */
    .navbar {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #9DC209;
        position: absolute;
        top: 80px; /* Adjust depending on header height */
        left: 0;
        z-index: 3000; /* Ensure the navbar appears above all other elements */
    }

    .navbar.active {
        display: flex; /* Show navbar when hamburger icon is clicked */
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* Single Column Layout for Mobile */
    .placements-card-grid, .team-card-grid, .card-grid, .grid-container {
        grid-template-columns: 1fr; /* Stack all items in one column for mobile */
    }

    /* Header Adjustments for Mobile */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    /* Footer Adjustments for Mobile */
    .footer-content {
        padding: 15px;
        font-size: 14px;
        font-family: 'Oxygen', sans-serif;
    }
}

/* Responsive Footer Adjustments */
.footer-content {
    padding: 15px;
    font-size: 14px;
    font-family: 'Oxygen', sans-serif;
}
