/* ========================================================= */
/* Custom Floating Pill Header UI (Figma Design)             */
/* ========================================================= */

/* Make header floating and transparent */
header#header {
    background: transparent !important;
    border-bottom: none !important;
    position: absolute;
    width: 100%;
    top: 25px;
    left: 0;
    z-index: 9999;
}

/* The Pill Shape Background */
header#header [data-row*="middle"] {
    background-color: #f6f8fb !important; /* Light grayish-blue background */
    border-radius: 60px !important;
    max-width: 1300px;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0,0,0,0.04) !important;
    padding: 8px 30px !important;
}

/* Search Button Icon Circle */
header#header .ct-header-search > a {
    background-color: transparent !important;
    border: 1px solid #e2e8f0;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #4b5563 !important;
}

/* Log In Button Styling */
header#header .ct-button {
    background-color: #38bdf8 !important; /* Light blue button */
    color: #111827 !important; /* Dark text */
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 28px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none !important;
}

/* Menu Link Styling */
header#header .ct-menu-link {
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 16px !important;
}

/* Active Menu Item Color */
header#header .current-menu-item > a,
header#header .ct-menu-link:hover {
    color: #38bdf8 !important; /* Light blue active link */
}

header#header .current-menu-item > a svg {
    fill: #38bdf8 !important;
}

/* ========================================================= */
/* Hero Section UI                                           */
/* Shortcode: [school_hero]                                  */
/* ========================================================= */
.school-hero-section {
    padding: 180px 20px 100px;
    background: radial-gradient(circle at 10% 20%, #fff0ea 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, #eff6ff 0%, transparent 40%),
                #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.school-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.school-hero-content {
    margin-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}
.hero-badge .star-icon { color: #38bdf8; font-size: 16px; }

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons a {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: #22d3ee; color: #000; }
.btn-primary:hover { background: #06b6d4; }
.btn-secondary { background: #fff; color: #0f172a; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #f8fafc; }

/* Image Area */
.school-hero-images {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: flex;
}

.main-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.main-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.floating-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.ctrl-btn {
    width: 45px; height: 45px;
    border-radius: 12px;
    border: none;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 18px;
}
.ctrl-btn.btn-danger { background: #ef4444; color: #fff; }

.side-images {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.side-img {
    width: 120px; height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Left Card */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: left;
}

.left-card {
    left: -120px;
    bottom: -50px;
    width: 320px;
}
.card-icon { font-size: 24px; margin-bottom: 15px; }
.card-title { color: #0f172a; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.attendees { margin-bottom: 15px; }
.attendees .label { color: #38bdf8; font-size: 12px; font-weight: 600; }
.attendees .names { color: #475569; font-size: 13px; }
.card-desc { color: #64748b; font-size: 13px; line-height: 1.5; margin-bottom: 15px; }
.card-list { padding-left: 15px; margin-bottom: 20px; }
.card-list li { color: #64748b; font-size: 12px; margin-bottom: 5px; }
.creating-badge { display: inline-block; background: #f1f5f9; padding: 6px 12px; border-radius: 20px; font-size: 12px; color: #475569; }

/* Right Card */
.right-card {
    right: -120px;
    bottom: -20px;
    width: 300px;
    padding: 15px;
}
.course-img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: 15px; }
.tags { display: flex; gap: 8px; margin-bottom: 15px; }
.tag { background: #e2e8f0; color: #475569; font-size: 11px; padding: 4px 8px; border-radius: 4px; font-weight: 600;}
.price-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.old-price { text-decoration: line-through; color: #94a3b8; font-size: 14px; }
.new-price { color: #0f172a; font-weight: 700; font-size: 18px; }
.view-course { color: #38bdf8; text-decoration: none; font-size: 14px; font-weight: 600; }

.carousel-arrows {
    position: absolute;
    bottom: -25px;
    right: 25px;
    display: flex;
    gap: 15px;
}
.arrow-btn {
    width: 45px; height: 45px;
    border-radius: 50%; border: none;
    background: #f1f5f9; cursor: pointer;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.arrow-btn.right-arrow { background: #22d3ee; color: #000; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .left-card { left: -20px; }
    .right-card { right: -20px; }
}
@media (max-width: 992px) {
    .left-card, .right-card, .side-images { display: none; }
    .hero-title { font-size: 42px; }
    .school-hero-section { padding: 120px 20px 60px; }
}
