/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; }
html {
font-size: 16px;
line-height: 1.5;
}

body {
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
/* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
min-height: 100vh;
color: #1f2937;
font-weight: 400;
}

/* Layout */
.app-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}

.app-header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
}

.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo h2 {
background: linear-gradient(135deg, #2563eb, #7c3aed);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 700;
font-size: 1.5rem;
}

.user-menu {
display: flex;
align-items: center;
gap: 1rem;
}

.user-greeting {
color: black;
font-size: 0.875rem;
}

.main-content {
flex: 1;
padding: 2rem 0;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}

/* Cards */
.content-card {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
margin-bottom: 1.5rem;
}

.auth-container {
display: flex;
align-items: center;
justify-content: center;
min-height: 70vh;
}

.auth-card {
background: white;
border-radius: 16px;
padding: 3rem;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
width: 100%;
max-width: 420px;
}

.auth-header {
text-align: center;
margin-bottom: 2rem;
}

.auth-header h1 {
font-size: 1.875rem;
font-weight: 700;
color: #1f2937;
margin-bottom: 0.5rem;
}

.auth-header p {
color: #6b7280;
font-size: 0.875rem;
}

.auth-footer {
text-align: center;
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #e5e7eb;
}

.auth-link {
color: #2563eb;
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}

.auth-link:hover {
color: #1d4ed8;
}

/* Page headers */
.page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 2rem;
gap: 1rem;
}

