/* static/core/css/style112.css */

/* ===================================
   1. GLOBAL & BASE STYLES
   =================================== */
   html, body {
    height: 100%;
    /* Prevents horizontal scroll issues from animations/gradients */
    overflow-x: hidden;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Poppins', sans-serif;
    /* Main dark blue background */
    background-color: #121A33; /* Deep dark blue background */
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    /* Subtle noise/grain effect for premium feel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: auto;
    background-blend-mode: overlay;
    opacity: 0.98; /* Slightly less opaque for the noise to show */

    /* Added a very subtle radial gradient to the body itself for a soft, dark blue glow from the center */
    background: radial-gradient(circle at center, rgba(13, 110, 253, 0.05) 0%, transparent 70%), #121A33; /* Blue glow over dark blue */
    background-size: cover; /* Ensure gradient covers */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keep background fixed when scrolling */
}

/* Custom Scrollbar for a sleek look */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 5px;
    border: 2px solid #1a1a1a;
}
::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}


.content-wrap {
    flex: 1 0 auto;
}

.navbar {
    /* Set to a very dark blue transparent */
    background-color: rgba(18, 26, 51, 0.85) !important; /* Matches body's base color but slightly darker */
    backdrop-filter: blur(15px); /* More blur */
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 0; /* More vertical padding */
    border-bottom: 1px solid rgba(13, 110, 253, 0.1); /* Subtle blue border */
}

.navbar-brand {
    letter-spacing: 1px; /* A bit more space */
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem; /* Adjust padding */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { /* Add active state if Django manages it */
    width: calc(100% - 2rem); /* Full width minus padding */
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important; /* Highlight on hover */
}


.section {
    padding: 100px 0; /* More padding for sections */
}

.section-title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
    padding-bottom: 20px; /* Space for underline effect */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px; /* Short underline */
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
}

.section-title.text-start {
    text-align: left !important;
}
.section-title.text-start::after {
    left: 0;
    transform: translateX(0);
}


.highlight {
    color: #0d6efd;
    position: relative;
    display: inline-block;
}
.highlight::after { /* Underline effect for highlight */
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: rgba(13, 110, 253, 0.4);
    border-radius: 2px;
}


.site-footer {
    /* Set to a very dark blue */
    background-color: #0A101C; /* Slightly darker than body for depth */
    flex-shrink: 0;
    padding: 30px 0; /* More padding */
    border-top: 1px solid rgba(13, 110, 253, 0.1); /* Subtle blue border */
}

.bg-darker {
    /* Set to a slightly darker blue than the body for sections like "Domains" */
    background-color: #0F172A; /* Deep blue for sections */
    /* Adding a subtle gradient pattern for texture */
    background-image: radial-gradient(circle at 10% 10%, rgba(13, 110, 253, 0.03) 1px, transparent 1px),
                      radial-gradient(circle at 90% 90%, rgba(13, 110, 253, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}


/* ===================================
   2. HOMEPAGE-SPECIFIC STYLES
   =================================== */

/* --- Hero Section with Aurora Background --- */
.hero-section {
    position: relative;
    height: 95vh; /* Slightly taller */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px; /* Add some horizontal padding */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Enhanced aurora effect with more vibrant and shifting colors */
    background: radial-gradient(circle at 10% 10%, hsla(217, 100%, 50%, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, hsla(190, 100%, 50%, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 50% 100%, hsla(250, 100%, 60%, 0.15) 0%, transparent 50%);
    background-size: 300% 300%; /* Make background larger for animation */
    animation: aurora-move 25s linear infinite, aurora-pulse 10s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes aurora-move {
    0% { background-position: 0% 0%, 100% 100%, 50% 50%; }
    100% { background-position: 100% 100%, 0% 0%, 100% 0%; }
}

@keyframes aurora-pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Pseudo-element for an additional glowing effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    animation: glow-pulse 8s ease-in-out infinite alternate;
    z-index: 0; /* Behind other content */
}

@keyframes glow-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}


.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInScale 1s ease-out forwards; /* Initial animation for the whole content block */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-logo {
    display: block;
    max-width: clamp(200px, 40vw, 400px); /* Responsive logo size */
    height: auto;
    margin: 0 auto 30px auto; /* More space below */
    animation: logoPop 0.8s ease-out forwards; /* Initial animation */
    animation-delay: 0.3s; /* Delay for sequence */
    opacity: 0; /* Start hidden */
}

@keyframes logoPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.hero-headline { /* New class for the main headline */
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(13, 110, 253, 0.5); /* Subtle text glow */
    animation: textSlideUp 1s ease-out forwards;
    animation-delay: 0.6s; /* Delay for sequence */
    opacity: 0;
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-subtext { /* New class for the paragraph */
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #b0b0b0; /* Slightly lighter gray */
    max-width: 700px;
    margin: 0 auto 40px auto; /* More space below */
    line-height: 1.6;
    animation: textSlideUp 1s ease-out forwards;
    animation-delay: 0.9s; /* Delay for sequence */
    opacity: 0;
}

.hero-cta-button { /* New button style */
    display: inline-block;
    background-color: #0d6efd;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    animation: textSlideUp 1s ease-out forwards;
    animation-delay: 1.2s; /* Delay for sequence */
    opacity: 0;
}

.hero-cta-button:hover {
    background-color: #0a58ca;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.6);
    color: #ffffff; /* Keep text white */
}


/* --- Glassmorphism Card Style --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03); /* More subtle background */
    backdrop-filter: blur(15px); /* More blur */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* More subtle border */
    border-radius: 18px; /* Slightly more rounded */
    padding: 2.5rem;
    transition: all 0.4s ease; /* Smoother transition */
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* Initial subtle shadow */
    position: relative; /* For inner glow */
    overflow: hidden; /* Important for inner glow */
}

/* Inner glow on hover for glass cards */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(13, 110, 253, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: rotate(0deg);
    z-index: 0;
}

.glass-card:hover::before {
    opacity: 1;
    transform: rotate(45deg); /* Spin the glow */
}


.glass-card:hover {
    transform: translateY(-12px) scale(1.02); /* More pronounced lift and slight scale */
    border-color: rgba(13, 110, 253, 0.6); /* More vibrant border on hover */
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.2), 0 0 40px rgba(13, 110, 253, 0.1); /* Stronger blue shadow */
    background: rgba(255, 255, 255, 0.06); /* Slightly lighter background on hover */
}

.glass-card > * { /* Ensure content is above the pseudo-element glow */
    position: relative;
    z-index: 1;
}


.glass-card .icon {
    font-size: 3rem; /* Slightly larger icons */
    color: #0d6efd;
    margin-bottom: 1.5rem; /* More space below icon */
    filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.6)); /* Glow for icons */
}

