/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 25px 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f8fafc;
    min-height: 100vh;
}

/* Most Recommended Section */
#most-recommended-container {
    margin-bottom: 40px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

#most-recommended-container .section-header {
    margin-top: 0;
    color: #1a365d;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#most-recommended-container .section-header::before {
    content: '⭐';
    font-size: 1.5rem;
    opacity: 1;
    background: none;
}

/* Container specific styles */
#all-drills-container,
#most-recommended-container {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

#all-drills-container {
    margin-top: 40px;
}

#most-recommended-container {
    margin: 0 0 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .filters-container {
        gap: 20px;
    }
    
    .filter-group {
        flex: 1 1 100%;
    }
    
    .filter-group:last-child {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .drills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-header {
        font-size: 1.5rem;
    }
    
    .filters-container {
        padding: 20px;
    }
    
    #all-drills-container,
    #most-recommended-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .drills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .drill-card {
        min-height: 320px;
    }
    
    .section-header {
        font-size: 1.4rem;
    }
    
    .filters-container,
    #all-drills-container,
    #most-recommended-container {
        padding: 15px;
    }
    
    .filter-group h3 {
        margin-bottom: 10px;
    }
    
    .drill-categories,
    .difficulty-filters {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-btn,
    .difficulty-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Recommended drills specific styles */
.recommended-drills-grid {
    margin: 10px 0 30px;
}

.recommended-drills-grid .drill-card {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Section headers */
.section-header {
    font-size: 1.6rem;
    color: #2d3748;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-header::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Drill header and content */
.drill-header {
    padding: 18px 20px 15px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    position: relative;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 60, 114, 0.2);
}

/* Ensure content doesn't overflow */
.drill-title {
    font-size: 1.1rem !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.drill-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* SVG container */
.drill-svg-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8fafc;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.drill-svg {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

/* Ensure SVG fits properly */
.drill-svg-container svg {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.drill-svg {
    max-width: 100%;
    height: auto;
    max-height: 180px;
}

/* Rating and actions */
.drill-rating {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
}

.difficulty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .drills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .drills-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .drills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .container {
        padding: 10px;
    }
    
    .drills-container {
        padding: 15px;
    }
}

.recommended-drills-grid .drill-header {
    padding: 15px 20px 0;
}

.recommended-drills-grid .drill-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #2d3748;
    cursor: pointer;
    transition: color 0.2s ease;
}

.recommended-drills-grid .drill-title:hover {
    color: #3182ce;
}

.recommended-drills-grid .drill-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.recommended-drills-grid .rating-badge {
    background: #f0f9ff;
    color: #3182ce;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recommended-drills-grid .drill-svg-container {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.recommended-drills-grid .drill-actions {
    padding: 15px 20px;
    text-align: right;
}

.recommended-drills-grid .view-details-btn {
    background: #3182ce;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.recommended-drills-grid .view-details-btn:hover {
    background: #2c5282;
}

/* Difficulty badges */
.difficulty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-low { background-color: #c6f6d5; color: #22543d; }
.difficulty-medium { background-color: #feebc8; color: #7b341e; }
.difficulty-high { background-color: #fed7d7; color: #822727; }

/* Header Styles */
.main-header {
    text-align: center;
    margin: 0 0 40px 0;
    padding: 30px 20px;
    color: #ffffff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.main-header::before { content: none; }

.main-header h1 {
    margin: 0 0 6px 0;
    font-size: 2rem; /* smaller, consistent size */
    font-weight: 800;
    letter-spacing: -0.25px;
    text-shadow: none;
    position: relative;
    display: inline-block;
    padding-bottom: 0;
}

.main-header h1::after { content: none; }

/* Section Headers */
.section-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5282;  /* Softer blue */
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #63b3ed;  /* Lighter blue accent */
}

/* Filter section header */
.filters-container > .section-header {
    margin-top: 0;
    margin-bottom: 25px;
}

.filters-container > .section-header::before {
    content: '🔍';
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Subsection Headers */
.subsection-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;  /* Softer gray */
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
}

.subsection-header::before {
    content: '→';
    color: #63b3ed;  /* Lighter blue */
    margin-right: 10px;
    font-size: 1.8rem;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    margin: 0;
    color: #2d3748;
    font-size: 1.8rem;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #718096;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #2d3748;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.drill-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.drill-section h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.drill-svg-large {
    width: 100%;
    max-width: 600px;
    height: auto;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.play-animation-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-animation-btn:hover {
    background: #3182ce;
}

/* Coaching Assistant Styles */
.coach-assistant {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.coach-assistant h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#coach-assistant-mount {
    min-height: 100px;
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}


/* Drills Grid Layout */
.drills-container {
    width: 100%;
    margin: 0 0 30px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.drills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure grid items take full width */
#all-drills-container .drills-grid > *,
#most-recommended-container .recommended-drills-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Drill Card Styling */
.drill-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    width: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
}

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

.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.difficulty-low { background-color: #48bb78; }  /* Green */
.difficulty-medium { background-color: #ed8936; }  /* Orange */
.difficulty-high { background-color: #f56565; }  /* Red */

.drill-header {
    padding: 15px;
}

.drill-title {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.drill-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #718096;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #4a5568;
}

.rating-badge small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.drill-svg-container {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.drill-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drill-actions {
    padding: 15px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
}

.view-details-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.view-details-btn:hover {
    background: #3182ce;
}

/* Card Headers */
.card-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;  /* Softer text color */
    margin: 0 0 15px 0;
    padding: 15px 20px;
    background: #f8fafc;  /* Very light gray */
    border-radius: 8px 8px 0 0;
    border-left: 3px solid #90cdf4;  /* Light blue border */
}

/* Main container text */
.container {
    color: #4a5568;  /* Softer text color */
    line-height: 1.7;  /* Better line spacing */
}

/* Main header */

.main-header h1 {
    color: black;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation (use unified global styles from styles.css) */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px; /* defer to global look */
    margin-top: 20px;
}

/* Drill Categories */
.drill-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #1e3c72;
    background: white;
    color: #1e3c72;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 60, 114, 0.2);
}

/* Drill Filters Container */
.filters-container {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 0 0 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-start;
    border: 1px solid #edf2f7;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #444;
    font-weight: 600;
}

/* Category Buttons */
.drill-categories,
.difficulty-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.category-btn,
.difficulty-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.difficulty-btn {
    padding: 6px 14px;
}

.category-btn:hover,
.difficulty-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.category-btn.active,
.difficulty-btn.active {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
}

/* Difficulty Dots */
.difficulty-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.difficulty-dot.low {
    background-color: #4CAF50;
}

.difficulty-dot.medium {
    background-color: #FF9800;
}

.difficulty-dot.high {
    background-color: #F44336;
}

/* Active states for difficulty buttons */
.difficulty-btn[data-difficulty="low"].active {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.difficulty-btn[data-difficulty="medium"].active {
    background-color: #FF9800;
    border-color: #FF9800;
}

.difficulty-btn[data-difficulty="high"].active {
    background-color: #F44336;
    border-color: #F44336;
}

/* Drills Grid Layout */
.drills-container {
    width: 100%;
    margin: 0 0 30px;
}

.drills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.drill-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e9ecef;
}

/* Difficulty Level Indicators */
.drill-card[data-difficulty="medium"] {
    border-top-color: #FF9800; /* Orange for medium difficulty */
}

.drill-card[data-difficulty="high"] {
    border-top-color: #F44336; /* Red for high difficulty */
}

.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.difficulty-low {
    background-color: #4CAF50; /* Green */
}

.difficulty-medium {
    background-color: #FF9800; /* Orange */
}

.difficulty-high {
    background-color: #F44336; /* Red */
}

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

.drill-header {
    padding: 20px 20px 10px;
}

.drill-header::after { content: none; }

.drill-title{
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: color 0.2s ease;
    padding-right: 60px;
    line-height: 1.4;
}
.drill-title:hover { color: #2b6cb0; }

.drill-header .drill-difficulty {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drill-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #2d3748;
    flex-grow: 1;
}

.drill-svg-container {
    padding: 20px;
    background: #f8fafc;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #edf2f7;
}

.drill-svg-container svg { max-width: 100%; height: auto; }

.drill-actions {
    padding: 16px 20px;
    background: #fff;
    justify-content: center;
    border-top: 1px solid #edf2f7;
}

/* Match attacking primary pill button */
.start-animation-btn {
    background: #2b6cb0;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(43,108,176,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.start-animation-btn:hover { background:#2c5282; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(43,108,176,0.3); }
.start-animation-btn:active{ transform: translateY(0); box-shadow: 0 2px 4px rgba(43,108,176,0.2); }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

/* Drill Details */
.drill-details {
    margin-top: 20px;
}

.drill-details h3 {
    color: #1e3c72;
    margin-top: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.drill-details ul, 
.drill-details ol {
    padding-left: 20px;
}

.drill-details li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .drills-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .category-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-nav a {
        width: 80%;
        text-align: center;
        margin: 5px 0;
    }
}

/* Animation for drill cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drill-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.drill-card:nth-child(1) { animation-delay: 0.1s; }
.drill-card:nth-child(2) { animation-delay: 0.2s; }
.drill-card:nth-child(3) { animation-delay: 0.3s; }
.drill-card:nth-child(4) { animation-delay: 0.4s; }
.drill-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== Overrides to align with classic Attacking/Passing design ===== */
/* Grid spacing and columns */
#all-drills-container .drills-grid,
#most-recommended-container .drills-grid,
#most-recommended-container .recommended-drills-grid{
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Card shell */
.drill-card{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drill-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* Header + title */
.drill-header{ padding:20px 20px 10px; background:#fff; color:#2d3748; box-shadow:none; border-bottom:1px solid #edf2f7; }
.drill-header::after{ content:none; }
.drill-title{ margin:0; font-size:1.1rem; font-weight:600; color:#2d3748; line-height:1.4; }
.drill-title:hover{ color:#2b6cb0; }

/* SVG container */
.drill-svg-container{ padding:20px; background:#f8fafc; min-height:220px; display:flex; align-items:center; justify-content:center; border-bottom:1px solid #edf2f7; }
.drill-svg-container svg{ max-width:100%; height:auto; }

/* Actions */
.drill-actions{ padding:16px 20px; background:#fff; display:flex; justify-content:center; border-top:1px solid #edf2f7; }

/* Primary pill buttons (match attacking/passing) */
.details-btn, .animate-btn, .start-animation-btn{
    background:#2b6cb0; color:#fff; border:none; padding:8px 20px; border-radius:20px; cursor:pointer;
    font-size:0.9rem; font-weight:500; text-transform:uppercase; letter-spacing:.5px;
    transition:all .2s ease; box-shadow:0 2px 4px rgba(43,108,176,0.2);
    display:inline-flex; align-items:center; gap:8px;
}
.details-btn:hover, .animate-btn:hover, .start-animation-btn:hover{ background:#2c5282; transform:translateY(-1px); box-shadow:0 4px 8px rgba(43,108,176,0.3); }
.details-btn:active, .animate-btn:active, .start-animation-btn:active{ transform:translateY(0); box-shadow:0 2px 4px rgba(43,108,176,0.2); }

/* Rating block spacing */
.drill-rating.rating-container{ padding:12px 20px; background:#f8fafc; border-top:1px solid #edf2f7; }
