/**
 * Styles for Achievements & Projects Page (achievements.php)
 * Official Logo Green / Teal Brand Theme with Crisp High-Contrast Typography
 */

:root {
    --brand-green: #0D9488;
    --brand-green-dark: #0F766E;
    --brand-green-deep: #064E3B;
    --brand-green-light: #14B8A6;
    --brand-green-mint: #5EEAD4;
    --brand-gold: #C9A962;
    --brand-gold-light: #D4B870;
    --brand-green-gradient: linear-gradient(135deg, #064E3B 0%, #0D9488 50%, #0F766E 100%);
    --brand-green-gradient-light: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    --brand-green-shadow: rgba(13, 148, 136, 0.28);
}

/* Hero Section with Official Logo Green Gradient */
.achievements-hero {
    background: linear-gradient(135deg, #064E3B 0%, #0D9488 50%, #0F766E 100%);
    min-height: 400px;
    position: relative;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 14px 35px rgba(6, 78, 59, 0.25);
    overflow: hidden !important;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: #ffffff;
}

.shape-1 { width: 340px; height: 340px; top: -110px; right: -110px; }
.shape-2 { width: 230px; height: 230px; bottom: -60px; left: 8%; }
.shape-3 { width: 170px; height: 170px; top: 40%; left: 45%; }

/* High-Contrast Hero Typography */
.achievements-hero .hero-title {
    color: #ffffff !important;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.achievements-hero .hero-title .text-highlight {
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievements-hero .hero-desc {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.85;
}

.hero-stats .stat-item {
    padding: 16px 26px;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero-stats .stat-item h3 {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.85rem;
}

.hero-stats .stat-item small {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
    font-size: 0.92rem;
}

.hero-illustration i {
    color: rgba(255, 255, 255, 0.28) !important;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

/* Category Filter Buttons */
.categories-filter {
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-btn:hover {
    border-color: var(--brand-green);
    color: var(--brand-green-dark);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
    border-color: #0F766E !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

/* Featured Achievements Cards */
.featured-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(13, 148, 136, 0.18);
    border-color: var(--brand-green);
}

.featured-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.featured-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--brand-green-dark);
}

/* Project Cards Grid */
.project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(13, 148, 136, 0.18);
    border-color: rgba(13, 148, 136, 0.45);
}

.project-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f0fdfa;
}

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

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.88) 0%, rgba(13, 148, 136, 0.35) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(15px);
    transition: transform 0.35s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.project-stats .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.project-stats .stat-unit {
    font-size: 0.95rem;
    color: var(--brand-green-mint);
    font-weight: 600;
}

.project-badge.featured {
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.project-badge.category {
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-green-dark);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.project-content {
    padding: 1.6rem;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    position: absolute;
    top: -27px;
    right: 22px;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.project-title {
    font-weight: 700;
    font-size: 1.22rem;
    color: #0f172a;
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.project-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.meta-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Color Bar */
.project-color-bar {
    height: 4px;
    width: 100%;
}

/* Statistics Counter Section */
.statistics-counter {
    background: linear-gradient(135deg, #064E3B 0%, #0D9488 50%, #0F766E 100%) !important;
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(6, 78, 59, 0.28);
}

.counter-item {
    padding: 20px;
}

.counter-item i {
    color: #FDE68A;
    font-size: 2.2rem;
}

.counter-item h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
}

.counter-item p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Brand Green Gradient Classes */
.bg-gradient-green,
.bg-gradient-primary {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
    color: #ffffff !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #ffffff !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    color: #ffffff !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: #ffffff !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #64748B 0%, #475569 100%) !important;
    color: #ffffff !important;
}

/* Brand Badges */
.badge-brand {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Modal Styling */
.achievement-modal .modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.achievement-modal .modal-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.achievement-modal .stat-box {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.achievement-modal .stat-box.bg-brand {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
    color: #ffffff !important;
}

.achievement-modal .modal-description {
    background: #f0fdfa;
    border-right: 4px solid var(--brand-green);
    padding: 22px;
    border-radius: 14px;
    color: #334155;
    line-height: 1.8;
}
