/* ===== ACHIEVEMENTS PAGE STYLES - GENODENT BRAND ===== */
/* ===== GENODENT BRAND COLORS ===== */
:root {
    /* Primary Brand Colors */
    --genodent-primary: #009245;        /* Shamrock Green */
    --genodent-secondary: #4F4F4F;      /* Dark Gray */
    
    /* Color Variations */
    --genodent-primary-light: #00b854;
    --genodent-primary-dark: #007a38;
    --genodent-secondary-light: #6a6a6a;
    --genodent-secondary-dark: #3a3a3a;
    
    /* Gradients */
    --genodent-gradient-primary: linear-gradient(135deg, #009245 0%, #00b854 100%);
    --genodent-gradient-secondary: linear-gradient(135deg, #4F4F4F 0%, #6a6a6a 100%);
    --genodent-gradient-mixed: linear-gradient(135deg, #009245 0%, #4F4F4F 100%);
    
    /* Shadow Colors */
    --genodent-shadow-primary: rgba(0, 146, 69, 0.15);
    --genodent-shadow-secondary: rgba(79, 79, 79, 0.15);
}

/* Base Styles */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ===== HERO SECTION ===== */
.hero-bg-image-section {
    position: relative;
    min-height: 90vh;
    padding-top: 80px;
    width: 100%;
    background: linear-gradient(135deg, #009245 0%, #4F4F4F 100%);
    background-image: 
        url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1950&q=80'),
        url('https://images.unsplash.com/photo-1553531580-77b2a0cd3c8b?auto=format&fit=crop&q=80'),
        url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&q=80');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    overflow: hidden;
    transition: background-position 0.3s cubic-bezier(.4,1,.7,1);
    background-attachment: scroll;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,146,69,0.9) 0%, rgba(79,79,79,0.8) 100%);
    opacity: 0.85;
    z-index: 1;
}

.hero-bg-image-section .container {
    position: relative;
    z-index: 2;
}

.achievements-hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: trophyFloat 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

@keyframes trophyFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-2deg); }
}

