/* =========================================
   PSYCHIATRIC PAGE STYLES
   ========================================= */

:root {
    --psy-blue: #3E5C9A;
    --psy-dark: #2A4068;
    --psy-light: #F0F4FF;
    --psy-gray: #64748b;
    --psy-border: #e2e8f0;
}

body {
    background-color: #FDFCF8;
}

/* Use site-wide fonts/typography to match other pages */
body {
    font-family: var(--font-sans);
    color: var(--text-grey);
    line-height: 1.6;
}

/* --- Hero --- */
.hero-centered {
    background-color: var(--psy-dark);
    color: #fff;
    /* Match de-addiction hero spacing so heading clears the navbar */
    padding-top: 120px;
    padding-bottom: 30px;
    position: relative;
    text-align: center;
}

.hero-subtitle {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.hero-centered h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff; /* Ensure hero heading is white on dark background */
    font-weight: 400; /* match de-addiction heading weight */
}

/* --- Main Layout --- */
.psy-container {
    max-width: 1200px;
    /* smaller overlap and bottom margin to reduce page height */
    margin: -30px auto 10px;
    padding: 0 12px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    align-items: start;
}

/* --- Section Cards --- */
.psy-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(62, 92, 154, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 32px 28px 28px 40px;
    border: none;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(62, 92, 154, 0.12), 0 2px 5px rgba(0, 0, 0, 0.08);
}

.psy-card h2 {
    color: var(--psy-dark);
    font-family: var(--font-sans);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, var(--psy-light) 0%, transparent 100%) bottom / 100% 3px no-repeat;
    position: relative;
}

/* --- Doctor Info List --- */
.doctor-block {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(240, 244, 255, 0.3);
    border-radius: 12px;
    border-left: 3px solid #ccc;
    transition: all 0.25s ease;
}

.doctor-block:hover {
    background: rgba(240, 244, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.doctor-block:last-child {
    margin-bottom: 0;
}

/* Color-coded doctor blocks */
.doctor-block:nth-child(1) {
    border-left-color: #10B981;
}

.doctor-block:nth-child(2) {
    border-left-color: #8A2BE2;
}

.doctor-block:nth-child(3) {
    border-left-color: #3E5C9A;
}

.doc-role {
    color: var(--psy-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(62, 92, 154, 0.08);
    border-radius: 6px;
}

.doc-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--psy-dark);
    margin-bottom: 10px;
    margin-top: 6px;
    font-family: var(--font-sans);
}

.doc-details {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.timing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-weight: 500;
    color: #334155;
    font-size: 0.92rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.timing-row:hover {
    background: rgba(255, 255, 255, 0.95);
}

.timing-row i {
    color: var(--psy-blue);
    font-size: 1rem;
    min-width: 16px;
}

.visit-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--psy-light) 0%, rgba(240, 244, 255, 0.7) 100%);
    color: var(--psy-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 10px;
    border: 1.5px solid rgba(62, 92, 154, 0.2);
    box-shadow: 0 2px 8px rgba(62, 92, 154, 0.1);
}

/* --- Calendar Section --- */
.calendar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 18px;
    border: 1px solid var(--psy-border);
    position: sticky;
    top: 70px; /* Sticks when scrolling */
    min-width: 340px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cal-month {
    font-weight: 700;
    color: var(--psy-dark);
    font-size: 1.3rem;
}

.cal-nav button {
    background: transparent;
    border: 1px solid var(--psy-border);
    border-radius: 6px;
    color: var(--psy-blue);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav button:hover {
    background: var(--psy-light);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

/* Target header buttons used on the page (.prev-month / .next-month) to remove rectangular block */
.cal-header > button, .cal-header > .prev-month, .cal-header > .next-month {
    background: transparent;
    border: none;
    color: var(--psy-blue);
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.12s, transform 0.12s;
}

.cal-header > button:hover {
    background: rgba(62,92,154,0.06);
    transform: translateY(-2px);
}

.cal-head-day {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
    padding-bottom: 8px;
}

.cal-day {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border-radius: 10px;
    position: relative;
    cursor: default;
    color: #334155;
    transition: background 0.18s, transform 0.12s;
    padding: 6px;
}

.cal-day:hover {
    background: #f8fafc;
}

.cal-day.today {
    background: linear-gradient(180deg, var(--psy-dark) 0%, #1f3556 100%);
    color: #fff !important;
    font-weight: 900;
    transform: scale(1.06);
    box-shadow: 0 10px 30px rgba(16,24,40,0.18);
}

/* Dots for events */
.day-dots {
    display: flex;
    gap: 3px;
    margin-top: 2px;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.dot.priyanka { background-color: #8A2BE2; } /* Violet */
.dot.rohan { background-color: #3E5C9A; } /* Blue */
.dot.alok { background-color: #10B981; } /* Green */

/* Visit badge color variants */
.visit-badge.priyanka {
    background: linear-gradient(135deg, rgba(138,43,226,0.12) 0%, rgba(138,43,226,0.06) 100%);
    color: #6b21a8;
    border-color: rgba(138,43,226,0.3);
}
.visit-badge.rohan {
    background: linear-gradient(135deg, rgba(62,92,154,0.12) 0%, rgba(62,92,154,0.06) 100%);
    color: #1e40af;
    border-color: rgba(62,92,154,0.3);
}



.cal-legend {
    margin-top: 20px;
    border-top: 1px solid var(--psy-border);
    padding-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--psy-gray);
    margin-bottom: 8px;
}

.legend-item .dot {
    margin-right: 8px;
    width: 8px;
    height: 8px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .psy-container {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 12px;
    }
    
    .calendar-column {
        min-width: 0;
        width: 100%;
    }

    .calendar-card {
        position: static;
        min-width: 0;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 14px;
    }

    .cal-grid {
        gap: 4px;
    }

    .cal-day {
        min-width: 0;
        font-size: 0.85rem;
        padding: 2px;
    }

    .cal-month {
        font-size: 1.05rem;
    }
}
