* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-description {
    text-align: center;
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2574a9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Contact Info */
.contact-info {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
}

.contact-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 14px;
}

.contact-item span {
    color: #6c757d;
    font-size: 16px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 25px;
    }
    
    .contact {
        padding: 50px 0;
    }
}

/* Blog Styles */
.blog {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-placeholder {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-meta {
    margin: 10px 0;
    display: flex;
    gap: 15px;
}

.blog-meta small {
    color: #6c757d;
}

.blog-stats {
    display: flex;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-badge.featured {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Blog Detail Page Styles */
.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.blog-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 1.6rem;
}

.blog-content h3 {
    font-size: 1.3rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    position: relative;
}

.blog-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #3498db;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

.blog-content code {
    background-color: #f1f2f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

.blog-content pre {
    background-color: #2d3748;
    color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    color: #fff;
    padding: 0;
}

.like-btn {
    transition: all 0.3s ease;
}

.like-btn:hover {
    transform: scale(1.05);
}

.like-btn.liked {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.share-section .btn {
    margin: 0 2px;
    transition: all 0.3s ease;
}

.share-section .btn:hover {
    transform: translateY(-2px);
}

/* Blog Sidebar */
.blog-sidebar .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-sidebar .card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h1 {
        font-size: 1.6rem;
    }
    
    .blog-content h2 {
        font-size: 1.4rem;
    }
    
    .blog-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-section {
        margin-top: 1rem;
    }
}

/* WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover i {
    transform: scale(1.1);
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.whatsapp-button:hover::before {
    width: 100%;
    height: 100%;
}

.whatsapp-chat {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.whatsapp-chat.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.whatsapp-header {
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.whatsapp-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
    opacity: 0.3;
}

.whatsapp-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.whatsapp-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.whatsapp-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.whatsapp-status {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4fc3f7;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.whatsapp-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1;
}

.whatsapp-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-body {
    padding: 20px;
    background: #f0f2f5;
    min-height: 200px;
    position: relative;
}

.whatsapp-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="whatsapp-bg" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M12.5 0L25 12.5L12.5 25L0 12.5Z" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23whatsapp-bg)"/></svg>');
    opacity: 0.3;
}

.whatsapp-message {
    background: #dcf8c6;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
    z-index: 1;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.whatsapp-message-text {
    font-size: 14px;
    line-height: 1.5;
    color: #303030;
    margin-bottom: 5px;
}

.whatsapp-message-time {
    font-size: 11px;
    color: #667781;
    text-align: right;
}

.whatsapp-input-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    align-items: center;
}

.whatsapp-input {
    flex: 1;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.whatsapp-input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.whatsapp-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-send:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-chat {
        width: 280px;
        right: -10px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-chat {
        width: calc(100vw - 40px);
        right: -60px;
    }
}

/* Blog Section Styles */
.blog-section {
    padding: 40px 0;
}

.blog-card-compact {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.blog-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-image-compact {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-card-compact:hover .blog-img {
    transform: scale(1.05);
}

.blog-content-compact {
    padding: 20px;
}

.blog-meta-compact {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-meta-compact span {
    display: flex;
    align-items: center;
}

.blog-title-compact {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #007bff;
}

.blog-excerpt-compact {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.blog-actions-compact {
    display: flex;
    justify-content: flex-end;
}

.btn-read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: #0056b3;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Section Headers */
.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Button Outline Style */
.btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 25px;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-meta-compact {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-title-compact {
        font-size: 1.1rem;
    }
    
    .section-header .section-title {
        font-size: 1.8rem;
    }
}
