:root {
    --cec-yellow: #FFD700;
    --cec-orange: #FFA500;
    --cec-black: #000000;
    --cec-dark: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.language-bar {
    background: var(--cec-black);
    font-size: 14px;
}

.language-bar a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.language-bar a:hover {
    opacity: 0.8;
}

.navbar {
    transition: all 0.3s;
}

.navbar-toggler {
    border: 2px solid var(--cec-yellow);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--cec-primary-rgb), 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--cec-dark) !important;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cec-orange) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cec-yellow);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.hero-section {
    background: linear-gradient(135deg, var(--cec-black) 0%, var(--cec-dark) 100%);
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L50 50L0 100" stroke="rgba(255,215,0,0.1)" stroke-width="2" fill="none"/><path d="M100 0L50 50L100 100" stroke="rgba(255,215,0,0.1)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--cec-yellow) 0%, transparent 100%);
    opacity: 0.1;
}

.min-vh-70 {
    min-height: 70vh;
}

.btn-cec {
    background: var(--cec-yellow);
    color: var(--cec-primary-contrast, var(--cec-black));
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(var(--cec-primary-rgb), 0.3);
}

.btn-cec:hover {
    background: var(--cec-orange);
    color: var(--cec-primary-contrast, var(--cec-black));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--cec-secondary-rgb), 0.4);
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(var(--cec-primary-rgb), 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cec-yellow) 0%, var(--cec-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--cec-primary-contrast, var(--cec-black));
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--cec-yellow) 0%, var(--cec-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--cec-primary-contrast, var(--cec-black));
}

.course-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    display: inline-block;
    background: var(--cec-yellow);
    color: var(--cec-primary-contrast, var(--cec-black));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-card-body h5 {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--cec-dark);
}

.course-card-body p {
    color: #666;
    flex: 1;
    margin-bottom: 15px;
}

.course-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--cec-orange);
}

.cta-section {
    background: linear-gradient(135deg, var(--cec-black) 0%, var(--cec-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--cec-yellow);
    border-radius: 50%;
    opacity: 0.1;
}

.footer {
    background: var(--cec-black) !important;
}

.footer h5 {
    color: var(--cec-yellow);
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--cec-yellow);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--cec-yellow);
    color: var(--cec-primary-contrast, var(--cec-black));
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--cec-orange);
    transform: translateY(-3px);
}

.newsletter-popup {
    position: fixed;
    bottom: -500px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 30px;
    z-index: 9999;
    transition: bottom 0.5s;
}

.newsletter-popup.show {
    bottom: 20px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close-popup:hover {
    color: var(--cec-black);
}

.page-header {
    background: linear-gradient(135deg, var(--cec-black) 0%, var(--cec-dark) 100%);
    padding: 80px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--cec-yellow) 0%, transparent 100%);
    opacity: 0.1;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--cec-yellow);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.form-control:focus {
    border-color: var(--cec-yellow);
    box-shadow: 0 0 0 0.2rem rgba(var(--cec-primary-rgb), 0.25);
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-body {
    padding: 25px;
}

.blog-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-meta i {
    color: var(--cec-yellow);
    margin-right: 5px;
}

.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.contact-info-box i {
    font-size: 3rem;
    color: var(--cec-yellow);
    margin-bottom: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--cec-yellow);
    font-size: 3rem;
}

.newsletter-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    padding: 30px;
    z-index: 9999;
    transform: translateY(500px);
    opacity: 0;
    transition: all 0.5s ease;
}

.newsletter-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.newsletter-content {
    position: relative;
}

.close-popup {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--cec-black);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.newsletter-popup h4 {
    color: var(--cec-black);
    margin-bottom: 15px;
}

.newsletter-popup p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.cookies-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    z-index: 9998;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--cec-yellow);
}

.cookies-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookies-content p {
    margin: 0;
    color: #333;
    font-size: 14px;
    flex: 1;
    font-weight: 500;
}

.cookies-content button,
.cookies-content a {
    white-space: nowrap;
}

.accreditation-card {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.accreditation-card:hover {
    transform: translateY(-5px);
}

.accreditation-logo {
    margin-bottom: 10px;
}

.testimonial-avatar {
    font-size: 3rem;
    color: var(--cec-yellow);
}

.stat-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.text-cec {
    color: var(--cec-yellow) !important;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cec-yellow);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--cec-yellow);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--cec-yellow);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    color: var(--cec-yellow);
    margin-bottom: 5px;
}

.achievement-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.comparison-table {
    background: white;
}

.comparison-table th,
.comparison-table td {
    vertical-align: middle;
    padding: 15px;
}

.comparison-table thead th {
    background: var(--cec-yellow);
    color: var(--cec-primary-contrast, var(--cec-black));
    font-weight: bold;
}

.comparison-table tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
}

.meta-item i {
    font-size: 1rem;
}

.meta-item small {
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px !important;
    }
    
    .navbar-nav {
        padding: 15px 0;
    }
    
    .nav-item {
        padding: 5px 0;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        border-radius: 8px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 5px;
    }
    
    .dropdown-item {
        padding: 10px 20px;
    }
    
    .hero-section {
        min-height: 50vh;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
    
    .hero-section .d-flex.gap-4 {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .hero-section .btn {
        width: 100%;
    }
    
    .newsletter-popup {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .cookies-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookies-content .d-flex {
        flex-direction: column;
        width: 100%;
    }
    
    .cookies-content button,
    .cookies-content a {
        width: 100%;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .feature-card,
    .course-card {
        margin-bottom: 20px;
    }
    
    .course-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
}
