c/* Website: St. Dominic's College Kanjirapally

Author: Weberge by ipsr 

Subpage.css*/

/********** CSS **********/

:root {

    --primary: #9B0302;

    --secondary: #0C2D55;

    --dark: #0E2A46;

    --light:#4D5756;

    --bg-light: #F4F5F8;

}



/********************************* Sub Page ************************************/

.subpage-banner{

    height: 340px;

    background-repeat: no-repeat;

    background-size: cover;

    position: relative;

    display: flex;

    align-items: center;

    background-position: center;

    object-fit: cover;

    /* z-index: 99; */

    /* border-bottom: 5px solid var(--secondary); */

}

.subpage-banner::before {

    /* background: #0000008a; */

    background: linear-gradient(to top, #000000e6 0%, #00000000 100%);

    background-repeat: no-repeat;

    content: '';

    display: block;

    position: absolute;

    width: 100%;

    height: 100%;

    bottom: 0;

}

.subpage-banner::after {

}



.sub-banner-content{

    color: var(--dark);

    z-index: 99;

    position: absolute;

    bottom: 50px;

}

.sub-banner-content h2{

    font-weight: 600;

    color: white;

    font-size: 34px;

}

.sub-page-content-area{

    margin-bottom: 50px;

}

.sub-page-content p{

    margin-bottom: 30px;

    text-align: justify;

}

/* ------------- Breadcrumbs ------------- */



.breadcrumbs{

    /* justify-content: center; */

    display: flex;

}

.breadcrumbs ul{

    /* background-color: white;

    border-radius: 20px; */

}

.breadcrumbs ul li{

    color: var(--primary);

    font-weight: 400;

    position: relative;

    padding: 0px 33px;

    font-size: 17px;

}

.breadcrumbs ul li::before{



    position: absolute;

    background-position: left;

    bottom: 0;

    left: -22px;

    /* content: '\f054' !important; */

    content: '\f101' !important;

    font-family: "fontAwesome";

    font-size: 16px;

    color: white !important;



}

.breadcrumbs ul li:first-child{

    padding-left: 0;

}

.breadcrumbs ul li:last-child{

    padding-left: 0;

}

.breadcrumbs ul li:first-child::before{

    content: none !important;



}

.breadcrumbs ul li a{

    color: white;

    font-weight: 400;

    /* opacity: 0.7; */

}

.breadcrumbs ul li a:hover{

    color: var(--secondary);

}



/* ------------- Content ------------- */



.sub-page-content{

    padding: 60px 0px;

    position: relative;

}

.sub-page-content::before{

    background-image: url(../img/grade.gif);

    background-repeat: no-repeat;

    background-size: cover;

    position: absolute;

    left: 0;

    top: 20px;

    opacity: 0.5;

    content: '';

    height: 115px;

    width: 115px;

}

.sub-page-content::after{

    background-image: url(../img/board.gif);

    background-repeat: no-repeat;

    background-size: cover;

    position: absolute;

    right: 35px;

    bottom: 0px;

    opacity: 0.5;

    content: '';

    height: 115px;

    width: 115px;

}

.sub-page-content img{

    object-fit: cover;

    /* max-width: 70%; */

}





/* ------------- Divider ------------- */



.divider{

    border-bottom: 1px solid #ccc;

    margin: 40px 0px;

}

/* ------------- List ------------- */



ul.vision-sub{

    padding-left: 0px;

    position: relative;

}

ul.vision-sub li{

    list-style: none;

    padding: 5px 0px;

    color: var(--light);

    padding-left: 40px;

     line-height: 26px;

}



ul.vision-sub li::before {

    position: absolute;

    left: 0;

    font-family: "Font Awesome 5 Free";

    content: "\f138";

    display: inline-block;

    padding-right: 3px;

    vertical-align: middle;

    font-size: 18px;

    font-weight: 900;

    color: var(--primary);

}

/* ------------- Table ------------- */



table{

    margin-bottom: 20px;

}

table, th, td{

    border: 1px solid var(--primary);

    padding: 7px 5px;

    

}

th{

    background: var(--primary);

    color: white;

    font-weight: 500;

}

td{

    padding: 7px 5px;


}

/* ------------- Accordion ------------- */

 .accordion {

    background-color: var(--primary);

    color: white;

    cursor: pointer;

    padding: 18px;

    width: 100%;

    border: none;

    text-align: left;

    outline: none;

    font-size: 18px;

    transition: all .4s;

    margin-bottom: 5px;

    text-transform: capitalize;

  }

  

.accordion.active, .accordion:hover {

    background-color: var(--secondary); 

}

  

.panel {

    padding: 10px 5px;

    display: none;

    background-color: white;

    overflow: hidden;

    /* transition: all .4s; */

    

    max-height: 0;

    transition: max-height 0.3s ease; 



}

.accordion.active + .panel {

    display: block;

    max-height: 500px; /* Adjust the max-height as needed */

}

  button.accordion:after {

    content: '\002B';

    color: white;

    font-weight: bold;

    float: right;

    margin-left: 5px;

}

button.accordion.active, button.accordion:hover {

    background-color: var(--secondary); 

}

button.accordion.active:after {

    content: "\2212";

} 

/*-----*/

/* ------------- Dept head------------- */





/* ------------- Side menu ------------- */



.sub-page-side-menu{

    /* padding: 30px 30px; */

    /* background: var(--bg-light); */

    height: auto;

    margin-bottom: 30px;

}
.quick-links-sub{
    position: sticky;
    top: 150px;
}
.sub-page-side-menu-title {

    background: var(--primary);

    color: white;

    padding: 20px 30px;

    border-radius: 10px 10px 0 0;

}

.sub-page-side-menu h3{

    margin: 0;

    font-size: 20px;

}

.sub-page-side-menu ul{

    padding: 10px 20px;

    margin-bottom: 0px;

    background-color: var(--bg-light);

}



.sub-page-side-menu li{

    /* background-color: var(--secondary); */

    background-color: var(--bg-light);

    border-bottom: 1px solid #ccccccc9;

    padding: 10px 0px;

    height: 60px;

    list-style: none;

    margin-bottom: 5px;

    /* border-radius: 5px; */

    position: relative;

    display: flex;

    align-items: center;



    transition: all 0.3s ease-in-out;

    -webkit-transition: all 0.3s ease-in-out;

    -moz-transition: all 0.3s ease-in-out;

    -ms-transition: all 0.3s ease-in-out;

    -o-transition: all 0.3s ease-in-out;

}

.sub-page-side-menu li:hover{

    padding-left: 10px;

}

.sub-page-side-menu li:hover a{

    color: var(--primary);

}

.sub-page-side-menu li:last-child{

    border-bottom: none;

}

.sub-page-side-menu li a{

    color: var(--dark);

    font-weight: 500;

}

.sub-page-side-menu li a:hover{

    color: var(--primary);

}

.sub-page-side-menu ul li.active{

    /* background-color: rgba(255, 255, 255, 13%); */

    /* background-color: var(--secondary); */

}

.sub-page-side-menu li.active::before{    

    /* position: absolute;

    left: 20px;

    top: 15px;

    content: '';

    height: 35px;

    width: 5px;

    background-color: var(--secondary);

    border-radius: 2px; */

 }

.sub-page-side-menu ul li.active a{

    /* color: white; */

    color: var(--primary);

}

/* ------------- Contact form ------------- */

.contact-page{



}

.contact-pg{

    /* position: relative;

    background-image: url(../img/faq-bg.jpg);

    background-attachment: fixed;

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover; */



    position: relative;

    background-image: url(../img/news-bg.jpg);

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover;

}

.contact-pg::before{

    /* background:rgba(116, 4, 38, 0.7);

    content: '';

    width: 100%;

    height: 100%;

    top: 0;

    left: 0;

    position: absolute; */

}

.contact-details{

    margin-bottom: 40px;

}

.contact-page h5{

    font-size: 28px;

    font-weight: 600;

}

.contact-page p{

    margin-bottom: 5px;

}

.contact-details a{

    color: var(--light);

}

.contact-details a:hover{

    color: var(--secondary);

}

.contact-page .contact-icon{

    border: 1px solid var(--light);

    width: 110px;

    height: 110px;

    border-radius: 100px;

    justify-content: center;

    display: flex;

    align-items: center;

    margin: 0 auto;

    margin-bottom: 20px;

}

.contact-page .contact-icon img{

    height: 50px;

    width: auto;

    object-fit: cover;

    border-radius: 0;

    margin: 0;

}

.contact-sub-form::after{

    /* display: none; */

}

.contact-sub-form{

    /* background-color: var(--bg-light); */

}

.contact-form{

    /* padding: 30px; */

    /* border-radius: 5px; */

    margin-bottom: 30px;

}

.contact-sub input[type=text] {

    width: 100%; 

    padding: 12px 20px;

    /* margin: 8px 0; */

    /* display: inline-block; */

    border: 1px solid #ccc !important;

    border-radius: 8px;

    box-sizing: border-box;

    height: 50px;

    z-index: 99;

    margin-bottom: 15px;

}

.contact-sub input[type=submit] {

    background-color: var(--primary);

    color: white;

    padding: 12px 20px;

    margin: 0px 5px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    height: 50px;

    z-index: 99;

    text-transform: capitalize;

    margin: 7px 0px;

}

.contact-sub input[type=submit]:hover{

    background: var(--secondary);

}



.contact-sub input[type=text]:focus{

    border: none !important;

    outline: none !important;

}

.contact-sub input[type=text], .contact-sub input[type=email], .contact-sub input[type=tel] {

    width: 100%; 

    padding: 12px 20px;

    /* margin: 8px 0; */

    /* display: inline-block; */

    border: 1px solid #ccc !important;

    border-radius: 5px;

    box-sizing: border-box;

    height: 50px;

    z-index: 99;

    margin-bottom: 15px;

}

.contact-sub textarea  {

    width: 100%; 

    padding: 12px 20px;

    border: 1px solid #ccc !important;

    border-radius: 5px;

    box-sizing: border-box;

    z-index: 99;

    margin-bottom: 15px;

}

/* .contact-sub input[type=submit] {

    background-color: var(--secondary);

    color: white;

    padding: 12px 20px;

    margin: 0px 5px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    height: 50px;

    z-index: 99;

    text-transform: capitalize;

    margin: 7px 0px;

    float: left;

} */

.contact-sub input[type=submit]:hover{

    background: var(--primary);

}



.contact-sub input[type=text]:focus{

    border: none !important;

}



.address-sub{

    padding: 20px 5px;

    margin-bottom: 20px;

    text-align: center;

    min-height: 190px;

    border-radius: 5px;

}

.connect{

    padding: 0px 15px;

}

.address-sub i{

    color: white;

    text-align: center;

    margin: 0 auto;

    display: block;

    font-size: 25px;

    margin-bottom: 10px;

}

.address-sub p{

    margin-bottom: 0px;

    font-size: 15px;

    line-height: 24px;

    color: white;

}

.address-sub a{

    margin-top: 7px;

    font-weight: 400;

    color: white;

    font-size: 15px;



}

.address-sub a:hover{

    color: var(--secondary);

}

.address-sub h4{

    font-size: 22px;

}

.connect p span{

    /* color: var(--light); */

    font-weight: 400;

}

.contact-sub-form{

    /* padding: 50px 0px; */

}

.contact-top-sub{

    background: var(--primary);

    color: white;

}

.address-sub ul{

    padding: 0;

}

.address-sub ul li{

    list-style: none;

    line-height: 30px;

}

.contact-sub input:focus,

.contact-sub textarea:focus {

    border: none; /* Remove border on focus */

    /* You can also adjust other border properties here */

    outline: none !important;

}

.form-control:focus {

    color: #212529;

    background-color: #fff;

    border: 1px solid #ccc !important;

    outline: 0;

    /* box-shadow: none !important; */

}

.map-main{

    /* padding: 0px; */

    background: white;

    position: relative;

    z-index: 99;

}

.map-main p{

    margin-bottom: 30px;

}

.map-main h4{

    font-size: 24px;

    font-weight: 600;

    margin-bottom: 10px;

}



.contact-sub-form h4{

    font-size: 22px;

    font-weight: 500;

    margin-bottom: 10px;

    color: white;

}

/* ------------- Department ------------- */

.dept{

    /* box-shadow: 0px 10px 50px 0px rgba(26, 46, 85, 0.1); */

    /* padding: 20px 10px; */

    text-align: center;

    cursor: pointer;

    margin-bottom: 25px;

    position: relative;

    justify-content: center;

    display: flex;

}

.dept h5{

    font-size: 20px;

    font-weight: 600;

}

.dept img{

    /* width: 250px !important; */

    height: 250px !important;

    margin: 0 auto;

    display: block;

    margin-bottom: 20px;



    /* height: 390px; */

    background-size: cover;

    background-position: center;

    object-fit: cover;

}

.dept-name {

    position: absolute;

    background: white;

    bottom: 25px;

    width: 95%;

    padding: 15px;

    color: var(--dark);

    transition: all 0.3s ease-in-out;

    -webkit-transition: all 0.3s ease-in-out;

    -moz-transition: all 0.3s ease-in-out;

    -ms-transition: all 0.3s ease-in-out;

    -o-transition: all 0.3s ease-in-out;

}

.dept-name:hover {

    background-color: var(--secondary);

    color: white !important;

    cursor: pointer;

}

.dept h6{

    background: var(--bg-light);

    font-size: 13px;

    padding: 3px 14px;

    margin-right: 10px;

    border-radius: 7px;

    color: white;

}

.dept-head{

    padding: 30px;

    text-align: center;

    margin-bottom: 30px;

    box-shadow: 0px 10px 50px 0px rgba(26, 46, 85, 0.1);

}

.dept-head img{

    height: 250px;

    width: 250px;

    object-fit: cover;

    /* border-radius: 50%; */

    margin: 0 auto;

    display: block;

    margin-bottom: 30px;

    max-width: 250px;

}

.border{

    border-bottom: 1px solid #cccccc1a !important;

    margin: 15px 0px;

}

.dept-head h3{

    font-size: 20px;

}

.dept-head h5, .dept-head h6{

    color: var(--grey1);

}



.dept-head h4{

    font-weight: 600;

    margin-bottom: 10px;

    font-size: 19px;

    color: var(--primary);

}

.dept-head h5{

    font-weight: 400;

    font-size: 17px;

}

.dept-head a{

    font-size: 17px;

    font-weight: 600;

}

.dept-head a:hover{

    color: var(--secondary);

}

.dept-head h6{

   font-weight: 400;

   font-size: 17px;

   /* word-break: break-all; */



}

.dept-head h6 span{

    color: var(--dark);

    font-weight: 600;

}

.news-sub{

    padding: 30px 0;

    margin-top: 50px;

}

/* .awards{

    position: relative;

    background-image: url(../img/social-bg.jpg);

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover;

} */

 .achievements-sub .achievements-content{

    border-radius: 5px 0 0 5px;

 }

 .achievements-sub img{

    border-radius: 0 5px 5px 0;

 }

/* ------------- Faculty ------------- */

.faculty1{

    padding: 20px 10px 20px 10px;

    margin-bottom: 20px;

    box-shadow: 0px 10px 50px 0px rgba(26, 46, 85, 0.1);

    text-align: center;

}

.faculty1 img{

    height: 180px;

    width: 180px; 

    object-fit: cover;

    object-position: top;

    margin: 0 auto;

    display: block;

    margin-bottom: 20px;

    /*max-width: 180px;*/

    

}

.border{

    border-bottom: 1px solid #cccccc1a !important;

    margin: 15px 0px;

}

.faculty1 h3{

    font-size: 20px;

}





.faculty1 h4{

    font-weight: 600;

    margin-bottom: 10px;

    font-size: 16px;

    color: var(--primary);

}

.faculty1 h5{

    /* font-weight: 600; */

    font-size: 15px;

}

.faculty1 a{

     font-size: 14px; 

    /* font-weight: 600; */

    color: var(--secondary);

}

.faculty1 a:hover{

    color: var(--primary);

}

.faculty1 h6{

   font-weight: 500;

   font-size: 15px;

   /* word-break: break-all; */



}

.faculty1 h6 span{

    color: var(--dark);

}

.faculty{

    padding: 20px 15px;

    min-height: 400px;

    border-radius: 5px;

}

.faculty img{

    /* width: 150px; */

    height: 170px;

    width: auto;

}

.faculty-single ul{

    margin-bottom: 30px;

}

.faculty-single table{
    margin-bottom: 40px;
}

.faculty-single table tr:first-child {
    background-color: var(--primary);
    color: white;
}
.faculty-single table tr:first-child td{
    border: 1px solid white;
}

/* .faculty-single table td::first-line {
    color: var(--primary);
    font-weight: bold;
} */

/* ------------- Blog ------------- */

.blog{

    /* background: white;

    box-shadow: 0px 10px 50px 0px rgba(26, 46, 85, 0.1);

    margin-bottom: 25px; */



        border-radius: 5px;

        /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06); */

        background-color: var(--bg-light);

        padding: 20px;

        margin-bottom: 30px;

}

