/* Custom Styles for IHM Alumni Website */

/* --- GENERAL THEME AND TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --ihm-primary: #f2a83f;
    /* Teal-Green */
    --ihm-secondary: #f15c4e;
    /* Orange */
    --ihm-dark: #212529;
    --ihm-light: #f8f9fa;
    --ihm-transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ihm-dark);
    background-color: #fff;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* --- BUTTONS & LINKS --- */
.btn-primary {
    --bs-btn-bg: var(--ihm-primary);
    --bs-btn-border-color: var(--ihm-primary);
    --bs-btn-hover-bg: #026f6b;
    --bs-btn-hover-border-color: #026f6b;
    --bs-btn-active-bg: #01514e;
    --bs-btn-active-border-color: #01514e;
    background-color: var(--ihm-primary) !important;
    border-color: var(--ihm-primary) !important;
    transition: var(--ihm-transition);
}

.btn-secondary {
    --bs-btn-bg: var(--ihm-secondary);
    --bs-btn-border-color: var(--ihm-secondary);
    --bs-btn-hover-bg: #e07f0f;
    --bs-btn-hover-border-color: #e07f0f;
    background-color: var(--ihm-secondary) !important;
    border-color: var(--ihm-secondary) !important;
    transition: var(--ihm-transition);
}

.view-all-btn {
    padding: 6px 12px;
    border: 1px solid #0003;
    border-radius: 5px;
    font-size: 14px;
}

.view-all-btn:hover {
    background-color: #e1edee;
    color: var(--ihm-dark);
}

a {
    color: var(--ihm-primary);
    text-decoration: none;
    transition: var(--ihm-transition);
}

a:hover {
    color: var(--ihm-secondary);
}

/* --- HEADER / NAVIGATION --- */
.navbar {
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar-transparent {
    background-color: transparent !important;
}

.navbar-scrolled {
    /* background-color: var(--ihm-light) !important; */
    /* background-color: var(--ihm-light) !important; */
    background: rgba(255, 255, 255, 0.6) !important;
    /* border-radius: 16px; */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
}

.navbar-nav .nav-link {
    color: var(--ihm-dark) !important;
    font-weight: 400;
    position: relative;
    transition: var(--ihm-transition);
}

@media (min-width: 992px) {
    .navbar-scrolled .nav-link {
        background-color: var(--ihm-light);
        padding: .4rem 1.6rem;
        border-radius: 5px;
    }

    .navbar-expand-lg .navbar-nav {
        gap: 1rem;
    }

    #events-section,
    #newsletter-section {
        scroll-padding-top: 90px;
        scroll-margin-top: 90px;
    }
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--ihm-secondary) !important;
}

/* --- HERO SECTION --- */
.hero-section {
    background: #f2a83f;
    background: linear-gradient(180deg, rgb(242, 168, 63) 0%, rgb(242 168 63) 85%, rgb(242 168 63 / 40%) 90%, rgb(242 168 63 / 15%) 95%, rgba(255, 255, 255, 0) 100%);
    /* background-image: url('https://images.unsplash.com/photo-1556125574-d7f27ec36a06?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2070'); */
    position: relative;
    height: 100vh;
    min-height: 600px;
    /* background-size: cover;
    background-position: center; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.65); */
    /* Darker overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-caption {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    /* Responsive font size */
    font-weight: 800;
    line-height: 1.1;
}

.hero-label {
    width: fit-content;
    background-color: #e4621220;
    border: 1px solid #9a650383;
    border-radius: 25px;
    padding: 1rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ihm-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: auto;
    margin-bottom: 1rem;
}

/* --- INFOGRAPHICS / COUNTERS SECTION --- */
.infographics-section {
    margin-top: -80px;
    /* Pulls section up into the hero */
    position: relative;
    z-index: 10;
}

.infographic-box {
    text-align: center;
    padding: 30px 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--ihm-transition);
    border-bottom: 4px solid var(--ihm-primary);
}

.infographic-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.infographic-box i {
    font-size: 3rem;
    color: var(--ihm-secondary);
    margin-bottom: 10px;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ihm-primary);
    line-height: 1;
}

