/* Card Flip Animation Styles */
.service-card {
    perspective: 1000px;
    background: none;
    min-height: 400px;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    min-height: inherit;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.card-front {
    background-color: #d1d1d1;
    transform: rotateY(0deg);
}

.card-back {
    background-color: #002147;
    color: white;
    transform: rotateY(180deg);
}

/* Special styling for orange card */
.service-card.orange {
    min-height: 400px;
    width: 100%;
}

.service-card.orange .card-front {
    background-color: #ee232b;
    color: white;
    min-height: inherit;
    width: 100%;
}

.service-card.orange .card-back {
    background-color: #cc1e25;
    color: #002147;
    min-height: inherit;
    width: 100%;
}

.service-card.orange .card-back .detail-title,
.service-card.orange .card-back .detail-list li,
.service-card.orange .card-back .learn-more-link {
    color: #002147;
}

.service-card.orange .card-back .detail-list li:before {
    color: #002147;
}

.service-card.orange .card-back .learn-more-link:hover {
    color: #003875;
}

/* Special styling for navy card */
.service-card.navy {
    min-height: 400px;
    width: 100%;
}

.service-card.navy .card-front {
    background-color: #002147;
    color: white;
    min-height: inherit;
    width: 100%;
}

.service-card.navy .card-back {
    background-color: #001529;
    min-height: inherit;
    width: 100%;
}

/* Ensure all cards have same dimensions */
.service-card,
.service-card.orange,
.service-card.navy {
    min-height: 400px;
    width: 100%;
    flex: 1;
}

.card-front,
.card-back,
.service-card.orange .card-front,
.service-card.orange .card-back,
.service-card.navy .card-front,
.service-card.navy .card-back {
    min-height: inherit;
    width: 100%;
    height: 100%;
}

/* Content Styling */
.card-details {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back:hover .card-details {
    opacity: 1;
    transform: translateY(0);
}

.detail-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-family: font2;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.detail-list li {
    margin-bottom: 0px;
    padding-left: 20px;
    position: relative;
    font-family: font6;
    font-size: 15px;
    line-height: 1.4;
}

.detail-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ee232b;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    color: #ee232b;
    text-decoration: none;
    margin-top: 20px;
    font-family: font2;
    transition: all 0.3s ease;
}

.learn-more-link:hover {
    color: #cc1e25;
}

.learn-more-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.learn-more-link:hover i {
    transform: translateX(5px);
}

/* Front card content */
.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin: 15px 0;
    font-size: 24px;
    line-height: 1.3;
    font-family: font2;
}

.service-card p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    font-family: font6;
}

.service-link {
    margin-top: auto;
}

/* Prevent content overflow */
.service-card * {
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 1200px) {

    .service-card,
    .service-card.orange,
    .service-card.navy {
        min-height: 380px;
    }

    .card-front,
    .card-back {
        padding: 35px;
    }

    .service-card h3,
    .detail-title {
        font-size: 22px;
    }
}

