/* --- Basic Reset & Defaults --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #003d80;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent bottom space */
}

h1, h2, h3 {
    margin-bottom: 0.8em;
    color: #1a2533;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }

section {
    padding: 40px 0;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a2533;
}

.logo {
    height: 40px; /* Adjust as needed */
    width: auto;
    margin-right: 10px;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
}

.main-nav ul {
   list-style: none;
    display: flex;
    gap: 5px; /* Space between menu items */
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-nav li {
    margin-left: 0; /* Remove previous margin */
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0056b3;
    background: rgba(0, 86, 179, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.15);
}

.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #333;
}
.main-nav li:last-child a {
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    color: white;
    font-weight: 600;
}

.main-nav li:last-child a:hover {
    background: linear-gradient(135deg, #003d80 0%, #002244 100%);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}
/* Underline animation */
.main-nav a:not(.active):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    background-color: #0056b3;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 60%;
}




/* --- Main Content Specific Styles --- */
.page-padding {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Homepage Hero */
.hero {
    background-color: #e9ecef; /* Light background */
    padding: 60px 0 0 0; /* Less padding bottom as image is part of it*/
    text-align: center;
    overflow: hidden; /* Contain the image */
}

.hero h2 {
    color: #1a2533;
    font-size: 2.5em;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}
/* Homepage Hero Section with Background */
.hero.hero-background {
    position: relative; /* Needed for overlay positioning */
    background-image: url('../images/pcb-banner.jpg'); /* Placeholder background image */
    background-size: cover; /* Cover the entire section */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat;
    padding: 100px 0; /* Increase padding for vertical space */
    text-align: center;
    color: #ffffff; /* White text for contrast */
    overflow: hidden; /* Contain pseudo-elements */
}

/* Add a semi-transparent overlay for better text readability */
.hero.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: 1; /* Place overlay below content */
}

/* Ensure hero content is above the overlay */
.hero-content {
    position: relative; /* Position relative to the hero section */
    z-index: 2; /* Place content above overlay */
    max-width: 800px; /* Limit content width for readability */
    margin-left: auto;
    margin-right: auto;
}

.hero-content h2 {
    color: #ffffff; /* Ensure heading is white */
    font-size: 2.8em; /* Make title prominent */
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* Subtle text shadow */
}

.hero-content p {
    font-size: 1.3em; /* Larger paragraph text */
    margin-bottom: 35px;
     text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Adjust CTA button for contrast on dark background */
.hero-content .cta-button {
    background-color: #007bff; /* Keep blue or change if needed */
    color: #ffffff;
    padding: 15px 30px; /* Slightly larger button */
    font-size: 1.1em;
}

.hero-content .cta-button:hover {
    background-color: #0056b3;
    color: #ffffff;
}


.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
}

/* Homepage Features */
.features {
    background-color: #ffffff;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item img {
    margin: 0 auto 15px auto;
    height: 60px;
    width: auto;
}

/* Intro Services Section */
.intro-services {
    background-color: #f1f5f9;
}

/* Services Page */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-item img {
    margin-bottom: 15px;
    border-radius: 5px;
}

.cta-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #e9ecef;
    text-align: center;
    border-radius: 8px;
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Keep image corners rounded */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the area */
}

.gallery-item p {
    text-align: center;
    padding: 10px;
    font-weight: 500;
    background-color: #f8f9fa;
    margin: 0;
}

/* Knowledge Base Page */
.kb-container {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    min-height: 100px; /* To show loading message */
}

#kb-file-list {
    list-style: none;
    padding-left: 0;
}

#kb-file-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

#kb-file-list li:last-child {
    border-bottom: none;
}

#kb-file-list a {
    font-weight: 500;
}

#kb-file-list a::before {
    content: "📄 "; /* Simple file icon */
    margin-right: 8px;
}

#kb-file-list a[href$=".pdf"]::before { content: "🧾 "; } /* PDF Icon */
#kb-file-list a[href$=".docx"]::before,
#kb-file-list a[href$=".doc"]::before { content: "📝 "; } /* Word Doc Icon */
#kb-file-list a[href$=".xlsx"]::before,
#kb-file-list a[href$=".xls"]::before { content: "📊 "; } /* Excel Icon */
#kb-file-list a[href$=".zip"]::before { content: "📦 "; } /* Zip Icon */