.blog img{

    height: 200px;

    object-fit: cover;

    object-position: top;

    max-width: 100%;

}

.blog-info{

    padding: 20px 10px;

}

.blog h6{

    font-size: 17px;

}

.blog1 img{

    height: auto !important;

}

.blog .read-more:hover{

    color: var(--secondary) !important;

}

/* ------------- Blog details ------------- */

.blog-details{



}

.blog-details img{

    /* max-width: 750px; */

    margin-bottom: 30px;

}

.blog-details h6{

    margin-bottom: 15px;

}

.blog-details1{

    padding-right: 50px;

}

.latest{

    /* box-shadow: 0px 10px 50px 0px rgba(26, 46, 85, 0.1); */

    background-color: white;

}

.latest1{

    background: none;

    box-shadow: 0px 10px 50px 0px rgba(26, 46, 85, 0.1);

    /* padding: 30px 10px 30px 20px; */

    border-radius: 10px;

    padding: 0;

}

.latest1 h4{

    color: var(--primary);

    font-weight: 700;

    background-color: var(--bg-light);

    border-bottom: 3px solid var(--secondary);

    padding: 15px 20px;

}

.latest-news{

    padding: 10px 10px 10px 20px;

    margin-bottom: 10px;

    align-items: center;

}

.latest-news img{

    height: 65px;

    width: auto;

    margin: 0px;

    max-width: 100%;

    object-fit: cover;

}

