﻿:root 
{
    --main-green: #2ecc71;
    --dark-green: #27ae60;
    --bg-gray: #f4f7f6;
    --text-dark: #2c3e50;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-light-custom 
{
    background-color: var(--bg-gray);
}

.text-green-gradient 
{
    background: linear-gradient(45deg, var(--dark-green), var(--main-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.news-card
{
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image-wrapper 
{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    background: #f0f0f0;
}

.card-image-wrapper img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .card-image-wrapper img 
{
    transform: scale(1.1);
}

.date-badge 
{
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 8px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.date-badge .day 
{
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.date-badge .month
{
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--main-green);
    font-weight: 700;
}

.image-overlay 
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.news-card:hover .image-overlay 
{
    opacity: 1;
}

.view-btn 
{
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--text-dark);
    transform: translateY(20px);
    transition: 0.4s;
    cursor: pointer;
}

.news-card:hover .view-btn
{
    transform: translateY(0);
}

.card-content 
{
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-link
{
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
}

.card-title-link:hover
{
    color: var(--main-green);
}

.card-excerpt 
{
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer-custom 
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn-read-more
{
    background: none;
    border: none;
    color: var(--main-green);
    font-weight: 700;
    padding: 0;
    transition: 0.2s;
}

.btn-read-more:hover
{
    color: var(--dark-green);
    transform: translateX(5px);
}

.modal-content 
{
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header-image 
{
    width: 100%;
    height: 350px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background-color: #eee;
}

.modal-header-image img 
{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.modal-body
{
    overflow-y: auto;
    padding: 2rem !important;
}


.btn-close-custom 
{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.btn-close-custom:hover 
{
    transform: rotate(90deg);
    color: #e74c3c;
}

.article-title-large 
{
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.article-divider 
{
    height: 4px;
    width: 60px;
    background: var(--main-green);
    margin: 20px 0;
    border-radius: 10px;
}

.article-body
{
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

.modern-input 
{
    border-radius: 12px;
    padding: 12px 15px;
    border: 2px solid #eee;
    background: #f9f9f9;
}

.modern-input:focus
{
    border-color: var(--main-green);
    box-shadow: none;
    background: #fff;
    outline: none;
}

.upload-area 
{
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.upload-area:hover
{
    border-color: var(--main-green);
    background: #f0fff4;
}

.img-preview-box 
{
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-green-action 
{
    background: linear-gradient(45deg, var(--dark-green), var(--main-green));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-green-action:hover 
{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
    color: white;
}

.btn-create-new
{
    background: var(--text-dark);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-create-new:hover
{
    background: var(--main-green);
    color: white;
}

.btn-delete-icon
{
    background: #fff0f0;
    color: #e74c3c;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-icon:hover
{
    background: #e74c3c;
    color: white;
}

#viewModal .modal-content
{
    height: 75vh; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#viewModal .modal-body 
{
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem !important;
}

#viewModal .modal-body::-webkit-scrollbar
{
    width: 6px;
}

#viewModal .modal-body::-webkit-scrollbar-track 
{
    background: #f1f1f1;
}

#viewModal .modal-body::-webkit-scrollbar-thumb 
{
    background: #2ecc71;
    border-radius: 10px;
}

.pagination-modern .page-link 
{
    color: var(--main-green);
    border: 1px solid #eee;
    margin: 0 4px;
    border-radius: 8px !important;
    transition: all 0.3s;
}

.pagination-modern .page-item.active .page-link
{
    background-color: var(--main-green) !important;
    border-color: var(--main-green) !important;
    color: white !important;
}

.pagination-modern .page-link:hover
{
    background-color: #f0fff4;
    color: var(--dark-green);
}

.interaction-bar
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.btn-like 
{
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-like.active 
{
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.btn-like.active i
{
    color: white !important;
}

.btn-like:hover:not(.active) 
{
    background: #fff0f1;
    border-color: #ff4757;
    color: #ff4757;
}

.share-buttons a 
{
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 8px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.fb-bg 
{
    background: #1877F2;
}

.ig-bg
{
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.vb-bg
{
    background: #7360f2;
}

.share-buttons a:hover
{
    transform: translateY(-3px);
    opacity: 0.9;
}