/*--------------------------------------------------------------
# General Items
--------------------------------------------------------------*/

@font-face {
  font-family: 'icomoon';
  src: url("../fonts/icomoon/icomoon.eot?srf3rx");
  src: url("../fonts/icomoon/icomoon.eot?srf3rx#iefix") format("embedded-opentype"), url("../assets/fonts/icomoon/icomoon.ttf?srf3rx") format("truetype"), url("../assets/fonts/icomoon/icomoon.woff?srf3rx") format("woff"), url("../assets/fonts/icomoon/icomoon.svg?srf3rx#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'rahenlipi';
  src: url("../fonts/icomoon/banregular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Quicksand", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.7);
}

/*
Theme Name: RUMSC Custom Portal
Description: Separated Public and Admin App UI
*/

/* Lock the entire screen */
html, body { height: 100%; margin: 0; overflow: hidden; font-family: 'Quicksand', sans-serif; }

/* The Flexbox App Container */
.app-wrapper { display: flex; height: 100vh; width: 100vw; }

/* LEFT PANEL - Strictly locked to 300px */
.left-panel {
    flex: 0 0 300px;
    max-width: 300px;
    height: 100vh;
    background-color: #000;
    overflow-y: auto;
    border-right: 1px solid #333;
    z-index: 10;
}

/* RIGHT PANEL - Takes all remaining space and scrolls */
.right-panel {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    background-color: #f8f9fa;
}

/* Active Admin Menu Link */
.active-admin-link a { color: #ffc107 !important; font-weight: bold; }

/* Mobile View (Stacks panels) */
@media (max-width: 768px) {
    .app-wrapper { display: block; overflow-y: auto; }
    .left-panel { max-width: 100%; height: auto; display: none; }
    .right-panel { height: auto; }
}


/* =========================================
   PUBLIC LEFT PANEL STYLING
========================================= */

/* Social Icons Styling */
.social-icons a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin: 0 12px;
    transition: 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/*--------------------------------------------------------------
# Header Logo & Main Menu (Custom RUMSC Style)
--------------------------------------------------------------*/

#uapaaa-main-menu ul {
  text-align: center;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  #uapaaa-main-menu ul {
    margin: 0 0 2em 0;
    text-decoration: none;
  }
}

#uapaaa-main-menu ul li {
  margin: 0 0 3px 0; 
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

#uapaaa-main-menu ul li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  position: relative;
  padding: 4px 0; 
  font-family: "Quicksand", Arial, sans-serif;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  display: inline-block; 
}

#uapaaa-main-menu ul li a:after {
  content: "";
  position: absolute;
  height: 1px;
  bottom: 1px; 
  left: 0;
  right: 0;
  background-color: #FFC300;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -moz-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

#uapaaa-main-menu ul li a:hover {
  text-decoration: none;
  color: white;
}

#uapaaa-main-menu ul li a:hover:after {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
  text-decoration: none;
}

/* Active State */
#uapaaa-main-menu ul li.current-menu-item a,
#uapaaa-main-menu ul li.uapaaa-active a {
  color: #FFC300;
  text-decoration: none;
  font-weight: 600;
}

#uapaaa-main-menu ul li.current-menu-item a:after,
#uapaaa-main-menu ul li.uapaaa-active a:after {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
}

/*--------------------------------------------------------------
# Sign in form
--------------------------------------------------------------*/

.signin-form {
  max-width: 400px;
  margin: auto;
  padding-bottom: 50px;
}