.latest-news h5{

    font-size: 16px;

    margin: 0;

}

.latest-news h6{

    font-size: 14px;

    margin: 0;

}

.latest-news a:hover{

    color: var(--primary) !important;

    letter-spacing: 1px;

}

.latest-news-info{

    padding: 5px 10px;

}

.latest-news .read-more{

    font-weight: 400;

    font-size: 14px;

    color: var(--light);

}

/* ------------- Gallery ------------- */

.grid figure.effect-dexter {

    border: none;

    /* margin: 0px; */

    background: var(--primary) !important;

}

.grid figure.effect-dexter img {

	-webkit-transition: opacity 0.35s;

	transition: opacity 0.35s;

}



.grid figure.effect-dexter:hover img {

	opacity: 0.4;

}

.grid figure.effect-dexter figcaption{

    padding: 40px 30px;

    text-align: center;

    display: flex;

    align-items: center;

    justify-content: center;

}

.grid figure.effect-dexter figcaption::after {

	position: absolute;

	right: 20px;

	bottom: 30px;

	left: 20px;

	height: -webkit-calc(50% - 30px);

	height: calc(50% - 30px);

	border: 7px solid #fff;

	content: '';

	-webkit-transition: -webkit-transform 0.35s;

	transition: transform 0.35s;

	-webkit-transform: translate3d(0,-100%,0);

	transform: translate3d(0,-100%,0);

	display: none;

}



