/********************************************
    Modern Clean CSS
    Based on original by Prof. K. R. Chowdhary
********************************************/

/* =========================
   Root Variables
========================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #3b82f6;

    --bg: #f8fafc;
    --surface: #ffffff;

    --text: #1e293b;
    --text-light: #64748b;

    --border: #e2e8f0;

    --radius: 12px;

    --shadow:
        0 4px 12px rgba(0,0,0,.08);

    --transition: .3s ease;
}

/* =========================
   Reset
========================= */

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
}

/* =========================
   Header
========================= */
header p{
    color:#f5f5f5;
    max-width:850px;
    margin:12px auto 0;
    line-height:1.6;
    font-size:1.1rem;
}


.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    max-width:1100px;
    margin:auto;
}

.header-content{
    flex:1;
}

.subtitle{
    margin-top:20px;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(8px);

    padding:18px 22px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.25);
}

.subtitle strong{
    display:block;
    font-size:1.15rem;
    color:#ffffff;
    margin-bottom:8px;
}

.subtitle p{
    margin:0;
    color:#f5f7fa;
    line-height:1.6;
    font-size:1rem;
}


.card{
    background:#fff;
    padding:30px;
    margin-bottom:35px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.button{
    display:inline-block;
    padding:10px 18px;
    background:#2563eb;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.button:hover{
    background:#1e40af;
}

.book-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.book{
    text-align:center;
}

.book img{
    width:140px;
    height:auto;
    margin-bottom:15px;
    border-radius:8px;
}

.course-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.contact{
    text-align:center;
}


.toggle-image{
    display:none;
    max-width:320px;
    width:100%;
    border-radius:8px;
    margin:12px 0 20px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}



h1{
    margin:0;
    font-size:clamp(2rem,5vw,3rem);
    font-weight:700;
}

.profile-photo{
    width:140px;
    height:140px;
    border-radius:50%;
    overflow:hidden;
    border:4px solid rgba(255,255,255,.4);
    box-shadow:var(--shadow);
}

.profile-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =========================
   Navigation
========================= */

nav{
    background:#fff;
    position:sticky;
    top:0;
    z-index:100;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

nav ul{
    max-width:1100px;
    margin:0 auto;
    padding:12px;

    list-style:none;

    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

nav a{
    text-decoration:none;
    color:var(--text);

    padding:10px 18px;
    border-radius:999px;

    font-weight:600;

    transition:var(--transition);
}

nav a:hover{
    background:var(--primary);
    color:#fff;
}

/* =========================
   Main Content
========================= */

main{
    max-width:1100px;
    margin:40px auto;
    padding:30px;

    background:var(--surface);

    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

section{
    margin-bottom:50px;
}

h2{
    color:var(--primary-dark);
    margin-bottom:15px;
    font-size:1.8rem;
}

p{
    color:var(--text-light);
    margin-bottom:16px;
}

ul{
    padding-left:20px;
}

li{
    margin-bottom:10px;
}

/* =========================
   Gallery
========================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.photo{
    background:#fff;
    border-radius:var(--radius);
    overflow:hidden;

    box-shadow:var(--shadow);

    transition:transform .3s ease;
}

.photo:hover{
    transform:translateY(-6px);
}

.photo img{
    width:100%;
    display:block;
}

.photo p{
    padding:16px;
    margin:0;
    color:var(--text);
    text-align:center;
}



.date{
    display:inline-block;
    margin-top:4px;
    color:#666;
    font-size:0.95rem;
    font-style:italic;
}

.card ol{
    padding-left:22px;
}

.card ol li{
    margin-bottom:22px;
    line-height:1.7;
}

/* =========================
   Social Icons
========================= */

.social-icons{
    display:flex;
    gap:18px;
    margin-top:20px;
}

.social-icons a{
    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#fff;
    color:var(--text);

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.social-icons i{
    font-size:22px;
}

.social-icons a:hover{
    transform:translateY(-3px);
}

.social-icons a:hover .fa-linkedin{
    color:#0077B5;
}

.social-icons a:hover .fa-facebook{
    color:#1877F2;
}

.social-icons a:hover .fa-twitter{
    color:#1DA1F2;
}


.highlighted{
    background:#fff3b0;
    border-bottom:2px solid #cc9900;
    font-weight:600;
}
/* =========================
   Footer
========================= */

footer{
    background:#ffffff;
    color:#666;
    border-top:1px solid #e5e5e5;
    padding:20px;
    margin-top:40px;
    text-align:center;
}

/* =========================
   Responsive
========================= */

@media (max-width:768px){

   header{
    background:#0b4f6c;
    color:#fff;
    padding:25px 20px;
    text-align:center;
}

    .header{
        flex-direction:column;
    }

    main{
        margin:20px;
        padding:20px;
    }

    nav ul{
        gap:10px;
    }

    nav a{
        padding:8px 14px;
    }
}