/* Courses Page Specific Styles */

/* Courses Hero */
.courses-hero {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(26, 86, 219, 0.9)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.courses-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.courses-hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.courses-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Animated Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation: float 20s infinite linear;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation: float 15s infinite linear reverse;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 15%;
    animation: float 25s infinite linear;
    animation-delay: 1s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    right: 25%;
    animation: float 18s infinite linear reverse;
    animation-delay: 3s;
}

.shape-5 {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 40%;
    animation: float 22s infinite linear;
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-1000px) rotate(360deg);
    }
}

/* Annual Training Section */
.annual-training-section {
    padding: 100px 0;
    background: #f8fafc;
}

/* Enhanced Week Styling for ALL weeks */
.enhanced-week {
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border-left: 5px solid transparent;
}

.week-1 {
    border-left-color: #1a56db;
}

.week-2 {
    border-left-color: #059669;
}

.week-3 {
    border-left-color: #7c3aed;
}

.week-4 {
    border-left-color: #dc2626;
}

.enhanced-week::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
}

.enhanced-week .week-header {
    border-bottom: 2px solid var(--gray-light);
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: var(--radius-sm);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
}

.enhanced-week .week-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
}

.enhanced-week .week-number {
    width: 60px;
    height: 60px;
    color: rgb(0, 0, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.week-1 .week-number {
    background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
}

.week-2 .week-number {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.week-3 .week-number {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.week-4 .week-number {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.week-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.week-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.week-header p {
    color: var(--gray-dark);
    margin: 0;
}

.week-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Special styling for weeks with single course card */
.week-courses:has(.course-card:only-child) {
    display: flex;
    justify-content: center;
}

.week-courses:has(.course-card:only-child) .course-card {
    max-width: 600px;
    width: 100%;
}

/* Enhanced Course Cards for ALL weeks */
.enhanced-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.7;
}

.enhanced-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.course-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(26, 86, 219, 0.3);
    z-index: 2;
}

.foundation-badge {
    background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
}

.week-1 .course-badge:not(.foundation-badge) {
    background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
}

.week-2 .course-badge {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.week-3 .course-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.week-4 .course-badge {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.course-week {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.enhanced-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-top: 10px;
    line-height: 1.4;
}

.enhanced-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--gray);
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
    margin-top: 15px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.importance {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: white;
    margin-top: 50px;
    box-shadow: var(--shadow);
}

.cta-content h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-box .btn {
    background: white;
    color: var(--primary);
    border: 2px solid white;
    font-weight: 600;
}

.cta-box .btn:hover {
    background: transparent;
    color: white;
}

/* DELPAP Section */
.delpap-section {
    padding: 100px 0;
    background: white;
}

.phase-timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

.phase-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 1;
}

.phase-card {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.phase-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(26, 86, 219, 0.3);
}

.phase-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.phase-content p {
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.phase-topics {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.phase-topics li {
    padding: 5px 0;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase-topics i {
    color: var(--primary);
}

.phase-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Topics Section */
.topics-section {
    padding: 100px 0;
    background: #f8fafc;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.topic-category {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.topic-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.topic-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.topic-category h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.topic-category ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.topic-category li {
    padding: 8px 0;
    color: var(--gray-dark);
    position: relative;
    padding-left: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.topic-category li:last-child {
    border-bottom: none;
}

.topic-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Methodology Section */
.methodology-section {
    padding: 100px 0;
    background: white;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.method-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

.method-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.method-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.method-card p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Certification Section */
.certification-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.certification-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-badge {
    flex-shrink: 0;
}

.cert-badge i {
    font-size: 8rem;
    opacity: 0.8;
}

.cert-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cert-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cert-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.feature i {
    color: #fbbf24;
}

/* Registration Section */
.registration-section {
    padding: 100px 0;
    background: #f8fafc;
    text-align: center;
}

.registration-content h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.registration-content p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.registration-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    gap: 40px;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .courses-hero-title {
        font-size: 2.75rem;
    }
    
    .week-courses {
        grid-template-columns: 1fr;
    }
    
    .week-courses:has(.course-card:only-child) .course-card {
        max-width: 100%;
    }
    
    .phase-timeline::before {
        display: none;
    }
    
    .phase-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .certification-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-hero {
        padding: 120px 0 80px;
    }
    
    .courses-hero-title {
        font-size: 2.25rem;
    }
    
    .week-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .course-badge {
        font-size: 0.75rem;
        padding: 5px 15px;
    }
    
    .course-meta {
        justify-content: center;
    }
    
    .registration-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .courses-hero-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .enhanced-card {
        padding: 25px 20px;
    }
    
    .course-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .phase-card {
        padding: 20px;
    }
    
    .course-week {
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .importance {
        font-size: 0.7rem;
    }
}