﻿/* =========================================
   1. GLOBAL VARIABLES & UTILITIES
   ========================================= */
:root {
    --vedic-blue: #3b7dd8;
    --vedic-blue-dark: #2a62b8;
    --vedic-gold: #ffdb58;
    --vedic-gold-hover: #ffd700;
    --navy-text: #003366;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-soft: #eef2f6;
    --bg-soft: #f8fafc;
}

.text-vedic-gold {
    color: var(--vedic-gold) !important;
}

.hover-scale {
    transition: transform 0.2s;
}

    .hover-scale:hover:not(:disabled) {
        transform: scale(1.02);
    }

.backdrop-blur {
    backdrop-filter: blur(5px);
}

.cursor-pointer {
    cursor: pointer;
}

.x-small {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.extra-small {
    font-size: 0.7rem;
}

/* Font Family Overrides for Indian Scripts */
.lang-en {
    font-family: 'Noto Sans', sans-serif;
    font-style: italic;
}

.lang-ta {
    font-family: 'Noto Sans Tamil', sans-serif;
    font-style: normal;
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    font-weight: 500;
}

.lang-ml {
    font-family: 'Manjari', sans-serif;
    font-style: normal;
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    font-weight: 500;
}

.lang-te {
    font-family: 'Noto Sans Telugu', sans-serif;
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    font-weight: 500;
}

.lang-kn {
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    font-weight: 500;
}

.lang-hi {
    font-family: 'Noto Sans Devanagari', serif;
    font-style: normal;
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    font-weight: 500;
}

    .lang-ta strong, .lang-ml strong, .lang-te strong, .lang-kn strong, .lang-hi strong {
        font-weight: 700 !important;
    }

/* =========================================
   2. PROFILE HEADER (HERO SECTION)
   ========================================= */
.profile-header-bg {
    background: radial-gradient(circle at 50% 50%, #1e3c72 0%, #2a5298 100%);
    padding-top: 3rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

    .profile-header-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px), radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
        background-size: 550px 550px, 350px 350px, 250px 250px;
        background-position: 0 0, 40px 60px, 130px 270px;
        opacity: 0.4;
        z-index: 1;
    }

.back-btn-hover:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    color: #ffea00 !important;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100px) rotate(20deg);
        opacity: 0;
    }
}

.zodiac-bg-icon {
    position: absolute;
    color: white;
    font-size: 2rem;
    opacity: 0.05;
    animation: floatUp 15s infinite linear;
    z-index: 0;
    pointer-events: none;
}

/* =========================================
   3. PROFILE SIDEBAR (Main Floating Card)
   ========================================= */
.profile-main-card {
    margin-top: -5rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: visible;
    position: relative;
    padding-bottom: 25px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: -70px auto 15px;
    z-index: 10;
}

.profile-avatar-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

    .profile-avatar-lg:hover {
        transform: scale(1.05);
    }

