@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Poppins:wght@400;600;700&display=swap');

#dental-stats-container-parent {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.dental-stats-container {
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004a99; /* Detroit Mercy Blue */
    margin: 0;
}

.university-type {
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 5px;
}

.private {
    color: #ffffff;
    background: linear-gradient(135deg, #d9534f, #c9302c); /* Detroit Mercy Red */
}

.time-clock {
    display: flex;
    align-items: baseline;
    font-weight: 600;
    color: #004a99;
    background-color: #e9f5ff;
    padding: 10px 20px;
    border-radius: 12px;
}

#clock-time {
    font-size: 2.2rem;
}

#clock-ampm {
    font-size: 1rem;
    margin-left: 8px;
}

.main-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 74, 153, 0.15);
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.stat-card .main-stat {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #004a99;
}

.stat-card .stat-detail {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 5px 0 0;
}

.acceptance-rate-card .progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.progress-ring-circle-bg {
    stroke: #e9ecef;
}

.progress-ring-circle {
    stroke: url(#progress-gradient);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1.5s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #004a99;
}

.comparison-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.comparison-section h2 {
    font-size: 1.8rem;
    color: #004a99;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px 10px;
    text-align: center;
}

.comparison-header h4 {
    font-weight: 700;
    color: #343a40;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.comparison-header {
    grid-column: 1 / -1;
    display: contents;
}

.comparison-header h4:first-child {
    text-align: left;
}

.comparison-row {
    grid-column: 1 / -1;
    display: contents;
    font-size: 1rem;
}

.comparison-row p {
    margin: 0;
    padding: 15px 10px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
}

.comparison-row p:first-child {
    font-weight: 600;
    text-align: left;
    justify-content: flex-start;
    color: #004a99;
}

.data-source {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-title h1 {
        font-size: 2rem;
    }
    .comparison-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 480px) {
    #dental-stats-container-parent {
        padding: 10px;
    }
    .dental-stats-container {
        padding: 20px;
    }
    .comparison-grid {
        display: block;
    }
    .comparison-header {
        display: none;
    }
    .comparison-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 20px;
    }
    .comparison-row p:first-child {
        background-color: transparent;
        padding-left: 0;
        font-size: 1.1rem;
    }
    .comparison-row p:not(:first-child)::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        display: block;
        color: #343a40;
    }
    .comparison-row p {
       text-align: left;
       display: block;
       padding: 10px;
    }
    .comparison-row p:nth-child(2)::before {
        content: 'Detroit Mercy: ';
    }
    .comparison-row p:nth-child(3)::before {
        content: 'Touro College: ';
    }
}