/* Custom CSS for TOEFL Landing Page */

:root {
    --primary-color: #096b35;
    --primary-light: #1e8a6f;
    --primary-dark: #051122;
    --secondary-color: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #011338;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom Border Radius */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-large) !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(34, 110, 72, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0 80px 0;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
}

/* Hero image decorative elements */
.hero-image::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.08;
    z-index: -1;
}


/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.course-details {
    font-size: 0.9rem;
}

/* Test Cards */
.test-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.test-details {
    font-size: 0.9rem;
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

/* Tabs */
.nav-pills .nav-link {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin: 0 0.25rem;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-item {
    padding: 2rem 1rem;
}

.contact-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-in {
    animation: slideIn 1s ease-out 0.3s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .hero-image {
        padding: 10px;
        margin-top: 2rem;
        min-height: 300px;
    }
    
    .hero-image img {
        min-height: 300px;
    }
    
    .hero-image::before,
    .hero-image::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
    border-width: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Form Styles for Admin */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Table Styles for Admin */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table td {
    border-bottom: 1px solid var(--border-color);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

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

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
}

.alert-info {
    background-color: #eff6ff;
    color: var(--primary-color);
    border-left-color: var(--primary-light);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-large);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

/* Utility Classes */
.text-muted {
    color: var(--text-light) !important;
}

.bg-light {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .contact-section {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}