/* ========================================
   PROFESSIONAL SOCIAL MEDIA CARDS
   School-Appropriate Design with Floating Animation
   ======================================== */

/* Social Media Grid Layout */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Social Media Card - Premium Professional Design */
.social-media-card {
    background: rgb(225, 213, 191) !important;
    /* Soft beige background */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 45px 30px !important;
    border-radius: 16px !important;
    /* More rounded corners for premium feel */
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(80, 96, 62, 0.15) !important;
    /* Softer border */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    /* Softer, lighter shadow */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
    /* Continuous gentle floating animation */
    animation: float 3s ease-in-out infinite;
    border-bottom: none !important;
}

/* Staggered animation delays for wave effect */
.social-media-card:nth-child(1) {
    animation-delay: 0s;
}

.social-media-card:nth-child(2) {
    animation-delay: 0.3s;
}

.social-media-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Floating Animation Keyframes - Keep as is */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Shine Sweep Effect on Hover */
.social-media-card::before {
    content: '' !important;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent) !important;
    /* Subtler shine */
    transition: left 0.6s ease;
    z-index: 1;
    opacity: 1 !important;
}

.social-media-card:hover::before {
    left: 100%;
}

/* Icon Wrapper - Smaller, Cleaner Design */
.social-icon-wrapper {
    width: 50px !important;
    /* Reduced from 60px */
    height: 50px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px !important;
    /* Balanced spacing */
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.social-icon-wrapper i {
    font-size: 1.35rem !important;
    /* ~32px - within 28-36px range */
    transition: all 0.4s ease;
}

/* Card Text Styling - Improved Spacing */
.social-media-card h4 {
    font-size: 1.15rem !important;
    /* Slightly smaller for better balance */
    margin-bottom: 10px !important;
    /* More space below platform name */
    font-weight: 600 !important;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.social-media-card p {
    font-size: 0.875rem !important;
    /* Slightly smaller description */
    color: var(--text-gray) !important;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    line-height: 1.6;
    opacity: 0.85;
}

/* Hover Effects - Elegant Lift with Softer Shadow */
.social-media-card:hover {
    transform: translateY(-15px) scale(1.05) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
    /* Softer, more premium shadow */
    /* Pause floating animation on hover */
    animation-play-state: paused;
}

.social-media-card:hover .social-icon-wrapper {
    transform: scale(1.12) !important;
    /* Subtle scale on hover */
}

.social-media-card:hover h4 {
    color: inherit !important;
}

.social-media-card:hover p {
    color: var(--text-gray) !important;
    opacity: 1;
    /* Full opacity on hover */
}

/* ========================================
   BRAND-SPECIFIC ICON COLORS (Icons Only)
   ======================================== */

/* Facebook - Blue Icon */
.facebook-card .social-icon-wrapper i {
    color: #1877F2 !important;
}

.facebook-card h4 {
    color: #1877F2 !important;
}

/* Instagram - Gradient Icon */
.instagram-card .social-icon-wrapper i {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-card h4 {
    color: #E4405F !important;
}

/* YouTube - Red Icon */
.youtube-card .social-icon-wrapper i {
    color: #FF0000 !important;
}

.youtube-card h4 {
    color: #FF0000 !important;
}

/* Remove any pulse animations - keep it calm */
.social-media-card:hover .social-icon-wrapper i {
    animation: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet View */
@media (max-width: 992px) {
    .social-media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .social-media-card {
        padding: 40px 25px !important;
    }

    .social-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
    }

    .social-icon-wrapper i {
        font-size: 1.25rem !important;
    }

    .social-media-card h4 {
        font-size: 1.1rem !important;
    }

    .social-media-card p {
        font-size: 0.85rem !important;
    }
}

/* Mobile View */
@media (max-width: 576px) {
    .social-media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
    }

    .social-media-card {
        padding: 40px 30px !important;
    }

    .social-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
    }

    .social-icon-wrapper i {
        font-size: 1.35rem !important;
    }

    .social-media-card h4 {
        font-size: 1.15rem !important;
    }

    .social-media-card p {
        font-size: 0.875rem !important;
    }
}