/*
 * Nigeria Rice Mill Template Styles
 * Matching screenshot design with textured backgrounds and static depth
 */

/* Color scheme matching screenshot */
:root {
    --navy-dark: #1e3a5f;
    --navy: #2c5282;
    --green-dark: #2d6a4f;
    /* 404833 in screenshot looks darker/mossy, adjusting to a deep rich green */
    --green: #40916c;
    --header-gradient-start: #f8f9fa;
    --header-gradient-end: #e9ecef;
    --card-border: #dcdcdc;
}

/* Global body textured background */
body.page-template-template-nigeria-rice-mill {
    background-image: url('../images/bg-parchment.png');
    background-repeat: repeat;
    background-size: 1000px auto;
    /* Much larger tile for subtler effect */
    background-attachment: fixed;
    color: #333;
    font-family: 'Lato', sans-serif;
    /* Assuming theme has this or similar sans */
}

/* Hero Section */
.nigeria-hero-section {
    background-image: url('../images/hero-nigeria-clean.png');
    background-size: cover;
    background-position: center bottom;
    /* Anchor to bottom to show rice bags clearly */
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    padding: 80px 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Heavy shadow below hero */
    margin-bottom: 20px;
}

.nigeria-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    /* Top to bottom darkening for better text readability */
}

.nigeria-hero-section .container {
    position: relative;
    z-index: 2;
}

.nigeria-hero-section h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.8);
    color: white;
    font-weight: 800;
}

.nigeria-hero-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
}

.nigeria-hero-section .lead {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Action Buttons - Fancy Static */
.action-buttons .btn {
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 15px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    /* 3D effect button */
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 5px;
    /* Space for the 3D push effect */
}

.action-buttons .btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-navy {
    background: linear-gradient(to bottom, #2c5282, #1e3a5f);
    color: white;
}

.btn-green {
    background: linear-gradient(to bottom, #40916c, #2d6a4f);
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(to bottom, #25d366, #128c7e);
    color: white;
}

/* Section Styling with 'Cloudy' Highlight */
.nigeria-section-overlay {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    /* Subtle central glow */
    padding: 60px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    /* Very faint separator */
}

/* Fancy Section Titles with "Ribbon" or Lines */
.nigeria-section-title {
    color: var(--navy-dark);
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    font-size: 2.2rem;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.nigeria-section-title::before,
.nigeria-section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 50px;
    background: var(--navy-dark);
    border-radius: 3px;
    opacity: 0.8;
}

/* Add a gold accent or dot for extra 'fancy' */
.nigeria-section-title span {
    position: relative;
    display: inline-block;
}

.nigeria-section-title span::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #f1c40f;
    /* Gold underline */
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Challenge Section Restyle - Feature Cards */
.challenges-ribbon-container {
    background: linear-gradient(to right, rgba(30, 58, 95, 0.95), rgba(44, 82, 130, 0.95));
    /* Dark navy bar */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-card {
    text-align: center;
    color: white;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    /* Slight glass box */
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.challenge-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.challenge-card i {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: block;
}

.challenge-card .fw-bold {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Benefit Cards for Indian Manufacturers Section */
.benefit-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    text-align: left;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.benefit-card i {
    display: block;
    /* icon size handled by utility classes fs-3 */
}

/* Ensure images in that section don't overflow */
.nigeria-section-overlay img {
    max-width: 100%;
    height: auto;
}

/* Remove old pill badge styles if unused or keep as fallback */
.old-challenge-badge-removed {
    display: none;
}

/* Capacity Cards - The Core "Fancy" Static Element */
.capacity-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
    /* Deep static shadow */
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Styled Header for Cards */
.card-header-styled {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header-styled h5 {
    color: #333;
    font-family: inherit;
    text-shadow: 1px 1px 0 #fff;
}

.capacity-sub {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 3px;
    font-weight: normal;
}

/* Featured Card Styling */
.capacity-card.featured {
    border: 1px solid var(--green-dark);
    transform: scale(1.05);
    /* Static scale up */
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.card-header-styled.featured-header {
    background: linear-gradient(to bottom, var(--green), var(--green-dark));
    color: white;
    border-bottom: 1px solid #1b4332;
    padding-top: 25px;
    /* Space for the badge */
    position: relative;
}

.card-header-styled.featured-header h5 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-header-styled.featured-header .capacity-sub {
    color: #e8f5e9;
}

.badge-preferred {
    background: #ffd700;
    /* Gold */
    color: #333;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 10px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #eebb00;
}

.capacity-card .card-body {
    padding: 15px;
    flex: 1;
    background: #fff;
}

.capacity-card ul li {
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-left: 10px;
}

.capacity-card ul li::before {
    content: "•";
    color: var(--green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.capacity-card .card-img-bottom {
    height: 160px;
    object-fit: cover;
    width: 100%;
    border-top: 1px solid #eee;
}

/* Checklist Styling */
.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #2c3e50;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    /* Increasing readability on texture */
}

.checklist-item i {
    color: var(--green-dark);
    margin-right: 12px;
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Navy Section */
.nigeria-navy-section {
    background: var(--navy-dark);
    color: white;
    padding: 80px 0;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    /* Inner shadow for depth */
    border-top: 4px solid #f1c40f;
    /* Gold accent line */
}

.nigeria-navy-section h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.checklist-item .text-success {
    color: #4ade80 !important;
    /* Brighter green on dark bg */
}

/* Engineer Contact Section */
.nigeria-engineer-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 60px 0;
    border-top: 1px solid #ccc;
}

/* Header Correction */
.page-template-template-nigeria-rice-mill .site-header {
    background: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.page-template-template-nigeria-rice-mill .site-header .navbar-brand {
    color: var(--navy-dark) !important;
}

.page-template-template-nigeria-rice-mill .site-header .nav-link {
    color: #444 !important;
    font-weight: 600;
}

/* No Animations Support */
/* All hover effects are simple color/shadow changes, no movement */
.capacity-card:hover {
    /* No movement, just maintain state */
}

/* Responsive */
@media (max-width: 992px) {
    .capacity-card.featured {
        transform: none;
        /* Reset distinct scale on mobile stack */
        margin: 20px 0;
    }

    .nigeria-hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Energy Section Cards */
.energy-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Soft, lofty shadow */
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.energy-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ccc, #eee);
}

.energy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.energy-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific gradients for energy types */
.fuel-gradient {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.energy-card:hover .fuel-gradient {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.power-gradient {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.energy-card:hover .power-gradient {
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

.bio-gradient {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.energy-card:hover .bio-gradient {
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Component Cards for What's Included */
.component-card {
    background: #f8fdf9;
    /* Very light green tint */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e9e2;
    transition: all 0.2s;
}

.component-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--green);
}


/* Budget Planning Steps */
.planning-step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.planning-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.step-number {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}