/* Card Components */
.card-custom {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--secondary-color-white);
    overflow: hidden;
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-custom .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-custom .card-body {
    padding: 25px;
}

.card-custom .card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Service Info Card */
.service-icon-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--secondary-color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.service-icon-box:hover {
    border-bottom-color: var(--secondary-color-gold);
    transform: translateY(-5px);
}

.service-icon-box .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: inline-block;
}

.service-icon-box h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-dark);
}

/* Chairman Card */
.chairman-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--secondary-color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.chairman-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color-gold));
}

.chairman-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color-grey);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.chairman-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.chairman-designation {
    color: var(--secondary-color-gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.chairman-msg-preview {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Stats Dashboard Box */
.stat-box {
    background: linear-gradient(135deg, var(--primary-color), #5e0200);
    color: var(--secondary-color-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.stat-box i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    right: 20px;
    bottom: 20px;
}

.stat-box .counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    color: var(--secondary-color-gold);
}

.stat-box .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Notice Board */
.notice-board {
    background: var(--secondary-color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    height: 100%;
}

.notice-header {
    background: var(--primary-color);
    color: var(--secondary-color-white);
    padding: 15px 20px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-header h4 {
    margin: 0;
    font-size: 1.25rem;
}

.notice-header a {
    color: var(--secondary-color-gold);
    font-size: 0.9rem;
    text-decoration: underline;
}

.notice-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.notice-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f4f4f4;
    display: flex;
    align-items: flex-start;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    background: var(--secondary-color-grey);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 65px;
    margin-right: 15px;
}

.notice-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.notice-date .month {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.notice-content {
    flex-grow: 1;
}

.notice-content a {
    color: var(--text-dark);
    font-weight: 500;
}

.notice-content a:hover {
    color: var(--primary-color);
}

.notice-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.notice-meta i {
    margin-right: 5px;
    color: var(--secondary-color-gold);
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(145, 4, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--secondary-color-white);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-icon {
    font-size: 2rem;
    color: var(--secondary-color-gold);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-icon,
.gallery-item:hover .gallery-title {
    transform: translateY(0);
}