/* --- Footer --- */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap; /* Allow wrapping for toggle button */
        position: relative; /* For positioning the menu */
    }

    .main-nav {
        width: 100%;
        order: 3; /* Place nav below logo/toggle */
    }

    .main-nav ul {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        width: 100%;
        background-color: #f8f9fa;
        position: absolute;
        top: calc(100% + 10px); /* Position below header */
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
		border-radius: 10px;
		gap: 0;
        
    }

    .main-nav ul.active {
        display: flex; /* Show nav links when active */
    }

    .main-nav li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
     .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: none; /* Remove underline effect */
    }
    .main-nav a:hover,
    .main-nav a.active {
        background-color: #e9ecef;
        color: #0056b3;
         border-bottom: none;
    }


    .menu-toggle {
        display: block; /* Show toggle button */
        position: absolute; /* Position it relative to header container */
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }

    .hero h2 { font-size: 2em; }
    .hero p { font-size: 1em; }

    .feature-grid, .service-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Stack items on mobile */
    }
}
/* --- About Page Specific Styles --- */

/* About Page Hero */
.page-hero {
    background-color: #e2e8f0; /* Lighter blue-grey */
    color: #1a2533;
    padding: 40px 0;
    text-align: center;
}
.page-hero h2 {
    margin-bottom: 10px;
}
.page-hero p {
    font-size: 1.1em;
    color: #4a5568; /* Slightly darker grey */
}

/* General Section Styling for About Page */
.about-section {
    padding: 50px 0;
    border-bottom: 1px solid #e0e0e0; /* Separator line */
}
.about-section:last-of-type {
    border-bottom: none;
}

/* Two Column Layout */
.two-column {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center; /* Vertically align items */
    gap: 40px; /* Space between columns */
}

.column-text,
.column-image {
    flex: 1; /* Each column tries to take equal space */
    min-width: 300px; /* Minimum width before wrapping */
}

.column-image img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Reverse column order option */
.two-column.reverse-columns {
    flex-direction: row-reverse;
}

/* Mission & Vision Section Specific Background */
.mission-vision-section {
    background-color: #f8f9fa; /* Light grey background */
}
.mission-vision-section h3 {
    margin-top: 0; /* Adjust margin if needed */
}
.mission-vision-section p {
    margin-bottom: 15px;
}
.mission-vision-section strong {
    color: #0056b3; /* Highlight mission/vision labels */
}


/* Values Section */
.values-section {
     background-color: #ffffff; /* White background for contrast */
}

.text-center {
    text-align: center;
    margin-bottom: 30px; /* Space below centered headings */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive grid */
    gap: 30px;
    text-align: center;
}

.value-item {
    padding: 20px;
    border: 1px solid #e9ecef; /* Light border */
    border-radius: 8px;
    background-color: #f8f9fa; /* Slight background tint */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.value-icon {
    width: 80px; /* Smaller icon size */
    height: 80px;
    border-radius: 50%; /* Circular icons */
    margin: 0 auto 15px auto;
    display: flex; /* Needed if using text inside placeholder */
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.value-item h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #0056b3;
}

.value-item p {
    font-size: 0.95em;
    color: #555;
}

