/* PFD Political Party Website Styles - Metronic Inspired */
:root {
    /* Brand Colors */
    --pfd-red: #DC143C;
    --pfd-yellow: #FFD700;
    --pfd-green: #228B22;
    --pfd-dark-green: #006400;

    /* Metronic Colors */
    --kt-white: #ffffff;
    --kt-primary: #DC143C; /* Using PFD Red as Primary */
    --kt-secondary: #E4E6EF;
    --kt-success: #50CD89;
    --kt-info: #7239EA;
    --kt-warning: #FFC700;
    --kt-danger: #F1416C;
    --kt-dark: #181C32;
    --kt-light: #F5F8FA;
    
    /* Text Colors */
    --kt-text-dark: #181C32;
    --kt-text-muted: #5a5a5a;
    --kt-text-gray-400: #6B6B7B;
    --kt-text-gray-500: #5a6978;
    --kt-text-gray-600: #4a5568;
    --kt-text-gray-700: #2d3748;
    --kt-text-gray-800: #2d3748;
    --kt-text-gray-900: #181C32;

    /* Backgrounds */
    --kt-bg-light: #F5F8FA;
    --kt-bg-dark: #1E1E2D;

    /* Components */
    --kt-border-color: #EFF2F5;
    --kt-border-dashed-color: #E4E6EF;
    --kt-input-bg: #F5F8FA;
    --kt-input-border: #E4E6EF;
    
    /* Legacy mappings for existing code */
    --pfd-light-gray: var(--kt-bg-light);
    --pfd-dark-gray: var(--kt-text-dark);
    --pfd-text: var(--kt-text-muted);
    --pfd-white: var(--kt-white);
    
    --bs-font-sans-serif: 'Poppins', sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: var(--kt-text-gray-600);
    background-color: var(--kt-bg-light);
    line-height: 1.6;
    font-size: 14px; /* Metronic often uses slightly smaller base font */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--kt-text-dark);
    font-weight: 600;
    letter-spacing: -0.025rem;
}

a {
    text-decoration: none;
    color: var(--kt-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--pfd-dark-green);
}

/* Header */
header {
    background: var(--kt-white);
    box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
    padding: 0; /* Metronic headers often have 0 padding on the container, handled by inner elements */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px; /* Fixed height is common */
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.party-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.party-logo h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--kt-text-dark);
    font-weight: 700;
}

.party-emblem {
    width: 40px;
    height: 40px;
    background: var(--pfd-yellow);
    border-radius: 0.475rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--pfd-red);
    font-size: 1.1rem;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
}

/* Navigation */
nav {
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

nav a {
    color: var(--kt-text-gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.475rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

nav a:hover, nav a.active {
    color: var(--kt-primary);
    background-color: var(--kt-bg-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--kt-text-dark);
    padding: 0.5rem;
}

.menu-toggle:focus {
    outline: 2px solid var(--kt-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--pfd-red) 0%, var(--pfd-dark-green) 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../media/images/lesotho-landscape.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.475rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--kt-primary);
    color: var(--kt-white);
}

.btn-primary:hover {
    background-color: #c01134; /* Darker shade of PFD Red */
    color: var(--kt-white);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background-color: var(--kt-secondary);
    color: var(--kt-text-gray-800);
}

.btn-secondary:hover {
    background-color: #d5d7e3;
    color: var(--kt-text-gray-900);
}

/* Metronic Light Buttons */
.btn-light {
    color: var(--kt-text-gray-600);
    background-color: var(--kt-bg-light);
    border-color: transparent;
}

.btn-light:hover {
    color: var(--kt-primary);
    background-color: #EEF6FF; /* Light blueish tint often used */
    border-color: transparent;
}

.btn-light-primary {
    color: var(--kt-primary);
    background-color: #FFF5F8; /* Light red tint */
    border-color: transparent;
}

.btn-light-primary:hover {
    color: var(--kt-white);
    background-color: var(--kt-primary);
    border-color: transparent;
}

/* Cards (Metronic Style) */
.card, .leader-card, .report-card, .challenge-card, .gallery-item, .highlight-card, .vision-card, .commitment-card, .outreach-card {
    background-color: var(--kt-white);
    border-radius: 0.625rem;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    border: 0;
    padding: 2rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
}

.card:hover, .leader-card:hover, .report-card:hover, .challenge-card:hover, .gallery-item:hover, .outreach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 40px 0px rgba(76, 87, 125, 0.1);
}

/* Card Header & Body helpers if needed */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: 70px;
    padding: 0 2.25rem;
    background-color: transparent;
    border-bottom: 1px solid var(--kt-border-color);
}

