/* Modern Color Variables */
:root {
    --primary: #ffffff;
    --primary-dark: #f0f0f0;
    --primary-light: #8b5cf6;
    --secondary: #06d6a0;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --background: rgba(255, 255, 255, 0.95);
    --surface: rgba(248, 250, 252, 0.9);
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --gradient-secondary: linear-gradient(135deg, #06d6a0 0%, #0ea5e9 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-body: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    background: var(--gradient-body);
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main Container */
.fullnews {
    max-width: 95%;
    height: 95%;
    overflow-y: auto;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.fullnews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 10px rgba(6, 214, 160, 0.3);
}

/* Headings */
.fullnews h2 {
    color: var(--text-dark);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid;
    border-image: var(--gradient-secondary) 1;
    padding-bottom: 15px;
    margin-top: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fullnews h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.item h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 25px 0;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 10px 0;
    border-left: 5px solid;
    border-image: var(--gradient-accent) 1;
    padding-left: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Items with hover effects */
.item {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.item:hover::before {
    left: 100%;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(6, 214, 160, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(6, 214, 160, 0.3);
}

/* Clearfix to wrap floated children */
.item::after {
    content: "";
    display: table;
    clear: both;
}

/* Image Container */
.image-container {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    mix-blend-mode: overlay;
}

.image-container:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 
        0 15px 40px rgba(6, 214, 160, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.image-container:hover::before {
    opacity: 0.3;
}

.image-container img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.08);
}

/* Text Content */
.text-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    padding: 15px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* LEFT Layout */
.alignment-left .image-container {
    float: left;
    width: 45%;
    margin-right: 30px;
    margin-bottom: 20px;
}

.alignment-left .text-content {
    display: block;
}

/* RIGHT Layout */
.alignment-right .image-container {
    float: right;
    width: 45%;
    margin-left: 30px;
    margin-bottom: 20px;
}

.alignment-right .text-content {
    display: block;
}

/* CENTER Layout */
.alignment-center {
    text-align: center;
}

.alignment-center .image-container {
    width: 70%;
    margin: 0 auto 25px;
}

.alignment-center .text-content p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* FULL Layout */
.alignment-full .image-container {
    width: 100%;
    max-height: 500px;
}

.alignment-full .image-container img {
    object-fit: cover;
    height: 100%;
}

/* Buttons */
.back-btndetail {
    text-align: center;
    margin-top: 50px;
}

.bt {
    display: inline-block;
    padding: 16px 36px;
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    margin: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(6, 214, 160, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.bt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.bt:hover {
    background: var(--gradient-accent);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 30px rgba(245, 158, 11, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.bt:hover::before {
    left: 100%;
}

.bt:active {
    transform: translateY(-2px) scale(1.02);
}

/* Secondary button variant */
.bt.secondary {
    background: var(--gradient-accent);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.bt.secondary:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.5);
}

/* Scrollbar Styling */
.fullnews::-webkit-scrollbar {
    width: 10px;
}

.fullnews::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 5px;
}

.fullnews::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.fullnews::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .fullnews {
        padding: 25px 20px;
        border-radius: 16px;
        max-width: 98%;
    }
    
    .alignment-left .image-container,
    .alignment-right .image-container {
        float: none;
        width: 100%;
        margin: 0 0 25px 0;
    }
    
    .fullnews h2 {
        font-size: 2rem;
    }
    
    .item h3 {
        font-size: 1.4rem;
    }
    
    .alignment-center .image-container {
        width: 90%;
    }
    
    .item {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .fullnews {
        padding: 20px 15px;
        max-width: 99%;
        height: 96%;
    }
    
    .fullnews h2 {
        font-size: 1.8rem;
        margin-top: 30px;
    }
    
    .item h3 {
        font-size: 1.3rem;
    }
    
    .item {
        padding: 20px;
    }
    
    .bt {
        padding: 14px 28px;
        font-size: 1rem;
        margin: 8px;
    }
    
    .text-content p {
        font-size: 1rem;
    }
}

/* Loading animation for images */
.image-container img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Floating animation for items */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.item {
    animation: float 6s ease-in-out infinite;
}

.item:nth-child(even) {
    animation-delay: 1s;
}

.item:nth-child(odd) {
    animation-delay: 2s;
}