/* assets/css/landing.css */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Design Tokens */
:root {
    /* removed */
    --secondary: #0a0a0a;
    --background: #050505;
    --surface: #181818;
    --text-primary: #e0e0e0;
    --text-muted: #999;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --transition-speed: 0.3s;
    --radius: 12px;
    --gold: #f5c518;
    --gold-light: #fadd5c;
}

/* Global Reset / Typography */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .section-title, .success-title {
    font-family: 'Lobster Two', cursive;
    color: #ffffff !important;
    margin: 0;
}

.section-title::after {
    background: var(--primary) !important;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    box-shadow: 0 4px 30px rgba(0,0,0,0.45);
    transition: var(--transition-speed);
}

/* Hero Arrow Customization */
.hero-arrow {
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    opacity: 0.7;
    transition: var(--transition-speed);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10,10,10,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-arrow:hover {
    opacity: 1;
    background: rgba(10,10,10,0.6);
    transform: scale(1.08);
}

/* Hero Content Glass Effect */
.hero-content-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius);
    padding: 30px 20px;
    max-width: 800px;
    margin: auto;
}

/* Button Enhancements */
.btn {
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary, .btn-danger {
    background: linear-gradient(135deg, var(--primary, #11372c), var(--primary-light, #1f5a47)) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3) !important;
}
.btn-primary:hover, .btn-danger:hover {
    background: linear-gradient(135deg, var(--primary-light, #1f5a47), var(--primary, #11372c)) !important;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.5) !important;
}
.btn-success {
    background: linear-gradient(135deg, #198754, #28a745) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3) !important;
}
.btn-success:hover {
    background: linear-gradient(135deg, #28a745, #198754) !important;
    box-shadow: 0 6px 18px rgba(40,167,69,0.5) !important;
}
.btn-dark {
    background: linear-gradient(135deg, #212529, #343a40) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(33,37,41,0.3) !important;
}
.btn-dark:hover {
    background: linear-gradient(135deg, #343a40, #212529) !important;
    box-shadow: 0 6px 18px rgba(33,37,41,0.5) !important;
}

.btn-primary-glass {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-speed, 0.3s);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-glass:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.5);
    transform: translateY(-2px);
}

/* Course Card Enhancements */
.course-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.course-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.course-footer {
    margin-top: auto !important;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(245, 197, 24, 0.15);
    border-color: rgba(245, 197, 24, 0.3);
}

/* Instructor Card Enhancements */
.instructor-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transition: transform 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: none !important;
    border-color: transparent !important;
}
.instructor-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, #103b49 0%, #03141a 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.05);
}
.instructor-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 35%, rgba(3,20,26,0.6) 100%);
    pointer-events: none;
    border-radius: 12px;
}
.instructor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
    border-radius: 12px !important;
}
.instructor-card:hover .instructor-img-wrapper img {
    transform: scale(1.05);
}
.instructor-info {
    padding: 12px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: left !important;
}
.instructor-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 4px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.3;
}
.instructor-title {
    font-size: 0.88rem;
    color: #888888 !important;
    margin-bottom: 0 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn-primary-glass { padding: 10px 24px; }
}

/* Fade In Animations for sections */
.section-fade {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Star of the Month Card */
.star-card {
    padding: 30px 20px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.star-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
}
.star-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(var(--primary-rgb), 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.4);
}
.star-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid rgba(var(--primary-rgb), 0.5);
    padding: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.star-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.star-course {
    font-size: 0.85rem;
    color: #ccc !important;
}
.star-mark strong {
    color: var(--gold);
    font-size: 1.2rem;
}
.star-note {
    font-style: italic;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Mobile App Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(20, 21, 23, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(var(--primary-rgb), 0.22);
    display: none; /* Hidden on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 1;
    height: 100%;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.mobile-nav-item span {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Active & Hover States */
.mobile-nav-item:hover, 
.mobile-nav-item.active {
    color: var(--primary-light) !important;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 80px !important;
    }
}

/* ==========================================================================
   Static Hero Section (TheIGCourses Style)
   ========================================================================== */
.anonymous-home__banner {
    height: 100dvh;
    width: 100%;
    position: relative;
    background-color: #000;
    overflow: hidden;
    z-index: 10;
}

.anonymous-home__banner-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.anonymous-home__banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.anonymous-home__banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 65% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 55%, #000000 90%), 
                linear-gradient(to right, #000000 30%, transparent 65%, #000000 98%);
    z-index: 2;
    pointer-events: none;
}

.anonymous-home__banner-titles-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
    padding-top: 80px; /* Offset for navbar */
}

.anonymous-home__banner-titles {
    max-width: 600px;
    text-align: left;
}

.anonymous-home__banner-titles_title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.anonymous-home__banner-titles_subtitle {
    font-size: 1.05rem;
    color: #aeaeae;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 25px;
}

.anonymous-home__banner__button {
    background: var(--primary) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4) !important;
    padding: 12px 36px;
    font-size: 0.95rem;
    text-transform: capitalize;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

.anonymous-home__banner__button:hover {
    background: var(--primary-light) !important;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.7) !important;
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .anonymous-home__banner {
        height: 100dvh;
    }
    .anonymous-home__banner-overlay {
        background: linear-gradient(to bottom, transparent 60%, #000 95%), 
                    linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    }
    .anonymous-home__banner-titles-container {
        padding-top: 30px;
        display: block;
    }
    .anonymous-home__banner-titles {
        max-width: 100%;
        text-align: center;
        padding: 0 15px;
    }
    .anonymous-home__banner-titles_title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Subscribe Page Styling (TheIGCourses Style)
   ========================================================================== */
.subscribe-hero {
    height: 480px;
    width: 100%;
    position: relative;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: 1;
}

.subscribe-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 60%, #000000 95%),
                linear-gradient(to bottom, transparent 50%, #000000 100%);
    z-index: 2;
    pointer-events: none;
}

.subscribe-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    padding: 100px 20px 20px; /* offset for navbar */
}

.subscribe-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.subscribe-hero-subtitle {
    font-size: 1.15rem;
    color: #b3b3b3;
    line-height: 1.6;
    font-weight: 400;
}

.subscribe-plans-section {
    background-color: #000;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.plans-container-offset {
    margin-top: -120px; /* overlay plans on the hero */
}

/* Plan Cards styling to match screenshot */
.sub-plan-card {
    background: #111111;
    border: 1.5px solid #222222;
    border-radius: 16px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.sub-plan-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08) 0%, #111111 100%);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
}

