:root {
    --ieee-blue: #00629b;
    --ieee-red: #c63527;
    --ieee-gray: #4d4d4d;
}

.hero-slider {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.slide-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 98, 155, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    width: 100%;
    padding: 2rem 0;
    margin-top: 0;
    display: flex; 
    align-items: center; 
    min-height: 100%; 
}

.slide-default {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00629b, #004d7a);
}

slide-content .container {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.slide-content .row {
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 2rem;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
}

.carousel-indicators button.active {
    background-color: white;
    border-color: white;
}

.btn-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.slide-content .btn {
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    color: #00629b;
}

.btn-light:hover {
    background: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    border-color: white;
    color: #00629b;
    transform: translateY(-2px);
}

.slide-content h2 {
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.slide-content .lead {
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }
    
    .carousel-item {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-default {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    
    .slide-content .lead {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .btn-container {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .slide-content .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }
    
    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
    
    .slide-default {
        height: 70vh;
        min-height: 400px;
    }
    
    .slide-content .container {
        min-height: 70vh;
    }
    
    .slide-content h2 {
        font-size: 1.75rem !important;
    }
    
    .slide-content .lead {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 400px) {
    .hero-slider {
        height: 65vh;
        min-height: 350px;
    }
    
    .carousel-item {
        height: 65vh;
        min-height: 350px;
    }
    
    .slide-default {
        height: 65vh;
        min-height: 350px;
    }
    
    .slide-content .container {
        min-height: 65vh;
    }
    
    .slide-content h2 {
        font-size: 1.5rem !important;
    }
    
    .slide-content .lead {
        font-size: 1rem !important;
    }
}

.navbar.sticky-top {
    z-index: 1020;
}

.hero-slider {
    z-index: 1;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item-next.carousel-item-left,
.carousel-item-prev.carousel-item-right {
    transform: translateX(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-item {
    background-color: #f8f9fa;
}

.slide-item.loaded {
    background-color: transparent;
}

/* Officers Section Styles */
.officers-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.officers-carousel {
    position: relative;
}

.officers-carousel .officer-item {
    width: 340px;             /* wider */
    height: 380px;            /* reduced height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* centers photo + text */
    padding: 1rem;
}

.officers-carousel .officer-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.officer-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.officer-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid #00629b;
    transition: all 0.3s ease;
}

.officer-item:hover .officer-photo {
    border-color: #004d7a;
    transform: scale(1.05);
}

.officer-name {
    font-size: 1.1rem;
    color: #2c3e50;
}

.officer-position {
    font-size: 0.75rem;
}

.officer-description {
    font-size: 0.8rem;
    line-height: 1.4;
}

.officer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
}

.officer-social a:hover {
    background: #00629b;
    color: white !important;
    transform: scale(1.1);
}

/* Owl Carousel Custom Styles */

.officers-carousel .owl-nav {
    position: absolute;
    top: -50px;      /* adjust as needed */
    right: 10px;
    margin: 0;
}
.officers-carousel .owl-nav button {
    width: 35px;
    height: 35px;
}

.owl-carousel .owl-stage {
    display: flex;
    padding: 20px 0;
}

.owl-carousel .owl-item {
    display: flex;
    justify-content: center;
}

.owl-carousel .owl-nav {
    margin-top: 2rem;
}

.owl-carousel .owl-nav button {
    background: #00629b !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-nav button:hover {
    background: #004d7a !important;
    transform: scale(1.1);
}

.owl-carousel .owl-dots {
    margin-top: 1rem;
}

.owl-carousel .owl-dot span {
    background: #dee2e6 !important;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active span {
    background: #00629b !important;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .officers-carousel .officer-item {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .officer-photo {
        width: 150px;
        height: 150px;
    }
    
    .officer-name {
        font-size: 1.1rem;
    }
    
    .officer-position {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .officers-carousel .officer-item {
        width: 48%;         /* use almost half screen */
        height: auto;       /* let it expand naturally */
        padding: 0.75rem;
    }

    .officer-photo {
        width: 120px;
        height: 120px;
    }

    .officer-name {
        font-size: 0.95rem;
    }

    .officer-position {
        font-size: 0.8rem;
    }

    .officer-description {
        display: none;      /* optional: hide description to save space */
    }
}

/* Chapters Logo Section Styles */
.chapters-logo-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.chapters-logo-carousel .chapter-logo-item {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    margin: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chapters-logo-carousel .chapter-logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.chapter-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.chapter-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.chapter-logo-item:hover .chapter-logo {
    transform: scale(1.1);
}

.chapter-name {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.chapter-description {
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Chapters Carousel Custom Styles */
.chapters-logo-carousel .owl-stage {
    display: flex;
    padding: 20px 0;
    align-items: stretch;
}

.chapters-logo-carousel .owl-item {
    display: flex;
    justify-content: center;
}

.chapters-logo-carousel .owl-nav {
    margin-top: 2rem;
}

.chapters-logo-carousel .owl-nav button {
    background: #00629b !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.chapters-logo-carousel .owl-nav button:hover {
    background: #004d7a !important;
    transform: scale(1.1);
}

.chapters-logo-carousel .owl-dots {
    margin-top: 1rem;
}

.chapters-logo-carousel .owl-dot span {
    background: #dee2e6 !important;
    transition: all 0.3s ease;
}

.chapters-logo-carousel .owl-dot.active span {
    background: #00629b !important;
    transform: scale(1.2);
}

/* Responsive Design for Chapters Section */
@media (max-width: 1200px) {
    .chapters-logo-carousel .chapter-logo-item {
        height: 260px;
        padding: 1.75rem 1.25rem;
    }
    
    .chapter-logo {
        max-width: 110px;
        max-height: 70px;
    }
}

@media (max-width: 992px) {
    .chapters-logo-carousel .chapter-logo-item {
        height: 240px;
        padding: 1.5rem 1rem;
    }
    
    .chapter-logo-wrapper {
        height: 90px;
        margin-bottom: 1.25rem;
    }
    
    .chapter-logo {
        max-width: 100px;
        max-height: 60px;
    }
    
    .chapter-name {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .chapters-logo-carousel .chapter-logo-item {
        height: 220px;
        padding: 1.25rem 0.75rem;
        margin: 0.5rem;
    }
    
    .chapter-logo-wrapper {
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .chapter-logo {
        max-width: 90px;
        max-height: 50px;
    }
    
    .chapter-name {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .chapter-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 576px) {
    .chapters-logo-section {
        padding: 2rem 0 !important;
    }
    
    .chapters-logo-carousel .chapter-logo-item {
        height: 200px;
        padding: 1rem 0.5rem;
    }
    
    .chapter-logo-wrapper {
        height: 70px;
        margin-bottom: 0.75rem;
    }
    
    .chapter-logo {
        max-width: 80px;
        max-height: 45px;
    }
    
    .chapter-name {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .chapter-description {
        display: none; /* Hide description on very small screens */
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.chapter-card .card-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

.group-card {
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.group-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: translateY(-8px);
}

.group-card .card-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

.event-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-image {
    height: 200px;
    object-fit: cover;
}

.event-card .card-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

.officer-carousel .carousel-item {
    padding: 20px;
}

.officer-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.officer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


.officer-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ieee-blue);
    transition: transform 0.3s ease;
}

.officer-card:hover .officer-photo {
    transform: scale(1.05);
}

.officer-bio-content .bio-text {
    line-height: 1.7;
    text-align: justify;
}

.officer-bio-content h6 {
    color: var(--ieee-blue);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.officer-card .card-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    font-size: 0.85rem;
    line-height: 1.4;
}
.officer-card .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.support-accordion .accordion-button {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 10px !important;
    margin-bottom: 10px;
    font-weight: 600;
}

.support-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--ieee-blue), #004d7a);
    color: white;
}

.support-accordion .accordion-body {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-image {
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-full-content {
    line-height: 1.7;
    text-align: justify;
}

.news-card .card-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

.card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.card .form-select:focus {
    border-color: var(--ieee-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 98, 155, 0.25);
}

@media (max-width: 768px) {
    .news-card .card-body {
        padding: 1rem;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
}

.report-year-section {
    margin-bottom: 40px;
}

.report-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.report-item {
    border-left: 4px solid var(--ieee-blue);
    padding-left: 15px;
    margin-bottom: 15px;
}
.report-item .card-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}


.btn-ieee {
    background-color: var(--ieee-blue);
    border-color: var(--ieee-blue);
    color: white;
}

.btn-ieee:hover {
    background-color: #004d7a;
    border-color: #004d7a;
    color: white;
}

.fee-badge {
    font-size: 0.9em;
    padding: 5px 10px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content {
        left: 20px;
        bottom: 50px;
    }
    
    .officer-photo {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 1200px) {
    .col-xl-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
@media (max-width: 992px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.history-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.history-image {
    transition: transform 0.3s ease;
}

.history-card:hover .history-image {
    transform: scale(1.05);
}

.history-full-content {
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
    text-justify: inter-word;
}

.modal-body {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 2px solid var(--ieee-blue);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.modal-title {
    color: var(--ieee-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    .history-card .card-body {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body .row {
        flex-direction: column;
    }

    .modal-body .col-md-6 {
        margin-bottom: 1rem;
    }
    col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .officer-photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .officer-card .card-body {
        padding: 1rem;
    }
    
    .officer-photo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        margin-bottom: 0;
    }
    
    .carousel-item {
        min-height: 70vh;
    }
    
    .slide-item {
        min-height: 100% !important;
        padding: 1rem 0;
    }
    
    .slide-default {
        min-height: 70vh !important;
        padding: 1rem 0;
    }
    
    .slide-content {
        padding: 1.5rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .fs-5 {
        font-size: 1.1rem !important;
    }

    .btn-container {
        margin: 0 auto;
        max-width: 300px;
    }
}

@media (max-width: 400px) {
    .carousel-item {
        min-height: 65vh;
    }
    
    .slide-item {
        min-height: 65vh !important;
    }
    
    .slide-default {
        min-height: 65vh !important;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
}
.officer-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
}

.officer-card .card-subtitle {
    font-size: 0.9rem;
}

.card-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

.card-title,
.card-subtitle,
.card-header,
.btn,
.badge,
.alert,
.nav-pills,
.pagination,
.text-center,
.text-end,
.text-muted small {
    text-align: inherit !important;
    text-justify: inherit !important;
}

.card .card-title,
.card .card-subtitle,
.card .card-header {
    text-align: left !important;
    text-justify: inherit !important;
}

.card .btn {
    text-align: center !important;
    text-justify: inherit !important;
}

@media (max-width: 768px) {
    .card-text {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
    }
    
    .history-card .card-text,
    .event-card .card-text,
    .news-card .card-text {
        text-align: left;
    }
}

.btn-primary {
    background: var(--ieee-blue);
    border-color: var(--ieee-blue);
}

.btn-primary:hover {
    background: #004d7a;
    border-color: #004d7a;
}
.event-details h6,
.news-content h6 {
    color: var(--ieee-blue);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.news-content .small {
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.event-details .small p,
.news-content .small {
    margin-bottom: 0.5rem;
}

.news-full-content,
.event-details .small {
    line-height: 1.6;
    text-align: justify;
}

.list-group-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-color: var(--ieee-blue);
    transform: translateY(-1px);
}

.list-group-item h6 {
    color: var(--ieee-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    .news-marquee-container {
        padding: 10px;
    }
    
    .marquee-item {
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-date, .news-title {
        font-size: 0.8rem;
    }
    
    .news-marquee {
        animation-duration: 40s;
    }
}

.event-image,
.news-card .card-img-top {
    transition: transform 0.3s ease;
}

.event-image:hover,
.news-card .card-img-top:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.news-marquee-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.news-marquee {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
    white-space: nowrap;
}

.news-marquee:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-date {
    font-weight: 600;
    color: var(--ieee-blue);
    margin-right: 8px;
    font-size: 0.9rem;
}

.news-title {
    color: #495057;
    font-size: 0.9rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.student-branch-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.student-branch-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.branch-leadership {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
}

.branch-stat {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.branch-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .branch-stat h3 {
        font-size: 2rem;
    }
    
    .student-branch-card {
        margin-bottom: 1.5rem;
    }
}

@media print {
    .btn, .navbar, .card-footer {
        display: none !important;
    }
    
    .student-branch-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Enhanced Group Overview Styles */
.group-overview-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.75rem;
    border-left: 4px solid #00629b;
    margin: 1.5rem 0;
}

.overview-content {
    line-height: 1.6;
    color: #495057;
    font-size: 0.95rem;
    min-height: auto;
    /* Ensure at least 4 lines of text are visible */
    display: -webkit-box;
    -webkit-line-clamp: unset; /* Remove line clamping */
    -webkit-box-orient: vertical;
    overflow: visible; /* Show all content */
}

.overview-full-content {
    line-height: 1.7;
    text-align: justify;
    color: #333;
    font-size: 1rem;
}

/* Ensure proper text wrapping and spacing */
.overview-content p {
    margin-bottom: 0.75rem;
}

.overview-content br {
    content: "";
    display: block;
    margin-bottom: 0.5rem;
}

/* Better button styling */
.group-overview-section .btn {
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .group-overview-section {
        padding: 1.25rem;
        margin: 1rem 0;
    }
    
    .overview-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .overview-image {
        max-height: 120px !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .group-overview-section {
        padding: 1rem;
    }
    
    .overview-content {
        font-size: 0.85rem;
    }
}
