/* ========== TIMELINE SECTION ========== */

.timeline-section {
    padding: var(--space-2xl) var(--space-lg);
    background-color: var(--bg-light);
}

/* Timeline Controls */

.timeline-controls {
    margin-bottom: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* Search Box */

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.search-box i {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Timeline Container */

.timeline-container {
    padding: var(--space-xl) 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Timeline Item */

.timeline-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.timeline-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.timeline-item-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.timeline-year {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

.timeline-category {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    font-weight: 600;
}

.timeline-title {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.timeline-short-desc {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

/* Timeline Achievements */

.timeline-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.achievement-tag {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    border-left: 3px solid var(--secondary-color);
}

.read-more-btn {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: var(--space-md);
    transition: all var(--transition-fast);
}

.read-more-btn:hover {
    color: var(--accent-color);
}

/* ========== MILITARY SECTION ========== */

.military-section {
    padding: var(--space-2xl) var(--space-lg);
    background-color: var(--bg-white);
}

body.dark-mode .military-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--dark-bg-secondary) 100%);
}

.military-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ========== GLASSMORPHISM MILITARY CARDS ========== */

.military-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .military-card {
    background: rgba(26, 36, 22, 0.7);
    border: 1px solid rgba(255, 153, 51, 0.4);
    box-shadow: 0 8px 32px rgba(255, 153, 51, 0.15);
}

.military-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(255, 153, 51, 0) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.military-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(255, 153, 51, 0.2);
    border-color: rgba(255, 153, 51, 0.4);
}

body.dark-mode .military-card:hover {
    box-shadow: 0 16px 48px rgba(255, 153, 51, 0.3);
}

/* Military Card Image Section */
.military-card-image {
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2.5rem;
    overflow: hidden;
    position: relative;
}

.military-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
}

.military-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.military-card-image-placeholder {
    border-radius: 12px 12px 0 0;
}

.military-card-image-placeholder i {
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    color: var(--text-white);
}

/* Military Card Content Section */
.military-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.military-card h3 {
    color: #ff9933;
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--font-size-lg);
    line-height: 1.4;
}

body.dark-mode .military-card h3 {
    color: #ff9933;
}

.military-card-year {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 600;
    font-size: var(--font-size-xs);
    display: inline-block;
    width: fit-content;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.2);
}

.military-card p {
    color: var(--text-light);
    font-size: var(--font-size-small);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ========== MANIT SECTION ========== */

.manit-section {
    padding: var(--space-2xl) var(--space-lg);
    background-color: var(--bg-light);
}

body.dark-mode .manit-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--dark-bg-secondary) 100%);
}

/* ========== MANIT CAROUSEL ========== */

.manit-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
}

.manit-carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.manit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    transition: transform var(--transition-normal);
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-md) 0;
    scrollbar-width: none;
}

.manit-grid::-webkit-scrollbar {
    display: none;
}

.manit-carousel-btn {
    background: rgba(255, 153, 51, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-white);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.manit-carousel-btn:hover {
    background: rgba(255, 153, 51, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.manit-carousel-btn:active {
    transform: scale(0.95);
}

body.dark-mode .manit-carousel-btn {
    background: rgba(255, 153, 51, 0.8);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.25);
}

body.dark-mode .manit-carousel-btn:hover {
    background: rgba(255, 153, 51, 1);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.35);
}

/* ========== GLASSMORPHISM MANIT CARDS ========== */

.manit-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 280px;
    flex-shrink: 0;
}

body.dark-mode .manit-card {
    background: rgba(26, 36, 22, 0.7);
    border: 1px solid rgba(255, 153, 51, 0.4);
    box-shadow: 0 8px 32px rgba(255, 153, 51, 0.15);
}

.manit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(255, 153, 51, 0) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.manit-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(255, 153, 51, 0.2);
    border-color: rgba(255, 153, 51, 0.4);
}

body.dark-mode .manit-card:hover {
    box-shadow: 0 16px 48px rgba(255, 153, 51, 0.3);
}