/* Optional Team Section Styling */
.team-section {
    background-color: #e9ecef; /* Light background for team */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member img {
    border-radius: 50%; /* Circular images */
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-member h4 {
    margin-bottom: 5px;
    font-size: 1.1em;
}


.team-member p {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
}


/* --- Responsive Adjustments for About Page --- */
@media (max-width: 768px) {
    .two-column {
        flex-direction: column; /* Stack columns */
        gap: 30px; /* Adjust gap for stacked layout */
    }
    /* Ensure image doesn't always come first when stacked */
     .two-column.reverse-columns {
        flex-direction: column; /* Keep stacking */
    }

    .column-text, .column-image {
        min-width: unset; /* Remove min-width */
        width: 100%;
    }

    .page-hero {
        padding: 30px 0;
    }
     .page-hero h2 {
        font-size: 1.8em;
    }
     .page-hero p {
        font-size: 1em;
    }

    .about-section {
        padding: 40px 0;
    }

    .values-grid {
       grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust grid for smaller screens */
       gap: 20px;
    }
    .value-item {
        padding: 15px;
    }

     .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
     .team-member img {
        width: 120px;
        height: 120px;
    }
	.cta-section .cta-button {
			margin-bottom: 15px; /* Adds space below each button */
			display: block; /* Makes buttons stack vertically */
			width: 100%; /* Makes buttons full width */
	}
		
	.cta-section .cta-button:last-child {
			margin-bottom: 0; /* Removes bottom margin from last button */
	}
	
	.floating-contact-icons {
        right: 20px;
        bottom: 20px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-icon img {
        width: 25px;
        height: 25px;
    }
    
    .floating-icon::after {
        font-size: 12px;
        right: 60px;
        padding: 6px 12px;
    }
	
	
	
	
}
/* --- New Knowledge Base Item Styling --- */

/* Adjust base list styling */
#kb-file-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Remove default padding */
}

#kb-file-list li {
    padding: 0; /* Remove padding from li */
    border-bottom: none; /* Remove border from li */
    margin-bottom: 15px; /* Add space below each box */
}
#kb-file-list li:last-child {
     margin-bottom: 0; /* No space after the last item */
}

/* Styling for the box around each item */
.kb-item-box {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically align icon and text */
    gap: 15px; /* Space between icon and text */
    padding: 15px;
    border: 1px solid #e0e0e0; /* Border like existing containers */
    border-radius: 8px; /* Rounded corners */
    background-color: #ffffff; /* White background */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow */
    transition: box-shadow 0.2s ease-in-out;
}
.kb-item-box:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); /* Slightly enhance shadow on hover */
}

/* General Icon Styling */
.kb-icon {
     flex-shrink: 0; /* Prevent icon from shrinking */
    font-size: 1.8em; /* Slightly smaller icons */
    width: 50px; /* Fixed width for alignment */
    height: 50px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9; /* Light background for icons */
    border-radius: 8px; /* Rounded corners */
    color: #555; /* Default icon color */
}

/* Specific Icon Content (using Unicode characters as example) */
/* Consider using a proper icon font like Font Awesome or SVGs for better icons */
.kb-icon.icon-pdf::before { content: "📄"; color: #d93025; } /* Reddish for PDF */
.kb-icon.icon-html::before { content: "🌐"; color: #e34f26; font-size: 1.2em; } /* Orange for HTML */
.kb-icon.icon-doc::before { content: "📝"; color: #2b579a; } /* Blue for Word */
.kb-icon.icon-xls::before { content: "📊"; color: #1d6f42; } /* Green for Excel */
.kb-icon.icon-zip::before { content: "📦"; color: #b7950b; } /* Yellowish for Zip */
.kb-icon.icon-img::before { content: "🖼️"; color: #4caf50; } /* Green for Images */
.kb-icon.icon-default::before { content: "📁"; } /* Default file icon */

/* Text container */
.kb-text-wrapper {
    flex-grow: 1; /* Allow text to take remaining space */
    margin-left: 15px; /* Consistent gap between icon and text */
}

/* Title Link Styling */
.kb-title-link {
    font-weight: 600;
    font-size: 1.1em;
    color: #0056b3;
    text-decoration: none;
    display: block;
    margin-bottom: 5px; /* Slightly more space between title and filename */
    line-height: 1.3; /* Better line spacing */
}
.kb-title-link:hover {
    text-decoration: underline;
    color: #003d80;
}

/* Filename Styling */
.kb-filename {
    font-size: 0.9em;
    color: #666;
    margin: 0; /* Reset margin */
    word-break: break-all; /* Prevent long filenames from overflowing */
}

/* Remove old icon styling if it exists */
#kb-file-list a::before {
    content: none !important; /* Disable old pseudo-element icons */
}

/* Floating Contact Icons */
.floating-contact-icons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.whatsapp-float {
    background-color: #25D366;
}

.email-float {
    background-color: #EA4335;
}

.floating-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.floating-icon:hover img {
    transform: scale(1.1);
}

/* Tooltip text */
.floating-icon::after {
    content: attr(aria-label);
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-icon:hover::after {
    opacity: 1;
}