/* British Academy - Main Stylesheet */
:root {
    --primary: #1a2744;
    --secondary: #c8a951;
    --accent: #b91c1c;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #1e293b;
    --border: #e2e8f0;
    --success: #059669;
    --shadow: 0 20px 60px rgba(26,39,68,0.15);
    --gradient: linear-gradient(135deg, #1a2744 0%, #2d4a8a 50%, #1a2744 100%);
    --gold-gradient: linear-gradient(135deg, #c8a951, #f0d080, #c8a951);
}

/* Reset & Base */
body {
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}
.rtl {
    direction: rtl;
    text-align: right;
}
.ltr {
    direction: ltr;
    text-align: left;
}
h1,h2,h3,h4,h5,.display-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.navbar.scrolled {
    background: rgba(26, 39, 68, 0.95) !important;
    backdrop-filter: blur(10px);
}
.nav-link {
    font-weight: 600;
    margin: 0 0.5rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.btn-gold {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: bold;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?w=1920&q=80') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 50, 0.75);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding-top: 6rem;
}
.hero-title {
    font-size: 4rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.5;
    animation: float 6s infinite ease-in-out;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Stats */
.stats-bar {
    background: var(--primary);
    padding: 2.5rem 0;
    border-bottom: 3px solid var(--secondary);
}
.stat-item {
    text-align: center;
    color: white;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(26,39,68,0.25);
}
.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

/* Course Card */
.course-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.course-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.course-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}
.course-card:hover .course-img {
    transform: scale(1.05);
}
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}
.price-tag {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
}

/* Steps */
.step-container {
    position: relative;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    z-index: 2;
    position: relative;
}
.step-connector {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--border);
    z-index: 1;
}
.step:last-child .step-connector {
    display: none;
}

/* Testimonials */
.testimonial-slider {
    overflow: hidden;
}
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary);
}
.star-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Footer */
.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: var(--secondary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8942b;
}

/* Utilities */
.bg-gradient {
    background: var(--gradient);
}
.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rounded-xl {
    border-radius: 15px;
}
.shadow-soft {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.mt-n5 {
    margin-top: -3rem !important;
}
.pt-100 {
    padding-top: 100px;
}
.pb-100 {
    padding-bottom: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .step-connector {
        display: none;
    }
}