.grid figure.effect-dexter:hover figcaption::after {

	-webkit-transform: translate3d(0,0,0);

	transform: translate3d(0,0,0);

}

.grid figure.effect-dexter h2{

    position: absolute;

    bottom: 90px;

}

.grid figure.effect-dexter p {

    right: 0;

    left: 0;

    bottom: 60px;   

    top: auto;

    text-align: center;

}

/* ------------- 404 ------------- */

.error-page-main{

    border-top: 1px solid #ccc;

    background-image: url(../img/banner1.jpg);

    background-position: center;

    background-repeat: no-repeat;

    position: relative;

    height: 500px;

    display: flex;

    align-items: center;

}

.error-page-main::before{

    position: absolute;

    background-color: rgba(0, 0, 0, 0.74);

    content: '';

    display: block;

    position: absolute;

    width: 100%;

    height: 100%;

    bottom: 0;

}

.error-page{

    /* min-height: 300px; */

    align-items: center;

    justify-content: center;

    /* padding: 0px 0px 50px; */

    display: flex;

}



.error-page h3{

    font-size: 24px;

    color: var(--dark);

}

/* .error-page img{

    height: 400px;

    width: auto;

    margin: 0 auto;

    display: block;

    animation: bounce 5s infinite;

    object-fit: cover;



} */

