:root {
    --primary: #1e3a5f;
    --secondary: #ed2024;
    --accent: #49bc39;
    --light: #f9f9f9;
    --dark: #222;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--text);
}

.news-ribbon {
    position: relative;
    height: 30px;
    /* Set your desired fixed height */
    background-color: var(--primary);
    /* Background color for the ribbon */
    color: white;
    /* Text color */
    overflow: hidden;
    /* Hide overflowing text */
}

.news-ribbon p {
    position: absolute;
    white-space: nowrap;
    /* Prevent text from wrapping */
    animation: slide-left 20s linear infinite;
    /* Apply animation */
    padding-left: 100%;
    /* Start text from outside the container */
}

@keyframes slide-left {
    0% {
        transform: translateX(100%);
        /* Start off-screen to the right */
    }

    100% {
        transform: translateX(-100%);
        /* Move off-screen to the left */
    }
}


nav.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: white;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--secondary);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-left .logo {
    height: 40px;
}

.site-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--accent);
    color: white;
}

/* Dropdown */
.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary);
    white-space: nowrap;
}

.dropdown li a:hover {
    background: var(--accent);
    color: white;
}

/* Mobile (optional toggle can be added) */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
    }

    .site-title {
        font-size: 1rem;
    }
}


header {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    animation: slideShow 20s infinite ease-in-out;
    /* Animation for background slideshow */
}

/* Define the slideshow animation */
@keyframes slideShow {
    0% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../PDFs/images/bg.jpg');
    }

    25% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../PDFs/images/CEFC-Project-Report-E-Book-2.jpg');
    }

    50% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../PDFs/images/CEFC-Project-Report-E-Book.jpg');
    }

    75% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../PDFs/images/bg1.jpeg');
    }

    100% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../PDFs/images/bg2.jpeg');
    }
}


header h1 {
    font-size: 4rem;
    /* Larger, more professional font size */
    font-weight: 700;
    /* Bold for emphasis */
    padding: 20px 40px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    /* Slight black background to enhance readability */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Subtle shadow for depth */
    animation: fadeIn 1.5s ease-in-out;
}

header p {
    font-size: 1.5rem;
    font-weight: 300;
    /* Lighter weight for a professional feel */
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    /* Slightly softer white for contrast */
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    animation: fadeIn 0.8s ease;
}

.container_alternative {
    text-align: center;
    margin: 3rem auto;
    max-width: 900px;
    padding: 0 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary);
    border-left: 6px solid var(--secondary);
    padding-left: 15px;
}

.container h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--primary);


}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.02));
    z-index: -1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Button Styling */
.btn {
    display: inline-block;
    margin-top: 1.5rem;
    /* Space between text and button */
    padding: 0.75rem 1.5rem;
    /* Comfortable padding */
    font-size: 1rem;
    /* Font size */
    font-weight: 600;
    /* Bold text for emphasis */
    color: #fff;
    /* White text for contrast */
    background-color: var(--primary);
    /* Vibrant purple color */
    border: none;
    /* No border */
    border-radius: 10px;
    /* Rounded edges for a pill-shaped button */
    text-decoration: none;
    /* Remove underline from links */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

/* Hover Effect */
.btn:hover {
    background-color: var(--accent);
    /* Darker shade for hover */
    transform: translateY(-2px);
    /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow */
}

/* Active State */
.btn:active {
    transform: translateY(0);
    /* Reset position on click */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Reduced shadow */
}

h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
}

.pillars-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.pillar-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 280px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2.5rem;
    color: var(--primary);
    /* Bootstrap blue, change as needed */
    margin-bottom: 1rem;
}

.pill-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--accent);
}

.pill-subtitle {
    font-size: 1rem;
    color: #666;
}

footer {
    background: var(--primary);
    color: white;
    margin-top: 0px;
}

footer a {
    color: var(--light);
}

footer a:hover {
    color: var(--accent);
}

footer h3 {
    font-size: 1.2rem;
}


@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    header h1 {
        font-size: 2.2rem;
        padding: 15px 20px;
    }
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 1200px;
    text-align: left;
}

.guidelines-list li {
    display: flex;
    align-items: start;
    font-size: 1rem;
    margin: 1rem 0;
    line-height: 1.5;
    color: #444;
}

.guidelines-list i {
    color: var(--accent);
    margin-right: 0.75rem;
    font-size: 1.2rem;
    min-width: 20px;
}

.smart-intro {
    background-color: #f0f4f9;
    padding: 3rem 1rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
}

.smart-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.smart-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.smart-text {
    max-width: 600px;
}