.glass-card h4 {
    font-size: 1.6rem; /* Slightly larger heading */
}

.glass-card p {
    font-size: 1.1rem; /* Slightly larger text */
    line-height: 1.6;
}


/* --- Final Connect Section Styles --- */
.social-card {
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
}
.social-card .glass-card {
    padding: 2.5rem; /* Consistent padding */
}
.social-card .social-icon {
    font-size: 4rem; /* Larger social icons */
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); /* Subtle shadow for icons */
}
.social-card .insta-icon { color: #E4405F; }
.social-card .linkedin-icon { color: #0A66C2; }

/* --- Event Card Styles --- */
.event-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards in a row have equal height */
    /* Inherits glass-card styles (background, blur, border, hover effects) */
    position: relative; /* For image overflow and hover effects */
    overflow: hidden; /* Important for image overflow and inner glow */
    padding: 0; /* Remove default glass-card padding as image takes top */
}

/* Ensure glass-card's inner glow and content are correctly layered */
.event-card > * {
    position: relative;
    z-index: 1; /* Keep content above pseudo-elements */
}
.event-card::before {
    border-radius: 18px; /* Apply to the pseudo-element as well */
}


.event-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, crop if necessary */
    border-radius: 15px 15px 0 0; /* Rounded top corners */
    margin-bottom: 1rem;
    transition: transform 0.3s ease-in-out;
}

.event-card:hover .event-card-image {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.event-card-body {
    flex-grow: 1; /* Allows content to expand and push button to bottom */
    padding: 1.5rem; /* Padding inside the card body */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.event-card-title {
    font-size: 1.6rem; /* Slightly larger title */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.event-card-date {
    font-size: 1rem;
    color: #0d6efd; /* Highlight date */
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-card-description {
    font-size: 0.95rem;
    color: #adb5bd;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

/* Enhanced Button Styles for consistency with home page CTA */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
    padding: 12px 30px; /* More padding */
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3); /* Initial subtle shadow */
}
.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-3px); /* Lift more on hover */
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.5); /* Stronger shadow */
    color: #ffffff; /* Ensure text remains white */
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
    transition: all 0.3s ease;
    padding: 12px 30px; /* More padding */
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}
.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #ffffff;
    transform: translateY(-3px); /* Lift more on hover */
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.5); /* Stronger shadow */
}

/* Specific styling for the Register button to make it stand out */
.register-button {
    background-color: #28a745; /* Green for registration */
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5); /* Green shadow */
}
.register-button:hover {
    background-color: #218838;
    border-color: #218838;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.7); /* Even stronger green shadow */
}

/* Style for the "No Upcoming Events" message box */
.empty-events-message {
    /* Adjusted background to match new dark blue theme */
    background: rgba(18, 26, 51, 0.7); /* Darker blue with transparency */
    border-radius: 15px;
    padding: 50px; /* More generous padding */
    border: 1px solid rgba(13, 110, 253, 0.1); /* Consistent blue border */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.empty-events-message h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}
