/* Apple-Inspired Professional Design System */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apple-inspired Typography */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 600;
    letter-spacing: -0.003em;
    line-height: 1.07;
    color: #1d1d1f;
    font-size: 39px;
    font-family: math;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.14;
    color: #1d1d1f;
}

.lead {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.011em;
    line-height: 1.38;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 20px !important;
}

.hero-section-compact {
    margin-top: 60px;
}

.hero-title {
    font-size: 40px !important;
    font-weight: 600 !important;
    letter-spacing: -0.003em !important;
    margin-bottom: 1.5rem !important;
    font-family: math !important;
    line-height: 59px !important;
}

.hero-subtitle {
    font-size: 108px !important;
    font-weight: 400;
    letter-spacing: 0.011em;
    line-height: 1.38;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    font-family: sans-serif;
    line-height: 30px;
}

.hero-btn {
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: -0.022em;
    text-decoration: none;
    display: inline-block;
    font-family: math !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 18px !important;
    font-weight: 400;
    letter-spacing: 0.011em;
    line-height: 1.38;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Apple-style Cards */
.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Apple-style Buttons */
.btn {
    border-radius: 980px;
    font-weight: 600;
    letter-spacing: -0.022em;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #dc3545;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0077ed;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #1d1d1f;
    border-color: #ffffff;
}

.btn-warning {
    background: #ff9500;
    color: #ffffff;
}

.btn-warning:hover {
    background: #ffad33;
    color: #ffffff;
}

/* Apple-style Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #1d1d1f !important;
    text-decoration: none;
}

.nav-link {
    color: #1d1d1f !important;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #dc3545;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Apple-style Sections */
.section-padding {
    padding: 10px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.003em;
    line-height: 1.07;
    color: #000000;
    margin-bottom: 1rem;
    font-family: math;
}

.section-subtitle {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.011em;
    line-height: 1.38;
    color: #000000;
    margin-bottom: 3rem;
    font-family: math;
}

/* Apple-style Stats */
.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.003em;
    line-height: 1.07;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #86868b;
}

/* Featured Courses Section */
.section-padding {
    padding: 50px 0 40px !important;
}

/* Course Card Styling */
.course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.course-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card .card-body .course-price {
    margin-top: auto;
    margin-bottom: 12px;
}

.course-card .card-body .d-grid {
    margin-top: 0;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Thumbnail / Icon */
.course-thumbnail img {
    width: 100%;
    height: 200px;
    -o-object-fit: cover;
       object-fit: cover;
}

.course-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* Badges */
.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff5722;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.course-badge.enrollment {
    top: 15px;
    right: 15px;
    left: auto;
    background: #2196f3;
}

/* Body */
.course-body {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}

/* Description (Issue Fix: Color) */
.course-description {
    color: #555;
    /* better readability */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    /* alignment fix - fixed height for consistent card alignment */
}

/* Features */
.course-features {
    list-style: none;
    padding: 0;
}

.course-features li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.course-features i {
    color: #dc3545;
}

/* Footer */
.course-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-price {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

/* View All Button */
.btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
}

/* Apple-style Testimonials */
.testimonial-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    line-height: 1.6;
    color: #1d1d1f;
    font-style: italic;
}

/* Apple-style Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;               /* ensure equal height cards */
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-image {
    width: 100%;
    height: 220px;              /* standardized thumbnail height */
    -o-object-fit: cover;
       object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    display: flex;              /* make content fill remaining space */
    flex-direction: column;
    flex: 1;
}

.blog-category {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.blog-meta {
    margin-bottom: 10px !important;
}

.blog-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.4;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
    display: -webkit-box;       /* clamp to 2 lines */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    line-height: 1.6;
    color: #86868b;
    margin-bottom: 1rem;
    display: -webkit-box;       /* clamp to 3 lines */
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #dc3545;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;           /* stick read more to bottom */
}

.blog-link:hover {
    color: #0077ed;
}

/* Apple-style Forms */
.form-control {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    outline: none;
}

.form-label {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

/* Apple-style Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
}

.alert-danger {
    background: #ff3b30;
    color: #ffffff;
}

.alert-success {
    background: #000000;
    color: #ffffff;
}

.alert-info {
    background: #dc3545;
    color: #ffffff;
}

.alert-warning {
    background: #ff9500;
    color: #ffffff;
}

/* Apple-style Course Cards */
.course-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 20px;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.course-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.1);
}

.course-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.14;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.course-description {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 0px;
    text-align: start;
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.course-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem !important;
}

.course-features li {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: 600;
}

.course-price {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: #dc3545;
    margin-bottom: 1rem;
    text-align: start;
}

/* Apple-style Footer */
.footer {
    background: #f5f5f7;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.footer-link {
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: #dc3545;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-copyright {
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-apple-blue {
    color: #dc3545 !important;
}

.bg-apple-blue {
    background-color: #dc3545 !important;
}

.border-apple-blue {
    border-color: #dc3545 !important;
}

.shadow-apple {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.shadow-apple-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.rounded-apple {
    border-radius: 18px !important;
}

.rounded-apple-lg {
    border-radius: 24px !important;
}

/* Simple Updates Box Styles */
.simple-updates-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.updates-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.updates-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.updates-content {
    flex: 1;
    padding: 1rem 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.updates-content::-webkit-scrollbar {
    width: 4px;
}

.updates-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.updates-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.updates-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.update-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f8fafc;
}

.update-item:last-child {
    border-bottom: none;
}

.update-main {
    flex: 1;
    margin-right: 1rem;
}

.update-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    font-family: math;
}

.update-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.update-time {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 0.125rem;
}

.status-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.live {
    background-color: #fef2f2;
    color: #dc2626;
}

.status-badge.completed {
    background-color: #f0fdf4;
    color: #16a34a;
}

.updates-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: antiquewhite;
}

.view-all-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Daily Current Affairs Marquee Styles */
.current-affairs-container {
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 18px;
    padding: 2rem 0;
    margin: 2rem 0;
}

.current-affairs-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    gap: 2rem;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.video-item {
    display: inline-block;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 320px;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-item iframe {
    width: 100%;
    height: 180px;
    border: none;
    display: block;
}

.video-title {
    padding: 1rem;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
