
.comment-bubble {
    background-color: #f0f2f5;
    border-radius: 18px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 50vw;
}

.comment-actions a {
    color: #65676b;
    font-weight: 600;
    font-size: 13px;
}

.comment-actions a:hover {
    text-decoration: underline;
}

/* Custom CSS for Poland Study Agency */

:root {
    --primary-color: #dc143c;
    --secondary-color: #ffffff;
    --accent-color: #ffd700;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b91c3c;
    border-color: #b91c3c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b91c3c 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #b91c3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Statistics */
.stats-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Markdown Content Styling */
.markdown-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.markdown-content p {
    margin-bottom: 1.25rem;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    background-color: var(--bg-light);
}

.markdown-content code {
    background-color: var(--bg-light);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 90%;
}

.markdown-content pre {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    overflow: auto;
}

.markdown-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.markdown-content th,
.markdown-content td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.markdown-content th {
    background-color: var(--bg-light);
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* CTA Card */
.cta-card {
    background: white;
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
}

/* Payment Structure */
.payment-structure {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.payment-item {
    font-size: 1.1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.payment-item:last-child {
    border-bottom: none;
}

/* Milestone Cards */
.milestone-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.milestone-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.testimonial-info {
    margin-left: 1rem;
}

/* University Cards */
.university-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.university-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.university-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Service Package Cards */
.package-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.package-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.package-header {
    background: linear-gradient(135deg, var(--primary-color), #b91c3c);
    color: white;
    padding: 2rem;
    text-align: center;
}

.package-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.package-features {
    padding: 2rem;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.package-features li:last-child {
    border-bottom: none;
}

/* Blog Cards */
.blog-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Featured Image Styling */
.featured-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Blog Post Images in Content */
.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Card Images */
.blog-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Related Posts Images */
.related-post-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.related-post-image:hover {
    transform: scale(1.05);
}

/* Recent Posts Cards with Overlay */
.recent-post-card {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 280px;
    box-shadow: var(--shadow);
}

.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.recent-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.recent-post-card:hover img {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.recent-post-card:hover .post-overlay {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
}

.post-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-overlay span {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* CSS Grid for Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Placeholder Image for Posts without Featured Image */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #b91c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Mobile Responsiveness for Post Grids */
@media (max-width: 1024px) {
    .posts-grid,
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid,
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-post-card {
        height: 220px;
    }
    
    .post-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .post-overlay h3 {
        font-size: 1rem;
    }
    
    .placeholder-image {
        font-size: 2rem;
    }
}

/* Chat Widget */
#chat-widget button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 20, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0);
    }
}

/* Chat Messages */
.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.chat-message.user .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.bot .message-bubble {
    background: var(--bg-light);
    color: var(--text-dark);
    border-bottom-left-radius: 0.25rem;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* Search Filters */
.filter-section {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .package-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

footer .text-muted {
    color: #adb5bd !important; 
}

