  body {
            background-color:white;
            font-family: 'Times New Roman', Times, serif;
        }
         
        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            margin-top: 1em;
            margin: 5em;
            margin-bottom: 1em;
        }
        
        .nav-logo {
            height: 8em;
        }
        .nav-links {
            display: flex;
            justify-content: center;
            gap: 1.4em;
            padding: 20px;
            font-weight: bold;
            text-decoration: none;
            margin-top: 2em;
        }
        .nav-links a {
            text-decoration: none;
            color: black;
            transition: color 0.3s ease;
        }
        .nav-links a:hover {
            color: #555;
        }
        .main-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 88%;
            margin: 50px auto;
            background: white;
            padding: 20px;
            border: 2px solid #991930;
        }
        .left-section {
            flex: 1;
            padding: 20px;
        }
        .right-section {
            flex: 1;
        }
        .right-section img {
            width: 100%;
            border-radius: 10px;
        }
        .social-icons a {
            font-size: 22px;
            margin-right: 15px;
            color: black;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .social-icons a:hover {
            color: #555;
        }
        .about-me {
            text-align: justify;
            font-size: 1.05em;
            line-height: 1.5em;
            padding: 5PX;
        }
        #list {
            margin-left: 2em;
        }

        
        .divider {
            border: 3px #991930 solid;
            height: 5px;
            background-color: #991930;
            margin: 40px 40px;
        }


        .row.d-flex {
            display: flex;
            flex-wrap: wrap;
        }
        
        .img-container.frame {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }


        .frame {
             border: 1.5px solid #991930;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    height: 100%; /* Ensures it stretches to fill height if inside equal-height rows */
    min-height: 360px; /* Adjust based on your longest block */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push caption to bottom */
        }

        #frame {
    border: 1px solid #991930; /* Increased thickness for better visibility */
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    max-width: 100%; /* Ensures it scales properly on mobile */
}


        figcaption {
            font-size: 1.1em;
            color:black;
            margin-top: 28px;text-align: center;}
        
        .footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 40px 0;
            margin-top: 20px;
        }
        footer h4 {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 15px;
        }
        footer .social-icons a {
            font-size: 24px;
            margin: 0 10px;
            transition: color 0.3s;
        }
        footer .social-icons a:hover {
            color: #f9f2f7;
        }
        footer .btn {
            background-color: #991930;
            color: white;
            border: none;
            font-size: 1rem;
            padding: 8px 15px;
            transition: background-color 0.3s;
        }
        footer .btn:hover {
            background-color: #6b5b95;
        }
        .calendar-container {
            display: none;
            margin-top: 20px;
        }

        iframe {
            width: 100%;
            height: 400px;
            border: none;
        }
       

        #frame {
           
            border: .1px #991930 solid;
           

        }

        .btn{
            background-color: #991930;
            color: white;
            border: none;
            font-size: 1rem;
            padding: 8px 15px;
            transition: background-color 0.3s; }

       .btn :hover { 
        background-color:#dae0ec;
       }
       @media (max-width: 768px) {
        body {
            overflow-x: hidden;
            padding: 0;
            margin: 0;
        }
    
        .nav-container {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 1em auto;
            padding: 0 1em;
            width: 100%;
        }
    
        .nav-logo {
            height: 8em;
            width: auto;
        }
    
        .nav-links {
            flex-direction: column;
            align-items: center;
            gap: 1em;
            padding: 0;
            margin-top: 1em;
            text-align: center;
            width: 100%;
        }
    
        .nav-links a {
            font-size: 1.2em;
            display: block;
            width: 100%;
        }
    
        .main-content {
            flex-direction: column;
            align-items: center;
            width: 100%;
            margin: 0 auto;
            padding: 1em;
            box-sizing: border-box;
            overflow-x: hidden;
        }
    
        .left-section, .right-section {
            width: 100%;
            padding: 0;
            text-align: center;
        }
    
        .right-section img {
            width: 100%;
            height: auto;
            border-radius: 10px;
        }
    
        .text-section {
            padding: 0 1em;
        }
    
        iframe {
            width: 100% !important;
            height: 500px;
            border: none;
        }
    
        .calendar-container {
            padding: 0 10px;
        }
    
        .col-md-3,
        .col-md-4,
        .col-md-5,
        .col-md-6 {
            width: 100% !important;
            padding: 0 !important;
            margin-bottom: 1em;
        }
    
        .img-container,
        #frame {
            width: 100%;
            box-sizing: border-box;
            margin: 0 auto 1em;
            padding: 10px;
            border-width: 1.5px;
        }
    
        footer .row {
            flex-direction: column;
            align-items: center;
        }
    
        footer .col-md-4 {
            width: 100%;
            text-align: center;
            margin-bottom: 20px;
        }
    
        footer .btn {
            width: 100%;
        }
    
        .btn {
            width: 100%;
            margin-top: 10px;
        }
    }
    