.error1{

    /* display: flex; */

    /* justify-content: center; */

    /* align-items: center; */

    text-align: center;

    z-index: 999999;

}

.error-page-content h2{

    font-size: 130px;

    font-weight: 700;

    color: white;

    line-height: 120px;



}

.error-page-content h3{

    font-size: 30px;

    font-weight: 700;

    color: white;

}

.error-page-content p{

    color: white !important;

}

.error-page-content button{

    margin: 0 auto !important;

}

.error-page-content a{

    color: var(--secondary);

}

.error-page-content a:hover{

    color: white;

}



@media (max-width: 768px) { 

    .error-page img{

        height: 250px;

    }

    .error-page-content h2{

        font-size: 90px;

        line-height: 90px;

    }

    .error-page-content h3{

        font-size: 23px;

    }

}



@media (max-width: 576px) { 

    .error-page img{

        height: 150px;

    }

    .error-page-content h2{

        font-size: 50px;

        line-height: 50px;

    }

    .error-page-content h3{

        font-size: 18px;

    }

    .error-page-content p{

        display: none;

    }

    

}



/*-------------------- WP (Button, Tab, Accordion, Gallery) -----------------*/

.sowb-button{

    background-color: var(--primary)!important;

    border-color: var(--primary) !important;

}



.sowb-button:hover{

    background-color: var(--secondary)!important;

    border-color: #f8b729 !important;

}