/* MANIT Card Image Section */
.manit-card-image {
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2.5rem;
    overflow: hidden;
    position: relative;
}

.manit-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
}

.manit-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.manit-card-image-placeholder {
    border-radius: 12px 12px 0 0;
}

.manit-card-image-placeholder i {
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    color: var(--text-white);
}

/* MANIT Card Content Section */
.manit-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.manit-card-period {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 600;
    font-size: var(--font-size-xs);
    display: inline-block;
    width: fit-content;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.2);
}

.manit-card h3 {
    color: #ff9933;
    margin: 0 0 var(--space-md) 0;
    font-size: var(--font-size-md);
    line-height: 1.4;
}

body.dark-mode .manit-card h3 {
    color: #ff9933;
}

.manit-card-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.manit-card-achievements li {
    color: var(--text-light);
    font-size: var(--font-size-small);
    line-height: 1.5;
    padding-left: var(--space-md);
    position: relative;
}

.manit-card-achievements li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ========== SOCIAL WORK SECTION ========== */

.social-work-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-white) 0%, #f8f9fa 100%);
}

body.dark-mode .social-work-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--dark-bg-secondary) 100%);
}

.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* ========== GLASSMORPHISM ORG CARDS ========== */

.org-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .org-card {
    background: rgba(26, 36, 22, 0.7);
    border: 1px solid rgba(255, 153, 51, 0.4);
    box-shadow: 0 8px 32px rgba(255, 153, 51, 0.15);
}

.org-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(255, 153, 51, 0) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.org-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(255, 153, 51, 0.2);
    border-color: rgba(255, 153, 51, 0.4);
}

body.dark-mode .org-card:hover {
    box-shadow: 0 16px 48px rgba(255, 153, 51, 0.3);
}

/* Organization Card Image Section */
.org-card-image {
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.org-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
}

.org-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.org-card-image-placeholder {
    border-radius: 12px 12px 0 0;
}

.org-card-image-placeholder i {
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    color: var(--text-white);
}


/* Organization Card Content Section */
.org-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.org-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.org-card-title {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.org-card-year {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-xs);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.2);
}

.org-card-role {
    color: var(--text-light);
    font-size: var(--font-size-small);
    margin: 0 0 var(--space-md) 0;
    font-weight: 500;
}

.org-card-role strong {
    color: var(--secondary-color);
}

.org-card-description {
    color: var(--text-light);
    font-size: var(--font-size-small);
    line-height: 1.6;
    margin: 0 0 var(--space-md) 0;
    flex: 1;
}

.org-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 153, 51, 0.2);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm) 0;
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: linear-gradient(135deg, #ff9933, #ffa84d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-title {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .stat-title {
    color: #7a8fa6;
}

/* ========== ORGANIZATION CAROUSEL MODAL ========== */

.org-card-photo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(43, 65, 28, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.org-card-photo-badge i {
    font-size: var(--font-size-sm);
}

/* Organization Carousel Modal */
.org-carousel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.org-carousel-container {
    background: white;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-carousel-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    color: var(--text-white);
}

.org-carousel-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
}

.org-carousel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.org-carousel-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.org-carousel-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    max-height: 500px;
}

.org-carousel-slide-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.org-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
}

.org-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.org-carousel-prev {
    left: 16px;
}

.org-carousel-next {
    right: 16px;
}

.org-carousel-indicators {
    padding: var(--space-lg);
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.org-carousel-counter {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 600;
}

.org-carousel-dots {
    display: flex;
    gap: 8px;
}

.org-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.org-carousel-dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.org-carousel-dot.active {
    background: linear-gradient(135deg, #ff9933, #ffa84d);
    width: 20px;
    border-radius: 6px;
}

/* Dark mode adjustments */
body.dark-mode .org-carousel-container {
    background: #1a1a1a;
}

body.dark-mode .org-carousel-header {
    border-bottom-color: rgba(255, 153, 51, 0.2);
}

body.dark-mode .org-carousel-counter {
    color: #d0d0c8;
}

body.dark-mode .org-carousel-dot {
    background: #444;
}

body.dark-mode .org-carousel-dot:hover {
    background: #ff9933;
}

/* ========== STRATEGIC SECTION ========== */

.strategic-section {
    padding: var(--space-2xl) var(--space-lg);
    background-color: var(--bg-light);
}

.strategic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.strategic-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.strategic-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% + var(--space-lg) / 2);
    margin: 0 auto;
}