.hero-bg-title {
    color: #fff;
    font-size: 2.7rem;
    font-weight: 900;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.hero-bg-desc {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-bg-btn {
    display: inline-block;
    padding: 13px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 8px;
}

.hero-bg-btn.main-btn {
    background: #fff;
    color: #13c5c1;
    border: none;
}

/* Hover effect removed for hero main button */

.hero-bg-btn.ghost-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* Hover effect removed for hero ghost button */

/* Responsive Design */
@media (max-width: 991px) {
    .hero-bg-title {
        font-size: 2rem;
        text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
    .hero-bg-desc {
        font-size: 1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .hero-bg-image-section {
        min-height: 85vh;
        padding-top: 70px;
    }
}

@media (max-width: 600px) {
    .hero-bg-title {
        font-size: 1.3rem;
        text-shadow: 0 3px 15px rgba(0,0,0,0.4);
    }
    .hero-bg-btn { 
        padding: 10px 18px; 
        font-size: 1rem; 
    }
    .hero-bg-image-section {
        min-height: 80vh;
        padding-top: 60px;
        background-attachment: scroll !important;
    }
}

/* Force background image visibility on all devices */
@media (max-width: 768px) {
    .hero-bg-image-section {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* ===== ACHIEVEMENTS CATEGORIES SECTION ===== */
.achievements-categories-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.achievement-category-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.achievement-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--genodent-gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Hover effect removed for achievement category cards */

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--genodent-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px var(--genodent-shadow-primary);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.category-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== ACHIEVEMENTS LISTING SECTION ===== */
.achievements-listing-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* ===== SEARCH SECTION ===== */
.achievements-search-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.achievements-search-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    z-index: 2;
    color: var(--genodent-secondary);
    font-size: 1.1rem;
}

.achievements-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 50px 15px 50px;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.achievements-search-input::placeholder {
    color: #999;
}

.achievements-search-btn {
    background: var(--genodent-gradient-primary);
    color: white;
    border: none;
    padding: 15px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover effect removed for search button */

.achievements-clear-btn {
    position: absolute;
    right: 100px;
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect removed for clear button */

/* ===== SEARCH RESULTS HEADER ===== */
.search-results-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 146, 69, 0.1);
    border: 1px solid rgba(0, 146, 69, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-results-icon {
    width: 60px;
    height: 60px;
    background: var(--genodent-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-results-content h3 {
    color: var(--genodent-primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.search-results-content p {
    color: var(--genodent-secondary);
    margin-bottom: 0;
}

/* ===== ACHIEVEMENTS GRID ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Original achievement-card styles for backwards compatibility */
.achievement-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hover effect removed for achievement cards */

.achievement-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.achievement-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect removed for achievement images */

.achievement-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effect removed for achievement overlays */

.view-btn {
    background: var(--genodent-gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Hover effect removed for achievement view buttons */

/* Hover effect removed for view button */

.achievement-content {
    padding: 25px;
}

.achievement-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.achievement-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.achievement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--genodent-secondary);
}

.achievement-article-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hover effect removed for achievement article cards */

.achievement-article-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.achievement-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect removed for achievement article images */

.achievement-article-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effect removed for achievement article overlays */

.achievement-read-btn {
    background: var(--genodent-gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Hover effect removed for achievement article read buttons */

/* Hover effect removed for read button */

.achievement-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--genodent-gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.achievement-article-content {
    padding: 25px;
}

.achievement-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--genodent-secondary);
}

.achievement-date, .achievement-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.achievement-article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.achievement-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover effect removed for article title link */

.achievement-article-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== PAGINATION ===== */
.achievements-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ===== BRAND PAGINATION (ACHIEVEMENTS) ===== */
.pagination-nav {
    display: flex;
    justify-content: center;
    direction: rtl;
}

.pagination-nav .pagination {
    margin: 0;
    gap: 8px;
}

.pagination-nav .page-item .page-link {
    color: var(--genodent-primary);
    border: 1px solid rgba(0, 146, 69, 0.25);
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 6px 14px var(--genodent-shadow-primary);
}

.pagination-nav .page-item .page-link:hover,
.pagination-nav .page-item .page-link:focus {
    color: #ffffff;
    background: var(--genodent-gradient-primary);
    border-color: transparent;
    outline: none;
}

.pagination-nav .page-item.active .page-link {
    color: #ffffff;
    background: var(--genodent-gradient-primary);
    border-color: transparent;
}

.pagination-nav .page-item.disabled .page-link {
    color: #9aa0a6;
    background-color: #f3f4f6;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.pagination-nav .page-link i {
    vertical-align: middle;
}

/* ===== EMPTY STATE ===== */
.achievements-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: var(--genodent-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto 30px;
    box-shadow: 0 15px 35px var(--genodent-shadow-primary);
    animation: trophyFloat 3s ease-in-out infinite;
}

.achievements-empty-state h3 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.achievements-empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .achievements-hero-title {
        font-size: 2.2rem;
    }
    
    .achievements-hero-desc {
        font-size: 1.1rem;
    }
    
    .achievements-hero-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .achievement-category-card {
        padding: 25px 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .achievements-search-wrapper {
        padding: 15px;
    }
    
    .achievements-search-input {
        padding: 12px 40px 12px 40px;
        font-size: 0.9rem;
    }
    
    .achievements-search-btn {
        padding: 12px 20px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .achievement-article-image-container {
        height: 200px;
    }
    
    .achievement-article-content {
        padding: 20px;
    }
    
    .achievement-article-title {
        font-size: 1.2rem;
    }
    
    .empty-state-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .achievements-empty-state h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .achievements-hero-title {
        font-size: 1.8rem;
    }
    
    .achievements-hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .achievements-search-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .achievements-search-input {
        padding: 15px 20px;
    }
    
    .achievements-search-btn {
        width: 100%;
        border-radius: 0 0 15px 15px;
    }
    
    .achievements-clear-btn {
        position: static;
        width: 100%;
        border-radius: 0;
        margin-top: 5px;
    }
}
