/**
 * Main Stylesheet for MBIZ Development Foundation
 */

/* Additional custom styles beyond style.css */

/* Program Cards Styling */
.program-highlight {
    background: linear-gradient(120deg, #eef6f1, #ffffff);
    border-left: 6px solid var(--mdf-secondary, #278e60);
}

.program-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 16px;
}

.program-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.program-thumbnail:hover img {
    transform: scale(1.05);
}

.read-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--mdf-primary, #1c7651);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Value Items Styling */
.value-item {
    text-align: center;
    background: #fafdf9;
}

.value-item i {
    font-size: 2rem;
    background: #e2f0e9;
    padding: 16px;
    border-radius: 60px;
    color: var(--mdf-secondary, #1b6f4c);
    transition: all 0.3s ease;
}

.value-item:hover i {
    transform: translateY(-5px);
    background: var(--mdf-secondary, #278a60);
    color: white;
}

.value-item h4 {
    margin: 16px 0 8px;
    font-weight: 700;
}

/* Flex Utilities */
.flex-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e4638;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    color: #4c6a5f;
    max-width: 720px;
    margin-bottom: 48px;
}

/* Card Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background: white;
    border-radius: 28px;
    padding: 28px 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    border: 1px solid #e2ede6;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(32, 77, 62, 0.12);
    border-color: #c2dfcf;
}

.card-icon {
    font-size: 2.4rem;
    color: var(--mdf-secondary, #278a60);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.card ul {
    padding-left: 20px;
    margin-top: 12px;
    list-style-type: none;
}

.card li {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.card li i {
    font-size: 0.8rem;
    color: var(--mdf-secondary, #218f62);
    width: 18px;
    margin-top: 4px;
}

/* Buttons */
.btn-primary {
    background: var(--mdf-primary, #1c7651);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--mdf-dark, #0f5c3f);
}

.btn-outline {
    border: 2px solid var(--mdf-primary, #1e6f4c);
    padding: 8px 20px;
    border-radius: 40px;
    background: transparent;
    font-weight: 700;
    color: var(--mdf-primary, #1e6f4c);
    transition: 0.25s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--mdf-primary, #1e6f4c);
    color: white;
}

/* Priority Section */
.priority-box {
    background: var(--mdf-dark, #1f463b);
    color: white;
    border-radius: 40px;
    padding: 48px 40px;
    text-align: center;
    margin: 80px 0;
}

.priority-box h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* Loading Spinner */
.mdf-loader {
    text-align: center;
    padding: 40px;
}

.mdf-loader i {
    font-size: 2rem;
    color: var(--mdf-primary, #1c7651);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles - Enhanced Version */
.site-footer {
    background: #0a251e;
    color: #cfdfd9;
    padding: 60px 0 0;
    margin-top: 60px;
    position: relative;
}

.site-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mdf-primary, #1c7651), var(--mdf-secondary, #278a60), var(--mdf-primary, #1c7651));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget-area {
    animation: fadeInUp 0.6s ease-out;
}

.footer-widget-area h3,
.footer-widget-area h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-area h3:after,
.footer-widget-area h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--mdf-secondary, #278a60);
    border-radius: 2px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a1ddc2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cfdfd9;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    background: var(--mdf-primary, #1c7651);
    color: white;
    transform: translateY(-3px);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #cfdfd9;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--mdf-secondary, #278a60);
    transform: translateX(5px);
}

.footer-contact i {
    width: 25px;
    color: var(--mdf-secondary, #278a60);
}

.footer-newsletter {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 40px 0 0 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: #a0b8ae;
}

.footer-newsletter button {
    padding: 10px 18px;
    border: none;
    background: var(--mdf-primary, #1c7651);
    color: white;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-newsletter button:hover {
    background: var(--mdf-secondary, #278a60);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-bottom-left p,
.footer-bottom-right p {
    margin: 0;
}

.footer-registration {
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-align: center;
}

.footer-registration p {
    margin: 8px 0;
}

.footer-registration i {
    color: var(--mdf-secondary, #278a60);
    margin-right: 8px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-widget-area h3:after,
    .footer-widget-area h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-widget-area {
        text-align: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-newsletter {
        max-width: 300px;
        margin: 15px auto 0;
    }
    
    .footer-registration {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 25px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }
    
    .footer-registration {
        font-size: 0.7rem;
    }
}

/* Page Template Styles */
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.page-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
}

.page-banner {
    width: 100%;
    height: auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.5rem;
    color: var(--mdf-dark, #1f463b);
    margin-bottom: 15px;
}

.page-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c3e36;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: #6c8b7e;
    margin-bottom: 20px;
}

/* Single Post Styles */
.content-area.with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 50px 0;
}

.single-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.thumbnail-caption {
    font-size: 0.85rem;
    color: #6c8b7e;
    margin-top: 10px;
    font-style: italic;
}

.entry-header {
    padding: 0 30px;
    margin-bottom: 25px;
}

.post-type-badge {
    display: inline-block;
    background: var(--mdf-secondary, #278a60);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.entry-title {
    font-size: 2rem;
    color: var(--mdf-dark, #1f463b);
    margin-bottom: 20px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #e2ede6;
    border-bottom: 1px solid #e2ede6;
    font-size: 0.85rem;
    color: #6c8b7e;
}

.entry-meta i {
    margin-right: 6px;
    color: var(--mdf-secondary, #278a60);
}

.entry-meta a {
    color: #6c8b7e;
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--mdf-primary, #1c7651);
}

.entry-content {
    padding: 0 30px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-footer {
    padding: 30px;
    border-top: 1px solid #e2ede6;
    margin-top: 30px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mdf-dark, #1f463b);
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    color: var(--mdf-primary, #1c7651);
    transform: translateX(5px);
}

.nav-previous a:hover {
    transform: translateX(-5px);
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    font-weight: 600;
}

/* Related Programs */
.related-programs {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2ede6;
}

.related-programs h3 {
    margin-bottom: 25px;
}

/* Program Single Template */
.program-single-wrapper {
    padding: 50px 0;
}

.program-header {
    margin-bottom: 40px;
}

.program-banner {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.program-title-area h1 {
    font-size: 2.5rem;
    color: var(--mdf-dark, #1f463b);
    margin-bottom: 15px;
}

.program-categories {
    display: flex;
    gap: 10px;
}

.program-category {
    background: #e2f0e9;
    color: var(--mdf-secondary, #278a60);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.program-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.program-description {
    font-size: 1.05rem;
    line-height: 1.8;
}

.program-info-box {
    background: #f8fbf9;
    padding: 25px;
    border-radius: 16px;
    position: sticky;
    top: 100px;
}

.program-info-box h3 {
    margin-bottom: 20px;
    color: var(--mdf-dark, #1f463b);
}

.program-info-box p {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2ede6;
}

.program-info-box .btn-primary {
    margin-top: 20px;
    display: block;
    text-align: center;
}

/* Sidebar Styles */
.sidebar {
    background: #f8fbf9;
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mdf-secondary, #278a60);
}

/* Responsive */
@media (max-width: 992px) {
    .content-area.with-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .program-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .program-info-box {
        position: static;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}