.verified-tick {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #28a745;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.profile-qualification-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.location-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

    .location-chip:hover {
        transform: translateY(-1px);
        border-color: #cbd5e1;
    }

    .location-chip i {
        color: #ef4444;
        font-size: 1rem;
        margin-right: 6px;
    }

.pricing-ticket {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.ticket-price-section {
    padding: 15px;
    background: #fff;
}

.fee-duration-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-vedic-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #003366;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(253, 185, 49, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-vedic-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(253, 185, 49, 0.6);
        color: #002244;
    }

.trust-box-sidebar {
    background: #eefdf5;
    border: 1px solid #d1fae5;
    border-radius: 12px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

    .icon-btn:hover {
        transform: scale(1.1);
    }

/* =========================================
   4. CONTENT CARDS (RIGHT COLUMN)
   ========================================= */
.profile-right-column {
    margin-top: -5rem;
    position: relative;
    z-index: 5;
}

@media (max-width: 991px) {
    .profile-right-column {
        margin-top: 2rem;
    }

    .profile-main-card {
        margin-top: -3rem;
    }
}

.section-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    margin-bottom: 25px;
    overflow: hidden;
}

.modern-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.header-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

    .header-text::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 50px;
        height: 4px;
        background: linear-gradient(90deg, #ffea00, #ffc107);
        border-radius: 4px;
    }

.quick-summary-box {
    background-color: #f8f9fa;
    border-left: 4px solid #F9A825;
    border-radius: 8px;
}

.content-collapsed {
    max-height: 180px;
    overflow: hidden;
    position: relative;
}

    .content-collapsed::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(to bottom, transparent, #ffffff);
    }

.read-more-btn {
    color: #1c84c6;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

    .read-more-btn:hover {
        text-decoration: underline;
    }

/*
   RICH TEXT STYLING (THE FIX IS HERE)
*/
.research-content-styled {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

    /* A. Style for H1, H2, H3 (Headings) */
    .research-content-styled h1,
    .research-content-styled h2,
    .research-content-styled h3 {
        display: block;
        width: 100%;
        position: relative;
        color: #2f4050 !important;
        font-weight: 800 !important;
        margin-top: 25px;
        margin-bottom: 15px;
        padding-left: 15px !important;
        border-left: 4px solid #f8ac59 !important; /* Gold Border */
        background: linear-gradient(to right, #fffbf0, transparent);
        padding-top: 5px;
        padding-bottom: 5px;
        border-radius: 0 4px 4px 0;
    }

    .research-content-styled h1 {
        font-size: 1.5rem;
    }

    .research-content-styled h2 {
        font-size: 1.3rem;
    }

    .research-content-styled h3 {
        font-size: 1.1rem;
    }

    /* B. Style for <b> and <strong> (Normal Bold) */
    .research-content-styled b,
    .research-content-styled strong {
        font-weight: 700; /* Standard bold weight */
        color: inherit; /* Inherit color from the parent paragraph */
        /* Resets any header styles that might have been applied before */
        display: inline;
        border: none;
        background: none;
        padding: 0;
        margin: 0;
    }

    /* C. Hide Empty Heading Tags */
    .research-content-styled h1:empty,
    .research-content-styled h2:empty,
    .research-content-styled h3:empty {
        display: none !important;
    }

    .research-content-styled ul, .research-content-styled ol {
        margin-bottom: 1.5rem;
        padding-left: 2rem;
    }
/* END OF FIX */

/* =========================================
   5. AI MASTERY & BADGES
   ========================================= */
.certification-vault {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.badge-slot {
    text-align: center;
    padding: 15px 5px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

    .badge-slot.earned {
        background: #fff;
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .badge-slot.locked {
        opacity: 0.4;
        filter: grayscale(1);
    }

.badge-img-lg {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.ai-metric-box {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 15px;
}

/* =========================================
   6. SKILLS & LANGUAGES
   ========================================= */
.expertise-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.skill-card-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background-color: #fff;
    transition: transform 0.2s ease;
}

    .skill-card-modern:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

.skill-initial-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
}

.skill-text-content {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.35;
}

/* Variants */
.variant-1 {
    background-color: #f0f9ff;
    border-color: #bae6fd;
}

    .variant-1 .skill-initial-icon {
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    }

.variant-2 {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

    .variant-2 .skill-initial-icon {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

.variant-3 {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

    .variant-3 .skill-initial-icon {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    }

.variant-4 {
    background-color: #faf5ff;
    border-color: #e9d5ff;
}

    .variant-4 .skill-initial-icon {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }

.variant-5 {
    background-color: #fff1f2;
    border-color: #fecdd3;
}

    .variant-5 .skill-initial-icon {
        background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    }

.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
}

    .lang-badge:hover {
        background-color: #4f46e5;
        color: #ffffff;
        transform: translateY(-2px);
    }

/* =========================================
   7. PROFESSIONAL PROFILE & GALLERY
   ========================================= */
.contact-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.address-box {
    flex: 1;
    min-width: 250px;
}

.address-line {
    display: flex;
    gap: 15px;
}

.address-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-area {
    text-align: center;
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    min-width: 200px;
}

.center-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
}

.center-logo-fallback {
    width: 120px;
    height: 120px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto;
    color: #adb5bd;
}

.map-container-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
}

    .map-container-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Gallery */
.gallery-grid-wrapper {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 576px) {
    .gallery-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-img-polished {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

    .gallery-img-polished:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

/* Certificates */
.certificate-card {
    display: flex;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    transition: all 0.2s ease;
}

    .certificate-card:hover {
        border-color: #3b7dd8;
        box-shadow: 0 4px 15px rgba(59, 125, 216, 0.08);
        transform: translateY(-2px);
    }

.cert-img-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-fallback {
    width: 100%;
    height: 100%;
    background-color: #fffbf0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

/* =========================================
   8. REVIEW MODAL & MOBILE STICKY BAR
   ========================================= */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
}

    .star-rating input {
        display: none;
    }

    .star-rating label {
        color: #ddd;
        cursor: pointer;
        transition: color 0.2s;
    }

        .star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label {
            color: #ffcc00;
        }

.otp-input-styled {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
    caret-color: #10b981;
}

    .otp-input-styled:focus {
        border-color: #10b981;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
        outline: none;
    }

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    border-top: 1px solid #f0f0f0;
    padding-bottom: env(safe-area-inset-bottom, 12px);
}

@media (max-width: 991px) {
    body {
        padding-bottom: 80px;
    }
}
