/**
 * Sunrise Career Academy - Styles
 * Academy-specific CSS with Red theme for coaching
 */

:root {
    --branch-primary: #E53935;
    --branch-secondary: #B71C1C;
    --branch-accent: #FF5252;
    --branch-light: #FFEBEE;

    --white: #ffffff;
    --black: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-500: #6c757d;
    --gray-700: #343a40;
    --gray-900: #1a1a2e;

    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --section-padding: 5rem 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 50rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition-base: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

a {
    color: var(--branch-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--branch-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

.preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--branch-light);
    border-top-color: var(--branch-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.top-bar {
    background: var(--branch-secondary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-info {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.top-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-info a {
    color: var(--white);
}

.top-link {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 1rem;
}

.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 50px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--branch-primary);
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.75rem 1rem !important;
}

.nav-link:hover {
    color: var(--branch-primary) !important;
}

.btn-nav {
    background: var(--branch-primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem !important;
}

.btn-nav:hover {
    background: var(--branch-secondary) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.dropdown-item:hover {
    background: var(--branch-light);
    color: var(--branch-primary);
}

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

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

.section {
    padding: var(--section-padding);
}

.section-gray {
    background: var(--gray-100);
}

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

.section-subtitle {
    color: var(--branch-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.page-header {
    background: linear-gradient(135deg, var(--branch-secondary), var(--branch-primary));
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

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

.branch-footer {
    background: var(--gray-900);
    color: #94a3b8;
}

.footer-top {
    padding: 4rem 0;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-widget h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--branch-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--branch-accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--branch-primary);
    width: 16px;
}

.footer-contact a {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-links a:hover {
    background: var(--branch-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--branch-accent);
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--branch-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    .top-bar .text-end {
        display: none !important;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
}