/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.btn-primary {
    background-color: #1e40af;
    color: white;
    height: 30px;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #e5e7eb;
    color: #374151;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #1e40af;
    color: #1e40af;
}

.btn-orange {
    background-color: #ea580c;
    color: white;
}

.btn-orange:hover {
    background-color: #dc2626;
}

.btn-blue {
    background-color: #2563eb;
    color: white;
}

.btn-blue:hover {
    background-color: #1d4ed8;
}

.btn-gradient {
    background: linear-gradient(135deg, #2563eb, #ea580c);
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8, #dc2626);
}

.btn-ghost {
    background: transparent;
    color: #6b7280;
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    background-color: #f3f4f6;
    color: #1e40af;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1e40af;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e5e7eb;
    background-color: white;
}

.mobile-nav-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

.mobile-cta {
    margin-top: 1rem;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3eaf6 0%, #b6c6e6 100%);
    color: #ffffff;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(227,234,246,0.97) 0%, 
        rgba(182,198,230,0.97) 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #222;
    text-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-highlight {
    background:  linear-gradient(135deg, #070144, #4846da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c52223;
    margin-bottom: 2px;

}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: #333;
    line-height: 1.6;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    
}

.btn-hero {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero.btn-primary {
    background: linear-gradient(90deg, #ff6a5b 0%, #ffd600 100%);
    color: #fff;
    font-weight: 700;
    height: 48px;
    min-width: 180px;
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    padding: 0 2rem;
    border-radius: 32px;
    border: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-hero.btn-primary:hover {
    box-shadow: 0 10px 32px rgba(255, 107, 107, 0.22);
    transform: translateY(-2px) scale(1.03);
}

.btn-hero.btn-secondary {
    background: rgba(255,255,255,0.7);
    height: 48px;
    min-width: 180px;
    color: #333;
    border: 2px solid #e0e7ef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    padding: 0 2rem;
    border-radius: 32px;
    border: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-hero.btn-secondary:hover {
    background: rgba(230,240,255,0.9);
    color: #1e40af;
    border-color: #b6c6e6;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-hero:hover .btn-icon {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-visual {
    animation: slideInRight 1s ease-out;
}

.hero-image-container {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #101a2b 0%, #182848 100%);
}

.hero-image {
    position: relative;
    aspect-ratio: 11/7;
    overflow: visible;
    background: linear-gradient(135deg, #101a2b 0%, #182848 100%);
    border-radius: 24px;
    min-height: 260px;
}

.hero-image::before {
    content: none !important;
    display: none !important;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 24px;
    display: block;
}

/* Fallback for missing hero image */
.hero-img:not([src]), 
.hero-img[src=""],
.hero-img[src*="tunnel-hero.jpg"]:not([src*="static"]) {
    display: none;
}

.hero-image:not(:has(img[src])) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.hero-image:not(:has(img[src]))::before {
    content: "🚇 Tunnel Engineering";
    text-align: center;
    padding: 2rem;
}

.hero-image-container:hover .hero-img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 2rem;
    right: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 2;
    max-width: unset;
    width: auto;
    align-items: flex-end;
}

.overlay-card {
    width: 320px;
    max-width: 95vw;
    min-width: 220px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    animation: slideInRight 1s ease-out;
    animation-fill-mode: both;
    transition: box-shadow 0.3s, transform 0.3s;
}

.overlay-card a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.overlay-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px) scale(1.02);
}

.card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.card-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1px;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation classes for hero elements */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text.animate-in {
    animation: slideInLeft 1s ease-out forwards;
}

.hero-visual.animate-in {
    animation: slideInRight 1s ease-out forwards;
}

/* Enhanced hover effects */
.overlay-card {
    transition: all 0.3s ease;
}

.overlay-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button ripple effect */
.btn-hero {
    position: relative;
    overflow: hidden;
}

.btn-hero span {
    position: relative;
    z-index: 1;
}

/* Responsive design for hero section */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-overlay {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-overlay {
        flex-direction: column;
    }
    
    .overlay-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Courses section */
.courses {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.course-image {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal; /* was overlay, which tinted images too blue */
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge.beginner {
    background-color: #dcfce7;
    color: #166534;
}

.course-badge.intermediate {
    background-color: #fef3c7;
    color: #92400e;
}

.course-badge.advanced {
    background-color: #fee2e2;
    color: #991b1b;
}

.course-content {
    padding: 1.5rem;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.course-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
}

.course-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Consultancy section */
.consultancy {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.consultancy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.consultancy-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.consultancy-content p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-item i {
    color: #10b981;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: #6b7280;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Homepage consultancy cards grid (aligned with courses/blog grids) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.service-card .service-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.service-card .read-more {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card .read-more:hover {
    text-decoration: underline;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.service-card ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.service-card li i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Innovations section */
.innovations {
    padding: 5rem 0;
    background-color: #ffffff;
}

.innovations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.innovation-card {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.innovation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #f97316);
}

.innovation-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.innovation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.innovation-category {
    padding: 0.25rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.innovation-status {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.innovation-status.live {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.innovation-status.beta {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.innovation-status.development {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.innovation-card h3 {
    padding: 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.innovation-card:hover h3 {
    color: #1e40af;
}

.innovation-card p {
    padding: 0 1.5rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.innovation-impact {
    margin: 1rem 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.impact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.impact-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
}

.innovation-card .btn {
    margin: 0 1.5rem 1.5rem;
}

.innovations-cta {
    text-align: center;
}

.innovations-cta p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Blog section */
.blog {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #64748b, #2563eb);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #64748b, #2563eb);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3 {
    color: #1e40af;
}

.blog-content p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    font-size: 0.875rem;
    color: #9ca3af;
}

.blog-cta {
    text-align: center;
}

/* News section */
.news {
    padding: 5rem 0;
    background-color: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.news-main h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-main h3 i {
    color: #1e40af;
}

.news-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.news-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.news-type {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.news-priority {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
}

.news-priority.high {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.news-priority.medium {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.news-priority.low {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.news-date {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.news-card:hover h4 {
    color: #1e40af;
}

.news-card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-source {
    font-size: 0.875rem;
    color: #9ca3af;
}

.news-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-quick-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-quick-item:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.news-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.news-quick-content h4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.news-quick-item:hover h4 {
    color: #1e40af;
}

.news-quick-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-quick-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-type-small,
.news-date-small {
    font-size: 0.75rem;
    color: #9ca3af;
}

.news-type-small {
    padding: 0.125rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

.newsletter-signup {
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.newsletter-signup h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-signup p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.news-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-main h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-main p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    color: #60a5fa;
    width: 1.25rem;
    flex-shrink: 0;
}

.contact-item span {
    color: #d1d5db;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.newsletter {
    background-color: #1e293b;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: #d1d5db;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 28rem;
    flex: 1;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    background-color: #374151;
    color: white;
    font-size: 1rem;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-input:focus {
    outline: none;
    border-color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #d1d5db;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    color: #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #1e293b;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .consultancy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        padding: 0 1rem;
    }

    .courses-grid,
    .innovations-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .service-card ul {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile navigation active state */
.mobile-nav.active {
    display: block;
}

.hero-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    z-index: 3;
    background: rgba(255,255,255,0.85);
    border-radius: 9px; /* rectangle with rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 4px;
}

.hero-logo img, .hero-logo svg {
    width: 28px;
    height: 28px;
    display: block;
}


/* Start Generation Here */
.search-container {
    display: flex;
    align-items: center;
    max-width: 500px;
    width: 100%;
}

.search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-group:focus-within {
    border-color: #ff6a5b;
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.15);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.search-input::placeholder {
    color: #666;
    font-weight: 400;
}

.search-button {
    background: linear-gradient(90deg, #ff6a5b 0%, #ffd600 100%);
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.search-button:hover {
    background: linear-gradient(90deg, #ff5a4b 0%, #ffcc00 100%);
    transform: scale(1.05);
}

.search-button i {
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .search-input-group {
        border-radius: 24px;
    }
    
    .search-input {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .search-button {
        padding: 10px 16px;
        min-width: 44px;
    }
}
/* Cart Icon Styles */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    padding: 0;
    box-shadow: none;
    margin-top: -4px; /* Nudge up for alignment */
}

.cart-icon i {
    font-size: 1.3rem;
    line-height: 1;
    display: block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: #222;
    font-weight: 800;
    font-size: 1.05em;
    font-family: 'Segoe UI', 'Arial', 'sans-serif';
    font-variant-numeric: tabular-nums;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 2px solid #fff;
    z-index: 10;
    padding: 0;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(255,255,255,0.7), 0 1px 2px rgba(0,0,0,0.15);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile responsive for cart icon */
@media (max-width: 768px) {
    .cart-icon {
        margin: 0 0.25rem;
        margin-top: -2px;
    }
    .cart-icon i {
        font-size: 1.1rem;
    }
    .cart-badge {
        width: 15px;
        height: 15px;
        font-size: 0.7rem;
        top: -5px;
        right: -6px;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: max-content;
    max-width: 400px;
    width: auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-group {
    border-bottom: 1px solid #f3f4f6;
    padding: 0.5rem 0;
}

.dropdown-item-group:last-child {
    border-bottom: none;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: #1e40af;
}

.dropdown-header {
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.dropdown-header:hover {
    background-color: #f3f4f6;
    color: #1e40af;
}

.dropdown-subitem {
    padding-left: 2rem;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.dropdown-subitem:hover {
    color: #1e40af;
    background-color: #f9fafb;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
}

.mobile-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

.mobile-dropdown-group {
    margin-bottom: 1rem;
}

.mobile-dropdown-header {
    display: block;
    padding: 0.5rem 1rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.5rem 2rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.mobile-dropdown-item:hover {
    color: #1e40af;
}

/* Responsive adjustments for dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* Additional dropdown enhancements */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    z-index: 1001;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e5e7eb;
    z-index: 1000;
}

/* Submenu styles for course dropdown */
.dropdown-has-submenu {
    position: relative;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: max-content;
    max-width: 350px;
    width: auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 1100;
    padding: 0.5rem 0;
}

.dropdown-has-submenu:hover > .dropdown-submenu {
    display: block;
}

.dropdown-has-submenu > .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
}

.submenu-arrow {
    float: right;
    font-size: 0.8em;
    margin-left: 8px;
}

/* End Generation Here */

/* Alert Messages Styling */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: slideInDown 0.3s ease-out;
    position: relative;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

.alert-dismissible {
    padding-right: 3rem;
}

.btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-close:hover {
    color: #374151;
}

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

/* Auto-dismiss animation */
.alert.fade {
    transition: opacity 0.3s ease-out;
}

.alert.fade.show {
    opacity: 1;
}

/* Cart message container */
#cart-message {
    margin-bottom: 1rem;
}

/* Compact dropdown menu */
.dropdown-menu {
    min-width: max-content;
    max-width: 400px;
    width: auto;
    padding: 0.3rem 0;
    border-radius: 0.5rem; /* was 0.75rem */
    box-shadow: 0 4px 16px rgba(0,0,0,0.10); /* softer shadow */
}

/* Compact dropdown items */
.dropdown-item,
.dropdown-header {
    padding: 0.45rem 1rem; /* was 0.75rem 1.5rem */
    font-size: 0.92rem;    /* slightly smaller */
    border-radius: 0.3rem;
}

/* Compact subitems */
.dropdown-subitem {
    padding-left: 1.5rem; /* was 2rem */
    font-size: 0.85rem;
}

/* Compact group spacing */
.dropdown-item-group {
    padding: 0.2rem 0; /* was 0.5rem 0 */
}

/* Submenu compactness */
.dropdown-submenu {
    min-width: max-content;
    max-width: 350px;
    width: auto;
    padding: 0.2rem 0;
    border-radius: 0.5rem;
}

/* Stylish hover effect */
.dropdown-item:hover,
.dropdown-header:hover,
.dropdown-subitem:hover {
    background: linear-gradient(90deg, #f3f4f6 60%, #e0e7ef 100%);
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(30,64,175,0.06);
    transition: background 0.2s, color 0.2s;
}
