/**
 * IPCRO Custom Design System
 * Based on Health NGO Professional Style
 */

/* Root Variables */
:root {
    --primary-color: #005B96;
    --secondary-color: #00A6A6;
    --accent-color: #7BC043;
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --text-dark: #333333;
    --text-muted: #666666;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* General Styles */
body {
    font-family: var(--body-font);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
}

/* Typography Helpers */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.text-accent-custom { color: var(--accent-color) !important; }
.bg-light-custom { background-color: var(--bg-light) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; }
.bg-accent-custom { background-color: var(--accent-color) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #004471;
    border-color: #004471;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #008585;
    border-color: #008585;
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    background: white;
}

.card-custom:hover {
    transform: translateY(-5px);
}

/* Navbar Customization */
.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-custom .navbar-brand {
    font-family: var(--heading-font);
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 12px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-color);
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.navbar-custom .nav-link.active {
    color: var(--primary-color);
}

.navbar-custom .nav-link.active::after {
    width: 100%;
}

/* Dropdown Customization */
.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    animation: fadeInDown 0.3s ease;
}

.navbar-custom .dropdown-item {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.navbar-custom .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Hover for Dropdown */
@media (min-width: 992px) {
    .navbar-custom .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Navbar Brand Animation */
.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Footer */
.footer-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-custom h5 {
    color: white;
    margin-bottom: 25px;
}

.footer-custom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: white;
}

/* Placeholders */
.placeholder-image {
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Partner Logo Slider */
.partners-slider-container {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    width: calc(250px * 10); /* Adjust based on number of logos */
    animation: scroll 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-slide {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.partner-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

.partner-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); } /* Adjust based on unique logos */
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-custom .nav-link {
        margin: 5px 0;
    }
    section {
        padding: 60px 0;
    }
}