.smart-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.smart-text .lead {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.welcome-body {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-body ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.welcome-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    transform: translateY(-50%);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.scroll-top:hover {
    background-color: var(--primary);
    /* fallback darker tone */
    transform: translateY(-3px);
}

.scroll-top i {
    pointer-events: none;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faculty-showcase {
    text-align: center;
    padding: 4rem 1rem;
}

.faculty-showcase h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
}

.faculty-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.faculty-card {
    width: 220px;
    perspective: 1200px;
    display: flex;
    flex-direction: column;
}

.card-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem 1rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
    /* Set a consistent height */
}



.card-inner:hover {
    transform: translateY(-10px);
}

.profile-pic {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent, #0077cc);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    z-index: 2;
    position: relative;
    margin-top: 1rem;
    flex-grow: 1;
    /* Pushes hover bubble to bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-info h3 {
    margin: 0.3rem 0;
    font-size: 1.1rem;
    color: #222;
}

.designation {
    font-size: 0.9rem;
    color: #666;
}

/* Creative hover effect */
.card-hover {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: bottom 0.4s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.card-inner:hover .card-hover {
    bottom: 0;
}

/* Main hero content inside header */
.hero-text-content {
    z-index: 2;
    position: relative;
    max-width: 900px;
    padding: 1rem;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

.hero-text-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-text-content p {
    font-size: 1.4rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* CTA button */
html {
    scroll-behavior: smooth;
}

.hero-cta-button {
    display: inline-flex;
    /* Use flexbox to align items horizontally */
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    color: white;
    background-color: var(--accent, #00b4d8);
    text-decoration: none;
    align-items: center;
    /* Vertically center text and icon */
    transition: all 0.3s ease-in-out;
}

.hero-cta-button:hover {
    background-color: var(--primary);
    transform: scale(1.05);
}

.hero-cta-button i {
    /* Add styles for the icon */
    margin-left: 10px;
    font-size: 1.4rem;
    /* Icon size */
    transition: transform 0.3s ease-in-out;
}

.hero-cta-button:hover i {
    transform: translateY(5px);
    /* Move the icon slightly down on hover */
}


/* Floating shapes */
.hero-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
}

.shape.circle {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    top: 25%;
    left: 10%;
}

.shape.square {
    width: 50px;
    height: 50px;
    background: #ffffff;
    top: 50%;
    left: 80%;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid #ffffff;
    top: 40%;
    left: 60%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}


.partner-section {
    background-color: #f0f4f9;
    /* Light background for the section */
    padding: 3rem 0;
    /* Top and bottom padding */
    position: relative;
    /* To position the card relative to the section */
    text-align: center;
    /* Center content */
}

.partner-card {
    background-color: #fff;
    /* White card background */
    padding: 2rem;
    /* Padding inside the card */
    max-width: 1200px;
    /* Max width for the card */
    margin: 0 auto;
    /* Center the card horizontally */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* Soft shadow for the hanging effect */
    border-radius: 15px;
    /* Rounded corners for the card */
    position: relative;
    /* To position it dynamically */
    top: -70px;
    /* Make the card "hang" above the section */
}

h4 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
}

h4::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: var(--secondary);
    margin: 0.5rem auto;
    transition: width 0.3s ease;
    transform-origin: center;
    /* Ensures it expands equally from center */
}

h4:hover::after {
    width: 160px;
    /* Or any desired increased length */
}

.partner-logos {
    display: grid;
    grid-auto-flow: row;
    /* default */
    grid-template-columns: repeat(auto-fit, 150px);
    /* fixed-width items */
    justify-content: center;
    /* center the entire grid block */
    gap: 2rem;
}


.partner-logos img {
    max-width: 100%;
    /* Ensure images don't stretch */
    max-height: 80px;
    /* Limit height for logos */
    object-fit: contain;
    /* Maintain aspect ratio of logos */
    transition: transform 0.3s ease-in-out;
    /* Add subtle hover effect */
}

.partner-logos img:hover {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.event-date {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 5px 0;
    font-family: sans-serif;
}


.event-date .day {
    font-size: 1.4em;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    text-transform: uppercase;
    font-size: 0.9em;
    line-height: 1;
}

.event-date .year {
    font-size: 0.8em;
    line-height: 1.2;
}

.event-details {
    flex: 1;
}


.event-details h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
}

.event-details p {
    margin: 0;
    font-size: 0.9em;
    color: #606060;
}

.pagination {
  display: inline-block;
  margin-top: 20px;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  margin: 0 2px;
  transition: background-color 0.3s;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

.pagination a.active {
  background-color: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.pagination span {
  float: left;
  padding: 8px 16px;
  color: #888;
}
/* Scope to news display only */
.news-view .event {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 16px 0;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-view .event:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Stylish date box */
.news-view .event-date {
    background: var(--light);
    color: #1f2937;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    min-width: 70px;
    margin-right: 20px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

.news-view .event-date .month {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    letter-spacing: 1px;
}

.news-view .event-date .year {
    font-size: 13px;
    color: #4b5563;
}

/* Modern text styling */
.news-view .event-details {
    flex: 1;
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

.news-view .event-details h5 {
    font-size: 18px;
    margin: 0 0 6px;
    color: var(--primary);
}

.news-view .event-details p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

/* More details block */
.news-view .more-details {
    margin-top: 12px;
    background: #f9fafb;
    padding: 12px;
    border-left: 3px solid var(--accent);
    border-radius: 8px;
}

.news-view .more-details img {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
    border-radius: 6px;
}

.news-view .more-details a {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.news-view .more-details a:hover {
    text-decoration: underline;
}
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* or 100vh if you want full screen */
  text-align: center;
}
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
.badge {
  background-color: var(--secondary);
  color: white;
  padding: 2px 4px;
  text-align: center;
  border-radius: 5px;

  /* total cycle: 5s = 2s blink + 3s pause */
  animation: blinkPause 5s infinite;
}

@keyframes blinkPause {
  0%, 20% { opacity: 1; }   /* visible */
  10% { opacity: 0; }       /* blink off */
  30%, 100% { opacity: 1; } /* stay visible (pause) */
}
