/* Location: /public/css/style.css */
/* Bizbell Academy - Final Design 2026 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --brand-dark: #0e305e;      
    --brand-primary: #16467A;   
    --brand-light: #2475B5;     
    --brand-orange: #F56038;    
    --text-main: #666666;
    --text-head: #333333;
    --bg-light: #f9f9f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
    background: #fff;
    overflow-x: hidden;
}

/* UTILS */
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; position: relative; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-4 { width: 33.33%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* HEADER */
header {
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-dark));
    border-bottom: 3px solid #0a254a;
    padding: 15px 0;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* LOGO - NO BG (Transparent Mode) */
.logo { display: flex; align-items: center; font-size: 24px; font-weight: 700; color: #fff; }
.logo img { 
    height: 45px; 
    margin-right: 15px; 
    /* Removed Background Box as requested */
}
.logo span { font-weight: 300; margin-left: 5px; opacity: 0.9; }

/* NAV */
.burger-menu { display: none; font-size: 24px; cursor: pointer; color: #fff; }
.main-nav ul { display: flex; align-items: center; }
.main-nav li { margin-left: 20px; position: relative; }
.main-nav a { color: #e6e6e6; font-weight: 600; font-size: 13px; text-transform: capitalize; padding: 5px 0; display: block; }
.main-nav a:hover, .main-nav a.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Dropdown */
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--brand-dark); min-width: 180px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); z-index: 100;
    border-top: 2px solid var(--brand-orange);
}
.main-nav li:hover .dropdown-menu { display: block; }
.dropdown-menu a { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Auth Buttons */
.auth-actions { display: flex; align-items: center; margin-left: 25px; }
.search-btn { background: rgba(255,255,255,0.1); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 3px; margin-right: 10px; cursor: pointer; }
.btn-login { background: var(--brand-light); color: #fff; padding: 6px 15px; font-size: 12px; border-radius: 3px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.2); }
.btn-login:hover { background: #358cd1; }

/* HERO SECTION - REDUCED HEIGHT */
.hero {
    background: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
    position: relative; 
    /* Bottom padding drastically reduced to 60px */
    padding: 100px 0 110px 0; 
    color: #fff;
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(20, 50, 90, 0.75); }
.hero-content-wrapper { position: relative; z-index: 2; display: flex; align-items: center; }
.hero-text { width: 55%; padding-right: 40px; }
.hero h1 { font-size: 36px; line-height: 1.3; font-weight: 700; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 14px; line-height: 1.8; margin-bottom: 30px; opacity: 0.9; }
.btn-cta { background: var(--brand-light); color: #fff; padding: 12px 30px; font-size: 16px; border-radius: 4px; border-bottom: 3px solid #1a5c8e; display: inline-flex; align-items: center; }
.btn-small { padding: 8px 20px; font-size: 14px; }
.hero-person { 
    position: absolute; 
    right: 0; 
    /* Increase the negative value to push the person lower */
    bottom: -100px; 
    width: 45%; 
    text-align: right; 
    /* Ensures the image doesn't get cut off if the parent has overflow hidden */
    z-index: 10; 
}

.hero-person img { 
    /* Increase this value to make the person taller */
    max-height: 1000px; 
    width: auto; 
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.4)); 
    /* Helps maintain crispness on high-res displays */
    image-rendering: -webkit-optimize-contrast; 
}

/* FEATURES - REDUCED GAP & ALIGNMENT FIX */
.features-section { 
    /* Reduced padding (40px) */
    padding: 40px 0 20px 0; 
    background: #fff; 
}
.feature-box { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 30px; }
.f-icon { width: 60px; height: 60px; background: var(--brand-orange); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.f-text h3 { color: var(--text-head); font-size: 18px; margin-bottom: 10px; }
.f-text p { 
    font-size: 13px; 
    text-align: justify; /* Justified as requested */
    line-height: 1.8; 
}

/* COURSES - TIGHTER SPACING */
.courses-section { 
    /* Reduced top padding */
    padding: 20px 0 30px 0; 
    background: #fdfdfd; border-top: 1px solid #eee; 
}
.sec-title-wrapper { text-align: center; margin-bottom: 30px; }
.sec-title { font-size: 24px; color: var(--text-head); font-weight: 700; border-bottom: 3px solid var(--brand-orange); display: inline-block; padding-bottom: 10px; }

/* Clickable Wrapper */
.course-link-wrapper { display: block; color: inherit; } 

.course-card { background: #fff; border: 1px solid #e1e1e1; margin-bottom: 30px; transition: transform 0.2s; padding: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.c-img { height: 160px; overflow: hidden; position: relative; }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.c-body { padding: 15px 10px; }
.c-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 5px; height: 40px; overflow: hidden; line-height: 1.2; }
.c-desc { font-size: 12px; color: #777; margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-rating { color: #FBC02D; font-size: 12px; }

/* TESTIMONIALS - CLOSE TO COURSES */
.testimonials-section { 
    /* Top padding minimized to bring title closer to courses */
    padding: 20px 0 60px 0; 
    background: #fff; border-top: 1px solid #eee; 
}
.testimonial-card { display: flex; background: #fff; border: 1px solid #e1e1e1; border-left: 4px solid var(--brand-orange); margin-bottom: 25px; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); align-items: center; width: 100%; }
.t-img { width: 80px; height: 80px; flex-shrink: 0; margin-right: 25px; }
.t-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #f0f0f0; }
.t-content { flex-grow: 1; }
.t-content h4 { font-size: 16px; color: var(--text-head); margin-bottom: 5px; font-weight: 700; }
.t-role { font-size: 12px; color: var(--brand-light); font-weight: 600; text-transform: uppercase; margin-left: 5px; }
.t-content p { font-size: 13px; font-style: italic; color: #555; margin-bottom: 10px; }
.t-rating { color: #FBC02D; font-size: 12px; }
.t-action { text-align: center; margin-top: 30px; }

/* FOOTER */
footer { background: var(--brand-primary); color: rgba(255,255,255,0.7); padding: 20px 0; font-size: 13px; margin-top: auto; border-top: 5px solid var(--brand-light); }
.footer-inner { display: flex; justify-content: space-between; }
.footer-links a { color: rgba(255,255,255,0.7); margin-left: 15px; }
.footer-links a:hover { color: #fff; }

.admin-edit-trigger { position: fixed; bottom: 20px; right: 20px; background: #d32f2f; color: #fff; padding: 10px 20px; border-radius: 50px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 9999; font-weight: bold; text-transform: uppercase; font-size: 12px; display: flex; align-items: center; }

@media (max-width: 992px) { .hero-person { display: none; } .hero-text { width: 100%; text-align: center; padding: 0; } .col-4, .col-3 { width: 50%; } }
@media (max-width: 768px) {
    .col-4, .col-3 { width: 100%; } .header-inner { flex-direction: row; flex-wrap: wrap; }
    .burger-menu { display: block; margin-left: auto; margin-right: 15px; order: 2; }
    .auth-actions { order: 3; }
    .main-nav { width: 100%; order: 4; display: none; background: var(--brand-dark); margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
    .mobile-active { display: block !important; }
    .main-nav ul { flex-direction: column; align-items: flex-start; padding: 10px 0; }
    .main-nav li { margin: 0; width: 100%; }
    .main-nav a { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .feature-box { align-items: center; text-align: center; }
}