/**
 * MedPrepOnline - About Us & Contact Us Pages
 * Consistent styling following the teal theme
 */

/* ============================================
   PAGE HERO SECTIONS
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, #f8fffe 0%, rgba(79, 179, 217, 0.08) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(79,179,217,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .breadcrumb {
    justify-content: center;
    margin-top: 1.5rem;
}

.page-hero .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.page-hero .breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.page-hero .breadcrumb-item.active {
    color: var(--text-secondary);
}

/* ============================================
   ABOUT US PAGE STYLES
   ============================================ */

.about-section {
    padding: 80px 0;
}

.about-section.bg-light {
    background: var(--bg-light);
}

.about-section.bg-white {
    background: var(--bg-white);
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.mission-card,
.vision-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--border-primary-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-icon,
.vision-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.mission-card p,
.vision-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(79, 179, 217, 0.03) 0%, rgba(93, 190, 163, 0.03) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-primary-light);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary-gradient);
    color: white;
}

.value-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Instructors Section */
.instructors-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.instructor-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-primary-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.instructor-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(93, 190, 163, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instructor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.instructor-card:hover .instructor-image-wrapper img {
    transform: scale(1.05);
}

.instructor-placeholder {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.instructor-info {
    padding: 1.25rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.instructor-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.instructor-title {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instructor-bio {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.instructor-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.instructor-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.875rem;
}

.instructor-social a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4fb3d9 0%, #5dbea3 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="statsgrid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23statsgrid)"/></svg>');
}

.stats-section .stat-box {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.stats-section .stat-box .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2b2b2b !important;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stats-section .stat-box .stat-label {
    font-size: 1rem;
    color: rgba(146, 107, 107, 0.9) !important;
    font-weight: 500;
    display: block;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ============================================
   CONTACT US PAGE STYLES
   ============================================ */

.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--border-primary-light);
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 1rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary-gradient);
    color: white;
}

.contact-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.6;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Social Links in Contact */
.contact-social {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.contact-social h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* Contact Form Card */
.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-primary-light);
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form .form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 179, 217, 0.15);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 179, 217, 0.15);
}

.contact-form .btn-submit {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.contact-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form .btn-submit .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Form Validation Styles */
.contact-form .form-control.is-invalid {
    border-color: var(--danger-red);
}

.contact-form .form-control.is-valid {
    border-color: var(--success-green);
}

.contact-form .invalid-feedback {
    color: var(--danger-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success/Error Messages */
.alert-success-custom {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: var(--success-green);
    margin-bottom: 1.5rem;
}

.alert-error-custom {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: var(--danger-red);
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .mission-card,
    .vision-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 60px 0 40px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    .about-section,
    .values-section,
    .instructors-section {
        padding: 60px 0;
    }

    .mission-icon,
    .vision-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .value-card,
    .instructor-card {
        margin-bottom: 1.5rem;
    }

    .stat-box {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .instructor-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .instructor-image-wrapper {
        height: 160px;
    }
}