/* --- CAROUSEL & CARD STYLES --- */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--ihm-transition);
}

.card:hover {
    /* transform: scale(1.02); */
    /* Card lift-up and subtle scale */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card:hover img {
    transform: scale(1.05);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--ihm-transition);
}

/* Owl Carousel Navigation Customization */
.owl-carousel .owl-nav button {
    background: var(--ihm-primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    opacity: 0.8;
}

.owl-carousel .owl-nav button:hover {
    opacity: 1;
    background: var(--ihm-secondary) !important;
}

/* --- EVENT & NEWSLETTER DETAILS PAGES --- */
.event-detail-banner,
.newsletter-banner {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 56px;
}

.event-info-box {
    border: 1px solid var(--ihm-primary);
    border-radius: 8px;
    padding: 25px;
    background-color: var(--ihm-light);
}

.event-info-box i {
    color: var(--ihm-secondary);
    font-size: 1.1rem;
}

/* Tabbed Events */
.nav-pills .nav-link {
    color: var(--ihm-dark);
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: var(--ihm-primary);
    color: #fff;
}

.related-article-item {
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.related-article-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.related-article-img {
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--ihm-primary);
    color: #f8f9fa;
    padding-top: 40px;
    padding-bottom: 20px;
}

.footer-link a {
    color: #ffffffe8;
}

.footer-link a:hover {
    color: var(--ihm-secondary);
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: var(--ihm-transition);
}

.social-icons a:hover {
    color: var(--ihm-secondary);
    transform: scale(1.1);
}

.acknowledgement {
    border-top: 1px solid #ffffff52;
    font-size: 0.85rem;
    color: #ffffffe8;
}

/*new styles */
.event-list-banner {
    position: relative;
    height: 40vh;
    min-height: 350px;
    background-color: #f2a83f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 56px;
}

.event-list-banner {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background-color: #f2a83f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 56px;
}

.newsletters-list-banner {
    position: relative;
    height: 45vh;
    min-height: 350px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #454545;
    text-align: center;
    padding-top: 56px;
    border-bottom: 1px solid #0004;
}

/* Header Section Styling */
.header-controls {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.search-input-group {
    max-width: 350px;
    margin-right: 20px;
}

/* Filter Pills/Buttons Styling */
.filter-buttons .btn {
    border-radius: 0;
    /* Square edges for the buttons */
    border: 1px solid #dee2e6;
    color: var(--text-color);
    background-color: #fff;
    padding: 8px 15px;
    font-weight: 500;
}

.filter-buttons .btn:hover {
    background-color: var(--light-bg);
}

.filter-buttons .btn.active {
    background-color: var(--ihm-primary);
    border-color: var(--ihm-primary);
    color: #fff;
}

/* Card Styling */
.newsletter-card {
    border: 1px solid #dee2e6;
    border-radius: 0;
    transition: box-shadow 0.3s;
    height: 100%;
    overflow: hidden;
}

.newsletter-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-image-box {
    height: 200px;
    background-color: #ccc;
    /* Placeholder background */
    position: relative;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:.3s;
}

.issue-date {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    /* Slanted left edge */
}

/* Specific Date Colors (Optional, matching the image example) */
.date-april {
    background-color: #008080;
}

/* Teal/Dark Green */
.date-march {
    background-color: #8b0000;
}

/* Dark Red/Maroon */
.date-february {
    background-color: #ffa500;
}

/* Orange */

.card-body h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-body p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    color: var(--text-color);
    padding: 4px 10px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-issue {
    color: var(--ihm-primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-top: 15px;
}

.read-issue:hover {
    text-decoration: underline;
}

/* Pagination Styling */
.pagination-container {
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.pagination .page-link {
    border: 1px solid #dee2e6;
    color: var(--text-color);
    margin: 0 2px;
    border-radius: 0 !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--ihm-primary);
    border-color: var(--ihm-primary);
    color: #fff;
}

.newsletter-card.d-none {
    display: none !important;
}