        :root {
            --light: #f0f8ff;
            --white: #fff;
            --text-dark: #333;
            --text-light: #666;
        }
        #main_content{
            top: 150px;
        }



        a {
            text-decoration: none;
            color: inherit;
        }

        .hero {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            /* Bootstrap's py-5 and px-3 (or just default container padding) will handle padding */
            text-align: center;
        }

        .profile-card {
            background: var(--white);
            color: var(--text-dark);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            max-width: 900px;
            margin: 0 auto; /* Centering with margin auto */
            /* Bootstrap d-flex, flex-wrap, align-items-center, gap are applied directly in HTML */
        }

        .profile-card img {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            border: 5px solid var(--secondary);
            object-fit: cover;
        }

        /* profile-info flex property is now handled by Bootstrap's flexbox utilities on the parent and child elements */
        .profile-info h1 {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .quote {
            text-align: center;
            margin: 40px auto;
            max-width: 800px;
            font-style: italic;
            color: var(--text-light);
            font-size: 18px;
        }

        .subjects {
            background-color: var(--white);
            /* Bootstrap's py-5 will handle padding */
        }

        .subjects h2 {
            text-align: center;
            color: var(--primary);
            margin-bottom: 30px;
        }

        /* .subject-list is replaced by Bootstrap's row and col classes, custom styles applied to .subject-box */
        .subject-box {
            background: var(--light);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 123, 255, 0.05);
            text-align: center;
            height: 100%; /* Ensure uniform height for grid items */
            display: flex; /* Keep for inner alignment */
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .subject-box i {
            font-size: 30px;
            color: var(--secondary);
            margin-bottom: 10px;
        }

        /* .stats, .certifications display flex is now handled by Bootstrap's d-flex and row classes */
        .stats {
            /* Bootstrap's py-5 and bg-white will handle background and padding */
            text-align: center;
        }

        .stat-box {
            /* flex property is now handled by Bootstrap's col classes */
            /* margin is now handled by Bootstrap's g-4 (gutter) and mx-auto for centering if needed */
            background: var(--light);
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
            transition: transform 0.3s ease;
        }

        .stat-box:hover {
            transform: scale(1.05);
        }

        .stat-box i {
            font-size: 36px;
            color: var(--secondary);
            margin-bottom: 10px;
        }

        .stat-box h2 {
            font-size: 28px;
            color: var(--primary);
        }

        .testimonials {
            background-color: var(--light);
            /* Bootstrap's py-5 will handle padding */
        }

        .testimonials h2 {
            text-align: center;
            font-size: 30px;
            color: var(--primary);
            margin-bottom: 40px;
        }

        .testimonial-card {
            background: var(--white);
            padding: 20px;
            border-radius: 12px;
            margin: 15px auto;
            max-width: 700px;
            /* Bootstrap d-flex, align-items-center, gap, flex-wrap are applied directly in HTML */
            box-shadow: 0 5px 15px rgba(0, 123, 255, 0.05);
        }

        .testimonial-card img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid var(--secondary);
            object-fit: cover;
        }

        .cta-button {
            display: block; /* Ensures it takes full width for text-align to work */
            text-align: center;
            margin: 40px auto;
        }

        /* Button styling is now largely handled by Bootstrap's btn classes, but color/hover can be refined */
        .cta-button a {
            background-color: var(--primary); /* Override Bootstrap primary color if needed */
            color: white;
            /* padding and font-size handled by btn-lg */
            border-radius: 8px;
            transition: background-color 0.3s ease;
            border: none; /* Remove default button border if present */
        }

        .cta-button a:hover {
            background-color: #004a85; /* Darker shade for hover */
        }

        footer {
            background-color: var(--primary);
            color: white;
            text-align: center;
            padding: 20px;
            margin-top: 40px;
        }

        /* Keep media query for specific flex-direction overrides */
        @media(max-width: 768px) {
            .profile-card, .testimonial-card {
                flex-direction: column !important; /* Use !important to ensure override Bootstrap flex-md-row */
                text-align: center !important; /* Use !important if Bootstrap's text-md-start conflicts */
            }

            /* This stat-box flex rule is now effectively handled by col-6 on small screens */
            /* .stat-box {
                flex: 1 1 100%;
            } */
            #main_content{
                top: 100px;
            }
        }
