/* IMCISS Theme - Custom CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00A859;
    --secondary-teal: #0097A7;
    --text-dark: #333333;
    --bg-white: #FFFFFF;
    --border-gray: #E0E0E0;
    --light-green: #66BB6A;
    --sky-blue: #4FC3F7;
    --muted-gray: #757575;
    --accent-yellow: #FBC02D;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

body.imciss-theme {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.imciss-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.logo-sub {
    font-size: 12px;
    color: var(--muted-gray);
    max-width: 200px;
    line-height: 1.2;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition);
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-gray);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-sumate {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent-yellow);
}

.btn-sumate:hover {
    background: transparent;
    color: var(--accent-yellow);
}

.language-switcher {
    position: relative;
}

.lang-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    min-width: 60px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 60px;
    display: none;
    box-shadow: var(--shadow-light);
}

.language-switcher:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--border-gray);
}

/* Hero Section */
.imciss-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted-gray);
    margin-bottom: 32px;
}

.highlight-green {
    color: var(--primary-green);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-green);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-teal);
    border: 2px solid var(--secondary-teal);
}

.btn-secondary:hover {
    background: var(--secondary-teal);
    color: white;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    grid-template-rows: repeat(2, 120px);
    gap: 20px;
}

.grid-item {
    border-radius: 16px;
    animation: float 6s ease-in-out infinite;
}

.grid-item:nth-child(1) { animation-delay: 0s; }
.grid-item:nth-child(2) { animation-delay: 1.5s; }
.grid-item:nth-child(3) { animation-delay: 3s; }
.grid-item:nth-child(4) { animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections Common */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--muted-gray);
}

/* Mission Section */
.section-mission {
    padding: 100px 0;
    background: var(--bg-white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-green);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.pillar-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pillar-description {
    color: var(--muted-gray);
    line-height: 1.6;
}

/* Organization Section */
.section-organization {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ff 100%);
}

.org-diagram {
    max-width: 800px;
    margin: 0 auto 60px;
}

.org-level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.org-node {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: var(--transition);
    min-width: 200px;
}

.org-node:hover {
    border-color: var(--secondary-teal);
    transform: translateY(-4px);
}

.main-node {
    background: var(--primary-green);
    color: white;
    padding: 32px 40px;
}

.main-node h4 {
    color: white;
}

.org-vicepresidents .org-node {
    background: var(--bg-white);
    border-top: 4px solid var(--secondary-teal);
}

.org-node h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.org-node p {
    color: var(--muted-gray);
    font-size: 14px;
}

.btn-org {
    display: inline-block;
    padding: 16px 32px;
    background: var(--secondary-teal);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary-teal);
}

.btn-org:hover {
    background: transparent;
    color: var(--secondary-teal);
}

/* Events Section */
.section-events {
    padding: 100px 0;
    background: var(--bg-white);
}

.events-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    border: 1px solid var(--border-gray);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.event-date {
    background: var(--primary-green);
    color: white;
    padding: 20px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-day {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content {
    padding: 24px;
    flex: 1;
}

.event-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.event-location {
    color: var(--secondary-teal);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.event-description {
    color: var(--muted-gray);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.event-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.event-link:hover::after {
    transform: translateX(4px);
}

.btn-events {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-green);
}

.btn-events:hover {
    background: var(--primary-green);
    color: white;
}

/* Contact Section */
.section-contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9f0 0%, #e6f7ff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding-right: 40px;
}

.contact-description {
    font-size: 18px;
    color: var(--muted-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--muted-gray);
    line-height: 1.5;
}

/* Form Styles */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
}

.form-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

.imciss-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-green);
}

.btn-submit {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}

.btn-submit:hover {
    background: #008f4c;
    transform: translateY(-2px);
}

