/* Modern Welcome Page Section Enhancements */

/* Section Highlight - About Section */
#section-highlight {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

#section-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 246, 254, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 0;
}

#section-highlight .container {
    position: relative;
    z-index: 1;
}

#section-highlight .p-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6B46C1;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    padding-right: 15px;
}

#section-highlight .p-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #6B46C1;
    border-radius: 50%;
}

#section-highlight h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1c26;
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

#section-highlight .small-border {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6B46C1 0%, #313380 100%);
    border-radius: 2px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

#section-highlight .small-border.sm-left {
    margin-right: 0;
}

#section-highlight p {
    font-size: 16px;
    line-height: 1.9;
    color: #4a5568;
    text-align: justify;
    animation: fadeInUp 1.2s ease;
}

/* Section News - Blog Section */
#section-news {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

#section-news::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 25s ease-in-out infinite;
}

#section-news::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(49, 51, 128, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite reverse;
}

#section-news .container {
    position: relative;
    z-index: 1;
}

#section-news .text-center {
    margin-bottom: 60px;
}

#section-news h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1c26;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.6s ease;
}

#section-news h2::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #6B46C1 100%);
    border-radius: 2px;
}

#section-news h2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #6B46C1 0%, transparent 100%);
    border-radius: 2px;
}

#section-news .small-border {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6B46C1 0%, #313380 50%, #6B46C1 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    margin: 0 auto;
    animation: gradientShift 3s ease infinite, fadeInUp 0.8s ease;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Blog Cards */
#section-news .bloglist {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#section-news .bloglist:hover {
    transform: translateY(-8px);
}

#section-news .post-content {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#section-news .post-content:hover {
    border-color: rgba(107, 70, 193, 0.2);
    box-shadow: 0 12px 35px rgba(107, 70, 193, 0.15);
}

/* Section Spacing Improvements */
.section-separator-two-column {
    margin: 0;
}

#section-highlight {
    margin-top: 0;
    margin-bottom: 0;
}

#section-fun-facts {
    margin-top: 0;
    margin-bottom: 0;
}

#section-news {
    margin-top: 0;
}

/* Smooth Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

/* Enhanced Typography */
#section-highlight .col-md-6:first-child {
    padding-right: 30px;
}

#section-highlight .col-md-6:last-child {
    padding-left: 30px;
}

#section-highlight .about-content {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border-right: 4px solid #6B46C1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#section-highlight .about-content:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.1);
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 991px) {
    #section-highlight {
        padding: 50px 0;
        margin: 0 !important;
    }
    
    #section-highlight h3 {
        font-size: 28px;
    }
    
    #section-highlight .col-md-6:first-child,
    #section-highlight .col-md-6:last-child {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    #section-news {
        padding: 50px 0;
        margin: 0 !important;
    }
    
    #section-news h2 {
        font-size: 30px;
    }
    
    /* Remove extra spacing between sections on tablet */
    .section-separator-two-column {
        margin: 0 !important;
    }
    
    .white-section-content {
        margin: 0 !important;
    }
    
    #section-fun-facts {
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    #section-highlight {
        padding: 40px 0 !important;
        margin: 0 !important;
    }
    
    #section-highlight h3 {
        font-size: 24px;
    }
    
    #section-highlight p {
        font-size: 15px;
    }
    
    #section-news {
        padding: 40px 0 !important;
        margin: 0 !important;
    }
    
    #section-news h2 {
        font-size: 26px;
    }
    
    #section-news h2::before,
    #section-news h2::after {
        display: none;
    }
    
    /* Remove extra spacing between sections on mobile */
    .section-separator-two-column {
        margin: 0 !important;
    }
    
    .white-section-content {
        margin: 0 !important;
    }
    
    #section-fun-facts {
        margin: 0 !important;
    }
    
    section {
        margin: 0 !important;
    }
}

/* Loading Animation for Cards */
#section-news .bloglist {
    animation: fadeInUp 0.6s ease backwards;
}

#section-news .bloglist:nth-child(1) { animation-delay: 0.1s; }
#section-news .bloglist:nth-child(2) { animation-delay: 0.2s; }
#section-news .bloglist:nth-child(3) { animation-delay: 0.3s; }
#section-news .bloglist:nth-child(4) { animation-delay: 0.4s; }
#section-news .bloglist:nth-child(5) { animation-delay: 0.5s; }
#section-news .bloglist:nth-child(6) { animation-delay: 0.6s; }
#section-news .bloglist:nth-child(7) { animation-delay: 0.7s; }
#section-news .bloglist:nth-child(8) { animation-delay: 0.8s; }
#section-news .bloglist:nth-child(9) { animation-delay: 0.9s; }

/* Enhanced Separator Sections */
.section-separator-two-column {
    position: relative;
    overflow: hidden;
}

.section-separator-two-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.section-separator-two-column .container {
    position: relative;
    z-index: 1;
}

/* Improved Image Hover Effects */
.section-separator-two-column .separator-image {
    position: relative;
    overflow: hidden;
}

.section-separator-two-column .separator-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(49, 51, 128, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 10px;
}

.section-separator-two-column .separator-image:hover::after {
    opacity: 1;
}

/* Enhanced Section Transitions */
section {
    transition: all 0.3s ease;
}

/* Improved Card Shadows */
#section-news .post-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#section-news .post-content:hover {
    box-shadow: 0 12px 40px rgba(107, 70, 193, 0.2);
}

/* Better Image Loading */
#section-news .post-image img {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* Enhanced Separator Text */
.section-separator-two-column .separator-text {
    position: relative;
}

.section-separator-two-column .separator-text::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    border-radius: 2px;
}

/* Smooth Section Transitions */
#section-highlight,
#section-fun-facts,
#section-news {
    scroll-margin-top: 100px;
}

/* Enhanced Blog Card Tag */
#section-news .p-tagline {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#section-news .post-content:hover .p-tagline {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}
