/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: #00265f;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    max-height: 400px;
    overflow: hidden;
}

.modal-image-container {
    min-width: 300px;
    width: auto;
    height: 400px;
    flex-shrink: 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: fit;
}

.modal-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    padding-right: 30px;
    color: white;
}

.modal-text {
    margin-bottom: 20px;
    line-height: 1.5;
    color: #64ffda;
}

.modal-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .modal-card {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
    }

    .modal-content {
        order: 1;
        max-height: calc(90vh - 300px);
    }

    .modal-image-container {
        order: 2;
        width: 100%;
        height: 300px;
        min-width: unset;
    }

    .modal-image {
        border-radius: 0 0 10px 10px;
    }
}

/* For very small screens */
@media screen and (max-width: 480px) {
    .modal-image-container {
        height: 250px;
    }

    .modal-content {
        max-height: calc(90vh - 250px);
    }
}

/* Navbar */
/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Header and Navbar Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.tagline {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    flex-grow: 1;
    font-style: italic;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover {
    background-color: #007bff;
    border-radius: 5px;
}

.join-btnx {
    background-color: #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    transition: background-color 0.3s ease;
}

.join-btnx:hover {
    background-color: #0056b3;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    min-width: 180px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    color: #fff;
    padding: 10px;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #007bff;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
    }

    .nav-links li {
        flex-direction: column;
        width: 100%;
    }

    .nav-links li a {
        padding: 15px;
        width: 100%;
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    .tagline {
        font-size: 1rem;
    }

    .join-btnx {
        width: 50%;
        text-align: center;
        flex-direction: column;
        margin-right: 30px;
    }
}

/* Slideshow - Fullscreen behind Navbar */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height, no extra padding for navbar */
    max-width: auto;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
    top: 0; /* Start from the very top */
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text overlay on slides */
.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    z-index: 1;
}

/* Hide the description (paragraph) on mobile screens */
@media (max-width: 768px) {
    .slide-text p {
        display: none; /* Hide the description */
    }
    
    .slide-text h2 {
        font-size: 1.5rem; /* Reduce title size for mobile screens */
    }
}

/* Slide fade animation */
.fade {
    animation-name: fade;
    animation-duration: 2s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}


/* About Section */
.about-section {
    display: flex; /* Flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center the content */
    padding: 4rem 2rem;
    background-color: #0a192f;
    color: white;
    min-height: 300px; /* Ensures full-height section */
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem; /* Space between the text and image */
}

.text-content {
    flex: 1; /* Occupy left half of the section */
    text-align: justify; /* Align text to the left */
    justify-content: center;
    margin-left: 40px;
}

.text-content h2 {
    font-size: 2.5rem;
    text-align: left;
}

.text-content p {
    color: #64ffda;
    line-height: 1.6;
}

.image-content {
    flex: 1; /* Occupy right half of the section */
    display: flex;
    justify-content: center;
}

.image-content img {
    max-width: 100%; /* Ensure the image scales responsively */
    max-height: 600px; /* Constrain the image height */
    object-fit: cover; /* Ensure the image maintains aspect ratio */
}


/* Chapters Section */
.chapters-section {
    padding: 4rem 2rem;
    background-color: #0a192f;
}

