
html {
    scroll-behavior: smooth;
}

body {
    background-color: #121212; 
    color: #e0e0e0; 
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    animation: fadeIn 0.8s ease-in-out;
}

main {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: #d4af37; 
    text-decoration: none;
}

.header, .footer {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.footer {
    border-top: 1px solid #222;
    border-bottom: none;
    margin-top: 4rem;
    padding: 2rem 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

body.blog-page, body.about-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.blog-page main, body.about-page main {
    flex: 1;
}


.nav a {
    color: #FFFFFF; 
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: #d4af37; 
    border-bottom: 2px solid #d4af37;
    padding-bottom: 5px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
}

#map {
    flex-grow: 1;
    height: 100%;
}

.info-panel {
    width: 300px;
    height: 100%;
    background-color: #2c2c2c; 
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    overflow-y: auto;
    color: #FFFFFF;
    border-left: 1px solid #444;
}

.info-panel.open {
    transform: translateX(0);
}

#close-panel-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

#info-content h2 {
    color: #FF3300;
    border-bottom: 1px solid #FF3300;
    padding-bottom: 5px;
}

#info-content .btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #FF3300;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

#info-content .btn:hover {
    background-color: #b32400;
}

.martyrs-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #FFFFFF;
}

.martyrs-table th, .martyrs-table td, .admin-table th, .admin-table td {
    border: 1px solid #444; 
    padding: 12px 15px;
    text-align: left;
}

.martyrs-table thead th, .admin-table thead th {
    background-color: #2c2c2c; 
    color: #FFFFFF; 
    font-weight: bold;
}

.martyrs-table tbody tr:nth-child(even) {
    background-color: #2c2c2c;  
}

.martyrs-table tbody tr:hover, .admin-table tbody tr:hover {
    background-color: #3a3a3a;
}

.search-form {
    margin: 40px 0;
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 15px 20px;
    background-color: #1c1c1c;
    border: 1px solid #282828;
    color: #e0e0e0;
    font-size: 1rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
}