/* Custom styles for SiteOrigin tabs */

.sow-tabs .sow-tabs-tab {

    background-color: var(--primary)!important; /* Background for inactive tabs */

    border-radius: 4px;

    font-weight: 500;

    color: #fff !important

}



.sow-tabs .sow-tabs-tab:hover {

    background-color: var(--secondary)!important; /* Hover effect */

    color: #fff !important;

}



.sow-tabs .sow-tabs-panel {

    padding: 15px;

    background-color: #eeeffa;

    border: 1px solid #ddd;

    border-radius: 5px;

}



.sow-tabs-tab-container {

    background-color: #ffff !important;

}



.sow-tabs .sow-tabs-tab.sow-tabs-tab-selected {

    background-color:var(--secondary)!important; /* Background for active tab */

    color: #fff;

}





/* Custom styles for SiteOrigin Accordion */

.sow-accordion .sow-accordion-panel-header{

    background-color: var(--primary)!important;

}



.sow-accordion .sow-accordion-panel-content {

    padding: 15px;

    background-color: #eeeffa !important;

    border-top: 1px solid #ddd;

}



.sow-accordion .sow-accordion-panel-border{

    background-color: #eeeffa !important;

}







.sow-accordion .sow-accordion-title{

    font-weight: 500;

}



.gallery-outer figure.effect-dexter {

    margin-right: 10px !important;

    margin-bottom: 10px !important;

}

  .wp-block-button__link {

  background-color: var(--primary);

  color: #fff; /* Default text color */

  border: none;

  padding: 0.75em 1.5em;

  text-decoration: none;

  display: inline-block;

  font-weight: 600;

  transition: all 0.3s ease;

}



/* Hover state */

.wp-block-button__link:hover {

  background-color: var(--secondary);

  color: #fff !important;

}

.wp-element-caption {
    text-align: center;
    color: #960001;
    font-weight: 500;
}


