/* ======================================
   THIAGARAJAR COLLEGE HOSTELS
   Premium Apple Style CSS
====================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:#ffffff;
    overflow-x:hidden;
}

/* Header */

header img{
    width:100%;
    display:block;
}

/* Navbar */

.custom-navbar{
    background:rgba(15,23,42,.85);
    backdrop-filter:blur(15px);
    box-shadow:0 5px 25px rgba(0,0,0,.25);
}

.navbar-brand{
    color:#FFD166 !important;
    font-size:28px;
    font-weight:700;
}

.nav-link{
    color:#ffffff !important;
    margin-left:20px;
    font-weight:500;
    transition:.4s;
}

.nav-link:hover{

    color:#FFD166 !important;

}

/* Hero */

.hero-section{

    min-height:90vh;

    display:flex;

    align-items:center;

    background:linear-gradient(135deg,#111827,#1e293b);

}

.hero-section h5{

    color:#FFD166;

    letter-spacing:3px;

    margin-bottom:15px;

}

.hero-section h1{

    font-size:58px;

    font-weight:700;

    line-height:70px;

}

.hero-section p{

    font-size:20px;

    color:#d1d5db;

    margin:30px 0;

}

.hero-image{

    width:100%;

    border-radius:25px;

    box-shadow:0 30px 70px rgba(0,0,0,.45);

    transition:.5s;

}

.hero-image:hover{

    transform:scale(1.03);

}

/* Button */

.btn-warning{

    background:#FFD166;

    color:#000;

    border:none;

    border-radius:50px;

    padding:14px 35px;

    font-weight:600;

}

.btn-warning:hover{

    background:#ffc107;

}

/* Hostel Section */

#hostels{

    padding:100px 0;

    background:#111827;

}

/* Card */

.hostel-card{

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    border-radius:25px;

    overflow:hidden;

    transition:.5s;

    box-shadow:0 20px 50px rgba(0,0,0,.35);

}

.hostel-card:hover{

    transform:translateY(-10px);

    box-shadow:0 35px 70px rgba(0,0,0,.45);

}

.hostel-card img{

    width:100%;

    height:320px;

    object-fit:cover;

    transition:.5s;

}

.hostel-card:hover img{

    transform:scale(1.08);

}

.hostel-card h3{

    color:#FFD166;

    font-weight:700;

    margin-bottom:15px;

}

.hostel-card p{

    color:#d1d5db;

    line-height:28px;

}

.hostel-card .btn{

    border-radius:40px;

    padding:12px 30px;

    margin-top:15px;

}

/* Footer */

footer{

    background:#020617;

    color:#ccc;

    text-align:center;

    padding:10px;

    margin-top:80px;

}

/* Scroll Bar */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111827;

}

::-webkit-scrollbar-thumb{

    background:#FFD166;

    border-radius:20px;

}

/* Animation */

.hero-section{

    animation:fadeUp 1.2s ease;

}

.hostel-card{

    animation:fadeUp 1.4s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(60px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* Responsive */

@media(max-width:992px){

.hero-section{

padding:70px 0;

text-align:center;

}

.hero-section h1{

font-size:40px;

line-height:50px;

}

.hero-image{

margin-top:40px;

}

}

@media(max-width:768px){

.hero-section h1{

font-size:32px;

line-height:42px;

}

.hero-section p{

font-size:17px;

}

.nav-link{

margin-left:0;

padding:12px;

}

.hostel-card{

margin-bottom:30px;

}

}

.hero-section{

margin-top:0;

}

.hero-img{

height:85vh;

object-fit:cover;

filter:brightness(55%);

}

.carousel-caption{

bottom:25%;

}

.carousel-caption h1{

font-size:65px;

font-weight:700;

text-shadow:0 5px 15px rgba(0,0,0,.5);

}

.carousel-caption p{

font-size:22px;

margin:20px 0;

}

.carousel-caption .btn{

padding:14px 35px;

border-radius:50px;

font-weight:600;

}

.hero-image{

height:500px;

width:100%;

object-fit:cover;

border-radius:20px;

box-shadow:0 25px 60px rgba(0,0,0,.35);

transition:.5s;

}

.carousel-item img{

animation:zoom 8s linear infinite;

}

@keyframes zoom{

0%{

transform:scale(1);

}

100%{

transform:scale(1.08);

}

}

.carousel-control-prev-icon,
.carousel-control-next-icon{

background-color:rgba(0,0,0,.45);

border-radius:50%;

padding:20px;

}

/* Contact Page */



.contact{
    background:#0f172a;
    padding:80px 0;
}

/* Map */
.map-box{
    overflow:hidden;
    border-radius:25px;
    height:450px;
    box-shadow:0 15px 35px rgba(0,0,0,.35);
}

.map-box iframe{
    width:100%;
    height:100%;
}

.contact{
    background:#0f172a;
    padding:80px 0;
}

.map-box,
.contact-box{
    height:450px;
    border-radius:25px;
}

/* Right Card */
.contact-box{
    background:#0f172a;
    text-align:center;
    padding:40px 30px;
    border:2px solid #f5d46b;
    transition:.4s;
    display:flex;
    flex-direction:column;
    justify-content:center;
    /* Mild Gold Shadow */
    box-shadow:0 8px 25px rgba(245,212,107,.18);
}

.contact-box:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 35px rgba(245,212,107,.35);
}

.logo{
    width:110px;
    margin:auto;
    margin-bottom:20px;
}

.contact-box h2{
    color:#5b1c6d;
    font-weight:700;
    margin-bottom:25px;
}

.contact-box p{
    color:#444;
    font-size:18px;
    line-height:1.8;
    margin-bottom:18px;
}

.contact-box i{
    color:#d4a017;
    margin-right:8px;
    font-size:20px;
}

/* Gallery */



.gallery{
    width:90%;
    margin:60px auto;
}

.gallery h2{
    text-align:center;
    font-size:40px;
    color:#0b3d91;
    margin-bottom:40px;
    position:relative;
}

.gallery h2::after{
    content:"";
    width:80px;
    height:4px;
    background:#ff9800;
    display:block;
    margin:10px auto;
    border-radius:5px;
}

.gallery-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    transition:.4s;
    cursor:pointer;
}