/* Footer */
.imciss-footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-4px);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--primary-green);
    padding-left: 4px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn-subscribe {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe:hover {
    background: #008f4c;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-green);
}

/* Hugo Content Styles */
.hugo-content {
    padding: 60px 0;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Markdown Body Styles */
.markdown-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--text-dark);
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

.markdown-body h1 {
    font-size: 2.5em;
    border-bottom: 3px solid var(--primary-green);
    padding-bottom: 0.3em;
}

.markdown-body h2 {
    font-size: 2em;
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 0.3em;
}

.markdown-body a {
    color: var(--secondary-teal);
    text-decoration: none;
    transition: var(--transition);
}

.markdown-body a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.markdown-body code {
    background: rgba(0, 168, 89, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-green);
}

.markdown-body pre {
    background: #f6f8fa;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 1em 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--secondary-teal);
    padding-left: 20px;
    margin: 1em 0;
    color: var(--muted-gray);
    font-style: italic;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2em;
    margin: 1em 0;
}

.markdown-body li {
    margin: 0.5em 0;
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--border-gray);
    padding: 12px;
    text-align: left;
}

.markdown-body th {
    background: rgba(0, 168, 89, 0.1);
    font-weight: 600;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Card Styles for Hugo Templates */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-green);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-green);
}

