/* Performance-optimized General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize animations for better performance */
*, *::before, *::after {
    will-change: auto;
}

/* Critical styles for above-the-fold content */
.top-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    transform: translateZ(0);
}

.top-bar .social-links a {
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    font-size: 16px;
    display: inline-block;
}

.top-bar .social-links a:hover {
    color: #ffd700;
    transform: translateY(-2px) translateZ(0);
}

.top-bar .contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.top-bar .contact-info a:hover {
    color: #ffd700;
}

/* Optimized Navigation - Fixed Layout */
.main-navbar {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 12px 0;
    transition: padding 0.2s ease, box-shadow 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transform: translateZ(0);
    min-height: 70px;
}

.main-navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.navbar-brand {
    padding: 0 !important;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    max-height: 50px;
    width: auto;
    transition: max-height 0.2s ease;
    transform: translateZ(0);
    display: block;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 12px;
    padding: 15px 11px !important;
    margin: 0 2px;
    position: relative;
    transition: color 0.2s 
ease;
    will-change: transform;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1e3c72 !important;
}

/* Optimized underline effect */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    transition: width 0.2s ease;
    transform: translateX(-50%) translateZ(0);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 15px 0;
    margin-top: 10px;
    min-width: 220px;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.btn-entry-tests {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-entry-tests:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

/* Mobile Menu Toggle - Fixed */
.navbar-toggler {
    border: 2px solid #1e3c72 !important;
    border-radius: 8px;
    padding: 8px 12px !important;
    transition: all 0.2s ease;
    background: transparent !important;
    width: auto;
    height: auto;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25) !important;
    border-color: #1e3c72 !important;
}

.navbar-toggler:hover {
    background: #1e3c72 !important;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 60, 114, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px !important;
    height: 20px !important;
}

/* Mobile Contact */
.mobile-contact {
    margin-left: 15px;
}

.mobile-contact .btn {
    border-radius: 20px;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid #1e3c72;
    color: #1e3c72;
    background: transparent;
    transition: all 0.3s ease;
}

.mobile-contact .btn:hover {
    background: #1e3c72;
    color: white;
}

