/* Law Academy BS5 Migration Style (v3) - Matching Original Design */
:root {
    --primary-color: #0a192f;
    /* Original Navy */
    --secondary-color: #d4af37;
    /* Original Gold */
    --accent-color: #c5a028;
    --text-light: #f4f4f4;
    --text-dark: #333333;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --rounded-sm: 0.857rem;
    --rounded-md: 1rem;
    --rounded-lg: 2rem;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #f9f9f9;
    /* Match original bg */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 500;
}

a {
    text-decoration: none
}

p {
    font-family: var(--font-body)
}

/* Header - Dark to match Original */
header.sticky-top {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 10px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: #fff;
}

.nav-link {
    color: #143d61;
    font-size: 0.885rem;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    padding: 8px 15px !important;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: none;
    position: absolute;
    bottom: 5px;
    left: 15px;
    /* Adjust for padding */
    right: 15px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

/* Hero Carousel Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: #000;
    margin-top: -76px;
    /* Offset for fixed header */
    padding-top: 76px;
    /* Content safety */
}

/* Ensure carousel takes full height */
#heroCarousel, .carousel-inner, .carousel-item {
    height: 100%;
}

/* Overlay for text readability */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

/* Image styling */
.carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Caption Positioning */
.carousel-caption {
    z-index: 2;
    /* Above overlay */
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    padding-bottom: 3rem;
    /* Adjust as needed */
}

/* Typography Enhancements */
.carousel-caption h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    /* Responsive sizing handled via BS5 classes or media queries if needed */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
    .carousel-caption h1 {
        font-size: 4rem;
    }
}

.carousel-caption p {
    font-size: 1.25rem;
    color: #f8f9fa;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Animations */
.animate-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-up-delay-1 {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-up-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons from Original (Refined for dark bg) */
.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 99px;
    padding: 15px 30px;
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

/* Features - Exact Match */
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--rounded-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border: none;
    /* Reset standard border */
    border-bottom: 3px solid var(--secondary-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    /* Slightly stronger on hover */
}

.feature-card span.icon {
    width: 80px;
    height: 80px;
    background: rgba(10, 25, 47, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--secondary-color);
    font-size: 2rem;
    transition: 0.3s;
}

.feature-card:hover span.icon {
    background: var(--primary-color);
    color: #fff;
}

.feature-icon {
    font-size: 30px;
    /* color: var(--secondary-color); */
    margin-bottom: 0px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

/* Affiliations */
.affiliation-section {
    background: linear-gradient(to bottom, #f9f9f9, #fff);
    padding: 80px 0;
}

.affiliation-grid {
    max-width: 590px;
}

.logo-placeholder {
    width: 180px;
    height: 180px;
    border: 2px dashed transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 400;
    color: #777;
    background: #f4f4f4;
    text-align: center;
    padding: 10px;
    margin: 0px auto 0;
    position: relative
}

.logo-placeholder i {
    color: var(--primary-color);
    font-size: 2.2rem
}

.logo-placeholder span {
    display: block;
    margin-top: 7px;
    font-size: 0.955rem;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 0.010rem;
    color: #212121;
}

.logo-placeholder.active:before {
    border-color: var(--secondary-color)
}

.logo-placeholder:before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px dashed transparent;
    display: block;
    border-radius: 50%;
    transition: all 200ms linear
}

.logo-placeholder:hover {
    border-color: transparent;
}

.logo-placeholder:hover:before {
    /* transform: rotate(40deg); */
    border-color: var(--secondary-color)
}

/* Courses */
.courses-section {
    background-color: rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important;
    padding: 80px 0;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title .line {
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto;
}

.course-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: none;
    height: 100%;
}

.course-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-img {
    position: relative;
}

.course-img:before {
    content: '';
    position: absolute;
    inset: 0px;
    background: var(--primary-color);
    background: linear-gradient(to top, #0a192fe0 20%, transparent 60%);
}

.course-img img {
}

.course-header {
    /* background: var(--primary-color); */
    color: #fff;
    padding: 30px;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.course-header h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 0;
}

.course-header p {
}

.course-body {
    padding: 30px;
}

.course-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.course-body li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-dark);
}

.course-body li i {
    color: var(--secondary-color);
    margin-right: 12px;
}

/* Services */
.services-section {
    background: var(--primary-color);
    color: #fff;
    padding: 80px 0;
}

.service-image {
    background: rgba(255,255,255,0.1);
    height: 300px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer */
footer {
    background: #050d1a;
    color: #ccc;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
}

.footer-col--links li a {
    text-decoration: none;
    display: block;
    color: #ccc;
    letter-spacing: 0.05px;
    font-size: 0.975rem;
    margin-top: 14px;
}

.footer-about {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 530px;
}

.section-about {
    padding: 60px 0 100px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw,2.8rem);
    margin-bottom: 15px;
}

.about-img-wrapper {
    position: relative;
    padding: 20px;
}

.about-img-main {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-img-small {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 5px solid #fff;
}

.contact-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8fafc 50%, #050b14 50%);
}

.contact-card {
    background: #fff;
    border-radius: var(--rounded-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    padding: 60px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.form-floating > .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.form-floating > .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background-color: #fff;
}

.form-floating > label {
    color: #94a3b8;
}

.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-group > label {
    margin-bottom: 5px;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control, .form-select {
    padding: 11px 16px;
    font-size: 0.875rem;
}

/* Buttons from Original */
.site-btn {
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 17px 30px;
    border-radius: 99px;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    /* border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 17px 30px;
    border-radius: 99px;
    font-size: 0.875rem;
    line-height: 1.4; */
}

.btn-primary:focus, .btn-primary:active {
    color: #fff !important;
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    /* border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 99px; */
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.site-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #7b7b7b;
}

.navbar-toggler {
    background: var(--secondary-color);
    --bs-navbar-toggler-font-size: 25px;
}

.navbar-collapse.collapse.show {
    padding-bottom: 1.3rem
}

@media (max-width: 1200px) {
    .contact-card {
        padding: 60px 40px;
    }

    .contact-section {
        position: relative;
        padding: 20px 0 100px;
    }
}

@media (max-width: 568px) {
    .logo img {
        height: 55px;
    }

    .hero-section {
        min-height: 650px;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .carousel-control-next-icon, .carousel-control-prev-icon {
        display: none
    }

    .section-about {
        padding: 60px 0 20px;
    }

    .about-img-wrapper {
        padding: 0px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .contact-card {
        padding: 40px 15px;
    }
}