.card:hover{
    transform:translateY(-10px) scale(1.03);
    box-shadow:0 15px 35px rgba(0,0,0,.25);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:.5s;
}

.card:hover img{
    transform:scale(1.1);
}

.content{
    padding:20px;
    text-align:center;
}

.content h3{
    color:#0b3d91;
    margin-bottom:10px;
}

.content p{
    color:#666;
    font-size:15px;
}

/* Gallery Button */

.gallery-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}
.view-gallery{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:15px 35px;
    text-decoration:none;
    font-size:18px;
    font-weight:600;
    color:#1b2238;
    background:#ffd166;
    border-radius:40px;
    transition:.3s;
    box-shadow:0 8px 18px rgba(255,209,102,.3);
}

.view-gallery:hover{
    background:#f4c542;
    transform:translateY(-4px);
}


.view-gallery span{
    transition: .3s;
}


.view-gallery:hover span{
    transform: translateX(6px);
}

/* Gallery Image */

.gallery-section{
    width:90%;
    margin:70px auto;
}

.gallery-header{
    text-align:center;
    margin-bottom:50px;
}

.gallery-header h2{
    font-size:40px;
    color:#ffd166;
    margin-bottom:10px;
}

.gallery-header p{
    color:#666;
    font-size:17px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.gallery-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    transition:.4s;
}

.gallery-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.gallery-card:hover img{
    transform:scale(1.12);
}

.gallery-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.18);
}

.overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    background:linear-gradient(to top,rgba(0,0,0,.85),transparent);
    padding:20px;
}

.overlay h3{
    color:#fff;
    font-size:22px;
    font-weight:600;
}

@media(max-width:768px){

.gallery-header h2{
    font-size:30px;
}

.gallery-grid{
    grid-template-columns:1fr;
}

.gallery-card img{
    height:230px;
}

}

/* ======================================
   HOSTEL DETAIL PAGES (Valluvar & Manimegalai)
====================================== */

/* Hero Banner */
.detail-hero{
    position:relative;
    min-height:55vh;
    display:flex;
    align-items:flex-end;
    background-size:cover;
    background-position:center;
    padding:100px 0 60px;
}

.detail-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(15,23,42,.25) 0%,rgba(15,23,42,.75) 65%,#0f172a 100%);
}

.detail-hero-content{
    position:relative;
    z-index:2;
}

.breadcrumb-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#d1d5db;
    text-decoration:none;
    font-weight:500;
    margin-bottom:22px;
    transition:.3s;
}

.breadcrumb-link:hover{
    color:#FFD166;
    gap:12px;
}

.badge-type{
    display:inline-block;
    background:#FFD166;
    color:#111827;
    font-weight:700;
    font-size:13px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    padding:8px 22px;
    border-radius:50px;
    margin-bottom:18px;
}

.detail-hero-content h1{
    font-size:52px;
    font-weight:700;
    color:#fff;
    margin-bottom:15px;
    text-shadow:0 8px 25px rgba(0,0,0,.5);
}

.detail-hero-content .tagline{
    font-size:19px;
    color:#e5e7eb;
    max-width:650px;
    line-height:1.8;
}

/* Info + Quick Facts Section */
.detail-info{
    padding:90px 0;
    background:#0f172a;
}

.desc-text h2{
    color:#FFD166;
    font-weight:700;
    font-size:32px;
    margin-bottom:28px;
    position:relative;
    padding-bottom:18px;
}