.strategic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Strategic Card Image Section */
.strategic-card-image {
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.strategic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.strategic-card-image-placeholder {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    gap: var(--space-md);
}

.strategic-card-image-placeholder .image-icon {
    width: 48px;
    height: 48px;
    opacity: 0.7;
    color: var(--text-white);
}

.strategic-card-image-placeholder p {
    font-size: var(--font-size-small);
    opacity: 0.8;
    text-align: center;
}

/* Strategic Card Content Section */
.strategic-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.strategic-card-content h3 {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.4;
}

.strategic-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: var(--font-size-small);
    margin: 0 0 var(--space-md) 0;
}

.strategic-description {
    color: var(--text-light);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.strategic-keypoints {
    list-style: none;
    margin: var(--space-md) 0;
    padding: 0;
}

.strategic-keypoints li {
    padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
    border-left: 3px solid var(--secondary-color);
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-small);
    position: relative;
}

.strategic-quote {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(255, 153, 51, 0.1) 100%);
    border-left: 4px solid var(--secondary-color);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 4px;
    display: flex;
    gap: var(--space-md);
}

.strategic-quote .quote-icon {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
    opacity: 0.5;
}

.strategic-quote-text {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
    font-size: var(--font-size-small);
    line-height: var(--line-height-relaxed);
}

.strategic-recommendation {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.05) 0%, rgba(255, 153, 51, 0.05) 100%);
    border-left: 4px solid var(--secondary-color);
    padding: var(--space-md);
    margin-top: auto;
    border-radius: 4px;
    font-size: var(--font-size-small);
    color: var(--text-dark);
    line-height: var(--line-height-relaxed);
}

.strategic-recommendation strong {
    color: var(--secondary-color);
}

/* ========== AWARDS SECTION ========== */

.awards-section {
    padding: var(--space-2xl) var(--space-lg);
    background-color: var(--bg-white);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.award-card {
    background: linear-gradient(135deg, var(--primary-color), rgba(43, 65, 28, 0.8));
    color: var(--text-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    opacity: 0.1;
}

.award-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.award-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
    color: var(--secondary-color);
}

.award-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-sm);
}

.award-year {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.award-card p {
    color: var(--text-white) !important;
}

/* ========== IMAGE GALLERY MODAL ========== */

.gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn var(--transition-normal);
}

.image-gallery-modal {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp var(--transition-normal) ease-out;
}

.gallery-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
}

.gallery-close-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: var(--font-size-3xl);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.gallery-close-btn:hover {
    transform: rotate(90deg);
}

.gallery-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    gap: var(--space-lg);
    padding: var(--space-2xl);
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.gallery-image-container {
    width: 100%;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 100%;
    overflow-y: auto;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 3px solid var(--border-color);
    transition: all var(--transition-fast);
    overflow: hidden;
    flex-shrink: 0;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--font-size-lg);
}

.gallery-info {
    background-color: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
}

.gallery-year,
.gallery-location,
.gallery-description {
    margin: var(--space-sm) 0;
    color: var(--text-dark);
    line-height: var(--line-height-relaxed);
}

.gallery-description {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

/* ========== ENHANCED TIMELINE ITEMS ========== */

.timeline-item-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.timeline-item-wrapper:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.timeline-item-top {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.05), transparent);
    border-bottom: 1px solid var(--border-color);
}

.timeline-type-icon {
    font-size: var(--font-size-2xl);
    min-width: 40px;
    text-align: center;
}

