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

body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

/* Header */
header {
    background: #020617;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #38bdf8;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

nav a:hover {
    color: #38bdf8;
}

/* Container */
.container {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

/* Title */
.title {
    text-align: center;
    margin-bottom: 40px;
}

.title h2 {
    font-size: 32px;
    color: #38bdf8;
}

.title p {
    color: #cbd5f5;
}

/* Blog Grid */
/* Blog Grid - Improved */
.blogs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 10px;
}

/* Blog Card */
.blog-card {
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

/* Hover Effect */
.blog-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

/* Image */
.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Content */
.blog-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.blog-content p {
    font-size: 14px;
    color: #cbd5f5;
    flex-grow: 1;
}

/* Button Link */
.blog-content a {
    margin-top: 15px;
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
}

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

/* Tablet */
@media (max-width: 992px) {
    .blogs {
        grid-template-columns: repeat(2, 1fr); /* 2 cards */
    }
}

/* 📱 Mobile Optimization */
@media (max-width: 600px) {
    .blogs {
        grid-template-columns: 1fr; /* 1 card */
    }

    .container {
        padding: 20px 10px;
    }

    .title h2 {
        font-size: 24px;
    }

    .blog-card img {
        height: 150px;
    }

    .blog-content h3 {
        font-size: 16px;
    }

    .blog-content p {
        font-size: 13px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
    margin-top: 40px;
    font-size: 14px;
}

/* BACK BUTTON LEFT */
.back-btn {
  width: max-content;
  margin: 10px;
  padding: 10px 15px;
  background: #1e293b;
  color: #38bdf8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.back-btn:hover {
    background: #0ea5e9;
}

/* SLIDER */

/* SLIDER */
.slider {
    max-width: 1000px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
}

/* TRACK */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* SLIDE */
.slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
}

/* IMAGE */
.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* TITLE */
.slide-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 8px 12px;
    border-radius: 5px;
}

/* BUTTONS */
.prev, .next {
    position: absolute;
    display: flex;
    height: 40px;
    width: 40px;
    top: 50%;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 20px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    border-radius: 50px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: #38bdf8;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .slide img {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .slide img {
        height: 200px;
    }
}