/* General Reset & Body Styles */
body, h1, h2, h3, p, ul, li, form, input, textarea, button, select {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
ul {
    list-style: none;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e0ffe0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
}

/* Header Styles (Consistent with homepage) */
header {
    background-color: #fff;
    padding: 15px 20px; /* Adjusted padding to match other pages */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Adjusted shadow */
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-image {
    height: 60px; /* Consistent logo size */
    width: auto;
}
nav ul {
    display: flex;
    gap: 25px; /* Consistent gap */
}
nav li {
    position: relative; /* Needed for dropdown */
}
nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
}
nav a:hover, nav a.current {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* Dropdown styles for Partner Directory */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%; /* Position below the parent link */
    left: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee; /* Separator for items */
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
    text-decoration: none; /* Remove underline on hover for dropdown items */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Button Styles (Consistent with general btn classes) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary {
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}
.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}
.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-secondary:hover {
    background-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-small { /* Smaller button variant */
    padding: 8px 15px;
    font-size: 14px;
}

/* Page Specific Styles */
.page-hero {
    background-image: url('rishiri.jpg'); /* Set the background image */
    background-size: cover; /* This makes the image cover the entire section */
    background-position: center; /* This centers the image in the hero section */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.page-hero h1,
.page-hero p {
    color: white; /* Change text color to white for readability */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a text shadow for better contrast */
}

/* You may need to adjust the font sizes and other properties for better readability with the new background */
.page-hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    margin-bottom: 15px;
}
.page-hero p {
    font-size: 22px;
    max-width: 900px;
    margin: 0 auto;
}
.page-hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    margin-bottom: 15px;
    color: white;
}
.page-hero p {
    font-size: 22px;
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.content-section {
    background-color: #e6f2ff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    text-align: center;
}
.content-section h2 {
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
}
.content-section p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 20px auto;
}
.hero-image {
    width: 100%;
    max-height: 400px; /* You can adjust this value to your liking */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Updated Mission/Values Section Styling */
.mission-values-section {
    background-color: #e6f2ff; /* Light blue background */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}
.mission-values-section h2 {
    font-size: 32px; /* Slightly larger heading */
    font-weight: 700;
    color: #2c3e50; /* Dark blue from logo */
    margin-bottom: 40px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.value-item {
    background-color: #ffffff; /* White background for individual items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center; /* Align text and icon to the center */
}
.value-item i {
    color: #007bff; /* Sets the color for the icons */
    margin-bottom: 15px; /* Adds space between icon and heading */
}
.value-item h3 {
    font-size: 26px; /* Larger heading for value items */
    color: #007bff; /* Primary blue color */
    margin-bottom: 15px;
}
.value-item p {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Footer Styles (Consistent with homepage) */
footer {
    background-color: #1a2b47; /* Dark blue from ConnecTetsu logo */
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
    font-size: 15px;
}
footer .company-info {
    margin-bottom: 15px;
}
footer .legal-links a {
    color: #a0aec0; /* Lighter grey for links */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
footer .legal-links a:hover {
    color: white;
}
footer .company-info p {
    margin-bottom: 5px;
}

/* --- Notification System Styles --- */
.notification-container {
    position: relative; /* For absolute positioning of the panel */
    display: flex; /* To align items if needed within the li */
    align-items: center;
}

.notification-button {
    background: none;
    border: none;
    color: #555;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    padding: 5px;
    transition: color 0.3s ease;
}

.notification-button:hover {
    color: #007bff;
}

.notification-badge {
    position: absolute;
    top: 0px; /* Adjust as needed */
    right: 0px; /* Adjust as needed */
    background-color: #dc3545; /* Red for new notifications */
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    padding: 3px 6px;
    min-width: 20px; /* Ensure it's a circle even for single digit */
    text-align: center;
    transform: translate(50%, -50%); /* Adjust position relative to its size */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.notification-badge.hidden {
    display: none;
}

/* Notification Panel */
.notification-panel {
    position: absolute;
    top: 100%; /* Position below the button */
    right: 0; /* Align to the right of the button */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    width: 320px; /* Fixed width for the panel */
    max-height: 400px;
    overflow-y: auto;
    z-index: 200; /* Ensure it's above other content */
    padding: 15px;
    display: none; /* Hidden by default */
    transform-origin: top right; /* For potential animation */
    animation: fadeInScale 0.2s ease-out; /* Simple fade-in animation */
}

.notification-panel.hidden {
    display: none;
}
/* This ensures the panel displays when .hidden is removed */
.notification-panel:not(.hidden) {
    display: block;
}

.notification-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: left; /* Ensure heading is left-aligned */
}

.notification-list {
    margin-bottom: 15px;
}

.notification-item {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
    transition: background-color 0.2s ease;
    cursor: pointer;
    text-align: left; /* Ensure text is left-aligned */
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-text {
    margin-bottom: 5px;
}

.notification-timestamp {
    font-size: 12px;
    color: #888;
}

.notification-actions {
    display: flex;
    justify-content: flex-end; /* Align button to the right */
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Animation */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .logo-image {
        height: 40px; /* Smaller logo on mobile */
    }
    .page-hero {
        padding: 40px 15px;
    }
    .page-hero h1 {
        font-size: 38px;
    }
    .page-hero p {
        font-size: 18px;
    }
    .content-section, .mission-values-section {
        padding: 30px 15px;
    }
    .content-section h2, .mission-values-section h2 {
        font-size: 28px;
    }
    .content-section p {
        font-size: 16px;
    }
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .value-item h3 {
        font-size: 22px;
    }
    .value-item p {
        font-size: 16px;
    }
    /* Notification Panel responsive adjustments */
    .notification-panel {
        width: 280px; /* Slightly smaller width on mobile */
        right: 10px; /* Adjust right position for mobile */
        left: auto; /* Ensure it doesn't try to center or go too far left */
    }
}
/* Ensure strong tags are always bold */
strong {
    font-weight: 700;
}