/* HERO */
.hero{
    height:40vh;
    background:linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("images/aboumoyone.jpeg");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
}

.hero h1{
    font-size:50px;
}
.glass h2,
.card h3,.value h4{
    color: #0570b4;
}

section {
    padding: 80px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: #0d3b2e;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/*  NEWS & BLOG BACKGROUND  */

.news-section {
    background: #f9f9f9;
}

.blog-section {
    background: #ffffff;
}

/*  CARD GRID  */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/*  CARD STYLE  */

.card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

/* CARD IMAGE */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* CARD CONTENT */
.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 10px 0;
    color: #0d3b2e;
}

.card-content p {
    font-size: 14px;
    color: #555;
}

/* CATEGORY TAGS */
.category {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    display: inline-block;
}

.news-tag {
    background-color: #0d3b2e;
}

.blog-tag {
    background-color: #0570b4;
}

/* LINKS */
.card-content a {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #0d3b2e;
    transition: 0.3s;
}

.card-content a:hover {
    color: #0570b4;
}

/* NEWS & BLOG DETAILS  */
 
/* News Section */
.news-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c7be5;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
}

/* Card Container */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* News Card */
.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* News Text */
.card p {
    font-size: 1.5rem;
    color: #333;
    margin-top: 20px;
}

/* Blog Section */
.blog-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c7be5;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
}

/* Blog Card Container */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blog Card */
.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Text */
.card p {
    font-size: 1.5rem;
    color: #333;
    margin-top: 20px;
}

/* old code */

.news-detail, .blog-detail {
    margin-top: 30px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-detail img, .blog-detail img {
    width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 12px;
}

.news-detail h1, .blog-detail h1 {
    font-size: 28px;
    color: #0d3b2e;
}

.news-detail p, .blog-detail p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* BACK BUTTON */
button {
    background-color: #0570b4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

button:hover {
    background-color: #0d3b2e;
}

/*  RESPONSIVE ADJUSTMENTS  */

/* Small tablets and large phones */
@media (max-width: 992px) {
    section {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .card img {
        height: 200px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    section {
        padding: 40px 3%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card img {
        height: auto;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 14px;
    }

    .card-content h3 {
        font-size: 18px;
    }

    .card-content p {
        font-size: 13px;
    }

    .card-content a {
        font-size: 14px;
    }

    .news-detail h1, .blog-detail h1 {
        font-size: 24px;
    }

    .news-detail p, .blog-detail p {
        font-size: 13px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    section {
        padding: 30px 2%;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 12px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 12px;
    }

    .card-content a {
        font-size: 13px;
    }

    .news-detail h1, .blog-detail h1 {
        font-size: 20px;
    }

    .news-detail p, .blog-detail p {
        font-size: 12px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}