/* Color Palette Variables */
:root {
    --primary-blue: #2C3E50; /* Dark Slate Blue - for main text, strong elements */
    --accent-teal: #1ABC9C;  /* Turquoise - for icons, highlights */
    --light-bg: #ECF0F1;     /* Clouds - for box backgrounds */
    --gradient-start: #3498DB; /* Peter River - Lighter Blue */
    --gradient-end: #2980B9;   /* Belize Hole - Darker Blue */
    --subtle-text: #7F8C8D;  /* Asbestos */
    --box-border-hover: #16A085; /* Darker Teal for hover border */
    --glow-color: rgba(26, 188, 156, 0.6); /* Translucent Teal for glow */
}

/* === PROUD SECTION === */
.proud-section {
    text-align: center;
    width: 100%; /* Full width of the webpage */
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    color: white;
    position: relative;
    box-sizing: border-box; /* Ensure padding is included in width */
    transform: translateZ(0);
    margin-bottom: 0;
}

.main-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8em;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.sub-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.3em;
    color: yellow;
    margin-bottom: 40px;
    
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.proud-box-container {
    display: flex;
    justify-content: space-between; /* Equal spacing between boxes */
    flex-wrap: wrap;
    padding: 5px 10px;
    position: relative;
    z-index: 1;
}

.proud-box {
    flex: 1 1 0; /* Equal widths */
    text-align: center;
    padding: 30px 15px;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--gradient-start), var(--accent-teal)) 1;
    border-radius: 10px;
    background-color: var(--light-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease-in-out,
                border-image 0.4s ease-in-out;
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Subtle light overlay on hover */
.proud-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 0;
}

.proud-box:hover::before {
    opacity: 1;
}

/* Animated border on hover */
.proud-box::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: 0;
background: linear-gradient(90deg, #ff6ec4, #7873f5, #4ade80, #22d3ee, #ff6ec4);
background-size: 300% 300%;

    background-size: 300% 300%;
    animation: animatedBorder 3s linear infinite;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.proud-box:hover::after {
    opacity: 1;
}
.fa-user-graduate:before {
 color: darkblue;
}
.fa-chalkboard-teacher:before {
   color: darkblue;  
}
.fa-chart-line:before {
     color: darkblue;  
}
.fa-users:before {
  color: darkblue;   
}
/* Border animation keyframes */
@keyframes animatedBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ensure content is above the animated border */
.proud-box > * {
    position: relative;
    z-index: 1;
}

/* Enhanced Hover for proud-box */
.proud-box:hover {
    transform: translateY(-15px) scale(1.03) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

.proud-box .icon {
    font-size: 3em;
    line-height: 1;
    margin-bottom: 15px;
    color: var(--accent-teal);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out, color 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.proud-box:hover .icon {
    transform: rotateY(360deg) scale(1.15);
    color: var(--primary-blue);
}

.proud-box .number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.3em; /* Reduced from 2.5em */
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.proud-box .label {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: darkblue;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .proud-section {
        padding: 30px 15px;
        margin: 15px auto;
    }
    .main-heading {
        font-size: 2.2em;
    }
    .sub-heading {
        font-size: 1.2em;
        margin-bottom: 30px;
    }
    .proud-box-container {
        justify-content: space-between;
        padding: 5px 10px;
    }
    .proud-box {
        flex: 1 1 calc(50% - 10px); /* Two boxes per row */
        padding: 25px 15px;
    }
    .proud-box .icon {
        font-size: 2.5em;
    }
    .proud-box .number {
        font-size: 2em;
    }
    .proud-box .label {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .proud-section {
        padding: 25px 10px;
        border-radius: 10px;
    }
    .main-heading {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    .sub-heading {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .proud-box-container {
        justify-content: space-between;
        padding: 5px 10px;
    }
    .proud-box {
        flex: 1 1 calc(50% - 10px);
        padding: 20px 15px;
    }
    .proud-box .icon {
        font-size: 2em;
    }
    .proud-box .number {
        font-size: 1.7em;
    }
    .proud-box .label {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .proud-section {
        padding: 20px 10px;
        width: 100%;
        border-radius: 8px;
    }
    .main-heading {
        font-size: 1.5em;
        letter-spacing: 0.5px;
    }
    .sub-heading {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    .proud-box-container {
        justify-content: center;
        padding: 5px 10px;
    }
    .proud-box {
        flex: 1 1 100%;
        padding: 20px 10px;
    }
    .proud-box .icon {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    .proud-box .number {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    .proud-box .label {
        font-size: 0.85em;
        letter-spacing: 0.5px;
    }
}