/* Main CSS for AIGMF Website */
:root {
    --primary-color: #4eadbd;
    --secondary-color: #53b8ff;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --danger-color: #dc3545;
    --success-color: #28a745;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: var(--primary-color);
    margin: 0;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Layout */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Header Styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

/* Navigation */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 60px;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    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;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3d9aab;
    border-color: #3d9aab;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Modern Publication Styling */
.publication-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.publication-card figure {
    margin: 0;
    position: relative;
}

.publication-card img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.publication-card:hover img {
    transform: scale(1.02);
}

.publication-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 20px 15px 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.publication-card:hover .publication-actions {
    opacity: 1;
    transform: translateY(0);
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.btn-view {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    backdrop-filter: blur(10px);
}

.btn-view:hover {
    background: linear-gradient(135deg, var(--primary-color), #3d9aab);
    color: white;
    transform: translateX(4px) scale(1.05);
    text-decoration: none;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    color: white;
    transform: translateX(4px) scale(1.05);
    text-decoration: none;
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Modern Winners Section Styling */
.winners-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.winners-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.winners-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
    line-height: 1.3;
}

.winners-title:hover {
    color: white;
    text-decoration: none;
}

/* Modern Resource Links */
.resource-links {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 0;
}

.resource-link {
    display: block;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.resource-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.resource-link:hover::before {
    left: 100%;
}

.resource-link:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, var(--primary-color), #3d9aab);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 173, 189, 0.3);
    text-decoration: none;
}

/* Special animated gradient for Winners entry */
.winners-entry {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    position: relative;
    overflow: hidden;
    color: white !important;
    border-radius: 12px;
    margin: 8px 0;
    padding: 12px 15px;
}

.winners-entry::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.winners-entry:hover {
    animation-play-state: paused;
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.winners-entry .btn-icon {
    fill: white !important;
}

/* Conference Banner Styling */
.conference-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 5px 30px;
    margin: 10px 0 20px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.conference-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: bannerShine 3s ease-in-out infinite;
}

.conference-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.conference-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.conference-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    text-decoration: none !important;
}

.conference-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

.conference-badge {
    position: absolute;
    top: 15px;
    left: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.4);
    z-index: 10;
}

@keyframes bannerShine {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Simple Info Section */
.simple-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.simple-info-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
    text-align: justify;
}

.simple-info-section p:last-child {
    margin-bottom: 0;
}

.read-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.read-more-link:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

/* IYOG Logo Modern Styling */
.iyog-container {
    text-align: center;
    margin-top: 15px;
}

.iyog-logo {
    display: inline-block;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.iyog-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.iyog-logo img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 50%, #212529 100%) !important;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb) 1;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: footerShine 3s ease-in-out infinite;
}

@keyframes footerShine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

footer .container {
    position: relative;
    z-index: 2;
}

footer .footer-header {
    color: #667eea !important;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem !important;
    position: relative;
}

footer .footer-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

footer .footer-header:hover {
    color: #764ba2 !important;
    transform: translateY(-2px);
}

footer .footer-header:hover::after {
    width: 100%;
}

footer .footer-item {
    color: #bdc3c7 !important;
    font-size: 0.85rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: block;
    padding: 2px 0;
    position: relative;
}

footer .footer-item::before {
    content: '▸';
    color: #667eea;
    opacity: 0;
    margin-right: 8px;
    transition: opacity 0.3s ease;
}

footer .footer-item:hover {
    color: #667eea !important;
    padding-left: 15px;
    transform: translateX(5px);
}

footer .footer-item:hover::before {
    opacity: 1;
}

footer .row {
    padding: 0.5rem 0 0.25rem 0;
}

footer hr {
    border-color: #495057 !important;
    margin: 0.5rem 0 !important;
    opacity: 0.6;
}

footer .text-muted {
    color: #adb5bd !important;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Footer Brand Info */
.footer-brand-info h6 {
    color: #667eea !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-social-links {
    margin-top: 15px;
}

.footer-social-links .footer-item {
    color: #bdc3c7 !important;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-social-links .footer-item:hover {
    color: #667eea !important;
    transform: translateY(-2px);
}

.footer-social-links .footer-item i {
    margin-right: 5px;
    color: #667eea;
}

/* Footer Stats */
.footer-stats {
    text-align: right;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-stats h4 {
    color: #667eea !important;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-stats p {
    margin: 0;
    font-size: 0.8rem;
}

/* Copyright Section */
.copyright-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 0 -15px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer .footer-header {
        font-size: 1.1rem;
        margin-bottom: 0.8rem !important;
    }

    footer .footer-item {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer-stats {
        text-align: center;
        margin-top: 20px;
    }

    .footer-stats h4 {
        font-size: 2rem;
    }
}

/* Lazy Loading Styles for Kanch Images */
.kanch-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.kanch-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    z-index: 1;
}

.kanch-lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    z-index: 2;
}

.kanch-lazy.loaded {
    opacity: 1;
}

/* Lazy Loading Styles for Glass News Images - Match Kanch Style */
.glass-news-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.glass-news-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    z-index: 1;
}

.glass-news-lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    z-index: 2;
}

.glass-news-lazy.loaded {
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .no-print,
    .no-print * {
        display: none !important;
    }
}

.list-unstyled{
    padding-left: 0;
    list-style: none;
    list-style-position: inside;
    text-indent: -1em;
}