.desc-text h2::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:60px;
    height:4px;
    background:#FFD166;
    border-radius:5px;
}

.desc-text p{
    color:#cbd5e1;
    font-size:17px;
    line-height:1.9;
    margin-bottom:20px;
}

.facts-card{
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,209,102,.25);
    border-radius:25px;
    padding:40px 35px;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    transition:.4s;
}

.facts-card:hover{
    transform:translateY(-6px);
    box-shadow:0 25px 60px rgba(0,0,0,.45);
}

.facts-card h4{
    color:#FFD166;
    font-weight:700;
    margin-bottom:25px;
    font-size:20px;
}

.facts-card ul{
    list-style:none;
    margin-bottom:30px;
}

.facts-card ul li{
    color:#e5e7eb;
    font-size:16px;
    padding:13px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    gap:12px;
}

.facts-card ul li:last-child{
    border-bottom:none;
}

.facts-card ul li i{
    color:#FFD166;
    width:20px;
    text-align:center;
}

.facts-card .btn{
    width:100%;
    border-radius:40px;
    padding:14px;
    font-weight:600;
    margin-top:5px;
}

/* Amenities */
.amenities{
    padding:90px 0;
    background:linear-gradient(135deg,#111827,#1e293b);
}

.amenities h2{
    text-align:center;
    color:#fff;
    font-size:36px;
    font-weight:700;
    margin-bottom:50px;
    position:relative;
    padding-bottom:20px;
}

.amenities h2::after{
    content:"";
    width:70px;
    height:4px;
    background:#FFD166;
    display:block;
    margin:14px auto 0;
    border-radius:5px;
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
}

.amenity-box{
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(12px);
    border-radius:20px;
    padding:38px 20px;
    text-align:center;
    transition:.4s;
    height:100%;
    border:1px solid rgba(255,255,255,.07);
}

.amenity-box:hover{
    transform:translateY(-8px);
    background:rgba(255,209,102,.08);
    border-color:rgba(255,209,102,.4);
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.icon-circle{
    width:65px;
    height:65px;
    background:rgba(255,209,102,.15);
    border:2px solid #FFD166;
    color:#FFD166;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    margin:0 auto 18px;
    transition:.4s;
}

.amenity-box:hover .icon-circle{
    background:#FFD166;
    color:#111827;
    transform:scale(1.1) rotate(8deg);
}

.amenity-box h5{
    color:#fff;
    font-size:16px;
    font-weight:600;
    margin:0;
}

/* Detail Gallery */
.detail-gallery{
    padding:90px 0;
    background:#0f172a;
}

.detail-gallery h2{
    text-align:center;
    color:#FFD166;
    font-size:36px;
    font-weight:700;
    margin-bottom:10px;
}

.detail-gallery > .container > p{
    text-align:center;
    color:#94a3b8;
    font-size:16px;
    margin-bottom:45px;
}

.detail-gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    grid-auto-rows:220px;
    grid-auto-flow:dense;
    gap:20px;
}

.g-item{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 15px 35px rgba(0,0,0,.3);
}

.g-item.big{
    grid-column:span 2;
    grid-row:span 2;
}

.g-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.g-item:hover img{
    transform:scale(1.12);
}

.g-item span{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:16px;
    color:#fff;
    font-weight:600;
    font-size:15px;
    background:linear-gradient(to top,rgba(0,0,0,.85),transparent);
}

/* Detail CTA */
.detail-cta{
    background:linear-gradient(135deg,#FFD166,#f4a300);
    padding:70px 0;
    text-align:center;
}

.detail-cta h3{
    color:#111827;
    font-size:32px;
    font-weight:700;
    margin-bottom:15px;
}

.detail-cta p{
    color:#1f2937;
    font-size:17px;
    margin-bottom:30px;
}

.detail-cta .btn-warning{
    background:#111827;
    color:#FFD166;
}

.detail-cta .btn-warning:hover{
    background:#1e293b;
    color:#fff;
}

/* Responsive - Detail Pages */
@media(max-width:992px){

.detail-gallery-grid{
    grid-template-columns:repeat(2,1fr);
}

.g-item.big{
    grid-column:span 2;
    grid-row:span 1;
    height:280px;
}

.g-item{
    height:220px;
}

}

@media(max-width:768px){

.detail-hero{
    min-height:45vh;
    padding:80px 0 40px;
}

.detail-hero-content h1{
    font-size:34px;
}

.detail-hero-content .tagline{
    font-size:16px;
}

.detail-info{
    padding:60px 0;
}

.amenities{
    padding:60px 0;
}

.detail-gallery{
    padding:60px 0;
}

.detail-gallery-grid{
    grid-template-columns:1fr;
}

.g-item.big{
    grid-column:span 1;
}

.detail-cta{
    padding:50px 0;
}

.detail-cta h3{
    font-size:26px;
}

}
