/* Container controls layout of cards */
.profile-card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cards per row */
    gap: 20px;
    padding: 20px;
}

/* Card */
.profile-card {
    background: #ffffff;
    width: 100%;
    display: flex;
    /* Flex for inside layout */
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left Image Section */
.profile-left {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-left img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    object-fit: cover;
}

/* Right Content */
.profile-right {
    width: 65%;
    padding: 30px;
}

.profile-right h2 {
    font-size: 26px;
    color: #1e293b;
}

.designation {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 15px;
}

.info p {
    font-size: 15px;
    margin-bottom: 6px;
    color: #334155;
}

.about {
    margin-top: 15px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
}

/* Buttons */
.actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.actions button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.actions button:hover {
    background: #1e40af;
}

.actions .secondary {
    background: #e5e7eb;
    color: #111827;
}

.actions .secondary:hover {
    background: #d1d5db;
}

/* =========================
   TABLET (600px – 1249px)
   ========================= */

@media (max-width: 1249px) {

    .profile-card-container {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .profile-card {
        flex-direction: column;
    }

    .profile-left {
        width: 100%;
        padding: 20px 0;
    }

    .profile-left img {
        width: 130px;
        height: 130px;
    }

    .profile-right {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .actions {
        flex-direction: column;
    }

    .actions button {
        width: 100%;
    }
}

/* =========================
   SMALL MOBILE (≤360px)
   ========================= */
@media (max-width: 360px) {
    body {
        padding: 0;
        margin: 0;
        align-items: flex-start;
    }

    .profile-card-container {
        margin: 5px;
    }

    .profile-card {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        font-size: 10px;
    }

    .profile-left {
        width: 100%;
        height: auto;
        min-height: unset;
        padding: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .profile-left img {
        width: 120px;
        height: 120px;
    }

    .profile-right {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .designation {
        font-size: 15px;
    }

    .actions {
        flex-direction: column;
    }

    .actions button {
        width: 100%;
    }
}

@media (max-width: 300px) {

    .profile-card {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        font-size: 10px;
    }

    .profile-left img {
        width: 110px;
        height: 110px;
    }

    .profile-right h2 {
        font-size: 20px;
    }
}

.principal {
    margin: 15px;
}

@media (max-width: 400px) {
    .profile-right {
        font-size: 15px;
        padding: 10px;
    }
    .profile-right h2 {
        font-size: 15px;
    }
    .designation {
        font-size: 12px;
        margin-bottom: 1px;
        margin-top: -5px;
    }
    .info p {
        font-size: 10px;
    }
.about{
    font-size: 10px;
    margin-top: -5px;
}
    .heading_sm {
        font-size: 15px;
    }

    .exam_btn a {
        font-size: 12px;
    }

    .p_welcome,
    .our_missionb,
    .section-subtitle {
        font-size: 12px;
    }
}