@media (max-width: 992px) {

    .service-card,
    .service-card.orange,
    .service-card.navy {
        min-height: 360px;
    }

    .card-front,
    .card-back {
        padding: 30px;
    }

    .service-card h3,
    .detail-title {
        font-size: 20px;
    }

    .service-card p,
    .detail-list li {
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .service-card,
    .service-card.orange,
    .service-card.navy {
        min-height: 340px;
    }

    .card-front,
    .card-back {
        padding: 25px;
    }

    .service-card h3,
    .detail-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .service-card p,
    .detail-list li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {

    .service-card,
    .service-card.orange,
    .service-card.navy {
        min-height: 320px;
    }

    .card-front,
    .card-back {
        padding: 20px;
    }

    .service-card h3,
    .detail-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .service-card p,
    .detail-list li {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
}

/* Fix for Safari */
@supports (-webkit-touch-callout: none) {

    .card-front,
    .card-back {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Fix for Firefox */
@-moz-document url-prefix() {

    .card-front,
    .card-back {
        backface-visibility: hidden;
    }
}

/* Remove all possible shadow effects */
.service-card,
.card-inner,
.card-front,
.card-back,
.service-card:hover,
.service-card:hover .card-inner,
.service-card:hover .card-front,
.service-card:hover .card-back,
.service-card.orange,
.service-card.navy {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Override any transform that might create shadow */
.service-card:hover {
    transform: none;
}

/* Detailed Majors Section */
.detailed-majors {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.detailed-majors .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    color: #002147;
    margin-bottom: 15px;
    font-family: font2;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    font-family: font6;
}

.majors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 10px 0;
}

/* Major Card Styles */
.major-card {
    perspective: 1100px;
    height: 420px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.major-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.major-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Remove flip animation on hover for better navigation */
.major-card:hover .major-card-inner {
    transform: none;
}

.major-front,
.major-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.major-front {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.major-front img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.major-content {
    padding: 0px 5px 75px 20px;
}



.major-content h3 {
    font-size: 22px;
    color: #002147;
    margin-bottom: 0px;
    font-family: font2;
}

.major-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    font-family: font6;
}

/* Hide back side since we're not using flip anymore */
.major-back {
    display: none;
}

/* Add hover effect to show more info */
.major-card:hover .major-content {
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 1));
    color: white;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.major-card:hover .major-content h3,
.major-card:hover .major-content p {
    color: white;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .major-card {
        height: 350px;
    }

    .major-front img {
        height: 180px;
    }

    .major-content {
        padding: 15px;
    }

    .major-content h3 {
        font-size: 18px;
    }

    .major-content p {
        font-size: 13px;
    }
}

/* Active state for touch devices */
.major-card.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Accessibility */
.major-card:focus {
    outline: 3px solid #002147;
    outline-offset: 2px;
}

/* Remove any existing transform effects that might interfere with navigation */
.major-card:hover,
.major-card:active,
.major-card:focus {
    transform: translateY(-5px);
}

/* Ensure the entire card is clickable */
.major-card {
    position: relative;
}

.major-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Ensure text remains readable */
.major-content {
    position: relative;
    z-index: 2;
}

/* Add visual feedback for interaction */
.major-card:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Hover Effects */
.major-card:hover {
    z-index: 1;
}

.major-card:hover .major-back {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .majors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .majors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .major-card {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .majors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .major-card {
        height: 350px;
    }

    .major-front img {
        height: 180px;
    }

    .major-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .majors-grid {
        grid-template-columns: 1fr;
    }

    .major-card {
        height: 330px;
    }

    .major-front img {
        height: 120px;
    }

    .major-content h3 {
        font-size: 18px;
    }

    .major-details h4 {
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Touch Support */
@media (hover: none) {
    .major-card-inner {
        transform-style: preserve-3d;
    }

    .major-card.touched .major-card-inner {
        transform: rotateY(180deg);
    }
}

/* Facilities Section */
.facilities-section {
    padding: 80px 0;
    background-color: #fff;
}

.facilities-header {
    text-align: center;
    margin-bottom: 50px;
}

.facilities-title {
    font-size: 36px;
    color: #002147;
    margin-bottom: 20px;
    font-family: font2;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.facility-image {
    width: 100%;
    height: 800px;
    object-fit: cover;
    border-radius: 0px;
    transition: transform 0.3s ease;
}

.facility-image:hover {
    transform: scale(1.02);
}

/* Registration Form */
.registration-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 24px;
    color: #ee232b;
    margin-bottom: 30px;
    font-family: font2;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #002147;
    font-family: font6;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: font6;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #002147;
    outline: none;
}

.form-check {
    margin-top: 20px;
}

.form-check-label {
    font-size: 12px;
    color: #666;
    font-family: font6;
}

.submit-btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background-color: #ee232b;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: font2;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #cc1e25;
}

/* Responsive Design */
@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .facility-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .facilities-title {
        font-size: 28px;
    }

    .registration-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .facilities-title {
        font-size: 24px;
    }

    .facility-image {
        height: 250px;
    }

    .registration-form {
        padding: 20px;
    }
}

/* Enhanced Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* General Layout */
    .container {
        padding: 0 ;
       
        max-width: 100%;
    }

    /* Banner Section */
    .banner-slider {
        height: 250px;
    }

    .slide img {
        height: 250px;
    }

    .banner-content {
        padding: 0 15px;
    }

    .banner-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    /* Majors Section */
    .detailed-majors {
        padding: 40px 0;
    }

    .detailed-majors .container {
        padding: 0 15px;
    }

    .majors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 0;
    }

    .major-card {
        height: auto;
        min-height: 300px;
    }

    .major-front img {
        height: 160px;
    }

    .major-content {
        padding: 15px;
    }

    .major-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .major-content p {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Stats Section */
    .stats-container {
        padding: 30px 15px;
    }

    .stats-content {
        flex-direction: column;
        gap: 20px;
    }

    .stats-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .stats-numbers {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 15px 10px;
    }

    .counter {
        font-size: 24px;
    }

    .stat-label {
        font-size: 14px;
    }

    /* Form Elements */
    .registration-form {
        padding: 20px 15px;
        margin: 15px;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 12px;
        font-size: 16px !important;
        border-radius: 6px;
        -webkit-appearance: none;
    }

    .submit-btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 6px;
        margin-top: 20px;
    }

    /* Touch Interactions */
    .major-card:hover {
        transform: none;
    }

    .major-card:active {
        transform: scale(0.98);
    }

    .major-card::after {
        display: none;
    }

    /* Navigation */
    .nav-menu {
        padding: 10px 0;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 16px;
    }

    /* Improved Touch Targets */
    .major-link,
    .nav-link,
    .form-control,
    .submit-btn {
        /* min-height: 44px; */
        width: 90%;
    }

    

    /* Fix for iOS form zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .stats-numbers {
        grid-template-columns: 1fr;
    }

    .major-front img {
        height: 140px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .registration-form {
        padding: 15px;
    }

    .form-title {
        font-size: 20px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .banner-slider,
    .slide img {
        height: calc(100vh - 60px);
        min-height: 250px;
    }
}

/* Improve touch feedback */
@media (hover: none) {
    .major-card,
    .nav-link,
    .submit-btn {
        -webkit-tap-highlight-color: transparent;
    }

    .major-card:active,
    .nav-link:active,
    .submit-btn:active {
        background-color: rgba(0, 0, 0, 0.1);
    }
}

/* Fix for sticky hover states on mobile */
@media (hover: hover) {
    .major-card:hover,
    .nav-link:hover,
    .submit-btn:hover {
        opacity: 0.9;
    }

   
}
text.text-do:hover {
    color: #ee232b;
}