/**
 * DocStudy - Custom Styles
 * Public Website & Shared Components
 */

/* ============================================
   Typography & Base
   ============================================ */
.text-justify {
    text-align: justify;
}

.logo-img {
    max-height: 60px;
    width: auto;
}

/* ============================================
   Header / Navigation
   ============================================ */
.menu-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.menu-btns li {
    margin: 0;
}

.header-container {
    max-width: 1300px;
    height: 80px;
}

.header-main .menu-link.active {
    color: var(--bs-primary, #16a3f5) !important;
    font-weight: 600;
}

.header-main .menu-link:hover {
    color: var(--bs-primary, #16a3f5) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 50%, #f5f7fa 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 163, 245, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22, 163, 245, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: #16a3f5;
}

.hero-text {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #16a3f5;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-head {
    margin-bottom: 3rem;
}

.section-head .title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-head .subtitle {
    font-size: 1rem;
    color: #16a3f5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-head .lead {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    display: inline-block;
    width: 80px;
    height: 4px;
    background: #16a3f5;
    border-radius: 20px;
    margin: 1rem 0;
}

/* ============================================
   Cards
   ============================================ */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card {
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #16a3f5;
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.subject-card {
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #16a3f5;
}

.subject-card .subject-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
}

.article-card {
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.quiz-card {
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #16a3f5;
}

/* ============================================
   Feature / Service Cards
   ============================================ */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-icon.primary {
    background: rgba(22, 163, 245, 0.1);
    color: #16a3f5;
}

.feature-icon.success {
    background: rgba(27, 197, 189, 0.1);
    color: #1bc5bd;
}

.feature-icon.warning {
    background: rgba(255, 168, 0, 0.1);
    color: #ffa800;
}

.feature-icon.danger {
    background: rgba(246, 78, 96, 0.1);
    color: #f64e60;
}

.feature-icon.purple {
    background: rgba(137, 80, 252, 0.1);
    color: #8950fc;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, #16a3f5 0%, #0d6efd 100%);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    font-style: italic;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 4rem;
    color: #16a3f5;
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #16a3f5;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-item {
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #6c757d;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: #16a3f5;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #16a3f5 0%, #0d6efd 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1a1a2e !important;
    color: #fff;
}

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

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

.footer .link-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer .link-list a:hover {
    color: #16a3f5;
}

.footer h6 {
    font-weight: 700;
    font-size: 1rem;
}

.footer .social a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer .social a:hover {
    color: #16a3f5;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-info-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(22, 163, 245, 0.1);
    color: #16a3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* ============================================
   About Page
   ============================================ */
.about-mission-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.about-mission-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    padding: 100px 0 60px;
    text-align: center;
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.page-header-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
}

.page-header-breadcrumb a {
    color: #16a3f5;
    text-decoration: none;
}

.page-header-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   Badges & Tags
   ============================================ */
.badge-soft-primary {
    background: rgba(22, 163, 245, 0.1);
    color: #16a3f5;
}

.badge-soft-success {
    background: rgba(27, 197, 189, 0.1);
    color: #1bc5bd;
}

.badge-soft-warning {
    background: rgba(255, 168, 0, 0.1);
    color: #ffa800;
}

.badge-soft-danger {
    background: rgba(246, 78, 96, 0.1);
    color: #f64e60;
}

/* ============================================
   Buttons
   ============================================ */
.btn-outline-white {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: #16a3f5;
    border-color: #fff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-head .title {
        font-size: 1.75rem;
    }

    .page-header {
        padding: 80px 0 40px;
    }

    .page-header-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .section-head .title {
        font-size: 1.5rem;
    }

    .page-header-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #16a3f5;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #16a3f5;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header-main,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }
}

.course-img {
    height: 250px;      /* or max-height: 250px */
    width: 100%;
    object-fit: contain;  /* Crops image instead of stretching */
}

/* Single Course Description CSS */
.course-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.course-description h1,
.course-description h2,
.course-description h3,
.course-description h4 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.course-description p {
    margin-bottom: 1rem;
}

.course-description ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 40px !important;
}

.course-description ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 40px !important;
}

.course-description ul li {
    display: list-item !important;
    list-style-type: disc !important;
}

.course-description ol li {
    display: list-item !important;
    list-style-type: decimal !important;
}

.course-description li {
    margin-bottom: 0.4rem;
}

.course-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.course-description a {
    text-decoration: underline;
}

.course-description blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #ccc;
    background: #f8f9fa;
}

.course-description hr {
    margin: 2rem 0;
}
