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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Noto Sans Bengali';
    background: linear-gradient(135deg, #0a1f44 0%, #1a3a6e 100%);
    min-height: 100vh;
    color: #ffffff;
    padding: 20px;
}

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

header {
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    color: #ffd700;
    font-size: 1.1rem;
}

.input-section {
    max-width: 700px;
    margin: 0 auto 40px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#urlInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #c00000;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

#urlInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#urlInput:focus {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

.btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #c00000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.4);
}

.btn-download {
    background: #ffd700;
    color: #0a1f44;
}

.btn-download:hover {
    background: #ffea00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.preview-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-actions {
    text-align: center;
    margin-bottom: 20px;
}

.card-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.news-card {
    width: 100%;
    max-width: 1080px;
    height: 1350px;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-background {
    position: relative;
    width: 100%;
    height: 733px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 117px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo {
    width: 88px;
    height: 88px;
    border-radius: 40%;
    background: #ffffff;
    padding: 8px;
}

.site-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.date-badge {
    width: 250px;
    height: 50px;
    background: linear-gradient(135deg, #0a2a4f, #0f4c81);
    border-radius: 10px;
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    font-family: 'Hind Siliguri', sans-serif;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(10, 76, 129, 0.4);
}

.red-overlay {
    height: 260px;
    background: linear-gradient(135deg, #8b0000, #ff0000);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    font-family: 'Hind Siliguri', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.card-subtitle {
    font-size: 53px;
    font-weight: 400;
    color: #ffd700;
    font-family: 'Hind Siliguri', sans-serif;
    margin-top: 8px;
    text-align: center;
}

.blue-overlay {
    height: 205px;
    background: linear-gradient(135deg, #021b3a, #0a3d62);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.accent-line {
    width: 9px;
    height: 80%;
    background: #ff0000;
    margin-right: 30px;
}

.card-description {
    font-size: 26px;
    line-height: 1.6;
    color: #e0e0e0;
    font-family: 'Hind Siliguri', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
    padding: 0 30px;
    background: #f2f2f2;
}

.footer-left {
    font-size: 26px;
    font-weight: 400;
    color: #000;
    font-family: 'Hind Siliguri', sans-serif;
}

.footer-center {
    font-size: 26px;
    font-weight: 400;
    color: #333;
    text-align: center;
    font-family: 'Hind Siliguri', sans-serif;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.facebook-icon,
.whatsapp-icon,
.twitter-icon {
    width: 41px;
    height: 41px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .card-background {
        height: 200px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .footer-left,
    .footer-center {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .card-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .date-badge {
        align-self: flex-start;
    }
}