/* Mobile Responsive - Progressive Font Scaling */
@media (max-width: 991.98px) {
    .main-navbar {
        padding: 8px 0;
        min-height: 60px; /* Reduce height on tablet */
    }
    
    .navbar-logo {
        max-height: 40px; /* Smaller logo on tablet */
    }
    
    .navbar-nav .nav-link {
        font-size: 14px !important; /* Reduce font size on tablet */
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin-bottom: 5px;
        margin: 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .btn-entry-tests {
        width: 100%;
        text-align: center;
        margin-top: 15px !important;
        padding: 10px 20px !important;
        font-size: 14px !important; /* Smaller button text */
    }
    
    .navbar-collapse {
        margin-top: 15px;
        padding: 20px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .dropdown-menu {
        background: #f8f9fa;
        border: none;
        box-shadow: none;
        margin: 10px 0;
        padding: 10px 0;
        border-radius: 0;
    }
    
    .dropdown-item {
        padding: 6px 0;
        color: #666;
        background: transparent;
        font-size: 13px; /* Smaller dropdown text */
    }
    
    .dropdown-item:hover {
        background: transparent;
        color: #1e3c72;
        transform: none;
        padding-left: 10px;
    }
    
    /* Top bar adjustments for tablet */
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .top-bar .social-links a {
        font-size: 14px;
        margin-right: 10px;
    }
}

/* Small Tablet - Further size reduction */
@media (max-width: 768px) {
    .main-navbar {
        padding: 6px 0;
        min-height: 55px;
    }
    
    .navbar-logo {
        max-height: 35px;
    }
    
    .navbar-nav .nav-link {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }
    
    .btn-entry-tests {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
    
    .dropdown-item {
        font-size: 12px;
    }
}

/* Extra Small Devices - Mobile phones */
@media (max-width: 575.98px) {
    .main-navbar .container {
        padding: 0 15px;
    }
    
    .main-navbar {
        min-height: 50px;
        padding: 5px 0;
    }
    
    .navbar-logo {
        max-height: 30px; /* Very small logo on mobile */
    }
    
    .navbar-nav .nav-link {
        font-size: 12px !important; /* Smallest font on mobile */
        padding: 6px 0 !important;
    }
    
    .btn-entry-tests {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .navbar-toggler {
        padding: 6px 8px !important;
        font-size: 12px;
    }
    
    .navbar-toggler-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .navbar-collapse {
        margin: 10px -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 15px;
    }
    
    .dropdown-item {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .top-bar {
        font-size: 10px;
        padding: 4px 0;
    }
    
    .top-bar .social-links a {
        font-size: 12px;
        margin-right: 8px;
    }
    
    .top-bar .contact-info {
        font-size: 10px;
    }
}

/* Very Small Devices - 320px and below */
@media (max-width: 359.98px) {
    .navbar-logo {
        max-height: 25px;
    }
    
    .navbar-nav .nav-link {
        font-size: 11px !important;
    }
    
    .btn-entry-tests {
        font-size: 11px !important;
    }
    
    .main-navbar {
        min-height: 45px;
    }
    
    .navbar-toggler {
        padding: 4px 6px !important;
    }
    
    .navbar-toggler-icon {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Optimized Hero Section */
.hero-section {
    background: #000;
    background-image: url('../images/home/Success-Banner.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    transform: translateZ(0); /* GPU acceleration */
    backface-visibility: hidden; /* Reduce repaints */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none; /* Prevent blocking clicks */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Floating Contact Buttons */
.floating-contact-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 350px;
}

.btn-floating {
    display: block;
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-evening {
    background: #f59e0b;
    color: #000;
    border: none;
}

.btn-evening:hover {
    background: #d97706;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-entry {
    background: #10b981;
    color: #fff;
    border: none;
}

.btn-entry:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Hide floating buttons on desktop */
@media (min-width: 768px) {
    .floating-contact-buttons {
        display: none;
    }
}

.hero-content h1 {
    margin: -17px; 
    padding: 23px;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 30px;
}

.hero-content h1 .text-primary {
    color: #ffc107 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    margin: 10px 10px 10px 0;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: #1e3a8a;
    border: none;
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.hero-buttons .btn-outline-light {
    background: #f59e0b;
    border: 2px solid #f59e0b;
    color: #000;
    font-weight: 700;
}

.hero-buttons .btn-outline-light:hover {
    background: #d97706;
    border-color: #d97706;
    color: #000;
    transform: translateY(-2px);
}

.hero-person-container {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-person-img {
    height: 100%;
    max-height: 500px;
    width: auto;
    object-fit: contain;
    margin: -92px;
    height: 503px;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.section-title .text-primary {
    color: #007bff !important;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.course-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-card p {
    color: #666;
    font-size: 14px;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-card a {
    color: #124072;
    font-weight: 500;
    text-decoration: none;
}

/* Key Features Section - STEP Official Style */
.key-features-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.key-feature-item {
    border-radius: 6px !important;
    max-width: 328px;
    /* box-shadow: -7px 20px 20px 3px rgb(85 78 178 / .1); */

box-shadow: 10px 15px 30px rgb(61 66 168 / .1);
    padding: 30px 15px;
    transition: all 0.3s ease;
}

.key-feature-item:hover {
    transform: translateY(-5px);
}

.key-feature-icon {
    width: 80px;
    height: 80px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.key-feature-icon img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
}

.key-feature-item:hover .key-feature-icon {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.key-feature-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-feature-item:hover .key-feature-title {
    color: #12145C !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .key-features-section {
        padding: 60px 0;
    }
    
    .key-feature-item {
        padding: 20px 10px;
    }
    
    .key-feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .key-feature-icon img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .key-feature-title {
        font-size: 14px !important;
    }
}

/* Position Holders' Testimonials - STEP Official Style (Attachment Match) */
.position-holders-section {
    background-image: url('https://step.pgc.edu/wp-content/uploads/2024/11/testimonial-background_02-1.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    position: relative !important;
    min-height: 600px !important;
    padding: 0 !important;
}

.position-holders-overlay {
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.8), rgba(143, 148, 251, 0.8)) !important;
    padding: 80px 0 !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
}

.position-holders-title {
    color: white !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    text-align: center;
    margin-bottom: 50px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-text {
    color: #ffd700 !important;
}

.testimonials-container {
    margin-bottom: 40px;
}

.testimonial-card-new {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.student-avatar {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.student-avatar img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #e9ecef;
}

.student-info {
    flex-grow: 1;
}

.student-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 8px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mdcat-badge {
    background: #4e54c8;
    color: white;
}

.ecat-badge {
    background: #2196F3;
    color: white;
}

.testimonial-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 !important;
    text-align: justify;
}

.testimonials-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ffd700;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .position-holders-section {
        padding: 60px 0;
    }
    
    .position-holders-overlay {
        padding: 60px 0;
    }
    
    .position-holders-title {
        font-size: 32px !important;
        margin-bottom: 40px !important;
    }
    
    .testimonial-card-new {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .student-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .testimonial-content p {
        font-size: 13px !important;
    }
}

/* STEP Blog Section - Official Website Match */
.step-blog-section {
    background: #f8f9fa !important;
    padding: 80px 0 !important;
}

.step-blog-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.blog-highlight {
    color: #333 !important;
    position: relative;
}

.blog-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd700 !important;
}

.step-blog-card {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    border: none !important;
}

.step-blog-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.blog-image-container {
    position: relative !important;
    height: 250px !important;
    overflow: hidden !important;
}

.blog-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.step-blog-card:hover .blog-image-container img {
    transform: scale(1.05) !important;
}

.blog-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(78, 84, 200, 0.8), rgba(143, 148, 251, 0.8)) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    padding: 20px !important;
}

.step-blog-card:hover .blog-overlay {
    opacity: 1 !important;
}

.blog-date {
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.blog-date i {
    color: #4e54c8 !important;
}

.blog-content {
    padding: 25px !important;
}

.blog-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
    min-height: 50px !important;
}

.blog-excerpt {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.blog-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
}

.blog-cta {
    color: #4e54c8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.3s ease !important;
}

.blog-cta:hover {
    color: #333 !important;
    transform: translateX(3px) !important;
}

.blog-cta i {
    font-size: 11px !important;
    transition: transform 0.3s ease !important;
}

.blog-cta:hover i {
    transform: translateX(3px) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-blog-section {
        padding: 60px 0 !important;
    }
    
    .step-blog-title {
        font-size: 32px !important;
        margin-bottom: 40px !important;
    }
    
    .blog-image-container {
        height: 200px !important;
    }
    
    .blog-content {
        padding: 20px !important;
    }
    
    .blog-title {
        font-size: 16px !important;
        min-height: auto !important;
    }
    
    .blog-footer {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }
}

/* Footer */
footer {
    background: #333;
    color: white;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

footer p, footer a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

footer a:hover {
    color: #007bff;
}

footer .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-person-container {
        display: block;
        position: relative;
        text-align: center;
        margin-top: 30px;
    }
    
    @media (max-width: 768px) {
    .hero-person-img {
      
        position: absolute;
        max-height: 312px;
        width: auto;
        object-fit: contain;
        left: 33px;
        bottom: -35px;
    }
}
    
    .hero-buttons {
        text-align: center;
        margin-top: 30px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 250px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 80px 0 120px;
    }
    
    /* Mobile Navigation */
    .navbar-collapse {
        background: white;
        border-top: 1px solid #dee2e6;
        margin-top: 10px;
        padding-top: 15px;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        margin: 5px 0;
    }
    
    .btn-entry-tests {
        display: block;
        text-align: center;
        margin: 6px auto;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
       
        text-shadow: 0px 0px 14px BLACK;
        font-size: 1.5rem;
    }
    
    .hero-content {
        height: 50vh;
       
    }
    .floating-contact-buttons {
        width: 95%;
        bottom: 15px;
    }
    
    .btn-floating {
        font-size: 12px;
        padding: 12px 15px;
    }
}

/* Evening Coaching Modal */
.evening-coaching-modal {
    background: #333 !important;
    color: white;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.evening-coaching-modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    opacity: 1;
}

.evening-coaching-content {
    padding: 30px 20px 20px;
    text-align: left;
}

.introducing-text {
    margin-bottom: 15px;
}

.introducing-label {
    background: white;
    color: #333;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    display: inline-block;
}

.evening-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffc107;
    line-height: 1.1;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evening-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 25px;
    line-height: 1.3;
}

.btn-apply {
    background: white;
    color: #333;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background: #f8f9fa;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.student-image {
    text-align: center;
    margin-top: 20px;
}

.student-image img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

/* Show modal only on mobile */
@media (min-width: 769px) {
    .evening-coaching-modal {
        display: none !important;
    }
}

/* Mobile specific styles for modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .evening-title {
        font-size: 2rem;
    }
    
    .evening-subtitle {
        font-size: 1.1rem;
    }
}

/* Responsive Header Font Sizes */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 14px !important;
    }
    
    .navbar-logo {
        max-height: 40px !important;
    }
    
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar .social-links a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    
    .navbar-logo {
        max-height: 35px !important;
    }
    
    .top-bar {
        font-size: 11px;
    }
    
    .top-bar .social-links a {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .navbar-nav .nav-link {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    .navbar-logo {
        max-height: 30px !important;
    }
    
    .top-bar {
        font-size: 10px;
    }
    
    .top-bar .social-links a {
        font-size: 12px;
    }
}

/* Popular Courses Section - List Style */
.courses-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #666;
    line-height: 1.2;
}

.view-all-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.view-all-link:hover {
    color: #0056b3;
}

/* Course Item Link Styling */
.course-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.course-item-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Course Item - List Style Layout */
.course-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-item-link:hover .course-item {
    transform: translateX(5px);
}

.course-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: #4c6ef5;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.course-item-link:hover .course-icon-wrapper {
    background: #4c6ef5;
    color: white;
    transform: scale(1.1);
}

.course-content {
    flex-grow: 1;
}

.course-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.course-item-link:hover .course-name {
    color: #4c6ef5;
}

.course-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.course-item-link:hover .course-description {
    color: #555;
}

/* Tablet Responsive Design */
@media (max-width: 991px) and (min-width: 768px) {
    .courses-title {
        font-size: 2rem;
    }
    
    .course-item {
        padding: 1.2rem 0;
    }
    
    .course-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-right: 1rem;
    }
    
    .course-name {
        font-size: 1.1rem;
    }
    
    .course-description {
        font-size: 0.9rem;
    }
}

/* Mobile Responsive Design */
@media (max-width: 767px) {
    .courses-title {
        font-size: 1.8rem;
    }
    
    .course-item {
        padding: 1rem 0;
    }
    
    .course-icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-right: 0.8rem;
    }
    
    .course-name {
        font-size: 1rem;
    }
    
    .course-description {
        font-size: 0.85rem;
    }
}

/* Utility Classes */
.bg-light {
    background-color: #f8f9fa !important;
}

.text-center {
    text-align: center !important;
}

/* Evening Coaching Page Specific Styles */

/* Hero Section */
.evening-hero-section {
    background: #f8f9fa url('https://step.pgc.edu/wp-content/themes/step/assets/images/img-visual.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow: hidden;
}

.evening-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://step.pgc.edu/wp-content/themes/step/assets/images/bg-person.png') no-repeat right center;
    background-size: contain;
    z-index: 1;
}

.evening-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.evening-hero-content {
    padding: 2rem 0;
    position: relative;
    z-index: 3;
}

.evening-hero-image {
    text-align: center;
    position: relative;
    z-index: 4;
}

.introducing-badge {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
    display: block;
    margin-bottom: 1rem;
    text-transform: none;
}

.evening-main-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #333;
    line-height: 0.9;
    letter-spacing: -2px;
}

.evening-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: #666;
}

.evening-apply-btn {
    background: #007bff;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: none;
}

.evening-apply-btn:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.evening-hero-image {
    text-align: center;
    position: relative;
    z-index: 2;
}

.evening-person-img {
    max-height: 600px;
    width: auto;
    object-fit: contain;
}



/* Courses Offered Section */
.courses-offered-section {
    background: #f8f9fa;
}

.course-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-link:hover {
    text-decoration: none;
    color: inherit;
}

.course-offered-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
}

.course-link:hover .course-offered-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #1e3c72;
}

