/* 
* Dentistas Militares Especialistas - Main Stylesheet
* Basado en el template Dentia
*/

/* ===== General Styles ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --text-color: #333;
    --light-text: #777;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #004494;
    text-decoration: none;
}

.btn {
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

img {
    max-width: 100%;
}

/* ===== Header Styles ===== */
.top-header {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 14px;
}

.top-contact span {
    display: inline-block;
    margin-right: 20px;
}

.top-social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 14px;
}

.top-social a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list li {
    margin: 0 12px;
    position: relative;
}

.nav-list li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    display: block;
}

.nav-list li.active a, 
.nav-list li a:hover {
    color: var(--primary-color);
}

.nav-list li.active::after, 
.nav-list li:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.contact-info-box {
    background-color: var(--white);
    color: var(--text-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-box h4 {
    margin-top: 15px;
    margin-bottom: 10px;
}

.contact-info-box p {
    margin-bottom: 15px;
}

.contact-info-box i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ===== Services Section ===== */
.services-section {
    padding: 80px 0;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-features ul li {
    margin-bottom: 15px;
    font-size: 16px;
}

.service-features ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ===== Complete Care Section ===== */
.complete-care-section {
    padding: 80px 0;
}

.care-card {
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.care-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.care-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.care-card p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.care-card a {
    font-weight: 500;
    display: inline-block;
}

.care-card a i {
    margin-left: 5px;
    transition: var(--transition);
}

.care-card a:hover i {
    transform: translateX(5px);
}

/* ===== Exceptional Service Section ===== */
.exceptional-service-section {
    padding: 80px 0;
}

.service-feature h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-feature h5 i {
    color: var(--primary-color);
}

.service-feature p {
    color: var(--light-text);
}

/* ===== Team Section ===== */
.team-section {
    padding: 80px 0;
}

.team-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f1f1f1;
    color: var(--text-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-card {
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-text {
    position: relative;
    padding-top: 20px;
    margin-bottom: 30px;
}

.testimonial-text:before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 24px;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--light-text);
    font-size: 14px;
}

/* ===== Social Sidebar ===== */
.social-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: white;
    border-radius: 5px 0 0 5px;
    transition: all 0.3s ease;
    padding: 0; /* Remove padding */
}

.social-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain; /* Ensure image scales correctly */
}

.social-icon:hover {
    transform: translateX(-10px);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 60px 0;
}

.cta-section h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
}

.footer h4 {
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 12px;
    color: #adb5bd;
}

.contact-info i {
    color: var(--primary-color);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    color: #adb5bd;
    font-size: 14px;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.footer-bottom-links li {
    margin-left: 20px;
}

.footer-bottom-links li a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-bottom-links li a:hover {
    color: var(--white);
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .contact-info-box {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 30px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .footer-bottom-links li {
        margin-left: 0;
        margin-right: 20px;
    }
}
