/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Reverted to light grey */
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header and Navigation */
header {
    background-color: #2cca49;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Ensure navbar stays on top */
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}


.navbar-brand {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    color: #04581b; /* Dark Green */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-brand img {
    width: 100%;
}

.navbar-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    display: none;
}

.navbar:hover .navbar-links {
    display: flex;
}

@media (min-width: 400px) {
    .navbar-links {
        display: flex;
    }
}

@media (max-width: 400px) {

    .navbar-brand::after {
        right: 0;
        top: 0;
        content: "Menu";
        padding: 6px;
        border: 1px solid yellow;
        font-size: 1rem;
        margin: 10px;
        display: block;
        text-shadow: none;

    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
    }
}

.navbar-links li {
    margin: 1px;
    min-width: 12em;
    text-align: center;
    padding: 3px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar-links li:hover,
.navbar-links li.active {
    background-color: #04581b;
    /* Dark green background on hover/active */
    color: #ddd;
    /* Fainter text color on hover/active */
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #cde7d2; /* Matching main content green */
    min-width: 260px; /* Adjust as needed */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001; /* Ensure it's above other content */
    border-radius: 4px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black; /* Override default white link color */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left; /* Align text to the left */
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #b2d8b5; /* A darker green for hover */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content Area */
main {
    width: 90%;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    background-color: #cde7d2; /* An even darker light green */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #e9ecef;
    margin-bottom: 30px;
    border-radius: 5px;
}

.hero h1 {
    margin-bottom: 20px;
    color: #0056b3;
}

/* Call-to-Action Button Styles */
.cta-button {
    display: inline-block;
    padding: 10px 18px;
    margin-top: 15px;
    background-color: #007bff; /* Default background color */
    color: white !important; /* Ensure text is always readable on colored backgrounds */
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Add transform to transition */
    border: none;
    cursor: pointer;
    font-size: 16px;
}

    /* A nice green color */
}

.cta-button.cta-green:hover {
    background-color: #218838;
    /* A darker green for hover */
}

.cta-button.cta-blue {
    background-color: #007bff;
    /* A nice blue color */
}

.cta-button.cta-blue:hover {
    background-color: #0056b3;
    /* A darker blue for hover */
}

.intro {
    padding: 20px;
    text-align: center;
}

/* Generic Page Title Section */
.page-title-section {
    text-align: center;
    padding: 5px 0;
    /* Further reduced top/bottom padding */
    margin-bottom: 8px;
    /* Further reduced space below title section (rounded 7.5px) */
    border-bottom: 2px solid #eee;
}

.page-title-section h1 {
    color: #333;
    /* Or your primary heading color */
}

/* Resources Page Specifics */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive columns for videos */
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.resource-item {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.resource-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.resource-item h3 {
    margin-top: 0;
    color: #0056b3;
}

.resource-list {
    list-style-type: none;
    padding-left: 0;
}

.resource-list .resource-item {
    /* For audio items in a list */
    margin-bottom: 15px;
}

/* Testimonials Page Specifics */
.testimonial-list {
    margin-top: 20px;
}

.testimonial-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #007bff;
    /* Accent color border */
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}

.testimonial-item blockquote {
    margin: 0;
    font-style: italic;
}

.testimonial-item footer {
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

/* Contact Page Specifics */
.contact-details-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* Space between contact info and social media */
}

.contact-info {
    flex: 2;
    /* Takes more space */
    min-width: 300px;
}

.contact-info h2 {
    margin-top: 0;
    color: #0056b3;
}

.social-media-links {
    flex: 1;
    min-width: 250px;
}

.social-icon {
    display: inline-block;
    /* Or block if you want them on new lines */
    margin-right: 15px;
    margin-bottom: 10px;
    /* Spacing if they wrap */
    font-size: 1.2em;
    color: #007bff;
    text-decoration: none;
}

.social-icon i {
    /* Style for Font Awesome icons */
    margin-right: 8px;
}

/* About Page Cards */
.about-cards-container,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 20px;
    /* Space between cards */
}

