/* ================= VARIABLES ================= */
:root {
    /* SPORTS THEME PALETTE (Orange & Navy) */
    --primary: #7C3AED;       /* Violet 500 - Main Brand Color */
    --secondary: #7c3aed;     /* Violet 600 - Darker/Hover Color */
    --accent: #dd56f8;      /* Pale Orange Tint */
    
    /* Neutrals */
    --dark-text: #1e293b;
    --light-text: #64748b;
    
    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    
    /* UI Elements */
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px -10px rgba(234, 88, 12, 0.3); /* Orange glow hover */
}

* { font-family: 'Outfit', sans-serif; }
body { text-align: left; }

/* ================= HERO SECTION (UPDATED: FULL IMAGE BG) ================= */
.hero-section {
    min-height: 65vh; /* Full Screen Height */
    display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center; padding: 5px 5px 5px;
    /* ADDED BACKGROUND IMAGE HERE - Replaces solid color */
    background: url('32.jpg') no-repeat center center/cover;
    color: white;
}

.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.85); /* Dark Navy Overlay for readability */
    z-index: 1;
}

.hero-content { z-index: 2; max-width: 900px; position: relative; }

.badge-pill {
    display: inline-block; padding: 8px 24px; border-radius: 50px;
    background: var(--s-primary); color: white; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 25px; box-shadow: var(--shadow); border: none;
}

.hero-title {
    font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; 
    color: white; letter-spacing: -2px;
}

.highlight-text {
    background: linear-gradient(135deg, #d058f8, #ffffff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle { 
    font-size: 1.25rem; color: #cbd5e1; max-width: 600px; margin: 0 auto; font-weight: 500; 
    
}

/* ================= SECTIONS & UTILITIES ================= */
.section { padding: 40px 0; border-bottom: 1px solid var(--border); background: var(--bg-body); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: -1px; font-weight: 800; color: var(--s-dark); }
.section-tag { color: var(--s-primary); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 15px; }

.gradient-line { width: 80px; height: 6px; margin: 0 auto 50px; background: linear-gradient(to right, var(--s-primary), var(--s-secondary)); border-radius: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* ================= FACILITIES CARDS (UPDATED: SMALL TEXT AT BOTTOM) ================= */
.sport-card {
    position: relative; 
    height: 300px; 
    border-radius: 20px; 
    overflow: hidden;
    box-shadow: var(--shadow); 
    transition: 0.4s; 
    cursor: pointer;
    background-color: var(--s-dark); 
    background-size: cover;
    background-position: center;
}

.sport-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

/* Overlay for Bottom Alignment with Dark Gradient */
.sport-overlay-bottom {
    position: absolute; 
    inset: 0; /* Fill the card */
    /* Stronger gradient at bottom for small text readability */
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end; /* Push content to bottom */
    justify-content: center; /* Center horizontally */
    padding: 20px;
    transition: 0.4s;
}

/* UPDATED: Smaller Font Size */
.sport-title {
    color: white; 
    font-size: 1.1rem; /* Much smaller font size */
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-align: center; 
    margin: 0;
}

/* ================= ANNUAL MEET TIMELINE ================= */
.meet-row { display: flex; gap: 60px; align-items: center; margin-bottom: 80px; }
.meet-row:nth-child(even) { flex-direction: row-reverse; }

.meet-img { 
    flex: 1; height: 400px; border-radius: 24px; overflow: hidden; 
    box-shadow: var(--shadow-hover); border: 4px solid white;
}
.meet-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.meet-img:hover img { transform: scale(1.03); }

.meet-content { flex: 1; }
.meet-content h3 { font-size: 2.2rem; margin: 20px 0; color: var(--s-dark); line-height: 1.2; }
.meet-content p { font-size: 1.1rem; color: var(--light-text); }

/* ================= ACTION GALLERY (Masonry) ================= */
.action-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    grid-template-rows: 250px 250px; margin-top: 50px;
}

.action-item { 
    border-radius: 16px; overflow: hidden; position: relative; box-shadow: var(--shadow);
}
.action-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.action-item:hover img { transform: scale(1.05); }

.wide { grid-column: span 2; }
.tall { grid-row: span 2; }

/* ================= FOOTER ================= */


/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    /* Stack Grids */
    .grid-3 { grid-template-columns: 1fr; gap: 30px; }
    
    /* Timeline Stack */
    .meet-row { flex-direction: column !important; gap: 30px; margin-bottom: 60px; }
    .meet-img { width: 100%; height: 250px; }
    .meet-content { text-align: center; }
    
    /* Masonry Stack */
    .action-grid { display: flex; flex-direction: column; height: auto; }
    .action-item { height: 250px; width: 100%; }
}

