/* Blog Page Styles */

:root {
    --blog-primary: #FF7A00;
    --blog-secondary: #00C896;
    --blog-dark: #1a1a2e;
    --blog-light: #f8f9fa;
    --blog-white: #ffffff;
    --blog-gray: #666666;
    --blog-border: #eeeeee;
    --blog-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --blog-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 122, 0, 0.1), transparent 70%);
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--blog-white);
    margin-bottom: 20px;
    font-weight: 800;
}

.blog-hero h1 span {
    color: var(--blog-primary);
}

.blog-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


/* Blog Feed */
.blog-feed {
    padding: 80px 0;
    background: var(--blog-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--blog-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--blog-shadow-hover);
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--blog-primary);
    color: var(--blog-white);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.blog-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--blog-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-content h3 {
    font-size: 1.5rem;
    color: var(--blog-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-card-content p {
    color: var(--blog-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more-btn {
    margin-top: auto;
    background: var(--blog-primary);
    color: var(--blog-white) !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.read-more-btn:hover {
    background: #e66e00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
    gap: 15px;
    color: var(--blog-white) !important;
}

/* Success Stories */
.stories-section {
    padding: 100px 0;
    background: var(--blog-white);
}

.stories-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content h2 {
    font-size: 2.5rem;
    color: var(--blog-dark);
    margin-bottom: 30px;
}

.story-content h2 span {
    color: var(--blog-primary);
}

.story-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--blog-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
}

.story-quote::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -40px;
    left: -30px;
    color: rgba(255, 122, 0, 0.1);
    font-family: serif;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-info h4 {
    font-weight: 700;
    color: var(--blog-dark);
}

.author-info p {
    color: var(--blog-gray);
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--blog-shadow);
}

/* Health Tips */
.tips-section {
    padding: 100px 0;
    background: var(--blog-dark);
    color: var(--blog-white);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border-top: 4px solid var(--blog-primary);
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2.5rem;
    color: var(--blog-primary);
    margin-bottom: 25px;
}

.tip-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card ul li {
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.tip-card ul li i {
    color: var(--blog-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* CTA */
.blog-cta {
    padding: 100px 20px;
    text-align: center;
    background: var(--blog-primary);
    color: var(--blog-white);
}

.blog-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.blog-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--blog-white);
    color: var(--blog-primary) !important;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: var(--blog-white);
    color: var(--blog-primary) !important;
}

/* Modal Styling (Standardized) */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--blog-white);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--blog-primary);
    color: var(--blog-white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--blog-white);
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

#appointmentForm input, 
#appointmentForm select, 
#appointmentForm textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

#appointmentForm textarea {
    height: 100px;
    resize: none;
    margin-bottom: 20px;
}

#appointmentForm .submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--blog-primary);
    color: var(--blog-white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

#appointmentForm .submit-btn:hover {
    background: #e66e00;
}

.cta-btn {
    cursor: pointer;
    border: none;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
