/* ===== Contact Page Templates ===== */
.contact-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.contact-hero .subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 20px auto 0;
    opacity: 0.9;
}

.contact-container {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid #2b6cb0;
}

.contact-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-item h3 {
    color: #2b6cb0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.work-with-us,
.newsletter-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #2b6cb0;
}

.work-with-us h3,
.newsletter-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
}

.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-intro {
    margin-bottom: 30px;
    color: #718096;
    font-size: 1.1rem;
}

/* Static Contact Template */
.contact-static-container {
    padding: 80px 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-method {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.quick-inquiry {
    background: #f8f9fa;
    padding: 50px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.map-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.map-placeholder {
    background: #edf2f7;
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

/* ===== Projects Page ===== */
.projects-hero {
    background: linear-gradient(135deg, #234e52 0%, #285e61 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.current-projects,
.past-projects,
.impact-stories,
.projects-cta {
    padding: 80px 0;
}

.current-projects,
.impact-stories {
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-item {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-item.current {
    border-top: 4px solid #38a169;
}

.project-item.past {
    border-top: 4px solid #718096;
}

.project-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.ongoing {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.completed {
    background: #e2e8f0;
    color: #2d3748;
}

.project-location {
    color: #718096;
    margin: 10px 0;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.meta-item {
    font-size: 0.9rem;
}

.project-tags {
    margin-top: 20px;
}

.project-tags .tag {
    display: inline-block;
    background: #edf2f7;
    padding: 5px 12px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #4a5568;
}

.project-outcomes {
    background: #f0fff4;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.project-outcomes h4 {
    color: #22543d;
    margin-bottom: 10px;
}

.project-outcomes ul {
    list-style: none;
    padding-left: 0;
}

.project-outcomes li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.project-outcomes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38a169;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.story-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.story-image {
    height: 200px;
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.story-content {
    padding: 30px;
}

.read-story {
    display: inline-block;
    margin-top: 15px;
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: none;
}

.read-story:hover {
    text-decoration: underline;
}

.projects-cta {
    text-align: center;
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
}

/* ===== Careers Page ===== */
.careers-hero {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.why-work-here,
.current-openings,
.internship-section,
.consultant-network {
    padding: 80px 0;
}

.why-work-here,
.internship-section {
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.openings-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.job-opening {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid #2b6cb0;
}

.job-header {
    margin-bottom: 30px;
}

.job-meta {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    color: #718096;
    font-size: 0.95rem;
}

.job-description h4 {
    color: #2d3748;
    margin: 25px 0 15px;
}

.job-description ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.job-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.opportunity-item {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.opportunity-item ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.opportunity-item li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.opportunity-item li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #2b6cb0;
}

.consultant-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 40px auto 0;
}

#consultant-registration select[multiple] {
    height: 120px;
}

/* ===== Single Insight Template ===== */
.single-insight .insight-header {
    background: #f8f9fa;
    padding: 80px 0 40px;
}

.insight-categories {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    background: #2b6cb0;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
    text-decoration: none;
}

.insight-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.insight-meta {
    display: flex;
    gap: 30px;
    color: #718096;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.meta-label {
    font-weight: 600;
    color: #4a5568;
}

.insight-featured-image {
    margin-top: 40px;
}

.insight-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #718096;
    margin-top: 10px;
    font-size: 0.9rem;
}

.insight-content {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.main-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.main-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2d3748;
}

.main-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #4a5568;
}

.insight-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.download-widget .btn {
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.file-size {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    margin-top: 10px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list .tag {
    display: inline-block;
    background: #edf2f7;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #4a5568;
    text-decoration: none;
}

.tags-list .tag:hover {
    background: #e2e8f0;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.share-button {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.linkedin {
    background: #0077b5;
    color: white;
}

.share-button.email {
    background: #718096;
    color: white;
}

.related-list {
    list-style: none;
    padding-left: 0;
}

.related-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    display: block;
    color: #2b6cb0;
    text-decoration: none;
    margin-bottom: 5px;
}

.related-list a:hover {
    text-decoration: underline;
}

.related-date {
    display: block;
    color: #718096;
    font-size: 0.85rem;
}

.insight-footer {
    padding: 60px 0;
    background: #f8f9fa;
}

.author-bio {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h4 {
    color: #2d3748;
    margin-bottom: 10px;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-previous,
.nav-next {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.nav-label {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.nav-next {
    text-align: right;
}

/* ===== Single Publication Template ===== */
.single-publication .publication-header {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    padding: 80px 0;
}

.publication-type .type-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.publication-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 20px 0;
}

.publication-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.meta-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 6px;
}

.meta-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.9;
}

.meta-value {
    display: block;
}

.meta-value a {
    color: white;
    text-decoration: underline;
}

.publication-abstract {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.publication-abstract h3 {
    margin-bottom: 15px;
}

.publication-content {
    padding: 60px 0;
}

.key-findings,
.recommendations {
    background: #f0fff4;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 4px solid #38a169;
}

.recommendations {
    background: #ebf8ff;
    border-left-color: #3182ce;
}

.download-options .btn {
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.file-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.citation-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    word-break: break-all;
}

.btn-copy-citation {
    width: 100%;
    padding: 10px;
    background: #718096;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.topics-list,
.regions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag,
.region-tag {
    display: inline-block;
    background: #edf2f7;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #4a5568;
}

.topic-tag {
    text-decoration: none;
}

.topic-tag:hover {
    background: #e2e8f0;
}

.publication-footer {
    padding: 60px 0;
    background: #f8f9fa;
}

.acknowledgments {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.copyright-notice {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .contact-grid,
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .insight-sidebar,
    .publication-sidebar {
        position: static;
    }
    
    .projects-grid,
    .stories-grid,
    .benefits-grid,
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .inquiry-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero,
    .projects-hero,
    .careers-hero {
        padding: 60px 0 40px;
    }
    
    .contact-container,
    .contact-static-container,
    .current-projects,
    .past-projects,
    .impact-stories,
    .projects-cta,
    .why-work-here,
    .current-openings,
    .internship-section,
    .consultant-network,
    .insight-content,
    .publication-content,
    .insight-footer,
    .publication-footer {
        padding: 40px 0;
    }
    
    .insight-title,
    .publication-title {
        font-size: 2rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .quick-inquiry {
        padding: 30px;
    }
    
    .job-opening,
    .opportunity-item,
    .consultant-form,
    .sidebar-widget,
    .author-bio,
    .nav-previous,
    .nav-next {
        padding: 25px;
    }
    
    .project-item,
    .story-content {
        padding: 25px;
    }
}