.card-text {
    color: var(--muted-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .visual-grid {
        justify-self: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-gray);
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 99;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--border-gray);
    }

    .nav-link.active::after {
        display: none;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        gap: 16px;
    }

    .btn-sumate {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .org-level {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .events-slider {
        grid-template-columns: 1fr;
    }

    .visual-grid {
        grid-template-columns: repeat(2, 80px);
        grid-template-rows: repeat(2, 80px);
        gap: 10px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.col-lg-4 {
    width: 33.333%;
    padding: 0 15px;
}

.col-lg-3 {
    width: 25%;
    padding: 0 15px;
}

.g-4 {
    gap: 30px;
}

.my-5 {
    margin-top: 60px;
    margin-bottom: 60px;
}

.mb-5 {
    margin-bottom: 60px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-1 {
    margin-bottom: 10px;
}

.py-5 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.bg-light {
    background: #f8f9fa;
}

.shadow-sm {
    box-shadow: var(--shadow-light);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 8px;
}

.text-muted {
    color: var(--muted-gray);
}

.text-decoration-none {
    text-decoration: none;
}

.stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.small {
    font-size: 14px;
}

/* Animation for form submission */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
/* Additional styles for list and single pages */
.section-list,
.section-blog {
    padding: 80px 0;
    background: var(--bg-white);
}

.list-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.list-card,
.blog-card,
.related-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.list-card:hover,
.blog-card:hover,
.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-green);
}

.list-card-image,
.blog-card-image,
.related-card-image {
    height: 200px;
    overflow: hidden;
}

.list-card-image img,
.blog-card-image img,
.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.list-card:hover .list-card-image img,
.blog-card:hover .blog-card-image img,
.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.list-card-body,
.blog-card-body,
.related-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-card-title,
.blog-card-title,
.related-card-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.list-card-title a,
.blog-card-title a,
.related-card-title a {
    color: inherit;
    text-decoration: none;
}

.list-card-title a:hover,
.blog-card-title a:hover,
.related-card-title a:hover {
    color: var(--primary-green);
}

.list-card-text,
.blog-card-excerpt,
.related-card-text {
    color: var(--muted-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.list-card-meta,
.blog-card-meta {
    font-size: 14px;
    color: var(--muted-gray);
    margin-bottom: 12px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.blog-date {
    color: var(--secondary-teal);
    font-weight: 500;
}

.blog-category {
    background: rgba(0, 168, 89, 0.1);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.blog-card-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    align-self: flex-start;
}

.blog-card-link:hover {
    text-decoration: underline;
}

.list-pagination,
.blog-pagination {
    margin-top: 60px;
    text-align: center;
}

/* Single article styles */
.article-single {
    padding: 80px 0;
    background: var(--bg-white);
}

.article-hero {
    margin-bottom: 40px;
}

.article-hero-image {
    width: 100%;
    border-radius: 16px;
    max-height: 500px;
    object-fit: cover;
}

.article-hero-caption {
    text-align: center;
    color: var(--muted-gray);
    font-size: 14px;
    margin-top: 12px;
    font-style: italic;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-title {
    font-size: 42px;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--muted-gray);
    font-size: 16px;
}

.article-date {
    color: var(--secondary-teal);
    font-weight: 500;
}

.article-author {
    font-style: italic;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-gray);
}

.article-tag {
    background: rgba(0, 168, 89, 0.1);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.article-tag:hover {
    background: var(--primary-green);
    color: white;
}

/* Related articles section */
.related-articles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .list-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 32px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .imciss-header,
    .imciss-footer,
    .mobile-menu-toggle,
    .header-actions,
    .btn-sumate,
    .related-articles-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-single {
        padding: 0;
    }

    .article-content {
        max-width: 100%;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
/* Pagination Styles - Compatible with Hugo */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0 40px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-item {
    list-style: none;
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination .page-link:hover:not(.disabled):not(.active) {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.15);
}

.pagination .page-item.active .page-link {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    cursor: default;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-gray);
    color: var(--muted-gray);
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    border-color: var(--border-gray);
    color: var(--muted-gray);
    box-shadow: none;
}

/* Pagination arrows */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    padding: 0 20px;
}

/* Hide text on mobile, show only arrows */
@media (max-width: 768px) {
    .pagination .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
    }

    .pagination .page-item:first-child .page-link::before {
        content: "←";
    }

    .pagination .page-item:last-child .page-link::after {
        content: "→";
    }

    .pagination .page-item:first-child .page-link span,
    .pagination .page-item:last-child .page-link span {
        display: none;
    }

    /* Hide page numbers on very small screens */
    @media (max-width: 480px) {
        .pagination .page-item:not(:first-child):not(:last-child):not(.active) {
            display: none;
        }

        .pagination .page-item.active {
            order: 0;
        }

        .pagination .page-item:first-child {
            order: -1;
        }

        .pagination .page-item:last-child {
            order: 1;
        }
    }
}

/* Modern pagination with ellipsis */
.pagination .page-item.ellipsis {
    pointer-events: none;
}

.pagination .page-item.ellipsis .page-link {
    background: transparent;
    border: none;
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

.pagination .page-item.ellipsis .page-link:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

/* Alternative pagination style for blogs */
.blog-pagination .pagination,
.list-pagination .pagination {
    margin: 40px 0 20px;
}

.blog-pagination .page-link,
.list-pagination .page-link {
    border-radius: 6px;
    font-size: 15px;
}

/* Pagination for markdown content */
.markdown-body .pagination {
    margin: 2em 0;
}

/* Animation for pagination */
@keyframes paginationFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination {
    animation: paginationFade 0.5s ease-out;
}

/* Pagination with icons */
.pagination .page-link.prev::before {
    content: "←";
    margin-right: 8px;
}

.pagination .page-link.next::after {
    content: "→";
    margin-left: 8px;
}

@media (max-width: 768px) {
    .pagination .page-link.prev::before {
        margin-right: 0;
    }

    .pagination .page-link.next::after {
        margin-left: 0;
    }
}

/* Pagination info text */
.pagination-info {
    text-align: center;
    color: var(--muted-gray);
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Hugo pagination specific */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px 0;
}

/* For Hugo's internal pagination template */
.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: inline-block;
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.pagination-link.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination with numbers only */
.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-numbers .pagination-link {
    min-width: 44px;
    text-align: center;
}

/* Custom pagination for IMCISS */
.imciss-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
}

.imciss-pagination .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--bg-white);
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 8px;
}

.imciss-pagination .pagination-btn:hover:not(:disabled) {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

.imciss-pagination .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-gray);
    color: var(--muted-gray);
}

.imciss-pagination .pagination-info {
    color: var(--text-dark);
    font-size: 16px;
    margin: 0;
}

/* Responsive adjustments for pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }

    .imciss-pagination {
        flex-direction: column;
        gap: 15px;
    }

    .imciss-pagination .pagination-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .pagination .page-link {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .pagination .page-link:hover:not(.disabled):not(.active) {
        background: #4a5568;
        border-color: var(--primary-green);
        color: var(--primary-green);
    }

    .pagination .page-item.active .page-link {
        background: var(--primary-green);
        border-color: var(--primary-green);
        color: white;
    }
}

/* Print styles for pagination */
@media print {
    .pagination {
        display: none;
    }
}
