/* ====================================
   Footer Section Styles
   Inspired by Haas Hall Academy Design
   Maintaining Danborough Theme Colors
   ==================================== */

:root {
    --primary-green: #061508;
    --secondary-yellow: #f39a0c;
    --dark-green: #0f4a15;
    --light-green: #2d5a2d;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
}

/* Pre-Footer CTA Section */
.pre-footer-cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        rgba(10, 50, 14, 0.97) 0%,
        rgba(10, 46, 10, 0.95) 50%,
        rgba(10, 47, 14, 0.97) 100%
    ),
    url('../images/campus1.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
}

.pre-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 204, 0, 0.1) 10px,
        rgba(255, 204, 0, 0.1) 20px
    );
    pointer-events: none;
    animation: patternShift 20s linear infinite;
}

@keyframes patternShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.accreditation-badge {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    transform-origin: center;
    animation: badgePulse 3s infinite alternate;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }
}

.accreditation-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.accreditation-badge img {
    max-height: 90px;
    max-width: 100%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.accreditation-badge:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.accreditation-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--secondary-yellow);
}

.accreditation-text strong {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
    color: #ffeb3b;
    letter-spacing: 0.5px;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding-right: 20px;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.cta-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-yellow);
    border-radius: 4px;
}

.cta-content .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    max-width: 90%;
}

.cta-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
}

.btn-cta {
    padding: 16px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.btn-cta i {
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: var(--secondary-yellow);
    color: var(--text-dark);
    border: 2px solid var(--secondary-yellow);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

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

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

.btn-cta-primary:hover {
    background: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 204, 0, 0.4);
}

.btn-cta-primary:hover i {
    transform: translateX(5px) scale(1.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

.btn-cta-secondary:hover i {
    transform: rotate(-15deg) scale(1.2);
}

/* Main Footer */
#footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--light-green) 50%, var(--dark-green) 100%);
    color: var(--text-light);
    position: relative;
    margin-top: 0;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,204,0,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,204,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-main {
    padding: 80px 0 60px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-yellow), #ffd633);
    border-radius: 2px;
}

/* About Widget */
.about-widget .footer-logo {
    margin-bottom: 25px;
}

.about-widget .footer-logo img {
    max-width: 200px;
    height: auto;
    transition: all 0.3s ease;
}

.about-widget .footer-logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.about-widget p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 204, 0, 0.15);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 204, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-social a::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: left 0.6s ease;
}

.footer-social a:hover::before {
    left: 100%;
}

.footer-social a:hover {
    background: var(--secondary-yellow);
    border-color: var(--secondary-yellow);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
    color: var(--text-dark);
}

/* Links Widgets */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-widget ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-yellow);
    font-size: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.footer-widget ul li:hover::before {
    transform: translateY(-50%) translateX(5px);
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-widget ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-yellow);
    transition: width 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--secondary-yellow);
    transform: translateX(5px);
}

.footer-widget ul li a:hover::after {
    width: 100%;
}

/* Contact Widget */
.contact-info {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-yellow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--secondary-yellow);
    font-size: 1.2rem;
    margin-top: 2px;
    min-width: 20px;
}

.contact-details h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.contact-details a:hover {
    color: var(--secondary-yellow);
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 204, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.newsletter-content h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-yellow);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.newsletter-form input[type="email"] {
    grid-column: 1 / -1;
}

.btn-newsletter {
    grid-column: 1 / -1;
    padding: 15px 30px;
    background: var(--secondary-yellow);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-newsletter:hover {
    background: #ffd633;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.designer-credit {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem !important;
    margin-top: 5px !important;
    font-style: italic;
}

.designer-credit strong {
    color: var(--secondary-yellow);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-yellow);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .contact-widget {
        grid-column: 1 / -1;
    }
    
    .pre-footer-cta {
        padding: 80px 0;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .pre-footer-cta {
        padding: 70px 0;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        margin-top: 30px;
        justify-content: center;
    }
    
    .col-lg-4 .cta-buttons {
        justify-content: flex-start;
        margin-top: 40px;
    }
}

/* Note: Mobile responsive styles moved to mobile-responsive.css */

@media (max-width: 576px) {
    .footer-main {
        padding: 60px 0 40px;
    }
    
    .footer-newsletter {
        padding: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .cta-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-content .lead {
        text-align: center;
        font-size: 1rem;
        max-width: 100%;
    }
    
    .cta-stats {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}