/* ================= ANIMATIONS ================= */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }

.fade-in { animation: fadeIn 1s forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); } }



.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.achieve-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Ensures table doesn't squish on mobile */
}

.achieve-table thead {
    background: var(--primary);
    color: white;
}

.achieve-table th {
    text-align: left;
    padding: 18px 25px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.achieve-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--body-text);
    vertical-align: middle;
}

.achieve-table tr:last-child td {
    border-bottom: none;
}

.achieve-table tr:hover {
    background-color: var(--bg-light); /* Light Violet Hover */
}

/* Student Avatar in Table */
.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Achievement Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.gold {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.status-badge.silver {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.status-badge.purple {
    background: var(--bg-light);
    color: var(--primary);
    border: 1px solid var(--secondary);
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-container {
        margin: 0 -20px; /* Edge to edge on mobile */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}



/* ================= NEW ACHIEVEMENT MODULES ================= */
.achievement-list {
    display: flex; flex-direction: column; gap: 15px;
    max-width: 700px; margin: 0 auto; /* Compact & Centered */
}

.achieve-card {
    display: flex; align-items: center;
    background: white; padding: 20px 25px;
    border-radius: 12px; border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.achieve-card:hover {
    transform: translateX(5px); border-color: var(--primary);
    box-shadow: var(--shadow);
}

.achieve-icon {
    width: 50px; height: 50px; background: var(--bg-light);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary); margin-right: 20px; flex-shrink: 0;
}

.achieve-details { flex-grow: 1; text-align: left; }
.achieve-details h4 { margin: 0; font-size: 1.1rem; color: var(--dark-text); font-weight: 700; }
.achieve-details .meta { margin: 2px 0 0; font-size: 0.9rem; color: var(--light-text); }

.achieve-badge {
    text-align: right; display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
}
.achieve-badge span {
    font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px;
}
.achieve-badge small { font-size: 0.8rem; color: var(--light-text); margin-top: 4px; font-weight: 600; }

/* Badge Colors */
.achieve-badge.gold span { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.achieve-badge.silver span { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }
.achieve-badge.purple span { background: #f3e8ff; color: var(--primary); border: 1px solid #d8b4fe; }

/* ================= GRIDS & CARDS ================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.clean-card { background: white; border: 1px solid var(--border); padding: 40px 30px; border-radius: 20px; text-align: center; transition: 0.3s; }
.clean-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary); }
.icon-box { font-size: 2.5rem; color: var(--primary); margin: 0 auto 25px; background: var(--bg-light); width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid #d8b4fe; }
.clean-card h3 { margin-bottom: 15px; font-size: 1.3rem; font-weight: 700; color: var(--dark-text); }



/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .layout-split, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    .achieve-card { padding: 15px; }
    .achieve-icon { width: 40px; height: 40px; font-size: 1.2rem; margin-right: 15px; }
}

.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeIn 1s forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); } }


/* Add this below your existing .achieve-badge.purple styles */

.achieve-badge.bronze span {
    background: #fff7ed; 
    color: #c2410c; /* Dark Orange/Bronze text */
    border: 1px solid #fdba74; /* Orange Border */
}