.sub-plan-card:focus,
.sub-plan-card:focus-visible {
    outline: none; /* Prevent weird "apartment" shape from Chrome focus ring */
}

.popular-header-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-block;
}

.popular-header-badge span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light, #ff4757));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
    white-space: nowrap;
}

.sub-plan-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sub-plan-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.save-badge-green {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.sub-plan-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    min-height: 20px;
}

.sub-plan-price-row {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-end;
}

.original-price-crossed {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: #666;
    margin-right: 8px;
    margin-bottom: 2px;
}

.sub-plan-amount {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sub-plan-period {
    font-size: 0.85rem;
    color: #888;
    margin-left: 5px;
    margin-bottom: 2px;
}

.sub-plan-billing {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 30px;
}

.sub-plan-button {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: capitalize;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

.sub-plan-button.btn-red {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.sub-plan-button.btn-red:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.6);
    transform: translateY(-2px);
}

.sub-plan-button.btn-outline {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid #444;
}

.sub-plan-button.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.pay-info-section {
    text-align: center;
    margin-top: 40px;
}

.pay-info-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.payment-methods-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-method-badge {
    background: #111;
    border: 1px solid #222;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-method-badge i {
    font-size: 1.1rem;
}

/* bottom features section */
.subscribe-features-section {
    background-color: #000;
    padding: 60px 0 100px 0;
    border-top: 1px solid #111;
}

.features-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Montserrat', sans-serif;
}

.feature-check-card {
    background: #111111;
    border: 1.5px solid #222222;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
}

.feature-check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.feature-check-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.feature-check-desc {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .subscribe-hero-title {
        font-size: 2rem;
    }
    .features-section-title {
        font-size: 1.8rem;
    }
}

/* Hero Search Bar Integration */
.hero-search-container {
    max-width: 600px;
    margin: 0 auto;
}
.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px;
    transition: all 0.3s ease;
}
.hero-search-form:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.hero-search-form input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
}
.hero-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.hero-search-form button {
    background: var(--primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}
.hero-search-form button:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}




