/* 
 * DentalPro Clinic Main Stylesheet
 * Version: 1.0.0
 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #20c997;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-8, .col-lg-4, .col-md-6, .col-12 {
    padding: 0 15px;
}

.col-lg-8 { width: 66.6667%; }
.col-lg-4 { width: 33.3333%; }
.col-md-6 { width: 50%; }
.col-12 { width: 100%; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a53be;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.btn-secondary {
    color: var(--white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #1aa179;
    border-color: #199d76;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.25);
}

.btn-outline-primary {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-description {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover:after {
    width: 100%;
}

.appointment-button {
    margin-left: 2rem;
}

/* Main Content */
.site-main {
    min-height: 60vh;
    padding: 3rem 0;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--dark-color);
}

/* Articles */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    color: var(--dark-color);
}

.entry-title a {
    color: inherit;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.875rem;
    color: var(--gray);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: var(--dark-color);
}

.page-numbers.current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-numbers:hover {
    background-color: var(--light-color);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-widget-title {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    min-width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.875rem;
}

/* Sidebar */
.sidebar {
    padding-left: 2rem;
}

.widget {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray); }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.pt-3 { padding-top: 1rem; }
.py-5 { padding-top: 2rem; padding-bottom: 2rem; }
.border-top { border-top: 1px solid #dee2e6; }
.rounded { border-radius: 0.5rem; }
.img-fluid { max-width: 100%; height: auto; }

/* Print Styles */
@media print {
    .site-header,
    .main-navigation,
    .sidebar,
    .site-footer {
        display: none;
    }
    
    .site-main {
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
}