.course-offered-card h5 {
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.course-link:hover .course-offered-card h5 {
    color: #1e3c72;
}

/* Campus List Section */
.campus-list-section {
    background: white;
}

.campus-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.campus-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.campus-table thead th {
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.campus-table tbody tr {
    transition: all 0.3s ease;
}

.campus-table tbody tr:hover {
    background: rgba(30, 60, 114, 0.05);
}

.campus-table tbody td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.campus-table tbody td small {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Form Section */
.contact-form-section {
    background: #f8f9fa;
}

.contact-form-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-card h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 2rem;
}

.evening-contact-form .form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.evening-contact-form .form-control:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
    background: white;
}

.evening-submit-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evening-submit-btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

/* Contact Us Section */
.contact-us-section {
    background: white;
}

.contact-info-item {
    padding: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    max-width: 40px;
    height: auto;
}

.contact-info-item h5 a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
}

.contact-info-item h5 a:hover {
    color: #2a5298;
}

.contact-info-item p {
    color: #666;
    margin-bottom: 0;
}

.social-links-evening {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Evening Coaching Responsive Design */
@media (max-width: 992px) {
    .evening-main-title {
        font-size: 3rem;
    }
    
    .evening-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .evening-main-title {
        font-size: 2.5rem;
    }
    
    .evening-subtitle {
        font-size: 1.3rem;
    }
    
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
    
    .campus-table thead th,
    .campus-table tbody td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .social-links-evening {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .evening-main-title {
        font-size: 2rem;
    }
    
    .evening-subtitle {
        font-size: 1.1rem;
    }
    
    .evening-hero-content {
        text-align: center;
    }
    
    .contact-form-card {
        padding: 1.5rem 1rem;
    }
}

/* Simple Course Layout - Icon and Text Side by Side */
.course-item-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    padding: 20px 15px !important;
    transition: all 0.3s ease !important;
    color: #333 !important;
    border-radius: 8px !important;
    background: transparent !important;
}

.course-item-link:hover {
    color: #12145C !important;
    text-decoration: none !important;
    background: rgba(18, 20, 92, 0.05) !important;
}

.course-icon-container {
    width: 60px !important;
    height: 60px !important;
    margin-right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: transparent !important;
}

.course-icon-container img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
    display: block !important;
}

.course-text-content {
    flex: 1 !important;
    text-align: left !important;
}

.course-text-content h5 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
    color: inherit !important;
    line-height: 1.2 !important;
}

.course-text-content p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.course-item-link:hover .course-text-content h5 {
    color: #12145C !important;
}

.course-item-link:hover .course-text-content p {
    color: #555 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-item-link {
        padding: 15px 10px !important;
    }
    
    .course-icon-container {
        width: 50px !important;
        height: 50px !important;
        margin-right: 12px !important;
    }
    
    .course-icon-container img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .course-text-content h5 {
        font-size: 16px !important;
    }
    
    .course-text-content p {
        font-size: 13px !important;
    }
}


.bg_before:before{
    width: 100%;
   min-height: 250px;
    position: absolute;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    left: 50%;
    top: -2%;
    content: "";
    background-image: url(https://step.pgc.edu/wp-content/themes/step/assets/css/../images/shapecopy.png);
    background-position: center;
    background-repeat: no-repeat;
}