.empty-events-message p {
    font-size: 1.1rem;
    color: #adb5bd;
}

/* ===================================
   3. TEAM PAGE STYLES
   - Styles for your team.html template.
   =================================== */

.department-section {
    margin-bottom: 60px;
}
.department-section:last-child {
    margin-bottom: 0;
}

.department-title {
    text-align: left;
    font-size: 1.75rem;
    font-weight: 600;
    padding-bottom: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Professional Team Card --- */
.team-card-pro {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}
.team-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(13, 110, 253, 0.5);
}

/* --- THE IMAGE SIZE FIX IS HERE --- */
.team-card-pro-photo-container {
    position: relative;
    width: 120px;  /* Corrected smaller size */
    height: 120px; /* Corrected smaller size */
    margin: 0 auto 16px auto;
}
.team-card-pro-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c2c2c;
}

/* --- Card Overlay and Socials --- */
.team-card-pro-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(13, 110, 253, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.team-card-pro:hover .team-card-pro-overlay {
    opacity: 1;
}
.team-card-pro-socials {
    display: flex;
    gap: 20px;
}
.team-card-pro-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.team-card-pro-socials a:hover {
    transform: scale(1.2);
}

/* --- Card Text --- */
.team-card-pro-body {
    padding-top: 10px;
}
.team-card-pro-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 4px;
}
.team-card-pro-title {
    font-weight: 400;
    color: #adb5bd;
    margin-bottom: 0;
}


/* ===================================
   4. RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 991.98px) {
    .section-title {
        margin-bottom: 40px;
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
    .section {
        padding: 60px 0;
    }
    .hero-section {
        height: 80vh; /* Shorter on smaller screens */
    }
    .hero-headline {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    .hero-subtext {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .glass-card {
        padding: 2rem;
    }
    .glass-card .icon {
        font-size: 2rem;
    }
}
@media (max-width: 767.98px) {
    .navbar-collapse {
        background-color: rgba(18, 26, 51, 0.95); /* Adjusted to new blue */
        border-radius: 8px;
        margin-top: 10px;
        padding: 10px 0;
    }
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        text-align: center;
    }
    /* Center text-start titles on small screens */
    .section-title.text-start {
        text-align: center !important;
    }
    .section-title.text-start::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .event-card-image {
        height: 180px; /* Shorter image height on small screens */
    }
    .event-card-body {
        padding: 1rem;
    }
    .event-card-title {
        font-size: 1.4rem;
    }
    .event-card-description {
        font-size: 0.85rem;
    }
    .btn-primary, .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .empty-events-message {
        padding: 30px;
    }
    .empty-events-message h3 {
        font-size: 1.6rem;
    }
}
/* Add these to your style112.css file */

/* --- Specific background for the Events Page Section --- */
.events-page-section {
    /* A slightly lighter, more muted dark blue for contrast */
    background-color: #1A2540; /* A distinct dark blue */
    /* Add a very subtle linear gradient for depth */
    background-image: linear-gradient(180deg, rgba(27, 37, 68, 0.8) 0%, rgba(18, 26, 51, 0.8) 100%);
    border-radius: 15px; /* Rounded corners for the section block */
    padding: 80px 40px; /* Adjust padding for the section content */
    margin-top: 40px; /* Space from navbar */
    margin-bottom: 40px; /* Space from footer */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Subtle shadow for lift */
    /* Ensure no unwanted global background properties interfere */
    background-blend-mode: normal; /* Override body's overlay blend mode */
    position: relative;
    z-index: 2; /* Ensure it's above body background effects */
}

/* Make sure the section title is still visible against this background */
.events-page-section .section-title {
    color: #ffffff; /* Keep title white */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1); /* Subtle white glow */
}

/* Adjust the empty events message box to align with the glassmorphism aesthetic */
.empty-events-message {
    /* Inherit glass-card style for consistency, but with slightly more opacity for the background */
    background: rgba(255, 255, 255, 0.05); /* Slightly more visible than glass-card on its own */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Re-adjust the event card background for better contrast against the new section background */
.event-card.glass-card {
    background: rgba(255, 255, 255, 0.04); /* Slightly increased opacity for better visibility */
    border-color: rgba(255, 255, 255, 0.1);
}

/* On hover, make them pop more */
.event-card.glass-card:hover {
    background: rgba(255, 255, 255, 0.07); /* More opaque on hover */
    border-color: rgba(13, 110, 253, 0.7); /* More vibrant blue border */
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25), 0 0 50px rgba(13, 110, 253, 0.15); /* Stronger blue glow */
}

/* Responsive adjustments for the new section padding */
@media (max-width: 991.98px) {
    .events-page-section {
        padding: 60px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
@media (max-width: 767.98px) {
    .events-page-section {
        padding: 40px 15px;
    }
}