.search-form button {
    padding: 15px 30px;
    background-color: #d4af37; 
    border: none;
    color: #121212;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}

.search-form button:hover {
    background-color: #121212;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.martyr-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #e0e0e0;
}

.martyr-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.martyr-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d4af37;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.martyr-img:hover {
    transform: scale(1.05);
}

.martyr-info {
    text-align: center;
    width: 100%;
}

.martyr-info p {
    font-size: 1.1rem;
    margin: 0.8rem 0;
    color: #e0e0e0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.martyr-info p:last-child {
    border-bottom: none;
}

.martyr-info strong {
    color: #d4af37;
    min-width: 120px;
    display: inline-block;
    text-align: left;
}

.martyr-body {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.medals-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    list-style: none;
}

.medals-list li {
    display: flex;
    align-items: center;
    background: #2c2c2c;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medals-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    font-size: 3rem;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.submission-form-container {
    margin-top: 3rem;
    background: #2c2c2c;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #444;
}

.submission-form-container h2 {
    color: #d4af37;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.submission-form-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d4af37;
}

.upload-area {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #d4af37;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2rem 1rem;
}

.upload-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.upload-text {
    color: #999;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-text {
    color: #e0e0e0;
}

.file-preview {
    margin-top: 1.5rem;
    max-width: 300px;
    max-height: 300px;
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 8px;
}

.file-preview img,
.file-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.form-control {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d4af37;
    font-weight: 500;
}

.hero-button {
    background-color: #d4af37;
    color: #121212;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.hero-button:hover {
    background: linear-gradient(135deg, #d4af37 0%, #e0c05a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.hero-button:hover::before {
    width: 100%;
}

.hero-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-100-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.top-100-container h1 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.top-100-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #d4af37;
}

.martyrs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.martyrs-table thead {
    background: linear-gradient(135deg, #d4af37 0%, #b3922e 100%);
    color: #121212;
}

.martyrs-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.martyrs-table tbody tr {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #333;
}

.martyrs-table tbody tr:last-child {
    border-bottom: none;
}

.martyrs-table tbody tr:hover {
    background-color: #2a2a2a;
}

.martyrs-table td {
    padding: 1.2rem 1rem;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

.martyrs-table tbody tr:last-child td {
    border-bottom: none;
}

.medal-count {
    display: inline-block;
    background: #d4af37;
    color: #121212;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    font-size: 0.8rem;
}

.view-details-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.view-details-btn:hover {
    background: #d4af37;
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #d4af37;
    color: #121212;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
}

.top-1 .rank-badge {
    background: #ffd700;
    color: #000;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
}

.top-2 .rank-badge {
    background: #c0c0c0;
    color: #000;
    width: 30px;
    height: 30px;
}

.top-3 .rank-badge {
    background: #cd7f32;
    color: #000;
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .martyrs-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .martyrs-table th, 
    .martyrs-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .view-details-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-header h1 {
    color: #d4af37;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.search-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #d4af37;
}

.search-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    background: #1e1e1e;
    border-radius: 50px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.search-input-wrapper input {
    flex: 1;
    padding: 1rem 1rem 1rem 50px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    height: 60px;
}

.search-input-wrapper input::placeholder {
    color: #666;
    opacity: 1;
}

.clear-search {
    background: none;
    border: none;
    color: #777;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-right: 10px;
}

.clear-search:hover {
    color: #e0e0e0;
}

.search-button {
    background: linear-gradient(135deg, #d4af37 0%, #b3922e 100%);
    color: #121212;
    border: none;
    padding: 0 2rem;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #e0c05a 0%, #c7a53a 100%);
    transform: translateY(-1px);
}

.search-button span {
    display: none;
}

.search-results {
    margin-top: 3rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.results-header h2 {
    color: #e0e0e0;
    font-size: 1.5rem;
    margin: 0;
}

.results-count {
    color: #aaa;
    font-size: 0.95rem;
}

.martyrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.martyr-card {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.martyr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.martyr-avatar {
    width: 100px;
    height: 100%;
    min-height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.martyr-avatar.no-avatar {
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: bold;
}

.martyr-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.martyr-name {
    color: #e0e0e0;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.martyr-dad {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.martyr-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.date-item {
    font-size: 0.9rem;
    color: #bbb;
}

.date-item strong {
    color: #d4af37;
    font-weight: 500;
}

.view-details-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.view-details-btn:hover {
    background: #d4af37;
    color: #121212;
}

.no-results, .search-tips {
    text-align: center;
    padding: 3rem 1rem;
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid #333;
}

.no-results svg, .search-tips svg {
    color: #d4af37;
    margin-bottom: 1.5rem;
}

.no-results h3, .search-tips h3 {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.no-results p {
    color: #aaa;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-tips ul {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.search-tips li {
    color: #aaa;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.search-tips li::before {
    content: 'â˘';
    color: #d4af37;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .search-header h1 {
        font-size: 2rem;
    }
    
    .search-subtitle {
        font-size: 1rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .search-input-wrapper input {
        padding: 1rem 1rem 1rem 3rem;
        height: 50px;
    }
    
    .search-button {
        border-radius: 0;
        padding: 0.75rem;
        justify-content: center;
    }
    
    .search-button span {
        display: inline;
    }
    
    .search-button svg {
        display: none;
    }
    
    .martyrs-grid {
        grid-template-columns: 1fr;
    }
    
    .martyr-card {
        flex-direction: column;
    }
    
    .martyr-avatar {
        width: 100%;
        height: 150px;
    }
}

@media (min-width: 768px) {
    .martyr-header {
        flex-direction: row;
        text-align: left;
    }
    
    .martyr-img {
        margin-right: 3rem;
        margin-bottom: 0;
    }
    
    .martyr-info {
        text-align: left;
    }
    
    .martyr-info p {
        padding-left: 1rem;
    }
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF; 
    margin-bottom: 20px;
}

.about-content strong {
    color: #FFFFFF;
}

.hero {
    position: relative;
    overflow: hidden;
    background-color: #000; /* Add black background */
    background-attachment: fixed;
    padding: 120px 40px;
    text-align: center;
    border-radius: 10px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #d4af37;
    border: 1px solid #d4af37;
    color: #121212;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s ease-in-out;
}

.hero-button:hover {
    background-color: transparent;
    color: #d4af37;
    transform: translateY(-3px);
}

.martyr-card-link {
    text-decoration: none;
    color: inherit;
}

.featured-martyrs {
    padding: 60px 20px;
    text-align: center;
}

.featured-martyrs h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 40px;
    text-align: center;
}

.martyrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.martyr-card {
    background-color: #1c1c1c;
    border-radius: 8px;
    border: 1px solid #282828;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: left;
    overflow: hidden; 
}

.martyr-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover; 
    filter: grayscale(50%);
    transition: filter 0.3s ease-in-out;
}

.martyr-card-content {
    padding: 20px;
}

.martyr-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

.martyr-card:hover .martyr-card-img {
    filter: grayscale(0%);
}

.martyr-card.gold-card {
    border: 2px solid #d4af37; 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.featured-martyrs, .martyr-detail-container, .search-form, .about-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.featured-martyrs.visible, .martyr-detail-container.visible, .search-form.visible, .about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.submission-form-container h2 {
    font-family: 'Playfair Display', serif;
}

.upload-area {
    border: 2px dashed #444;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #d4af37;
    background-color: #1a1a1a;
}

.upload-label .upload-icon {
    font-size: 3rem;
    color: #d4af37;
    display: block;
}

.upload-label .upload-text {
    color: #888;
    display: block;
    margin-top: 1rem;
}

.file-preview {
    margin-top: 1rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.file-preview img, .file-preview video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.form-control {
    background-color: #1c1c1c;
    border: 1px solid #282828;
    color: #e0e0e0;
    padding: 12px 15px;
    border-radius: 5px;
}

.form-control:focus {
    background-color: #1c1c1c;
    color: #e0e0e0;
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #282828;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.video-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.martyr-card h3 {
    font-family: 'Playfair Display', serif;
    color: #e0e0e0; /* Softer White */
    margin-top: 0;
    font-size: 1.5rem;
}

.martyr-card .martyr-region {
    font-style: italic;
    color: #a9a9a9;
}

.martyr-card .martyr-dates {
    font-size: 0.9rem;
    color: #888;
}

/* Admin Pages */
.admin-login-container, .admin-container {
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 5px;
    margin-top: 40px;
}

.login-form input, .manage-form input, .manage-form textarea {
    background-color: #3a3a3a;
    border: 1px solid #444;
    color: #FFFFFF;
}

.login-form button, .manage-form button {
    background-color: #FF3300; /* Red Accent */
    color: #FFFFFF;
}

/* Top 100 Page Styles */
main h1 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

main h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #FF3300;
}

.martyrs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.martyrs-table thead {
    background: #d4af37;
}

.martyrs-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    color: #121212;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.martyrs-table tbody tr {
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.martyrs-table tbody tr:last-child {
    border-bottom: none;
}

.martyrs-table tbody tr:hover {
    background: #2a2a2a;
}

.martyrs-table td {
    padding: 1.2rem 1rem;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

.martyrs-table td:last-child {
    text-align: center;
}

.martyrs-table a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #FF3300;
    color: white !important;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.martyrs-table a:hover {
    background: #e62e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 0, 0.3);
}

/* Responsive Table */
@media (max-width: 768px) {
    .martyrs-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .martyrs-table th,
    .martyrs-table td {
        min-width: 120px;
    }
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-style: italic;
}

.error-message {
    color: #FF3300;
}

.logout-button {
    background-color: #495057;
    color: #fff;
}

.add-button {
    background-color: #FF3300; /* Red Accent */
    color: #FFFFFF;
    font-weight: bold;
    margin-bottom: 20px;
}

.admin-table .actions a {
    color: #FFFFFF;
}

.admin-table .actions .delete-btn {
    color: #FF3300;
}

.manage-form .cancel-button {
    background-color: #495057;
    color: #FFFFFF;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Martyr Detail Page Styles */
.martyr-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}
.martyr-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.martyr-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #444;
}
.martyr-info h1 {
    margin-top: 0;
}
.medals-list {
    list-style-type: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.medals-list li {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.medals-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.medals-list img {
    width: 50px;
    height: auto;
    vertical-align: middle;
}

.medals-list strong {
    font-weight: 600;
    font-size: 1rem;
}


.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden; 
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #fff;
}

.gallery-overlay p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #d4af37;
    color: #121212;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.gallery-button:hover {
    background-color: #f5d76e;
    color: #121212;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.hero-section {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    pointer-events: none;
}

.hero-content {
    z-index: 3;
}

.hero::after {
    z-index: 2;
}
/* Hamburger */
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
}

.hamburger.is-active {
    color: #fff;
}

.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.content-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .header {
        justify-content: flex-end;
    }
    .hamburger {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: rgba(20, 20, 20, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start; /* Align text to the left */
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
        padding: 60px 0; /* Adjust padding */
    }
    .nav.is-open {
        transform: translateX(0);
    }
    .nav a {
        display: block; /* Ensure each link is on its own line */
        width: 100%; /* Make links take full width */
        color: #fff;
        margin: 0;
        padding: 1rem 2rem;
        font-size: 1.2rem; /* Adjusted for better fit */
        font-weight: 400;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        text-align: left; /* Align text to the left */
    }
    .nav.is-open a {
        opacity: 1;
        transform: translateY(0);
    }
    /* Staggered animation for nav links */
    .nav.is-open a:nth-child(1) { transition-delay: 0.1s; }
    .nav.is-open a:nth-child(2) { transition-delay: 0.15s; }
    .nav.is-open a:nth-child(3) { transition-delay: 0.2s; }
    .nav.is-open a:nth-child(4) { transition-delay: 0.25s; }
    .nav.is-open a:nth-child(5) { transition-delay: 0.3s; }
    .nav.is-open a:nth-child(6) { transition-delay: 0.35s; }
    .nav.is-open a:nth-child(7) { transition-delay: 0.4s; }
}

/* Featured Martyrs Section */
.featured-martyrs {
    padding: 4rem 2rem;
    background-color: #121212;
    color: #e0e0e0;
    position: relative;
    z-index: 2;
}

.featured-martyrs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-martyrs h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #FF3300;
}

.martyrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.martyr-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #e0e0e0;
    display: block;
}

.martyr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.martyr-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
    background: #1e1e1e;
}

.martyr-card:hover .martyr-card-img {
    transform: scale(1.05);
    opacity: 1;
}

.martyr-card-content {
    padding: 1.5rem;
}

.martyr-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.martyr-card:hover h3 {
    color: #FF3300;
}

.martyr-dates {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin: 0;
    padding-top: 0.8rem;
    border-top: 1px solid #444;
}

.martyr-card.gold-card {
    position: relative;
}

.martyr-card.gold-card::before {
    content: 'V?T?N MÜHARIB?SI Q?HR?MANI';
    position: absolute;
    top: 20px;
    right: -35px;
    background: #d4af37;
    color: #121212;
    padding: 4px 30px;
    transform: rotate(45deg);
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .martyrs-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
        padding: 0;
    }
    
    .featured-martyrs {
        padding: 3rem 1rem;
    }
    
    .featured-martyrs h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .martyr-card-img {
        height: 260px;
    }
    
    .martyr-card.gold-card::before {
        font-size: 10px;
        padding: 3px 25px;
        right: -28px;
    }
}