.about-card-item,
.service-item {
    background-color: #007bff; /* Default to blue */
    color: white; /* Default text to white */
    padding: 10px 20px; /* Reduced top/bottom padding */
    border: 1px solid #eee;
    border-radius: 25px; /* Increased for a "strip" look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Or left, as you prefer */
    /* Adding flexbox to ensure content aligns well and cards feel uniform */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Reduce margin on card titles to make cards more compact */
.about-card-item h3,
.service-item h3 {
    margin-top: 0;
    margin-bottom: 10px; /* Reduced from browser default */
}

/* Remove bottom margin from paragraph to make cards more compact */
.about-card-item p,
.service-item p {
    margin-bottom: 0;
}

/* Style for linked card titles to make them look clean */
.about-card-item h3 a,
.service-item h3 a {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Makes the link color the same as the parent text color */
    /* Add a border to make titles stand out */
    border: 3px solid #555; /* A dark grey, softer than pure black */
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block; /* Ensures padding and border are applied correctly */
}

/* Card Color Utility Classes */
.card-yellow {
    background-color: #ffc107;
    /* Amber */
    color: white;
}

.card-blue {
    background-color: #007bff; /* A nice blue color */
    color: white;
}

.card-green {
    background-color: #28a745;
    /* Success Green */
    color: white;
}

.card-brown {
    background-color: #ae7a68;
    /* Brown */
    color: white;
}

.card-red {
    background-color: #dc3545;
    /* Danger Red */
    color: white;
}

/* Ensure links within colored cards (that are not buttons) are appropriately colored */
.card-yellow a:not(.cta-button),
.card-green a:not(.cta-button),
.card-brown a:not(.cta-button),
.card-red a:not(.cta-button),
.card-blue a:not(.cta-button) {
    color: white;
}

/* Folder Tabs */
.folder-tab {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.folder-tab:hover {
    background-color: #e0e0e0;
}

.folder-tab.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* FAQs Page Specifics */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 30px;
}

.readonly-content {
    color: black;
}

.page-title-section h1 {
    text-transform: capitalize;
}

a.nav-item {
    text-transform: capitalize;
}

/* Admin Button Styling */
.admin-button-container {
    display: flex;
    /* Arrange buttons in a row */
    gap: 10px;
    /* Space between buttons */
    margin-bottom: 15px;
    /* Space below the button container */
    justify-content: center;
    /* Center the buttons */
}

.admin-button {
    background-color: #28a745;
    /* A nice, deep green for save/confirm actions */
    color: white;
    /* White text */
    padding: 12px 20px;
    /* A bit more padding */
    border: none;
    /* No border */
    border-radius: 5px;
    /* Rounded corners */
    cursor: pointer;
    /* Pointer cursor on hover */
    font-size: 16px;
    /* Match CTA button font size */
    font-weight: bold;
    /* Make text bold */
    transition: background-color 0.3s ease;
    /* Smooth transition for hover effect */
}

.admin-button:hover {
    background-color: #218838;
    /* A darker green for hover */
}

/* Ensure all links have a pointer cursor to indicate they are clickable */
a[href] {
    cursor: pointer;
}

/* Table Styles (including Our Team page) */
.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    /* Add some space above the table */
}

.team-table th,
.team-table td {
    border: 1px solid #ddd;
    /* A lighter, more modern border */
    padding: 12px;
    text-align: left;
    vertical-align: top !important;
    /* This will override any inline styles from the editor */
}

.team-table img {
    /* This makes the image responsive within its cell */
    max-width: 100%;
    height: auto;
    display: block;
    /* Removes extra space below the image */
}

/* Column widths for the team table */
.team-table col:nth-of-type(1) {
    width: 7%;
}

.team-table col:nth-of-type(2) {
    width: 15%;
}

.team-table col:nth-of-type(3) {
    width: 78%;
}

/* Small admin buttons for lists (e.g., federation members) */
.admin-button-small {
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 8px;
    background-color: #007bff; /* A neutral blue for edit */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-button-small.delete {
    background-color: #dc3545; /* Red for delete */
}

.admin-button-small:hover {
    opacity: 0.85;
}