body {
    font-family: 'Roboto', sans-serif;
    background-image: linear-gradient(to right, #dee1fa, #ecfeff, #ecfeff, #dee1fa);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
    animation-fill-mode: both;
}

.fade-in-delayed {
    animation: fadeIn 1s ease-in-out 0.5s;
    animation-fill-mode: both;
}

.fade-in-delayed-2 {
    animation: fadeIn 1s ease-in-out 1s;
    animation-fill-mode: both;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8em;
}

p {
    margin-bottom: 1.2em;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Header */
header {
    background: linear-gradient(to bottom, #004fd1, #7696dd);
    color: white;
    text-align: center;
    padding: 100px 20px 50px;
    margin-bottom: 3rem;
}

header h1 {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.search-container {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

.search-container input {
    width: 90%;
    padding: 13px 5px 13px 17px;
    border-radius: 50px;
    border: solid 1px #2a318e59;
    background: #ffffffc2;
    font-size: 1rem;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.1);
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

/* Section Styling */
section {
    margin-bottom: 5rem;
}

section h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 5px;
}

.article-grid {
    display: grid;
    gap: 2rem;
}

/* Featured Articles */
.featured-article {
    position: relative;
    height: 340px;
    background-size: cover;
    background-position: center;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.featured-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.featured-article .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 60%) 50%, rgb(0 0 0 / 50%) 100%);
}

.featured-article .content {
    position: absolute;
    bottom: 0;
    width: 85%;
    padding: 2rem;
    z-index: 10;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-blue {
    background-color: rgba(219, 234, 254, 0.9);
    color: #1e40af;
}

.tag-green {
    background-color: rgba(209, 250, 229, 0.9);
    color: #047857;
}

.tag-purple {
    background-color: rgba(237, 233, 254, 0.9);
    color: #6d28d9;
}

.featured-article h3 {
    font-size: 1.5rem;
    color: white;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.featured-article p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.meta-info i {
    margin-right: 0.4rem;
}

.article-actions {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    margin-right: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.action-btn i {
    margin-right: 0.4rem;
}

.read-more {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #93c5fd;
    transform: translateX(5px);
}

.read-more i {
    margin-left: 0.4rem;
    font-size: 0.8rem;
}

/* Recent Articles */
.article-card {
    background-color: #ffffff80;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 3px 3px 10px rgb(0 0 0 / 10%);
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.art-image {
    object-fit: cover;
    height: 200px;
    width: 100%;
    border-radius: 1rem;
    margin-top: 0.5rem;
}

@media screen and (max-width: 450px) {
    .art-image {
        height: 150px;
    }
}

.article-card-content {
    padding: 1.8rem;
}

.article-card h3 {
    font-size: 1.4rem;
    margin-top: 0.8rem;
    margin-bottom: 0.2rem;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-card p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.article-card .meta-info {
    color: #94a3b8;
}

.article-card .article-actions .action-btn {
    color: #94a3b8;
}

.article-card .read-more {
    color: #2563eb;
}

.article-card .read-more:hover {
    color: #1d4ed8;
}


/* Subscription Section */
.subscription {
    color: white;
    background: linear-gradient(to bottom, #4c5ad7, #8e9cd4);
    padding: 40px 20px;
    display: flex;
    margin-bottom: 0;
    margin-top: 3rem;
    text-align: center;
    justify-content: center;
}

.subscription h2 {
    margin-bottom: 1rem;
}

.subscription p {
    font-size: 1.2rem;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.subscription h2::after {
    content: none;
}

.email-container {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

.email-container input {
    width: 90%;
    padding: 12px 15px;
    border-radius: 50px;
    border: solid 1px #2a318e59;
    background: #ffffffc2;
    font-size: 1rem;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
}

.email-container input:focus {
    outline: none;
}

.email-container button {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, #1d4ed8, #2563eb);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-container button:hover {
    background: linear-gradient(to right, #1e40af, #1d4ed8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #1e293b;
    color: white;
    padding: 4rem 0 2rem;
    border-radius: 15px 15px 0 0;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .featured-article-grid {
        grid-template-columns: 1fr;
    } */
}

@media screen and (min-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    header h1 {
        font-size: 2.2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .featured-article h3 {
        font-size: 1.5rem;
    }

    .featured-article {
        height: 320px;
    }
    .subscription h2 {
        font-size: 1.8rem;
    }
}


@media screen and (max-width: 480px) {
    .container {
        width: 90%;
        padding: 0 10px;
    }

    header {
        padding: 3rem 0;
    }

    .featured-article .content {
        padding: 1.5rem;
    }

    .featured-article h3 {
        font-size: 1.3rem;
    }

    .meta-info {
        gap: 0.8rem;
    }

    .meta-info>span {
        margin-right: 0;
    }

    .article-card-content {
        padding: 1.2rem;
    }

    .email-container button {
        position: static;
        transform: none;
        width: auto;
        margin-top: 1rem;
        padding: 10px 15px;
    }
}

.liked {
    pointer-events: none;
    color: #cd74ff !important;
}

.snackbar {
    justify-self: anchor-center;
    width: auto;
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2rem;
    padding: 0.5rem 3rem;
    position: fixed;
    z-index: 1000;
    top: -70px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.snackbar.show {
  visibility: visible;
  opacity: 1;
  top: 70px;
}

.snackbar.success {
  background-color: #4caf4f90;
}

.snackbar.error {
  background-color: #f4433690;
}

.social ul li {
    width: 295px !important;
}