/* Enhanced Premium Styling for Nkangala TVET College Website */

/* Global Enhancements */
:root {
    --primary-color: #1a8cff;
    --secondary-color: #66b3ff;
    --accent-color: #ff9933;
    --light-blue: #e6f2ff;
    --dark-blue: #005cb3;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --box-shadow: 0 10px 30px rgba(26, 140, 255, 0.1);
    --hover-transform: translateY(-8px);
    --transition-speed: 0.4s;
}

body {
    overflow-x: hidden;
}

/* Animated Background Gradients */
.bg-gradient-animated {
    background: linear-gradient(-45deg, var(--light-blue), #ffffff, var(--light-blue), #f0f7ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

/* Enhanced Section Styling */
.premium-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.premium-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-light.png');
    opacity: 0.05;
    z-index: -1;
}

/* Enhanced Card Styling */
.premium-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(26, 140, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.premium-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 40px rgba(26, 140, 255, 0.15);
    border-color: var(--primary-color);
}

.premium-card:before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, transparent 30%, rgba(26, 140, 255, 0.03) 100%);
    border-radius: 50%;
    z-index: -1;
}

.premium-card:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(26, 140, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.premium-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all var(--transition-speed) ease;
    position: relative;
    z-index: 1;
}

.premium-card:hover .card-icon {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.premium-card .card-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.premium-card:hover .card-icon i {
    color: white;
}

.premium-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 15px;
    transition: all var(--transition-speed) ease;
}

.premium-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.premium-card:hover h3:after {
    width: 100px;
}

.premium-card p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
}

.premium-card .btn {
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.premium-card .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.premium-card:hover .btn:before {
    left: 100%;
}

.premium-card .btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 140, 255, 0.2);
}

/* Enhanced Section Titles */
.premium-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.premium-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.premium-title h2:before,
.premium-title h2:after {
    content: '';
    position: absolute;
    height: 5px;
    border-radius: 5px;
    bottom: -15px;
}

.premium-title h2:before {
    width: 80px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.premium-title h2:after {
    width: 40px;
    background: var(--accent-color);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.premium-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 25px auto 0;
}

/* Enhanced Image Styling */
.premium-image {
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    transition: all var(--transition-speed) ease;
}

.premium-image img {
    width: 100%;
    height: auto;
    transition: all 0.8s ease;
}

.premium-image:hover img {
    transform: scale(1.05);
}

.premium-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.premium-image:hover .image-overlay {
    opacity: 1;
}

.premium-image .image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.premium-image:hover .image-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Enhanced List Styling */
.premium-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.premium-list li {
    position: relative;
    padding: 15px 0 15px 35px;
    border-bottom: 1px solid rgba(26, 140, 255, 0.1);
    transition: all var(--transition-speed) ease;
}

.premium-list li:last-child {
    border-bottom: none;
}

.premium-list li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--primary-color);
    font-size: 18px;
    transition: all var(--transition-speed) ease;
}

.premium-list li:hover {
    padding-left: 45px;
    color: var(--primary-color);
}

.premium-list li:hover:before {
    left: 10px;
    transform: scale(1.2);
}

/* Enhanced Stats Counter */
.stats-counter {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.stats-counter:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) ease;
}

.stats-counter:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 140, 255, 0.15);
}

.stats-counter:hover:before {
    transform: scaleX(1);
}

.stats-counter .counter-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
}

.stats-counter:hover .counter-icon {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.stats-counter .counter-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.stats-counter .counter-title {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Enhanced Testimonial Styling */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    margin-bottom: 30px;
    transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 140, 255, 0.15);
}

.testimonial-card:before {
    content: '\f10d';
    font-family: 'FontAwesome';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: rgba(26, 140, 255, 0.1);
}

.testimonial-card .testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-card .author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--light-blue);
    transition: all var(--transition-speed) ease;
}

.testimonial-card:hover .author-image {
    border-color: var(--primary-color);
}

.testimonial-card .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .author-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--dark-blue);
}

.testimonial-card .author-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Enhanced CTA Section */
.premium-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.premium-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-light.png');
    opacity: 0.05;
}

.premium-cta .cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.premium-cta h2 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.premium-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.premium-cta .cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

.premium-cta .cta-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Timeline */
.premium-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.premium-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--light-blue);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 140, 255, 0.15);
}

.timeline-date {
    position: absolute;
    top: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -80px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -80px;
}

.timeline-point {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--light-blue);
    transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-point {
    background: var(--accent-color);
    transform: translateX(-50%) scale(1.2);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--dark-blue);
    font-size: 22px;
    margin-bottom: 15px;
}

.timeline-content p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* Campus Info Styling in Footer */
.footer-links .campus-info {
    display: block;
    font-size: 0.8rem;
    color: #a9c6e9;
    margin-top: 2px;
    margin-bottom: 8px;
    font-style: italic;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a:hover + .campus-info {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .premium-timeline:before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .timeline-point {
        left: 20px;
    }
    
    .timeline-date {
        position: relative;
        display: inline-block;
        margin-bottom: 15px;
        left: auto !important;
        right: auto !important;
    }
    
    .premium-title h2 {
        font-size: 30px;
    }
}
