/* Modern & Professional Page Styles */
body {
    font-family: 'Inter', 'Lato', sans-serif !important;
}

/* General Sections */
.modern-section {
    padding: 60px 0;
}

.modern-bg-light {
    background-color: #f8f9fa;
}

.modern-heading {
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.modern-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #e31e24;
    border-radius: 2px;
}

.modern-heading.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Feature Cards */
.modern-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    position: relative;
    z-index: 1;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 15px 35px rgba(227, 30, 36, 0.15);
    z-index: -1;
}

.modern-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card .icon {
    font-size: 40px;
    color: #e31e24;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(227, 30, 36, 0.08);
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
}

.modern-card h4 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
    color: #111;
}

/* Custom Lists */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

.modern-list li::before {
    content: '\f058';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 2px;
    color: #e31e24;
    font-size: 20px;
}

.modern-list.custom-icons li {
    padding-left: 0;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.modern-list.custom-icons li::before {
    content: none;
}

.modern-list.custom-icons .list-icon {
    width: 35px;
    height: 35px;
    background: rgba(227, 30, 36, 0.1);
    color: #e31e24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Tables */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.modern-table thead {
    background: linear-gradient(135deg, #e31e24 0%, #b8151b 100%);
    color: white;
}

.modern-table th {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 15px;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table tbody tr:hover {
    background-color: rgba(227, 30, 36, 0.02);
}

/* Accordion */
.modern-accordion .panel {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}

.modern-accordion .panel-heading {
    background-color: #fff;
    border-radius: 10px !important;
    padding: 0;
}

.modern-accordion .panel-title a {
    display: block;
    padding: 22px 50px 22px 25px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    position: relative;
    font-size: 17px;
}

.modern-accordion .panel-title a .fa {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #999;
}

.modern-accordion .panel-title a[aria-expanded="true"] .fa {
    transform: translateY(-50%) rotate(180deg);
    color: #e31e24;
}

.modern-accordion .panel-body {
    padding: 5px 25px 25px;
    border-top: none !important;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.modern-accordion .panel-body ul {
    padding-left: 20px;
}

.modern-accordion .panel-body ul li {
    margin-bottom: 8px;
}

/* Hero Banner */
.modern-hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cmat-bg.jpg') center/cover;
    padding: 80px 0;
    color: white;
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.modern-hero-banner h1 {
    color: white;
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.modern-hero-banner p {
    font-size: 20px;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Specific Elements from CMAT page */
.profile-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eaeaea;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 30, 36, 0.15);
}

.profile-card .img-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.profile-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .img-container img {
    transform: scale(1.05);
}

.profile-card .content-box {
    padding: 25px;
    text-align: center;
}

.profile-card h4 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    color: #222;
}

.profile-card .designation {
    color: #e31e24;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Testimonial Card */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    margin-top: 20px;
    border: 1px solid #eaeaea;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 40px;
    color: #e31e24;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.2);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-card .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e31e24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 15px;
}

.testimonial-card h5 {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #222;
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 12px;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #e31e24 0%, #b8151b 100%);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    color: white;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(227, 30, 36, 0.3);
}

.cta-box h3 {
    color: white;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: #fff;
    color: #e31e24;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-cta:hover {
    background: #222;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.topper-score {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(227, 30, 36, 0.9);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}