:root {
    --primary-color: #0CAEC1;
    --secondary-color: #6FC068;
    --accent-color: #0093AD;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* nav */
.navbar-custom {
    background: linear-gradient(135deg, #042326 0%, #397c87 100%)
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* .navbar-custom .navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
} */

.navbar-custom .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* end nav */
.border-color{
    border: 1px solid var(--primary-color);
}
/* home page */
.breaking-news {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 0;
}

.breaking-text {
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hero-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    display: flex;
    align-items: end;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.footer {
    padding: 10px;
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: white;
}
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}
.category-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
}

.sidebar-news {
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.sidebar-news h6 {
    font-size: 0.9rem;
    line-height: 1.4;
}
.trending-tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-light);
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* auth */
.auth-controller{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}
.auth-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.auth-header {
    background: var(--text-dark);
    color: white;
    padding: 1rem;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-weight: 600;
}

.auth-body {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--text-light);
    color: white;
}

.optional-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.social-input-group {
    margin-bottom: 1rem;
}

.social-input-group .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
}

.social-input-group .form-control {
    border-left: none;
}

.auth-switch {
    text-align: center;
    /* margin-top: 2rem; */
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--secondary-color) !important;
    text-decoration: none;
}

.back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.login-container {
    max-width: 450px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
}

.position-relative {
    position: relative;
}


/* login */
.background_login{
    /* background-color: var(--primary-color); */
    background: linear-gradient(135deg, var(--accent-color) 0, var(--text-dark) 100%);
    height: auto;
}

/* end login */
@media(min-width: 768px){
    .navbar-custom .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500;
        margin: 0 0.5rem;
        padding: 0.5rem 1rem !important;
        border-radius: 25px;
        transition: all 0.3s ease;
        position: relative;
        color: white !important;
        transform: translateY(-2px);
    }
}


/* news */
.news-title{
    font-size: 20px;
    font-weight: 800;
    line-height: 30px;
    height: 6rem;
    overflow: hidden;
    text-align: justify;
    letter-spacing: -1px;
    overflow: hidden;
}
/* .news-details{
    height: 15rem;
    overflow: hidden;
    text-align: justify;
    font-size: 16px;
    line-height: 26px;
} */


.news-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-description {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* show only 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -1px;
    text-align: justify;
}