.scrolling-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.chapter-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.chapter-box {
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.chapter-box img {
    width: auto;
    height: auto;
    object-fit: fit;
}

.chapter-content {
    text-align: center;
    color: #64ffda;
    align-items: center;
    text-decoration: none;
}


/* Events Section */
.events-section {
    padding: 20px;
    background-color: #0a192f;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.calendar {
    display: block; /* Stack events vertically */
}

.event-container {
    display: flex; /* Keep flex for internal layout */
    flex-direction: row; /* Keep row direction */
    align-items: center;
    background: #112240;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0; /* Space between rows */
    margin-left: 30px; /* Outer space from the left */
    margin-right: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation for hover */
}

/* Hover effect */
.event-container:hover {
    transform: scale(1.05); /* Slightly enlarge the item */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
}

.date-info {
    flex-shrink: 0;
    text-align: center;
    margin-right: 15px;
}

.date {
    font-size: 18px; /* Font size for date */
    font-weight: bold;
    color: #007bff; /* Customize date color */
}

.day {
    font-size: 14px; /* Font size for day */
    color: #666;
}

.event-details {
    flex-grow: 1;
}

.event-link {
    text-decoration: none;
    color: #64ffda; /* Event text color */
}

.event-name {
    font-size: 18px;
    font-weight: bold;
}

.event-description {
    font-size: 14px;
    color: #fe019a;
}

.leaders-section {
    padding: 4rem 0;
    background-color: #0a192f;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ffffff;
}

.leaders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.leader-card {
    background-color: #112240;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(25% - 1.5rem);
    max-width: 300px;
    min-width: 200px;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.leader-image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.leader-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.leader-card:hover .leader-image {
    transform: scale(1.1);
}

.leader-info {
    padding: 1rem;
    text-align: center;
}

.leader-name {
    margin: 0;
    font-size: 1.2rem;
    color: #64ffda;
}

.leader-designation {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #8892b0;
}

.leader-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #8892b0;
    transition: fill 0.3s ease;
}

.social-icon:hover {
    fill: #64ffda;
}

@media (max-width: 1200px) {
    .leader-card {
        width: calc(33.33% - 1.33rem);
    }
}

@media (max-width: 900px) {
    .leader-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .leader-card {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer */
.site-footer {
    background-color: #00265f;
    color: #ffffff;
    padding: 30px 0 20px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* Add continuous background animation */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    animation: shine 2s infinite;
}

/* Keyframe for smooth background movement */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.footer-content {
    position: relative;
    z-index: 1; /* Ensure content is above the animated background */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Societies Section */
.societies {
    flex: 2.5;
    margin-bottom: 20px;
}

.societies h1 {
    margin-bottom: 15px;
    text-align: center;
}

.societies ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Ensure names are displayed in full */
.societies li {
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.societies a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.societies a:hover {
    color: #ffffff;
}

/* Social Media Section */
.social-media {
    flex: 1.5;
    margin-left: 40px;
}

.social-media h1 {
    margin-bottom: 10px; /* Adjusted margin */
    font-size: 26px; /* Reduce font size if necessary */
    white-space: nowrap; /* Ensure no wrapping occurs */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #64ffda;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #64ffda;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    display: inline;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        padding: 0 20px;
    }

    .societies {
        margin-bottom: 30px;
    }

    .societies ul {
        grid-template-columns: repeat(2, minmax(220px, 1fr)); /* Two columns in mobile view */
    }

    /* Align "Connect with Us" section under societies */
    .social-media {
        margin-left: 0;
        text-align: left;
    }

    .footer-bottom {
        padding-top: 10px;
    }
}

/* Larger screen adjustments */
@media (min-width: 769px) {
    .footer-content {
        gap: 40px;
    }

    .societies ul {
        grid-template-columns: repeat(3, minmax(250px, 1fr)); /* Three columns on larger screens */
    }
}

@media (min-width: 1024px) {
    .social-media {
        flex: 1.2; /* Adjust flex ratio to balance between societies and social-media sections */
    }
}



.full-description {
    display: block; /* Show full description by default */
}

.short-description {
    display: none; /* Hide short description by default on large screens */
}

@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .text-content, .image-content {
        width: 100%;
        margin-left: auto;
    }

    .read-more-btn {
        display: block;
        margin-top: 10px;
        padding: 5px 10px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .full-description {
        display: none; /* Hide full description */
    }

    .short-description {
        display: block; /* Show short description */
    }

    .read-more-btn {
        display: block; /* Show read more button on mobile screens */
    }
}

/* Hide the Read More button on larger screens */
@media screen and (min-width: 769px) {
    .read-more-btn {
        display: none; /* Hide the button on screens wider than 768px */
    }
}


/* Styles for mobile screens */
@media screen and (max-width: 768px) {

    .slideshow-container {
        height: 50vh;
    }
}

@media screen and (max-width: 768px) {
    .event-container {
        flex-direction: column;
        align-items: flex-start;
        margin: 15px 10px;
    }

    .date-info {
        margin-bottom: 10px;
    }

    .event-details {
        width: 100%;
    }

    .event-name {
        font-size: 16px;
    }

    .event-description {
        font-size: 14px;
    }
}

/* Custom scrollbar for WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #0c104e; /* Dark blue background for the track */
}

::-webkit-scrollbar-thumb {
    background-color: #ffffff; /* White color for the scrollbar thumb */
    border-radius: 10px; /* Rounded corners */
    border: 3px solid #0c104e; /* Adds padding around the thumb with dark blue color */
}

/* Scrollbar hover effect */
::-webkit-scrollbar-thumb:hover {
    background-color: #007bff; /* Change color when hovering over the scrollbar */
}

/* Firefox custom scrollbar */
* {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: #ffffff #0c104e; /* Thumb (white), Track (dark blue) */
}

/* Smooth scroll effect for consistent experience */
html {
    scroll-behavior: smooth; /* Enables smooth scrolling when using anchor links */
}

/* Contact Us Section */
.contact-section {
    padding: 4rem 2rem;
    background-color: #0a192f; /* Dark Blue Background */
    color: #fff; /* White Text */
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff; /* White for Heading */
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

/* Contact Form Styling */
.contact-form {
    background-color: #112240; /* Darker Blue */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Slight shadow */
    flex-basis: 45%;
    min-width: 300px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff; /* White text for labels */
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #007bff; /* Blue border */
    border-radius: 10px;
    outline: none;
    background-color: #0a192f; /* Dark Blue background */
    color: #ffffff; /* White text */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #64ffda; /* Light Blue focus effect */
}

.contact-form button.submit-btn {
    background-color: #64ffda; /* Blue button */
    color: #0a192f;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    width: 100%;
    transition: background-color 0.3s;
}

.contact-form button.submit-btn:hover {
    background-color: #1fffcb; /* Darker blue on hover */
}

/* Google Maps Container */
.map-container {
    flex-basis: 45%;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Slight shadow */
}

iframe {
    border: none;
    border-radius: 15px; /* Rounded edges for map */
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .contact-form,
    .map-container {
        flex-basis: 100%;
        max-width: 100%;
        /*align-items: center;*/
        justify-content: center;
    }

    .contact-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
}

.map-container {
    height: 450px;
    width: 600px;
    border: 1px solid #ccc;
    filter: brightness(0.8);
}

#map {
    height: 100%;
    width: 100%;
}

/* Section Separator Styles */
.section-separator {
    height: 4px;
    background-color: #64ffda;
    margin: 20px 0;
    width: 100%;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    bottom: -18px;
    background-color: #112240;
    z-index: -1;
}

/* Adjust section paddings */
.about-section,
.chapters-section,
.events-section,
.leaders-section,
.contact-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-separator {
        margin: 15px 0;
    }

    .about-section,
    .chapters-section,
    .events-section,
    .leaders-section,
    .contact-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.new-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: #0a192f; /* Dark background */
    color: white; /* White text */
}

.new-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.new-text {
    flex: 1;
    margin-right: 2rem;
}

.new-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.new-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.join-btn {
    padding: 10px 20px;
    background-color: #007bff; /* Blue button */
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.new-image {
    flex: 1;
}

.new-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .new-section {
        flex-direction: column;
    }

    .new-text,
    .new-image {
        margin: 0 auto;
        width: 90%;
    }

    .new-text {
        margin-bottom: 2rem;
    }
}

.membership-benefits {
    background-color: #0a192f; /* Dark blue background */
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.membership-benefits .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.membership-benefits h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.membership-benefits .subtitle {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #64ffda; /* Light teal for a pop of color */
}

.benefits-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.benefit-item {
    flex: 1;
    padding: 1rem;
    background: #112240; /* Slightly lighter blue for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.benefit-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.benefit-item h3 {
    margin-top: 1rem;
    color: #64ffda; /* Light teal for consistency */
}

.benefit-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits-grid {
        flex-direction: column;
    }

    .benefit-item {
        margin-bottom: 1rem;
    }
}

.ieee-membership {
    background-color: #0a192f; /* Deep blue background */
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.ieee-membership .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ieee-membership h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ieee-membership .highlight {
    font-size: 1.2rem;
    color: #64ffda; /* Light blue for emphasis */
    margin-bottom: 2rem;
}

.ieee-membership .benefits {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.ieee-membership .benefit-item {
    flex-basis: calc(50% - 10px);
    background: #112240; /* Slightly lighter blue for contrast */
    padding: 1rem;
    border-radius: 10px;
    text-align: left;
}

.ieee-membership .join-btn {
    background-color: #007bff; /* Bright blue */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .ieee-membership .benefits {
        flex-direction: column;
    }
    .ieee-membership .benefit-item {
        flex-basis: 100%;
    }
}

.link-section {
    background-color: #0a192f;
    padding: 4rem 2rem;
    text-align: center;
}

.link-section .container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
}

.link-card {
    background-color: #112240;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-right: 10px;
    margin-left: 10px;
}

.link-card:hover {
    transform: scale(1.05);
}

.link-card img {
    width: 100px;
    height: auto;
}

.link-card h3 {
    color: #64ffda;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .link-section .container {
        flex-direction: column;
    }

    .link-card {
        margin-bottom: 20px;
    }
}

.link-section .section-title {
    color: #64ffda; /* Styling the title with the theme color */
    margin-bottom: 2rem; /* Space below the title */
    text-align: center; /* Center the title */
}

.ieee-membership {
    background-color: #0a192f;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .benefits1 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .benefit-item1 {
    display: flex;
    align-items: center;
    background-color: #112240;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .benefit-item1 img {
    width: 40%;
    height: 100%;
    object-fit: cover;
  }
  
  .benefit-content1 {
    padding: 1.5rem;
    text-align: left;
  }
  
  .benefit-item1 h3 {
    color: #64ffda;
    margin-bottom: 0.5rem;
  }
  
  .benefit-item1 p {
    color: #ccd6f6;
  }
  
  .benefit-item1:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  }
  
  /* Reverse the order for alternating layout */
  .benefit-item1.reverse {
    flex-direction: row-reverse;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .benefit-item1,
    .benefit-item1.reverse {
      flex-direction: column;
    }
  
    .benefit-item1 img {
      width: 100%;
      height: 200px;
    }
  
    .benefit-content1 {
      text-align: center;
    }
  }
  