.card-body {
    padding: 2rem 2.25rem;
    flex: 1 1 auto;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pfd-dark-gray);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--pfd-red);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    padding: 0;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1.5rem;
}

.gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin: 0;
}

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.leader-card {
    text-align: center;
    border-top: 3px solid var(--pfd-red);
}

.leader-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.leader-card .position {
    color: var(--pfd-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reports */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.report-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.report-header {
    background: linear-gradient(135deg, var(--pfd-green), var(--pfd-dark-green));
    color: white;
    padding: 1.5rem;
}

.report-content {
    padding: 1.5rem;
    flex: 1;
}

.report-date {
    color: var(--pfd-text);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Challenges */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.challenge-card {
    border-left: 4px solid var(--pfd-red);
}

.challenge-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

.challenge-card i {
    color: var(--pfd-red);
}

/* Footer */
footer {
    background-color: var(--kt-bg-dark);
    color: var(--kt-text-gray-500);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--kt-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--kt-text-gray-500);
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--kt-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.475rem;
    transition: all 0.3s ease;
    color: var(--kt-white); /* Ensure icon is white */
}

.social-links a:hover {
    background: var(--kt-primary);
    color: var(--kt-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--kt-text-gray-500);
}

/* Metronic Utilities */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.325rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.475rem;
    line-height: 1;
}

.badge-light-primary {
    color: var(--kt-primary);
    background-color: #FFF5F8;
}

.badge-light-success {
    color: var(--kt-success);
    background-color: #E8FFF3;
}

.badge-light-warning {
    color: var(--kt-warning);
    background-color: #FFF8DD;
}

.separator {
    display: block;
    height: 0;
    border-bottom: 1px solid var(--kt-border-color);
    margin: 1.5rem 0;
}

.symbol {
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    border-radius: 0.475rem;
}

.symbol > img {
    width: 100%;
    height: 100%;
    border-radius: 0.475rem;
}

.symbol-circle > img {
    border-radius: 50%;
}

/* Responsive - Mobile First Approach */

/* Extra Small Devices (320px and up) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    header {
        height: auto;
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .party-logo {
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .party-logo h1 {
        font-size: 1rem;
    }
    
    .party-emblem {
        width: 35px;
        height: 35px;
        font-size: 0.95rem;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        height: auto;
        gap: 0;
        align-items: stretch;
        padding: 1rem 0;
    }
    
    nav li {
        border-bottom: 1px solid var(--kt-border-color);
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        padding: 1rem;
        border-radius: 0;
        font-size: 0.95rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        padding: 50px 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card, .leader-card, .report-card, .challenge-card, .gallery-item, .highlight-card, .vision-card, .commitment-card, .outreach-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .conference-image-grid {
        flex-direction: column;
    }
    
    .conference-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .outreach-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-actions a {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .manifesto-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .report-content {
        padding: 1.5rem;
    }
}

/* Small Devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    header {
        height: auto;
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .party-logo {
        flex: 1 1 100%;
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
        flex: 0;
    }
    
    nav {
        flex: 1 1 100%;
        display: none;
        width: 100%;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 60px 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .conference-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .outreach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Medium Devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    nav {
        display: flex !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .leadership-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .outreach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .impact-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Devices (1025px and up) */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }
    
    nav {
        display: flex !important;
    }
}

/* Report Page Specifics */
.report-page {
    background-color: var(--pfd-light-gray);
    padding-bottom: 4rem;
}

.manifesto-header {
    background: linear-gradient(135deg, var(--pfd-red), var(--pfd-dark-green));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 2rem 2rem;
}

.report-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-content {
    background: white;
    border-radius: 0.475rem;
    padding: 3rem;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    max-width: 1000px;
    margin: 0 auto;
}

.manifesto-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.manifesto-stat {
    background: white;
    padding: 1.5rem;
    border-radius: 0.475rem;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--pfd-yellow);
}

.manifesto-stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pfd-dark-green);
}

.manifesto-stat .label {
    font-size: 0.9rem;
    color: var(--pfd-text);
}