.page-title h1 {
font-size: 2.25rem;
font-weight: 700;
color: black;
margin-bottom: 0.5rem;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title p {
color: black;
font-size: 1.125rem;
}

.page-actions {
flex-shrink: 0;
}

/* Forms */
.form-groups {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.form-group {
display: flex;
flex-direction: column;
}

.form-label {
font-weight: 500;
color: #374151;
margin-bottom: 0.5rem;
font-size: 0.875rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 1rem;
transition: all 0.2s;
background: white;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
resize: vertical;
min-height: 120px;
}

.field-errors {
margin-top: 0.5rem;
}

.error-message {
color: #ef4444;
font-size: 0.875rem;
display: block;
}

.field-help {
margin-top: 0.5rem;
font-size: 0.75rem;
color: #6b7280;
}

/* Blog form specific */
.blog-form {
display: flex;
flex-direction: column;
gap: 2rem;
}

.form-section {
border-bottom: 1px solid #e5e7eb;
padding-bottom: 2rem;
}

.form-section:last-child {
border-bottom: none;
padding-bottom: 0;
}

.form-section h3 {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 1.5rem;
}

.form-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}

.section-header h3 {
margin-bottom: 0;
}

/* File inputs */
.file-input-container {
display: flex;
flex-direction: column;
gap: 1rem;
}

.file-input {
padding: 0.75rem;
border: 2px dashed #d1d5db;
border-radius: 8px;
background: #f9fafb;
cursor: pointer;
transition: all 0.2s;
}

.file-input:hover {
border-color: #2563eb;
background: #eff6ff;
}

.current-image {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.preview-image {
max-width: 200px;
max-height: 150px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-label {
font-size: 0.75rem;
color: #6b7280;
font-weight: 500;
}

.image-preview {
display: none;
}

.image-preview.active {
display: block;
}

.image-preview img {
max-width: 200px;
max-height: 150px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subtitle blocks */
.subtitle-block {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1rem;
position: relative;
}

.subtitle-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}

.subtitle-header h4 {
font-size: 1rem;
font-weight: 600;
color: #475569;
}

.remove-subtitle {
background: #ef4444;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.875rem;
cursor: pointer;
transition: background 0.2s;
display: flex;
align-items: center;
gap: 0.5rem;
}

.remove-subtitle:hover {
background: #dc2626;
}

/* Tables */
.table-container {
overflow-x: auto;
border-radius: 12px;
border: 1px solid #e5e7eb;
}

.modern-table {
width: 100%;
border-collapse: collapse;
background: white;
}

.modern-table th {
background: #f8fafc;
color: #374151;
font-weight: 600;
font-size: 0.875rem;
text-align: left;
padding: 1rem 1.5rem;
border-bottom: 2px solid #e5e7eb;
}

.modern-table td {
padding: 1rem 1.5rem;
border-bottom: 1px solid #f3f4f6;
vertical-align: middle;
}

.modern-table tr:hover {
background: #f8fafc;
}

.modern-table tr:last-child td {
border-bottom: none;
}

.blog-title {
font-weight: 500;
color: #1f2937;
}

.blog-date {
color: #6b7280;
font-size: 0.875rem;
}

.read-time {
color: #6b7280;
font-size: 0.875rem;
background: #f3f4f6;
padding: 0.25rem 0.75rem;
border-radius: 12px;
display: inline-block;
}

.table-actions {
display: flex;
gap: 0.5rem;
align-items: center;
}

/* Empty state */
.empty-state {
text-align: center;
padding: 4rem 2rem;
color: #6b7280;
}

.empty-state svg {
margin: 0 auto 1rem;
opacity: 0.5;
}

.empty-state h3 {
font-size: 1.25rem;
font-weight: 600;
color: #374151;
margin-bottom: 0.5rem;
}

.empty-state p {
margin-bottom: 2rem;
color: #6b7280;
}

/* Alerts */
.alert {
display: flex;
gap: 0.75rem;
padding: 1rem 1.5rem;
border-radius: 8px;
margin-bottom: 1.5rem;
}

.alert-error {
background: #fef2f2;
border: 1px solid #fecaca;
color: #991b1b;
}

.alert-success {
background: #f0fdf4;
border: 1px solid #bbf7d0;
color: #166534;
}

.alert-icon {
flex-shrink: 0;
}

.alert-content ul {
margin: 0.5rem 0 0 1rem;
}

/* Form actions */
.form-actions {
display: flex;
gap: 1rem;
padding-top: 2rem;
border-top: 1px solid #e5e7eb;
}

/* Danger zone */
.danger-zone {
margin-top: 3rem;
}

.danger-zone .content-card {
border: 2px solid #fecaca;
background: #fef2f2;
}

.danger-zone h3 {
color: #dc2626;
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 0.5rem;
}

.danger-zone p {
color: #991b1b;
margin-bottom: 1.5rem;
}

/* === BLOG DETAIL SPECIFIC STYLES === */

/* Uniform image sizing for blog main image and subtitle images */
.blog-main-image,
.blog-subtitle-image {
width: 100% !important;
max-height: 400px !important;
object-fit: cover !important;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Carousel container for external arrows positioning */
.carousel-container {
position: relative;
padding: 0 60px;
}

/* Carousel thumbnail uniform sizing */
.carousel-image-container {
width: 100% !important;
height: 200px !important;
overflow: hidden;
border-radius: 8px;
}

.carousel-thumbnail {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
transition: transform 0.3s ease;
}

.carousel-thumbnail:hover {
transform: scale(1.05);
}

/* External arrow buttons styling */
.custom-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
background: white;
border: 2px solid #2563eb;
color: #2563eb;
padding: 12px 16px;
border-radius: 50%;
font-size: 1.2rem;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prev-arrow {
left: -30px;
}

.next-arrow {
right: -30px;
}

.custom-arrow:hover,
.custom-arrow:focus {
background: #2563eb;
color: white;
transform: translateY(-50%) scale(1.1);
box-shadow: 0 8px 25px -5px rgba(37, 99, 235, 0.4);
}

.custom-arrow:focus {
outline: 2px solid #2563eb;
outline-offset: 2px;
}

.custom-arrow i {
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}

/* Slick dots styling */
.gs-slick__news__nav {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 2rem;
}

.gs-slick__news__nav button {
width: 12px;
height: 12px;
border-radius: 50%;
border: none;
background: #d1d5db;
cursor: pointer;
transition: all 0.3s ease;
}

.gs-slick__news__nav button.slick-active {
background: #2563eb;
transform: scale(1.2);
}

.gs-slick__news__nav button:hover {
background: #2563eb;
transform: scale(1.1);
}

/* Responsive design for carousel */
@media (max-width: 768px) {
.carousel-container {
padding: 0 40px;
}


.prev-arrow {
    left: -20px;
}

.next-arrow {
    right: -20px;
}

.custom-arrow {
    padding: 10px 12px;
    font-size: 1rem;
}
}

@media (max-width: 480px) {
.carousel-container {
padding: 0 20px;
}


.prev-arrow {
    left: -10px;
}

.next-arrow {
    right: -10px;
}

.custom-arrow {
    padding: 8px 10px;
    font-size: 0.9rem;
}
}

/* Card improvements for carousel items */
.card__new {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
height: 100%;
}

.card__new:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card__new .desc {
padding: 1.5rem;
}

.card__new .desc h3 {
font-size: 1.1rem;
line-height: 1.4;
margin-bottom: 0.75rem;
color: #1f2937;
}

.card__new .desc p {
color: #6b7280;
font-size: 0.875rem;
line-height: 1.5;
}

.card__new .btn {
font-size: 0.875rem;
padding: 0.5rem 1rem;
}

/* Override any existing styles that might conflict */
.gs-slick__news .slick-slide {
padding: 0 10px;
}

.gs-slick__news .slick-list {
margin: 0 -10px;
}

/* Hide default slick arrows */
.gs-slick__news .slick-arrow {
display: none !important;
}

/* Responsive design */
@media (min-width: 640px) {
.form-grid {
grid-template-columns: 1fr 1fr;
}


.page-header {
    align-items: center;
}

.auth-card {
    padding: 4rem;
}
}

@media (min-width: 768px) {
.form-grid {
grid-template-columns: 2fr 1fr 1fr;
}


.container {
    padding: 0 2rem;
}

.header-content {
    padding: 0 2rem;
}
}

@media (max-width: 639px) {
.page-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}


.page-title h1 {
    font-size: 1.875rem;
}

.auth-card {
    margin: 1rem;
    padding: 2rem;
}

.content-card {
    padding: 1.5rem;
}

.table-actions {
    flex-direction: column;
}

.form-actions {
    flex-direction: column;
}

.btn {
    width: 100%;
    justify-content: center;
}

.header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.user-menu {
    flex-direction: column;
    gap: 0.5rem;
}
}

/* Loading states */
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}

/* Focus styles for accessibility */
.btn:focus,
.auth-link:focus {
outline: 2px solid #2563eb;
outline-offset: 2px;
}

/* Smooth scrolling */
html {
scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.content-card,
.auth-card {
animation: fadeIn 0.3s ease-out;
}

/* Print styles */
@media print {
.app-header,
.page-actions,
.form-actions,
.table-actions,
.danger-zone {
display: none;
}}