/**
 * Single Student Page Styles
 * Teach Haiti Brand Colors
 */

/* Full Width Layout - Hide Sidebar */
.single-student #main-content .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.single-student #main-content .container:before {
    display: none !important;
    content: none !important;
}

.single-student #content-area.th-full-width {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.single-student #left-area.th-full-width-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

.single-student #sidebar {
    display: none !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 980px) {
    .single-student #main-content .container {
        width: 100% !important;
        padding: 0 1rem !important;
    }

    .single-student .th-single-student {
        padding: 1rem 0;
    }
}

/* Student Navigation */
.th-student-navigation {
    margin-bottom: 2rem;
}

.th-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #005E93;
    text-decoration: none;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #68BFD0;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.th-back-link:hover {
    background: linear-gradient(45deg, #68BFD0, #005E93);
    color: white;
    border-color: #005E93;
    transform: translateX(-5px);
}

.th-back-link svg {
    transition: transform 0.3s ease;
}

.th-back-link:hover svg {
    transform: translateX(-3px);
}

/* Single Student Profile Container */
.th-single-student {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.th-student-profile-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 51, 73, 0.1);
    overflow: hidden;
}

/* Student Profile Header */
.th-student-profile-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

@media (max-width: 768px) {
    .th-student-profile-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
}

/* Student Image */
.th-student-profile-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.th-student-photo-large {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 51, 73, 0.2);
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.th-student-photo-placeholder-large {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #68BFD0 0%, #005E93 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 51, 73, 0.2);
}

.th-student-photo-placeholder-large svg {
    opacity: 0.5;
}

.th-sponsored-badge-large {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    z-index: 2;
}

/* Student Profile Info */
.th-student-profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.th-student-profile-name {
    color: #003349;
    font-family: 'Mr Eaves Mod OT', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .th-student-profile-name {
        font-size: 2.5rem;
        text-align: center;
    }
}

.th-student-profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.th-student-profile-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 1.1rem;
    color: #005E93;
    padding: 0.75rem 1rem;
    background: white;
    border-left: 4px solid #68BFD0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 51, 73, 0.05);
}

.th-student-profile-detail .th-detail-icon {
    width: 24px;
    height: 24px;
    fill: #EF3B49;
    flex-shrink: 0;
}

.th-student-profile-detail strong {
    color: #003349;
    font-weight: 600;
}

/* Student Bio */
.th-student-profile-bio {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #68BFD0;
    box-shadow: 0 4px 15px rgba(104, 191, 208, 0.1);
}

.th-student-profile-bio h3 {
    color: #003349;
    font-family: 'Mr Eaves Mod OT', Georgia, serif;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.th-student-profile-bio p {
    color: #005E93;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Sponsorship Section */
.th-student-sponsorship-section {
    padding: 3rem;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .th-student-sponsorship-section {
        padding: 2rem 1.5rem;
    }
}

.th-sponsorship-header {
    text-align: center;
    margin-bottom: 3rem;
}

.th-sponsorship-header h2 {
    color: #003349;
    font-family: 'Mr Eaves Mod OT', Georgia, serif;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
}

@media (max-width: 768px) {
    .th-sponsorship-header h2 {
        font-size: 2rem;
    }
}

.th-sponsorship-header p {
    color: #005E93;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Sponsorship Form Container */
.th-sponsorship-form-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #68BFD0;
    box-shadow: 0 4px 15px rgba(104, 191, 208, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* Virtuous Form Styling */
.th-sponsorship-form-container .v_fw {
    font-family: 'Avenir Next', Arial, sans-serif !important;
}

.th-sponsorship-form-container .v_fh__wb {
    color: #003349 !important;
    font-family: 'Mr Eaves Mod OT', Georgia, serif !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.th-sponsorship-form-container .v_i__tx,
.th-sponsorship-form-container select {
    border: 2px solid #68BFD0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-family: 'Avenir Next', Arial, sans-serif !important;
    background: white !important;
    color: #003349 !important;
    font-size: 1rem !important;
}

.th-sponsorship-form-container .Select-control {
    border: 2px solid #68BFD0 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-family: 'Avenir Next', Arial, sans-serif !important;
    background: white !important;
    color: #003349 !important;
}

.th-sponsorship-form-container .v_i__tx:focus,
.th-sponsorship-form-container select:focus {
    border-color: #005E93 !important;
    box-shadow: 0 0 0 3px rgba(104, 191, 208, 0.2) !important;
    outline: none !important;
}

.th-sponsorship-form-container .btn {
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    font-family: 'Avenir Next', Arial, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    font-size: 1.1rem !important;
}

.th-sponsorship-form-container .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 59, 73, 0.4) !important;
}

.th-sponsorship-form-container .v_gao {
    border: 2px solid #68BFD0 !important;
    color: #005E93 !important;
    border-radius: 15px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.th-sponsorship-form-container .v_gao.active,
.th-sponsorship-form-container .v_gao:hover {
    background: linear-gradient(45deg, #68BFD0, #005E93) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Sponsorship Help */
.th-sponsorship-help {
    text-align: center;
    margin-top: 2rem;
}

.th-sponsorship-help p {
    color: #005E93;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 0.95rem;
}

.th-sponsorship-help a {
    color: #EF3B49;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.th-sponsorship-help a:hover {
    color: #F18721;
    text-decoration: underline;
}

/* Sponsored Message */
.th-student-sponsored-message {
    padding: 3rem;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.th-sponsored-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 51, 73, 0.1);
}

.th-sponsored-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.th-sponsored-card h3 {
    color: #003349;
    font-family: 'Mr Eaves Mod OT', Georgia, serif;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.th-sponsored-card p {
    color: #005E93;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 2rem 0;
}

.th-sponsor-another-btn {
    display: inline-block;
    background: linear-gradient(45deg, #EF3B49, #F18721);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Avenir Next', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.th-sponsor-another-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 59, 73, 0.4);
    color: white;
    text-decoration: none;
}

/* Ensure sponsor badge link doesn't look like a button in card view */
.th-sponsor-badge {
    display: inline-block;
    text-decoration: none;
}
