@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem 0;
}

.container {
      padding: 10px 50px;
  }

.conference-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    margin-bottom: 4rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.conferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: start;
    /* Changed from center to start */
}


.conference-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    /* Added max-width constraint */
    display: flex;
    flex-direction: column;
}

.conference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image container */
.conference-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.conference-image img {
    width: 100%;
    /* Changed from fixed width to percentage */
    height: 155px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


@media (max-width: 1200px) {
    .conferences-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .conferences-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .conferences-grid {
        grid-template-columns: 1fr;
    }

    .conference-card {
        max-width: 100%;
        /* Allow full width on mobile */
    }
}

.conference-card:hover .conference-image img {
    transform: scale(1.05);
}

.conference-header {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 1.5rem;
    /* text-align: center; */
    /* flex: 1;
    /* Takes remaining space */
    /* display: flex;
    flex-direction: column;
    justify-content: center; */
    min-height: 122px;
    /* Decreased minimum height for header */
}

.conference-date {
    font-size: 0.75rem;
    /* Decreased font size */
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.conference-title {
    font-size: 1.4rem;
    /* Decreased font size */
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    /* Prevent text overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.conference-location {
    font-size: 0.85rem;
    /* Decreased font size */
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .conferences-grid {
        grid-template-columns: 1fr;
    }

    .conference-card {
        height: 350px;
        /* Slightly smaller on mobile */
    }

    .conference-image {
        height: 180px;
        /* Increased mobile image height */
    }

    .conference-header {
        padding: 1.2rem;
        min-height: 170px;
        /* Adjusted mobile header height */
    }
}

@media (max-width: 480px) {
    .conference-card {
        height: 320px;
    }

    .conference-image {
        height: 150px;
        /* Increased small mobile image height */
    }

    .conference-header {
        padding: 1rem;
        min-height: 170px;
        /* Adjusted small mobile header height */
    }

    .conference-title {
        font-size: 1rem;
        /* Further reduced for small screens */
    }
}

.conference-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: bold;
}

.learn-more-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}


.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Featured Conference */
.featured-conference {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 4rem;
    text-align: center;
}

.featured-conference h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-conference p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.featured-btn {
    background: white;
    color: #4ecdc4;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4ecdc4;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .conferences-grid {
        grid-template-columns: 1fr;
    }

    .conference-header {
        padding: 1.5rem;
    }

    .conference-body {
        padding: 1.5rem;
    }

    .featured-conference {
        padding: 2rem;
    }

    .featured-conference h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
}