.timeline-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.timeline-badge {
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    font-weight: 600;
}

.timeline-item-content {
    padding: var(--space-lg);
}

.timeline-item-title {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.timeline-short-desc-text {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

.timeline-full-desc-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.timeline-full-desc-container.expanded {
    max-height: 1000px;
    padding: var(--space-lg);
    margin: var(--space-md) 0;
}

.timeline-full-desc-text {
    color: var(--text-dark);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.timeline-toggle-btn {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.timeline-toggle-btn:hover {
    background-color: var(--primary-color);
    transform: translateX(2px);
}

.timeline-toggle-btn:active {
    transform: translateX(0);
}

.toggle-icon {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.timeline-achievements-list {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.timeline-achievements-list h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-base);
}

.achievement-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-items li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

.achievement-items li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.timeline-metadata {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    font-size: var(--font-size-small);
}

.metadata-item {
    color: var(--text-light);
}

.metadata-item strong {
    color: var(--primary-color);
    margin-right: var(--space-xs);
}

.gallery-btn {
    background-color: var(--accent-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-right: var(--space-md);
}

.gallery-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== DETAILS MODAL (FULL POPUP) ========== */

.details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn var(--transition-normal);
    padding: var(--space-lg);
}

.details-modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp var(--transition-normal) ease-out;
    position: relative;
    overflow: hidden;
}

.details-modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-modal-close:hover {
    transform: rotate(90deg);
    color: var(--secondary-color);
}

.details-modal-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: var(--space-lg);
    height: 100%;
    overflow: hidden;
}

.details-modal-image {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 300px;
    max-height: 35vh;
    overflow: auto;
    width: 100%;
}

.details-image-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* ========== CAROUSEL IMAGE STYLES ========== */

.carousel-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

.carousel-dots {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-lg);
    padding: 0 var(--space-md);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 153, 51, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #ff9933;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: rgba(255, 153, 51, 0.6);
}

body.dark-mode .carousel-dot {
    background-color: rgba(255, 153, 51, 0.25);
}

body.dark-mode .carousel-dot.active {
    background-color: #ff9933;
}

body.dark-mode .carousel-dot:hover {
    background-color: rgba(255, 153, 51, 0.5);
}

/* ========== CARD CAROUSEL STYLES (on timeline card) ========== */

.card-carousel-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.card-carousel-image.active {
    opacity: 1;
}

.card-carousel-dots {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    padding: var(--space-md) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.card-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 153, 51, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-carousel-dot.active {
    background-color: #ff9933;
    width: 24px;
    border-radius: 4px;
}

.card-carousel-dot:hover {
    background-color: rgba(255, 153, 51, 0.7);
}

/* ========== MODAL CAROUSEL WITH THUMBNAILS ========== */

.modal-carousel-layout {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: var(--space-lg);
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.modal-carousel-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: auto;
}

.modal-carousel-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.modal-carousel-thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
    padding: var(--space-sm);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

body.dark-mode .modal-carousel-thumbs {
    background: rgba(255, 255, 255, 0.05);
}

.modal-thumb-item {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-thumb-item:hover {
    border-color: rgba(255, 153, 51, 0.5);
    transform: scale(0.95);
}

.modal-thumb-item:hover img {
    transform: scale(1.05);
}

.modal-thumb-item.active {
    border-color: #ff9933;
    box-shadow: 0 0 12px rgba(255, 153, 51, 0.4);
}

.details-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--text-white);
}

.details-image-placeholder i {
    font-size: var(--font-size-3xl);
    opacity: 0.7;
    color: #ffffff;
}

.details-image-placeholder p {
    margin: 0;
    opacity: 0.9;
}

.details-modal-body {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) var(--space-2xl);
    overflow: hidden;
    overflow-y: auto;
    flex: 1;
}

.details-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-color);
}

.details-header h2 {
    margin: 0 0 var(--space-md) 0;
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
}

