/* Custom overrides and enhancements for the Chamber of Agribusiness Ghana website */

/*
 * This stylesheet contains additional rules to unify the look and feel across
 * all pages. It normalises typography, enhances the appearance of lists
 * and ensures consistent spacing and colours throughout the site.
 */

/* Base typography */
body {
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Headings */
.section-heading {
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d2d2d;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d2d2d;
}

/* Paragraphs */
p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

/* Buttons */
.button {
    background-color: #4CAF50;
    border: none;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #388E3C;
    color: #fff;
}

/* Icon lists */
ul.icon-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

/* Icon list styles */
ul.icon-list li {
    list-style: none;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

ul.icon-list li i {
    /* Remove default icon styling; icons will now be applied via pseudo-elements */
    margin-right: 8px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/*
 * Apply a consistent Font Awesome check icon to every list item in our
 * custom icon lists. Using a pseudo-element ensures that the icon
 * appears even if the markup doesn’t include an <i> tag. This also
 * avoids duplicate icons when the markup already has one.
 */
ul.icon-list li {
    position: relative;
    padding-left: 24px;
}
ul.icon-list li::before {
    content: "\f058"; /* Unicode for fa-check-circle */
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 768px) {
    h1.section-heading {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 20px;
    }
    p {
        font-size: 15px;
    }
}

/*
 * Hide Membership, News and FAQ items from navigation menus across all pages.
 * We target both the primary header navigation and the footer quick links.
 */
#menu-primary-menu a[href="membership.html"],
#menu-primary-menu a[href="news.html"],
#menu-primary-menu a[href="faq.html"],
.footer-widgets-nav-menu a[href="membership.html"],
.footer-widgets-nav-menu a[href="news.html"],
.footer-widgets-nav-menu a[href="faq.html"] {
    display: none !important;
}