/* ============================================
   QUALIFICATIONS PAGE STYLES
   Modern card-based layout for qualifications
   ============================================ */

/* Hero Section */
.qualifications-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5234 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.qualifications-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/assets/img/pattern.png") repeat;
    opacity: 0.05;
    pointer-events: none;
}

.qualifications-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.qualifications-hero p {
    font-size: 20px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Stats Bar */
.stats-bar {
    background: white;
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 96, 67, 0.2);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(58, 96, 67, 0.25);
}

/* Search Box */
.search {
    position: relative;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.search-wrapper {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper:hover {
    box-shadow: 0 8px 30px rgba(58, 96, 67, 0.15);
    transform: translateY(-2px);
}

.search-container {
    position: relative;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.5;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--primary-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: #bdc3c7;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.search-wrapper:hover .search-icon {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.search-input:focus + .search-icon {
    color: var(--primary-color);
}

/* Focus ring effect */
.search-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.search-input:focus ~ .search-container::before,
.search-container:focus-within::before {
    opacity: 1;
}

/* Qualifications Grid */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 80px;
}

/* Qualification Card */
.qualification-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.qualification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(58, 96, 67, 0.15);
    border-color: var(--primary-color);
}

/* Card Header with Image/Icon */
.card-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-header-icon {
    font-size: 64px;
    color: white;
    z-index: 1;
    position: relative;
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Level Badge */
.level-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Card Body */
.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.qualification-category {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.qualification-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.qualification-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.info-list li svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-list li strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 80px;
}

/* Card Footer */
.card-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2c5234;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 96, 67, 0.3);
}

.btn-secondary {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Features/Highlights */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.feature-tag {
    background: #e8f5e9;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Accreditation Badge */
.accreditation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3e0;
    color: var(--secondary-color);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.accreditation-badge svg {
    width: 18px;
    height: 18px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: #999;
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .qualifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .qualifications-hero h1 {
        font-size: 40px;
    }

    .qualifications-hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .qualifications-hero {
        padding: 60px 0 40px;
    }

    .qualifications-hero h1 {
        font-size: 32px;
    }

    .qualifications-hero p {
        font-size: 16px;
    }

    .qualifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .card-header {
        min-height: 180px;
        max-height: 350px;
    }

    .qualification-title {
        font-size: 20px;
    }

    .card-footer {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .qualifications-hero h1 {
        font-size: 28px;
    }

    .qualifications-hero p {
        font-size: 15px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 30px;
    }

    .card-body {
        padding: 20px;
    }

    .qualification-title {
        font-size: 18px;
    }

    .qualification-description {
        font-size: 14px;
    }

    .card-header {
        min-height: 160px;
        max-height: 300px;
    }
}

/* Print Styles */
@media print {
    .qualifications-hero,
    .category-filter,
    .search,
    .card-footer {
        display: none;
    }

    .qualification-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
