/* --- ACADEMIC RESOURCES UNIQUE STYLES (GREEN BLEND) --- */

:root {
    /* Updated Green Variables */
    --primary: #15803d;       /* Deep Forest Green */
    --secondary: #10b981;     /* Vibrant Emerald */
    --accent-light: #f0fdf4;  /* Mint/Sage Background */
    
    --dark-slate: #0f172a;
    --light-slate: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --white: #ffffff;
}

/* Page Container Spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Intro Section Styling */
.intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro h1 {
    font-size: 2.5rem;
    color: var(--dark-slate);
    margin-bottom: 15px;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Resource Grid & Cards */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.resource-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-10px);
    /* Green-tinted shadow */
    box-shadow: 0 20px 25px -5px rgba(21, 128, 61, 0.15);
}

.resource-card.active {
    border: 2px solid var(--primary);
    /* Mint gradient */
    background: linear-gradient(to bottom right, #ffffff, var(--accent-light));
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3 { font-size: 1.25rem; color: var(--dark-slate); }
.card-header span { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

.resource-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Course Tags */
.tag-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: var(--light-slate);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}
.tag-more {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    align-self: center;
}

/* Internship Preview Header */
.internship-preview {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.internship-preview h1 {
    font-size: 2rem;
    color: var(--dark-slate);
    margin-bottom: 10px;
    margin-top: 10px;
}


/* Blogs Slider Styling */
.blogs-section { margin-bottom: 80px; }
.section-header h1 { text-align: center; margin-bottom: 10px; }
.section-header { text-align: center; margin-bottom: 40px; }

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 380px;
}

.blog-image { position: relative; height: 200px; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.time-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    /* Dark Green Transparent Badge */
    background: rgba(21, 128, 61, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

.blog-content { padding: 20px; }
.blog-content h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--dark-slate); }
.read-more { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* Blogs Section Layout */
.blogs-section { padding: 80px 5%; background-color: #fcfcfd; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Styling from Design */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

/* Specific Shadow Effect seen on the focused card in image */
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Meta Data (Date & Author) */
.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.blog-meta i { margin-right: 5px; color: var(--secondary); /* Emerald Icon */ }

/* Content Typography */
.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin-bottom: 12px;
}

.blog-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Clips text after 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slider Controls Styling */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

.arrow-btn:hover { background: var(--primary); color: white; }

.pagination-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.dot.active { width: 24px; border-radius: 10px; background: var(--primary); }

/* See More Button */
.btn-outline-green {
    padding: 12px 30px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}


/* Executives Grid (Unique Overlay Style) */
.executives-section h1 { margin-bottom: 10px; }
.exec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.exec-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    /* Smooth transition for hover effects */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}

.exec-card img { 
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: top center;
}
.exec-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    /* Deep Green Gradient Overlay */
    background: linear-gradient(transparent, rgba(2, 44, 34, 0.95));
    color: white;
}
.exec-info .role { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #86efac; /* Luminous Mint */
}
.exec-info .name { font-size: 1.1rem; margin-top: 5px; }

.exec-card:hover {
    /* Lifts the card up by 15 pixels */
    transform: translateY(-15px);
    
    /* Adds a soft shadow to make it look like it's actually floating */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Global Reveal Classes */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .newsletter-bar { flex-direction: column; text-align: center; }
}

/* Resource css */
/* --- CLICKABLE CARD LOGIC --- */

/* The wrapper makes the whole area clickable */
.card-link-wrapper {
    display: block;
    padding: 30px; /* Restoring the original inner spacing */
    text-decoration: none; /* Removes underline from text */
    color: inherit; /* Keeps your text colors */
    height: 100%;
    width: 100%;
}

/* Hover Effects */
.resource-card {
    cursor: pointer;
    min-height: 480px; /* Ensures uniform height */
}

.resource-card:hover {
    transform: translateY(-8px); /* Card lifts up */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); /* Deeper shadow for depth */
    border-color: var(--secondary); /* Emerald highlight on hover */
}
    
/* Subtle icon animation on hover */
.resource-card:hover .card-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Ensuring tags remain readable within the link */
.tag {
    pointer-events: none; /* Prevents clicks on tags from interfering with the card link */
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Create the line using a pseudo-element */
.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Adjust distance from text */
    left: 0;
    height: 4px;
    background: var(--secondary); /* Emerald Green Line */
    border-radius: 2px;
    
    /* Initial state before animation */
    width: 0;
    
    /* Apply the animation */
    animation: loadLine 1.2s ease-out forwards;
    animation-delay: 0.3s; /* Slight delay for better visual effect */
}

/* --- Internship Section Layout --- */

.internship-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Or inherit from body */
}

/* Header Styling */
.internship-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333; /* Dark text */
}

.internship-header .highlight {
    /* Assuming you have a color for this, otherwise use a border-bottom */
    position: relative;
    display: inline-block;
}

/* Optional: Add the underline effect seen in the image to the highlight */
.internship-header .highlight::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;

    margin-top: 2px;
}

.internship-header .subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 60px auto; /* Large margin bottom to separate from icon */
}

/* --- Empty State Container --- */

.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* The Circle Icon Wrapper */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eef2ff; /* Very light blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.icon-circle i {
    font-size: 30px;
    color: #4f46e5; /* Icon color (Blue/Indigo) */
}

/* Empty State Text */
.empty-state-container h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.empty-state-container .empty-message {
    color: #666;
    margin-bottom: 30px;
}

/* Bottom Disclaimer */
.disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #888;
}

.disclaimer i {
    font-size: 1rem;
}

/* Define the loading motion */
@keyframes loadLine {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

/* Container to center the link */
.see-more-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.card-link {
    text-decoration: none; /* Removes underline */
    color: inherit;        /* Keeps your original text color */
    display: block;        /* Ensures the link wraps the whole card */
}

/* Optional: Makes the card pop up slightly when hovered */
.card-link:hover .resource-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* See More Link Styled as a Button */
.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--primary); /* Deep Forest Green */
    border: 2px solid var(--primary);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none; /* Removes default link underline */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-see-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Hover State */
.btn-see-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 128, 61, 0.2);
}

/* Move the arrow slightly on hover for a "pro" feel */
.btn-see-more:hover i {
    transform: translateX(5px);
}

/* Active/Click State */
.btn-see-more:active {
    transform: translateY(-1px);
}