.details-badges {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.details-badge-year,
.details-badge-category,
.details-badge-type {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    font-weight: 600;
}

.details-badge-year {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.details-badge-category {
    background-color: var(--accent-light);
    color: var(--text-white);
}

.details-badge-type {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.details-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: var(--space-lg);
}

.details-body-scroll::-webkit-scrollbar {
    width: 8px;
}

.details-body-scroll::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.details-body-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.details-body-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.details-section {
    margin-bottom: var(--space-2xl);
}

.details-section h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.details-short-desc {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.details-full-text {
    color: var(--text-dark);
    line-height: var(--line-height-relaxed);
    margin: 0;
    text-align: justify;
}

.details-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.details-achievements li {
    padding: var(--space-md);
    padding-left: 40px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.details-achievements li::before {
    content: '★';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: var(--font-size-base);
}

.details-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.details-meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.details-meta-item strong {
    color: var(--primary-color);
    font-size: var(--font-size-small);
}

.details-meta-item span {
    color: var(--text-dark);
    line-height: var(--line-height-relaxed);
}

.details-modal-footer {
    padding: var(--space-lg) var(--space-2xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    background-color: var(--bg-light);
}

.details-close-button {
    padding: var(--space-md) var(--space-2xl);
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-base);
}

.details-close-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ========== PREVIEW CONTENT STYLING ========== */

.timeline-preview-content {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    margin: var(--space-md) 0;
    font-size: var(--font-size-base);
    background-color: var(--bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.timeline-show-details-btn {
    background-color: var(--accent-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.timeline-show-details-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== RESPONSIVE MODAL ========== */

@media (max-width: 1024px) {
    .details-modal-inner {
        grid-template-columns: 1fr;
    }
    
    .details-modal-image {
        min-height: 250px;
        max-height: 400px;
    }
    
    /* Responsive carousel layout on tablet */
    .modal-carousel-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .modal-carousel-thumbs {
        flex-direction: row;
        max-height: 100px;
        width: 100%;
    }
    
    .modal-thumb-item {
        width: 80px;
        aspect-ratio: 1;
    }

    /* Responsive Timeline - Tablet */
    .timeline-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Responsive Strategic Cards - Tablet */
    .strategic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strategic-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc(50% + var(--space-lg) / 2);
    }

    .strategic-card-image {
        height: 180px;
    }

    /* Responsive Organization Cards - Tablet */
    .organizations-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .org-card-image {
        height: 180px;
    }

    /* Responsive Military Cards - Tablet */
    .military-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .military-card-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Responsive MANIT Carousel - Tablet */
    .manit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manit-card {
        min-width: 240px;
    }

    .manit-card-image {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .details-modal-content {
        height: 95vh;
        max-width: 95%;
    }
    
    .details-modal-body {
        padding: var(--space-lg);
    }
    
    .details-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .details-body-scroll {
        padding-right: var(--space-md);
    }

    /* Responsive Timeline - Medium */
    .timeline-container {
        grid-template-columns: 1fr;
    }

    /* Responsive Strategic Cards - Medium */
    .strategic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strategic-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 100%;
        margin: 0 auto;
    }

    .strategic-card-image {
        height: 180px;
    }

    .strategic-card-content {
        padding: var(--space-md);
    }

    /* Responsive Organization Cards - Medium */
    .organizations-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .org-card-image {
        height: 160px;
    }

    .org-card-content {
        padding: var(--space-md);
    }

    /* Responsive Military Cards - Medium */
    .military-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .military-card-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .military-card-content {
        padding: var(--space-md);
    }

    /* Responsive MANIT Carousel - Medium */
    .manit-grid {
        grid-template-columns: 1.5fr;
    }

    .manit-card {
        min-width: 260px;
    }

    .manit-card-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .details-modal-overlay {
        padding: 0;
    }
    
    .details-modal-content {
        border-radius: 0;
        height: 100vh;
        max-width: 100%;
    }
    
    .details-badges {
        flex-direction: column;
    }
    
    .details-metadata {
        grid-template-columns: 1fr;
    }
    
    .details-section h4 {
        font-size: var(--font-size-base);
    }

    /* Responsive Strategic Cards - Mobile */
    .strategic-grid {
        grid-template-columns: 1fr;
    }

    .strategic-card:nth-child(3) {
        grid-column: 1;
        max-width: 100%;
    }

    .strategic-card-image {
        height: 160px;
    }

    .strategic-card-content h3 {
        font-size: var(--font-size-md);
    }

    .strategic-keypoints li {
        padding-left: var(--space-md);
        font-size: var(--font-size-xs);
    }

    /* Responsive Organization Cards - Mobile */
    .organizations-grid {
        grid-template-columns: 1fr;
    }

    .org-card-image {
        height: 140px;
    }

    .org-card-title {
        font-size: var(--font-size-md);
    }

    .org-card-description {
        font-size: var(--font-size-xs);
    }

    .org-card-header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .org-card-year {
        align-self: flex-start;
    }

    /* Responsive Military Cards - Mobile */
    .military-grid {
        grid-template-columns: 1fr;
    }

    .military-card-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .military-card h3 {
        font-size: var(--font-size-md);
    }

    .military-card p {
        font-size: var(--font-size-xs);
    }

    .military-card-content {
        padding: var(--space-md);
    }

    /* Responsive MANIT Carousel - Mobile */
    .manit-carousel-wrapper {
        gap: var(--space-md);
    }

    .manit-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-md);
    }

    .manit-grid {
        grid-template-columns: 1fr;
    }

    .manit-card {
        min-width: 100%;
    }

    .manit-card-image {
        height: 120px;
    }

    .manit-card-content {
        padding: var(--space-md);
    }

    .manit-card h3 {
        font-size: var(--font-size-md);
    }

    .manit-card-achievements li {
        font-size: var(--font-size-xs);
    }
}

.timeline-item-image-section {
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.timeline-item-wrapper:hover .timeline-item-image {
    transform: scale(1.05);
}

.timeline-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 65, 28, 0.9), rgba(255, 153, 51, 0.8));
    color: var(--text-white);
    gap: var(--space-md);
}

.timeline-image-placeholder i {
    font-size: var(--font-size-3xl);
    opacity: 0.8;
}

.timeline-image-placeholder .placeholder-text {
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Responsive Image Section */

@media (max-width: 1024px) {
    .timeline-item-image-section {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .timeline-item-image-section {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .timeline-item-image-section {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== MEDIA GALLERY SECTION ========== */

.media-gallery-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.gallery-filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.gallery-filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
    transform: translateY(-2px);
    border-color: #ff9933;
}

.gallery-filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(43, 65, 28, 0.3);
}

body.dark-mode .gallery-filter-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

body.dark-mode .gallery-filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 65, 28, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    width: 100%;
}

.gallery-title {
    color: var(--text-white);
    margin: 0;
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

/* Gallery Modal */

.gallery-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.gallery-modal-container {
    position: relative;
    width: 90%;
    max-width: 90%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.gallery-modal-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 80%;
    overflow: hidden;
}

.gallery-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    transform: rotate(90deg);
    color: #ff9933;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-nav:hover {
    background: rgba(255, 153, 51, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.gallery-modal-info {
    text-align: center;
    color: var(--text-white);
    padding: 0 var(--space-2xl);
}

.gallery-modal-title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.gallery-modal-counter {
    margin: var(--space-sm) 0 0 0;
    font-size: var(--font-size-small);
    opacity: 0.8;
}

/* Responsive Gallery */

@media (max-width: 768px) {
    .media-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-md);
    }
    
    .gallery-modal-container {
        width: 95%;
        height: 95vh;
    }
    
    .gallery-modal-nav {
        padding: var(--space-md);
        font-size: 20px;
    }
    
    .gallery-modal-close {
        font-size: 32px;
    }
}