.form-group {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-form .form-group input {
  width: 120px;
  height: 30px;
  padding: 5px;
  font-weight: 500;
  font-size: 12px;
  font-family: "Quicksand", Arial, sans-serif;
  text-align: center;
  border: 2px solid grey;
  border-radius: 15px;
  letter-spacing: 1px;
  background-color: #e0e0e0;
  transition: background-color 0.3s ease;
  outline: none;
}

.signin-form .form-group input:focus {
  background-color: #fff;
}

.signin-form .form-group button {
  width: 80px;
  height: 30px;
  padding: 5px;
  font-family: "Quicksand", Arial, sans-serif;
  text-align: center;
  border: 2px solid grey;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
}

.signin-form .form-group button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.signin-form .form-group .logout-btn {
  width: 100px;
  height: 30px;
  padding: 5px;
  font-family: "Quicksand", Arial, sans-serif;
  text-align: center;
  border: 2px solid grey;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  background-color: #FFC300;
  color: #fff;
  cursor: pointer;
}

.signin-form .form-group .logout-btn:hover {
  background-color: darkorange;
  border-color: darkorange;
}

/* Custom modifier for Register button */
.signin-form .form-group .register-btn {
  background-color: #28a745; 
  border-color: #28a745;
  width: 80px;
}
.signin-form .form-group .register-btn:hover {
  background-color: #218838;
  border-color: #218838;
}

/* =========================================
   ADMIN PANEL TYPOGRAPHY & FORMS
========================================= */

.tophead {
  margin-bottom: 10px;
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #999999;
  font-weight: 500;
  letter-spacing: 5px;
  font-family: "Quicksand", Arial, sans-serif;
}

.mainhead {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.8;
  position: relative;
  margin-bottom: 30px;
  font-family: "Quicksand", Arial, sans-serif;
}

.mainhead:after {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  content: '';
  background: #FFC300;
  font-family: "Quicksand", Arial, sans-serif;
}

.admin_ec_heading {
  font-size: 14px;
  margin-bottom: 2em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.5;
  position: relative;
  font-family: "Quicksand", Arial, sans-serif;
}

.admin_ec_heading:after {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 2px;
  content: '';
  background: #FFC300;
  font-family: "Quicksand", Arial, sans-serif;
}

.directorytext {
  display: block;
  font-size: 12px;
  font-family: "Quicksand", Arial, sans-serif;
  color: #999999;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Custom Input Field Formatting */
.regiform {
  flex: 0;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 35px;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  transition: 0.3s;
  border-radius: 0;
  margin: 0;
  padding-left: 10px;
}

.regiform:active,
.regiform:focus {
  outline: none;
  box-shadow: none;
  border-color: grey;
  background: #f0f0f0;
}

/* Custom Submit Button */
.submit_button {
  height: 35px;
  border-radius: 15px;
  color: white;
  background-color: #FFC300;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  padding-left: 20px;
  padding-right: 20px;
  transition: 0.3s;
}

.submit_button:hover {
  background-color: #FFA500;
  color: white;
}

/* =========================================
   Mobile Sidebar Toggle Styles
   ========================================= */

/* Hide the toggle button on Desktop */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 9999;
    background: #FFC300;
    border: none;
    color: #333;
    font-size: 24px;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Tablet & Mobile Breakpoint */
@media (max-width: 991px) {
    /* Show the hamburger button */
    .mobile-nav-toggle {
        display: block;
    }
    
    /* Hide the left panel off-screen by default */
    .left-panel {
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        width: 280px;
        z-index: 9998;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
    }
    
    /* Slide in the panel when the .sidebar-active class is added via JS */
    .left-panel.sidebar-active {
        left: 0;
    }
    
    /* Ensure the right panel takes full width */
    .right-panel {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* --- COPY THIS TO YOUR NEW STYLE.CSS --- */
.smallimage {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  width: 100px;
  height: 100px;
  border: 2px solid #FFC300;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
}
.directorytextbig {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Quicksand", Arial, sans-serif;
  letter-spacing: 1px;
}
.directorytextbig a { color: #000; text-decoration: none; }
.directorytextbig a:hover { color: #FFC300; }

.uapaaa-heading2bangla {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 500;
  text-transform: uppercase;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Status Badges */
.regular_class { display: inline-block; font-size: 12px; color: white; font-weight: 600; background-color: green; border-radius: 1em; padding: 0.2em 1em; margin-top: 5px; }
.irregular_class { display: inline-block; font-size: 12px; color: white; font-weight: 600; background-color: orange; border-radius: 1em; padding: 0.2em 1em; margin-top: 5px; }
.deceased_class { display: inline-block; font-size: 12px; color: white; font-weight: 600; background-color: black; border-radius: 1em; padding: 0.2em 1em; margin-top: 5px; }

/* Filter Form */
.filter_form1 { background: #fafafa; padding: 15px; border-radius: 10px; }
.filter_span { font-size: 12px; color: #484848; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; margin: 5px; display: block; }
.input_area { font-size: 12px; min-height: 28px; height: auto; padding: 5px; border-radius: 14px; width: 100%; border: 1px solid rgba(0, 0, 0, 0.1); background: white; text-transform: uppercase; }
.filter_button { min-height: 28px; color: #fff; background-color: #FFC300; padding: 5px 15px; border-radius: 14px; font-size: 12px; text-transform: uppercase; border: none; width: 100%; cursor: pointer; transition: 0.3s; }
.filter_button:hover { background-color: #FFA500; }

/* Events */

.event-card {
        background: #fff;
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid #eaeaea;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    }
    .event-image-wrapper {
        position: relative;
        width: 100%;
        padding-top: 66%; /* 3:2 Aspect Ratio */
        overflow: hidden;
        background: linear-gradient(135deg, #FFC300 0%, #ffaa00 100%);
    }
    .event-image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    .event-card:hover .event-image-wrapper img {
        transform: scale(1.08);
    }
    .event-date-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.95);
        padding: 8px 12px;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 2;
    }
    .event-date-badge .day {
        display: block;
        font-size: 20px;
        font-weight: 800;
        color: #333;
        line-height: 1;
        font-family: "Quicksand", sans-serif;
    }
    .event-date-badge .month {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 700;
        color: #FFC300;
        letter-spacing: 1px;
        margin-top: 3px;
    }
    .event-content {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .event-title {
        font-family: "Quicksand", sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #333;
        margin-bottom: 15px;
        line-height: 1.4;
        transition: color 0.3s ease;
    }
    .event-card:hover .event-title {
        color: #FFC300;
    }

   /* Activity */


    .activity-card {
        background: #fff;
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid #eaeaea;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .activity-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    }
    .activity-image-wrapper {
        position: relative;
        width: 100%;
        padding-top: 66%; /* 3:2 Aspect Ratio */
        overflow: hidden;
        background: linear-gradient(135deg, #FFC300 0%, #ffaa00 100%);
    }
    .activity-image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    .activity-card:hover .activity-image-wrapper img {
        transform: scale(1.08);
    }
    .activity-date-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.95);
        padding: 8px 12px;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 2;
    }
    .activity-date-badge .day {
        display: block;
        font-size: 20px;
        font-weight: 800;
        color: #333;
        line-height: 1;
        font-family: "Quicksand", sans-serif;
    }
    .activity-date-badge .month {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 700;
        color: #FFC300;
        letter-spacing: 1px;
        margin-top: 3px;
    }
    .activity-content {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .activity-title {
        font-family: "Quicksand", sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #333;
        margin-bottom: 15px;
        line-height: 1.4;
        transition: color 0.3s ease;
    }
    .activity-card:hover .activity-title {
        color: #FFC300;
    }

   /* News */
    .news-feed {
        position: relative;
        padding-left: 20px;
        margin-top: 20px;
    }
    /* The vertical line */
    .news-feed::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 2px;
        background: #f0f0f0;
    }
    .news-item {
        position: relative;
        margin-bottom: 20px;
        padding-left: 20px;
    }
    /* The dot on the timeline */
    .news-item::before {
        content: '';
        position: absolute;
        top: 5px;
        left: -6px;
        height: 14px;
        width: 14px;
        border-radius: 50%;
        background: #FFC300;
        border: 3px solid #fff;
        box-shadow: 0 0 0 2px #FFC300;
        z-index: 2;
    }
    .news-card {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        border: 1px solid #eaeaea;
        transition: all 0.3s ease;
    }
    .news-card:hover {
        transform: translateX(10px);
        border-color: #FFC300;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    }
    .news-date {
        font-family: 'Quicksand', sans-serif;
        font-size: 12px;
        font-weight: 600;
        color: #FFC300;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        display: block;
        margin-bottom: 10px;
    }
    .news-headline {
        font-family: 'Quicksand', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
        line-height: 1.5;
    }
    .news-icon {
        font-size: 20px;
        color: #ddd;
        margin-right: 15px;
    }
    /* Highlight for the very latest news */
    .news-item:first-child .news-card {
        border-left: 5px solid #FFC300;
        background: #fffdf5;
    }

/* Contact */
    .contact-info-box {
        background: #fcfcfc;
        border-radius: 15px;
        padding: 40px;
        height: 100%;
        border: 1px solid #eee;
    }
    .info-item {
        display: flex;
        align-items: center;
        margin-bottom: 30px;
    }
    .info-icon {
        width: 50px;
        height: 50px;
        background: #fff;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFC300;
        font-size: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        margin-right: 20px;
    }
    .info-text h5 {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #999;
        margin-bottom: 5px;
        font-weight: 700;
    }
    .info-text p, .info-text a {
        font-size: 16px;
        color: #333;
        font-weight: 600;
        text-decoration: none;
        margin: 0;
    }
    .contact-input {
        width: 100%;
        border: none;
        border-bottom: 2px solid #eee;
        padding: 15px 0;
        margin-bottom: 25px;
        font-family: 'Quicksand', sans-serif;
        font-weight: 500;
        transition: border-color 0.3s;
        background: transparent;
    }
    .contact-input:focus {
        outline: none;
        border-color: #FFC300;
    }
    #map {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        filter: grayscale(0.2); /* Gives it an architectural, sleek look */
    }

    /* Admin Contact */

    .admin-card {
        background: #fff;
        border-radius: 12px;
        border: 1px solid #eee;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    }
    .table thead th {
        border-top: none;
        font-family: 'Quicksand', sans-serif;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #999;
        font-weight: 700;
        padding-bottom: 20px;
    }
    .table tbody td {
        padding: 20px 10px;
        vertical-align: middle;
        font-size: 14px;
        color: #444;
        border-bottom: 1px solid #f9f9f9;
    }
    .msg-preview {
        max-width: 300px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-style: italic;
        color: #777;
    }
    .btn-delete {
        background: #fff1f1;
        color: #d9534f;
        border: 1px solid #ffdede;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        transition: 0.3s;
    }
    .btn-delete:hover {
        background: #d9534f;
        color: #fff;
    }
    .date-text {
        font-size: 11px;
        color: #bbb;
        display: block;
    }

    /* Home */

    /* Hero Section Animation */
    .hero-section {
        position: relative;
        min-height: 70vh;
        background-color: #222;
        background-size: cover;
        background-position: center;
        background-attachment: fixed; /* Creates a cool parallax effect */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    }
    .animated-slogan {
        position: relative;
        z-index: 2;
        color: #fff;
        font-size: 4.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1.5s ease forwards;
        text-shadow: 2px 4px 15px rgba(0,0,0,0.8);
    }

    /* Keyframes for Slogan */
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Modern Card Hover Effects */
    .content-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: none;
        border-radius: 10px;
        overflow: hidden;
    }
    .content-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    /* Festive Birthday Section */
    .birthday-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 15px;
        position: relative;
        overflow: hidden;
    }
    .birthday-avatar {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #FFD700; /* Gold border */
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        margin-bottom: 15px;
    }
    .confetti-icon {
        font-size: 3rem;
        margin-bottom: 10px;
        animation: bounce 2s infinite;
    }
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
        40% {transform: translateY(-20px);}
        60% {transform: translateY(-10px);}
    }

    /* Hero Text Animation */
.hero-animated-text {
    opacity: 0;
    transform: translateY(30px);
    animation: cinematicFade 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

@keyframes cinematicFade {
    0% { opacity: 0; transform: translateY(30px); letter-spacing: 0px; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 2px; }
}

/* Clickable Card Hover Effect */
.clickable-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}