/* Soliton Infotech - Professional IT Training Institute Styles */

:root {
    /* Professional IT Training Institute Color Scheme */
    --primary-color: #2c5aa0;        /* Deep Professional Blue */
    --primary-dark: #1e3d72;         /* Darker Blue */
    --primary-light: #4a7bc8;        /* Lighter Blue */
    --secondary-color: #28a745;      /* Success Green */
    --accent-color: #ff6b35;         /* Orange Accent */
    --accent-dark: #e55a2b;          /* Darker Orange */
    --text-dark: #2c3e50;            /* Dark Slate */
    --text-light: #6c757d;           /* Medium Gray */
    --text-muted: #95a5a6;           /* Light Gray */
    --bg-light: #f8f9fa;             /* Light Background */
    --bg-white: #ffffff;             /* Pure White */
    --bg-dark: #343a40;              /* Dark Background */
    --border-color: #dee2e6;         /* Light Border */
    --border-dark: #adb5bd;          /* Dark Border */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Bootstrap Overrides */
:root {
    --bs-primary: #2c5aa0;
    --bs-primary-rgb: 44, 90, 160;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.border-primary {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important;
}

/* Bootstrap-Compatible Components */
.navbar-brand img {
    height: 50px;
    width: auto;
}

/* Override Bootstrap py-5 padding for hero sections */
.hero.with-bg.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Mobile override for even less padding */
@media (max-width: 768px) {
    .hero.with-bg.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero.with-bg.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Override Bootstrap navbar padding */
.navbar-expand-lg {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-expand-lg .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

.card {
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control {
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.badge {
    font-weight: 500;
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-weight: 400;
    color: var(--text-light);
}

/* Footer Link Fixes */
.footer a {
    color: #adb5bd !important;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer .text-muted {
    color: #adb5bd !important;
}

.footer .list-unstyled a {
    color: #adb5bd !important;
}

.footer .list-unstyled a:hover {
    color: #ffffff !important;
}

/* Hero Content Text Visibility Fixes */
.hero-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content h4,
.hero-content h5,
.hero-content h6 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.hero-content p,
.hero-content .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    opacity: 0.95;
}

.hero-content .text-white {
    color: #ffffff !important;
}

.hero-content .btn {
    text-shadow: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hero button visibility fixes - More specific selectors */
.hero .btn-primary,
.hero-content .btn-primary {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #2c5aa0 !important;
    font-weight: 600 !important;
}

.hero .btn-primary:hover,
.hero-content .btn-primary:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #1e3d72 !important;
}

.hero .btn-outline-primary,
.hero-content .btn-outline-primary {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.hero .btn-outline-primary:hover,
.hero-content .btn-outline-primary:hover {
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #2c5aa0 !important;
}

/* Additional Hero Background Enhancements */
.hero.with-bg {
    position: relative;
}

/* Force button visibility in hero sections */
.hero .btn,
.hero-content .btn {
    text-shadow: none !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.15s ease-in-out !important;
}

/* Override Bootstrap button styles in hero */
.hero .btn-primary.btn-lg,
.hero-content .btn-primary.btn-lg {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #2c5aa0 !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    font-size: 1.125rem !important;
}

.hero .btn-outline-primary.btn-lg,
.hero-content .btn-outline-primary.btn-lg {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    font-size: 1.125rem !important;
}

/* Hover effects for hero buttons */
.hero .btn-primary.btn-lg:hover,
.hero-content .btn-primary.btn-lg:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #1e3d72 !important;
    transform: translateY(-2px) !important;
}

.hero .btn-outline-primary.btn-lg:hover,
.hero-content .btn-outline-primary.btn-lg:hover {
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #2c5aa0 !important;
    transform: translateY(-2px) !important;
}

.hero.with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero.with-bg .container {
    position: relative;
    z-index: 2;
}

/* Ensure text is always white and visible */
.hero .text-white,
.hero .hero-content,
.hero .hero-content * {
    color: #ffffff !important;
}

.hero .lead {
    color: #ffffff !important;
    font-weight: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.navbar-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-top {
    display: flex;
    align-items: center;
}

.navbar-bottom {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    justify-content: center;
    margin: 0;
}

.nav-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary-dark);
}

.logo img {
    height: 50px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    filter: brightness(1.2) contrast(1.3) saturate(1.1) sharpness(1.2) drop-shadow(0 0 1px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.logo:hover img {
    filter: brightness(1.3) contrast(1.4) saturate(1.2) sharpness(1.3) drop-shadow(0 0 2px rgba(0,0,0,0.3));
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hide nav-actions when empty (no buttons) */
.nav-actions:empty {
    display: none;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: #047857;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero with background image */
.hero.with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.with-bg::before {
    background: rgba(44, 90, 160, 0.7);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section {
    padding: 2.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.3;
}

.course-content {
    padding: 1.25rem;
}

.course-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Course category specific colors */
.course-category.java {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

.course-category.cloud {
    background: linear-gradient(45deg, #2c5aa0, #4a7bc8);
}

.course-category.data-science {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-duration {
    color: var(--text-light);
    font-size: 0.875rem;
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Responsive Design - Mobile First Approach */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .hero {
        padding: 5rem 1.5rem 2.5rem;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-bottom {
        justify-content: center;
    }
    
    .logo img {
        height: 45px;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-actions {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 4rem 1rem 2rem;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Extra Small Devices (less than 576px) - Mobile Phones */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-bottom {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .nav-menu {
        margin: 0;
        justify-content: center;
    }
    
    .nav-actions {
        position: static;
        transform: none;
        justify-content: center;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        background: var(--bg-light);
        transition: background 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: var(--primary-color);
        color: white;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 4rem 1rem 2rem;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-card {
        margin-bottom: 1rem;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    .course-title {
        font-size: 1.125rem;
    }
    
    .course-description {
        font-size: 0.875rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.875rem;
    }
}

/* Tablet Specific Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 3rem 2rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        padding: 4rem 2rem 2.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .course-card:hover {
        transform: none;
    }
    
    .course-card:active {
        transform: scale(0.98);
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-actions,
    .btn {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        padding: 1rem 0 !important;
        margin-top: 0 !important;
    }
    
    .section {
        padding: 1rem 0 !important;
    }
    
    .course-card,
    .feature-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.hidden { display: none; }
.visible { display: block; }