html {
    overflow-y: auto;
}

body {
    font-family:Calibri,'Lucida Grande',Lucida,sans-serif;
    background-color: #FEFEFE;
}

.maincontent {
    margin:0 auto;
    max-width:960px;
    padding-top: 100px;
}

.header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 99;
    background-image: url("../images/bgprpl75.png");
    background-repeat: repeat-x;
    text-align: center;
}


h1, h2 {
    /* color: #6b191c; */
    color: #222479;
    margin-top: 3px;
}

a {
    font-weight: bold;
    text-decoration: none;
    color: #000000;
}

img {
    border: 0;
}

.button {
    cursor: pointer;
    display: inline-block;
    margin: 2px;
}

.btn {
    display: inline-block;
    margin: 3px;
    padding: 4px 10px;
    background-color: #ffffff;
    color: #222479;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #dddddd;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    text-shadow: 0px 1px 0px #ffffff;
    font-size: 0.95em;
}

a:visited {
    color: #000000;
}

a:hover {    
    background-color:#EEEEEE;
}

a.nohover:hover {    
    background-color:transparent;
    text-decoration: none;
}


#foldheader {
    cursor:pointer; 
    font-weight:bold; 
    font-size: 0.9em;
}

#foldinglist {
    margin-left:5pt; 
    font-weight:bold; 
}

#link {
    margin-left:5pt; 
    font-weight:bold; 
    font-size: 0.9em;
}


#header {
    margin:0;
    font-size: 2em;
    color: #FFFFFF;
    text-align: center;
    border:0px solid #000;
}

.headerimage {
    cursor:pointer;
    width: 958px;
    height: 75px;
}

#headerimage {
    display:inline;
}

#headerimagemob {
    display:none;
    background-image: url(../images/bgprpl161.png);
    background-repeat: repeat-x;
}

.headermenumob {
    width: 19%;
    vertical-align: middle;
    display: inline-block;
}

#header {
    display: inline-table;
    height: 1px;
}

#headermob {
    display: none;
}



#headerimagex {
    z-index: -1000;
    height: 75px;
    width: 958px;
    top: 10px;
    left: 0;
}

.footerhr {
    display: none;
}

.message {
    padding: 0px 10px 0px 10px;
}

.messagecentre {
    text-align: centre;
}


/* 2 COLUMN TEMPLATE */


#t3c1x {
    display:none;
}

#t3c3x {
    display:none;
}

#t3c2x {
    border:0px dotted #FFEEEE;
    padding:10px;
    max-width:938px;
}

.div600 {
    max-width: 600px;
    min-height: 600px;
    margin-left: 200px;
}

.div800 {
    max-width: 800px;
    min-height: 600px;
    margin-left: 80px;
}

.div960 {
    max-width: 960px;
    min-height: 700px;
}


#t3left {
    float:left;
    border:0px dotted #FFEEEE;
    padding:10px;
    max-width:454px;
    margin:0px 0px 0px 0px;
}

#t3right {
    float:left;
    margin:0px 11px 0px 0px ;
    border:0px dotted #FFEEEE;
    padding:10px;
    max-width:454px;
}



.roundcorners {
    background: #FEFEFE;
    border: 5px solid #F3ECF5;
    border-radius: 5px;
    padding: 12px;
    margin: 0px 0px 15px 0px;
    box-shadow: 8px 8px 5px #999999;
}

.divpad {
    padding:10px 0px 10px 0px;
    width: 100%;
}

.sectionheader {
    font-size: 1.5em;
    font-weight: bold;
    color: #222479;
}

#homepageworship {
    width: 100%;
}
.homepageworshipsection {
    display:inline-block;
    width:49%;
    padding:0px;
}

#youtubeplayerwip, #youtubeplayerdone {
    padding: 10px 0px 0px 0px;
}

.inlineblock {
    display: inline-block;
}

div.sectionbutton {
    width:180px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid #000000;
    box-shadow: 2px 2px 2px #999999;
    z-index: -1;
    overflow: hidden;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.sectionbutton:hover, div.sectionbutton.hover-active {
    transform: translateY(-5px);
    box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.3);
}

.sectionbutton .yellow {
    color: #eeee00;
}

.sectionbutton .green {
    color: #00ff00;
}

.sectionbutton .white {
    color: #ffffff;
}

.sectionbutton .blue {
    color: #00ffff;
}

.sectionbutton .lightblue {
    color: #3399ff;
}

.sectionbutton .lightred {
    color: #ee7777;
}

.sectionbutton img {
    width:100%;
    z-index: -1;
}

.sectionbutton div.mask {
    height:100%;
    width:100%;
    position:relative;
    left:0;
    top:-98px;
    z-index:2 !important;
}

.sectionbutton div.banner {
    z-index: 0;
    position: relative;
    bottom: 25px;
    height: 26px;
}

.sectionbutton div.bannertext {
    z-index: 1;
    position: relative;
    bottom: 52px;
    font-weight: bold;
    font-size: 20px;
    font-style: italic;
    text-align: center;
    vertical-align: middle;
}

.sectionbutton .bgwhite {
    background-color: #ffffff;
    opacity: 0.6;
}

.sectionbutton .bgblack {
    background-color: #000000;
    opacity: 0.6;
}



/* 3 COLUMN TEMPLATE */

#t3c1 {
    /* background-color: #efefef; */
    float:left;
    border:0px dotted #FFEEEE;
    padding:10px;
    width:183px;
    margin:0;
}

#t3c2 {
    /* background-color: #efefef; */
    border:0px dotted #FFEEEE;
    padding:10px;
    width:538px;
    margin: 10px 200px 10px 200px;
}

#t3c3 {
    /* background-color: #efefef; */
    float:right;
    margin: 0;
    border:0px dotted #FFEEEE;
    padding: 10px;
    width:186px;
}

.bgframe {
    width:181px;
    height:350px;
    border:0px;
}

/* BUTTONS */

#featuredsite {
    text-align: left;
    background-image: url("../images/btn-wht-mid.gif");
    background-repeat: repeat-y;
    padding: 0px 0px 0px 0px;
    width: 185px;
}

#featuredsite p {
    padding: 7px;
}

#footer {
    clear: both;
    font-size: 0.8em;
    text-align: center;
    border: 0px solid #000;
/*    padding: 10px;*/
    width: 938px;
    margin: auto;
}



/*  MENUS   */

#topmenu {
    display: block;
    font-size: 80%;
    margin: 0 auto;
    background-color: #dddddd;
    width: 958px;
    height: 26px;
}

ul#menubar {
    display: contents;
    margin: 0;
    padding-left: 6px;
    height: 25px;
}

#menubar li {
    margin: 0;
    float: left;
    display: block;
    background-color: #dddddd;
}

.loginform {
    margin: 0;
    float: left;
    background-color: #dddddd;
}


#menubar li strong {
    font-weight: 300;
}

#menubar li ul, #menubar li.unselected ul, #menubar li.selected ul { /* hides the sub menus */
    display: none;
}

#menubar li a { /* styles main nav options */
    display: block;
    padding: 3px 11px 5px 11px;
    text-decoration: none;
    font-size: 1em;
    line-height: 100%;
    /* color: #6b191c; */
    color: #222479;
}

#menubar li a:hover { 
    color: #0000FF;
}

#menubar li.unselected ul, #menubar li.selected ul { /* positions the sub-menus below the main menus */
    position: absolute;
    top: 90px;
    padding-top: 5px;
    height: 27px;
}

#menubar li.unselected ul a, #menubar li.selected ul a { /* styles links within the sub-menus */
    padding: 3px 11px 3px 11px;
    font-size: 1em;
    /* color: #6b191c; */
    color: #222479;
}

#menubar li.unselected:hover ul, #menubar li.selected:hover ul, #menubar li.over ul { /* the actual sub menu that drops down */
    display: block;
    z-index: 6000;
}


#menubar li.unselected ul a:hover, #menubar li.selected ul a:hover { /* rollover effect for sub-menu links */
    color: #0000FF;
}

#menubar li.unselected a:hover, #menubar li.unselected:hover a, #menubar li.selected a:hover, #menubar li.selected:hover a, #menubar li.over a { /* styles the hover for the main options */
    background-color: #CCFFFF;
}

.submenu {
    display: contents;
    float: left;
    width: 480px; 
    margin-left: 0px; 
    padding-left:0px;
}

.headerlogin {
    float:right;
}

.headerloginsubmit {
    float:right;
}



/*  CALENDARS   */

.calmonth {
    margin: 0;
    text-align: center;
    font-size: 1em;
    background: #FFFFFF;
    border: 1px solid #000000;
    padding-bottom: 14px;
    width: 210px;
}

.calheader {
    margin: 0;
    margin-bottom: 14px;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0;
    height: 14px;
}

li.calmonthsel
{
    display: block;
    width: 30px;
    float: left;
}

li.caltitle {
    width: 150px;
    display: block;
    float: left;
    color: #ffffff;
    /* background-color: #6b191c; */
    background-color: #222479;
}

.caldayheads {
    height: 14px;
    margin: 0;
    margin-bottom: 14px;
    padding: 0;
}

.caldayheads li {
    width: 30px;
    height: 16px;
    float: left;
    display: block;
}

.calweeks {
    margin: 0;
    margin-bottom: 14px;
}

.calweek {
    height: 14px;
    margin: 0;
    padding: 0;
}

.calweek li {
    width: 30px;
    height: 16px;
    float: left;
    display: block;
}

.calweek .busy {
    background-color:#eeeeee;
    color: #ff0000;
    font-weight: bold;
}

.calweek .todaybusy {
    background-color:#cf7f7f;
    color: #ff0000;
    font-weight: bold;
    border: 0 solid #000000;
}

.calweek .today {
    background-color:#cf9f9f;
    border: 0 solid #000000;
}

.calweekone {
    display: block;
}





/* FORUM  */

.forumtitle {
    width: 495px;
    font-style: italic;
}

.forumcol1 {
    width: 362px;
    float:left;
}

.forumcol2 {
    width: 25px;
    float:left;
}

.forumcol3 {
    width: 105px;
    float:left;
}


.forumtitle .forumcol1, .forumtitle .forumcol2, .forumtitle .forumcol3 {
    font-weight: bold;
    font-style: italic;
}

#forumdiv {
    position: relative;
    margin: 0 auto;
    top: 1px;
}

#rulesdiv {
    display: none;
    position: absolute;
    left: 45px;
    top: 0px;
    background-color:#ffff00;
    border: 1px solid;
    padding: 15px;
    width: 460px;
}



/* *********************************** */
/*             CALENDARS               */
/* *********************************** */


.whatsondiv {
    border: 1px solid #AAAAAA;
    padding:0px;
    margin:0px;
}

.whatsonnav {
    border:1px solid #AAAAAA;
    text-align: center;
    width: 100%;
}

.whatsonnavtd {
    vertical-align: middle;
}

.wnavbtn {
    cursor: pointer;
}

.wcombo {
    font-size: 0.8em;
}


.whatsontable {
    border:1px solid #AAAAAA;
    vertical-align: top;
    width: 100%;
}

.calcellspacer {
    height:2px;
}

.caltablespacer {
    height:20px;
    border:1px solid #000000;
}

.w1 {
    width:40px;
    text-align:center;
    font-size:0.9em;
}

.w1x {
    width:40px;
    text-align:left;
    font-size:1.4em;
    font-weight: bold;
    background-color: #222479;
    color:#aaaaaa;
    padding: 5px;
    border: 2px solid #ffffff;
}

.w2 {
    width:20px;
    text-align:center;
    border-top:1px solid #000000;
    border-left:1px solid #000000;
    border-bottom:1px solid #000000;
}

.w2h {
    width:20px;
    text-align:center;
    border-top:1px solid #000000;
    border-left:1px solid #000000;
    border-bottom:1px solid #000000;
    background-color: #FFFF00;
}

.w2hx {
    width:20px;
    text-align:center;
    border:1px solid #000000;
    background-color: #FFFF00;
}


.w3y {
    width:20px;
    text-align:center;
    /* background-color:#843234; */
    background-color: #222479;
    border:1px solid #000000;
    color:#CCFFFF;
    font-weight: bold;
}

.w3n {
    width:20px;
    text-align:center;
    background-color:#EEEEEE;
    border:1px solid #000000;
    color:#888888;
    font-weight: bold;
}


.w4y {
    width:55px;
    text-align:right;
    vertical-align: top;
    background-color:#F3ECF5;  /*#F9F1F1;*/
    font-size: 0.8em;
}

.w4n {
    width:55px;
    text-align:right;
    vertical-align: top;
    background-color:#FAFAFA;
    font-size: 0.8em;
}


.w5y {
    text-align:left;
    font-weight: bold;
    background-color:#F3ECF5;   /*#F9F1F1;*/
    padding-bottom: 4px;
}

.w5n {
    text-align:left;
    font-weight: bold;
    background-color:#FAFAFA;
}

.w6y {
    padding: 0 10px 0 20px;
    min-width: 60px;
    text-align:left;
    font-weight: bold;
    background-color:#F3ECF5;   /*#F9F1F1;*/
}

.w6n {
    padding: 0;
    width: 0px;
    text-align:left;
    font-weight: bold;
    background-color:#FAFAFA;
}

.w7 {
    width: 40px;
    text-align: center;
}

.w7n {
    width: 0px;
}

.calloc {
    font-weight: normal;
    font-style: italic;
    font-size: 0.9em;
    padding-left: 5px;
    display: inline;
    color: #777777;
}

.caldesc {
    font-style: italic;
    font-weight: normal;
    font-size: 80%;
    display: block;
    padding-left:10px;
    /* cursor:pointer; */
}



#sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; }
#sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; }

.racolumn   {width: 170px; }
.racombo     {width: 170px; background:#fffbe0}
.ranarrow {width: 40px}
.racomboS   {background: #eaf4ff}
.racomboP   {background: #eaffea}
.racomboH   {background: lightgray}
.racombored {background: red}
.racombodel {width:160px;}
.ratddel {min-width:180px;}
.raborder   {border: 1px solid black; }
.rabutton     {border: 1px solid black; cursor:pointer; }
.rahidden     {display: none; }
.raemphasis {color: Red; font-weight: bold; font-size:1.2em;}
.availradio {display:none;padding-bottom: 10px}
.rashade1, .rashade2 {background: white; }
.maintdupslink {cursor:pointer;}
.hidedupslink {cursor:pointer;}
.raadddel {display:none;}
.radelete {width:20px; text-align: center;}
.rath {min-width: 170px; text-align: center;}

.raavailabilitytable {
    background: #B8E8F2;
    border-style: 2px solid black;
    border-radius: 15px;
    padding: 10px;
}

.redtext {
    color: Red
}

th {
    text-align: left
}

.ywp-play {
    display: inline-block;
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin-left: 6px;
    margin-right: 10px;
    overflow: hidden;
    position: relative;
    top: 1px;
    background-image: url(../images/ywp.png);
    background-position: -26px -1578px;
}

.audiopanel {
    width: 100%;
}
.audioyear {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    background-color: #B499BE;
    height: 30px;
}
.audiomonth {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    background-color: #DDDDDD;
}
.audiofile {
    background-color: #EEEEEE;
}
.audiofileimage {
    font-weight: bold;
}
.audioimage {
    height: 40px;
    border: 1px solid #777777;
}
.audiodate {
    font-weight: bold;
}
.audiotitle {
    font-weight: bold;
}
.audioauthor {
    font-style: italic;
}
.audiochapter {
    font-style: italic;
}
.audioduration {
    font-style: italic;
}
.audiotable {
    width: 100%;
}
.audioimagecolumn {
    padding: 0px 10px 0px 10px ;
    width: 60px;
    text-align: center;
}
.audioimagecolumnmin {
    width: 40px;
}
.audioactioncolumn {
    width: 50px;
    text-align: right;
    vertical-align: top;
    padding: 10px 0px 10px 0px;
}
.audiofilerow {
    height: 70px;
    outline: 3px solid #FFF;
}


.raiseddiv {
    background: #EEE;
    border-style: 1px solid black;
    border-radius: 15px;
    box-shadow: 10px 10px 5px #888888;
    padding: 10px;
}

.raiseddiv td {
    vertical-align: top;
}

.raiseddiv textarea {
    width: 100%;
    height: 250px;
}

.smsmessage {
    font-size: 18pt;
    width: 100%;
}

#requestlist td {
    background: #EEF;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px;
}

.hiddenrow {
    display:none;   
}

.solidbutton     {
    border: 1px solid black; 
}

#memberslist input {
    width: 50px;
}


.casual {
    /*font-family: 'Waiting for the Sunrise', cursive;*/
    font-family: 'Handlee', cursive;
    font-size: 1.1em;
    background-color: #FFFFAA;
}

.joinnow {
    color:#FF0000 !important;
    background-color:yellow;
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 3px 3px 1px #AAAAAA;
}




.rotateammember {
    display: inline-block;
    padding-right: 10px;
}

.rotateammemberbutton {
    display: inline-block;
    padding-bottom: 10px;
}





@media (max-width: 958px) {
    div.sectionbutton {
        width: 130px;
        height: 52px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    div.sectionbutton:hover, div.sectionbutton.hover-active {
        transform: translateY(-4px);
        box-shadow: 2px 6px 5px rgba(0, 0, 0, 0.3);
    }
    
    .sectionbutton div.bannertext {
        font-size: 16px;
        bottom: 48px;
    }

    #headerimage {
        display:none;
    }
    
    #headerimagemob {
        display:inline;
        width: 100%;
        height: auto;
        vertical-align: top;
    }

    #header {
        display: none;
    }
    #headermob {
        display: inline;
    }

    #t3left {
        width: 100%;
        float: none;
        margin: auto;
        max-width: 90%;
    }

    #t3right {
        width: 100%;
        float: none;
        margin: auto;
        max-width: 90%;
    }


    .header {
        width: 100%;
        position: relative;
        top: 0;
        z-index: 99;
        background-image: unset;
        background-repeat: unset;
    }

    .maincontent {
        padding-top: 0px;
    }


    #topmenu {
        display:none;
        width: 100%;
    }

    ul#menubar {
        margin: 0;
        padding-left: 6px;
        height: 25px;
    }

    #menubar li {
        margin: 0;
        float: left;
        display: contents;
        background-color: #dddddd;
    }

    .loginform {
        margin: 0;
        float: left;
        background-color: #dddddd;
        display: block;
        width: 100%;
    }

    #menubar li strong {
        font-weight: 300;
    }

    #menubar li ul, #menubar li.unselected ul, #menubar li.selected ul {
        display: contents;
    }

    #menubar li a { /* styles main nav options */
        display: block;
        padding: 3px 11px 5px 11px;
        text-decoration: none;
        font-size: 1.5em;
        line-height: 100%;
        /* color: #6b191c; */
        color: #222479;
    }

    #menubar li a:hover { 
        color: #0000FF;
    }

    #menubar li.unselected ul, #menubar li.selected ul { 
        position: unset;
        top: unset;
        padding-top: unset;
        height: unset;
        height: unset;
    }

    #menubar li.unselected ul a, #menubar li.selected ul a { 
        font-size: 1.2em;
        /* color: #6b191c; */
/*        color: #222479;*/
        color: #5658AE;

    }

    #menubar li.unselected:hover ul, #menubar li.selected:hover ul, #menubar li.over ul { 
        display: unset;
        z-index: unset;
    }


    #menubar li.unselected ul a:hover, #menubar li.selected ul a:hover { 
        color: unset;
    }

    #menubar li.unselected a:hover, #menubar li.unselected:hover a, #menubar li.selected a:hover, #menubar li.selected:hover a, #menubar li.over a { 
        background-color: unset;
    }

    .submenu {
        float: unset;
        width: unset; 
        margin-left: 0px; 
        padding-left:0px;
    }

    .headerlogin {
        float:unset;
        padding: 20px;
    }

    #menubar .headerlogin li {
        float: unset;
        display: block;
    }

    .headerloginreset {
        font-size: 80% !important;
    }

    .headerloginsubmit {
        float:unset;
    }

    .footerdiv .footerspan {
        display: block;
    }

    .footerdiv .footerdelim {
        display: none;
    }

    #footer {
        width: 100%;
        background-image: url("../images/bgprpl75.png");
        background-repeat: repeat;
    }

    .footerhr {
        display: block;
    }    .calweekone {
        display: none;
    }

    .raassignmentdiv table thead.rahead {
        top: 0;
    }
}

/* *********************************** */
/*           SERMON PLAYER             */
/* *********************************** */

.sermon-card {
    background: #efefef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 4px 0;
    transition: box-shadow 0.3s ease;
}

.sermon-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sermon-card-header {
    display: flex;
    padding: 20px;
    gap: 16px;
}

.sermon-artwork {
    position: relative;
    flex-shrink: 0;
}

.sermon-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.sermon-date-overlay {    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #222479;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.sermon-info {
    flex: 1;
    min-width: 0;
}

.sermon-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.sermon-speaker {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.sermon-reference {
    margin: 0 0 6px 0;
    font-size: 13px;
}

.sermon-reference a {
    color: #222479;
    text-decoration: none;
    font-weight: 500;
}

.sermon-reference a:hover {
    text-decoration: underline;
}

.sermon-duration {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.sermon-player {
    background: #f9fafb;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.sermon-player-card {    background: linear-gradient(135deg, #222479 0%, #222479 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 16px 0;
    color: white;
}

.sermon-player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sermon-play-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.sermon-play-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.sermon-progress-container {
    flex: 1;
    min-width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.sermon-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.sermon-progress-fill {
    height: 100%;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    transition: width 0.1s ease;
    width: 0%;
}

.sermon-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    left: 0%;
    transition: left 0.1s ease;
}

.sermon-time-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    min-width: 80px;
}

.sermon-speed-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.sermon-speed-btn:hover {
    background: rgba(255,255,255,0.3);
}

.sermon-audio-element {
    display: none;
}

.sermon-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-pause-btn {
    background: #222479;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    background: #5856eb;
    transform: scale(1.05);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

.sermon-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sermon-time {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
}

.sermon-progress-bar {
    flex: 1;
    padding: 8px 0;
}

.sermon-progress-track {
    position: relative;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    cursor: pointer;
}

.sermon-progress-fill {
    height: 100%;
    background: #222479;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.sermon-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;    width: 12px;
    height: 12px;
    background: #222479;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sermon-progress-track:hover .sermon-progress-handle {
    opacity: 1;
}

.sermon-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.speed-btn .speed-text {
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
}

.sermon-docs {
    display: flex;
    gap: 4px;
}

.sermon-verses {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 0 12px 12px;
    color: #374151;
}

.sermon-verses h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.sermon-verses p {
    margin: 8px 0;
}

.sermon-verses hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid #d1d5db;
}

.sermon-verses b {
    color: #222479;
    font-weight: 600;
}

.sermon-verses.show {
    display: block !important;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .sermon-card-header {
        padding: 16px;
        gap: 12px;
    }
    
    .sermon-image {
        width: 60px;
        height: 60px;
    }
    
    .sermon-title {
        font-size: 16px;
    }
    
    .sermon-controls {
        gap: 8px;
    }
    
    .play-pause-btn {
        width: 44px;
        height: 44px;
    }
    
    .sermon-time {
        font-size: 11px;
        min-width: 30px;
    }
      .sermon-player {
        padding: 12px 16px;
    }
    
    .sermon-player-card {
        padding: 16px;
        margin: 12px 0;
    }
    
    .sermon-player-controls {
        gap: 12px;
    }
    
    .sermon-play-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .sermon-progress-container {
        min-width: 150px;
    }
    
    .sermon-time-display {
        font-size: 12px;
        min-width: 70px;
    }
    
    .sermon-speed-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .sermon-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sermon-artwork {
        align-self: center;
    }
      .sermon-progress-container {
        flex-direction: column;
        gap: 4px;
    }
    
    .sermon-progress-bar {
        width: 100%;
        order: -1;
    }
    
    .sermon-time {
        min-width: auto;
    }
    
    .sermon-player-controls {
        gap: 8px;
        justify-content: center;
    }
    
    .sermon-play-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .sermon-progress-container {
        min-width: 120px;
        order: 1;
    }
    
    .sermon-time-display {
        font-size: 11px;
        min-width: 60px;
        order: 2;
    }
    
    .sermon-speed-btn {
        padding: 3px 6px;
        font-size: 10px;
        order: 3;
    }
}

/* *********************************** */
/*         VERSE OF THE DAY STYLES      */
/* *********************************** */

.verse-of-day {
    position: relative;
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    overflow: hidden;
}

.verse-of-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(34, 36, 121, 0.15);
}

.votd-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.votd-header i {
    font-size: 1.2em;
    color: #222479;
}

.votd-content {
    display: flex;
    margin-top: 15px;
}

.votd-image-link {
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    align-self: flex-start;
    background-color: #f5f5f5;
    padding: 5px;
    width: 100px;
    height: 80px;
}

.votd-image-link:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.votd-image {
    width: 100px;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.votd-sprite {
    width: 100px;
    height: 80px;
    display: block;
    border-radius: 8px;
    background-size: 864px 540px; 
}

.votd-text {
    flex: 1;
}

.votd-quote {
    margin: 0 0 10px 0;
    padding: 0;
    font-style: italic;
    line-height: 1.5;
    font-size: 1.05em;
    color: #333;
    position: relative;
    transition: color 0.3s ease;
}

.votd-quote::before,
.votd-quote::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, rgba(34,36,121,0.1) 0%, rgba(34,36,121,0.4) 50%, rgba(34,36,121,0.1) 100%);
    transition: width 0.6s ease;
}

.votd-quote::before {
    top: -5px;
    left: 0;
}

.votd-quote::after {
    bottom: -5px;
    right: 0;
}

.verse-of-day:hover .votd-quote::before,
.verse-of-day:hover .votd-quote::after {
    width: 100%;
}

.votd-reference {
    text-align: right;
    font-weight: 600;
}

.votd-reference a {
    color: #222479;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.votd-reference a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #222479;
    transition: width 0.3s ease;
}

.votd-reference a:hover::after {
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .votd-content {
        flex-direction: column;
    }
    
    .votd-image-link {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .votd-image {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .votd-header {
        justify-content: center;
    }
    
    .votd-quote {
        font-size: 1.1em;
        text-align: center;
        line-height: 1.6;
        margin-top: 10px;
    }
    
    .votd-reference {
        margin-top: 15px;
    }
}

/* Interactive modern calendar styles */
.modern-cal { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    padding: 10px 0; 
    max-width: 600px;
    margin: 0px auto;
}

.modern-month { 
    background: linear-gradient(135deg, #222479, #4a7bc8); 
    color: white; 
    text-align: center; 
    padding: 12px; 
    font-size: 16px; 
    border-radius: 8px; 
    margin-bottom: 10px; 
}

.modern-event { 
    display: flex; 
    padding: 10px; 
    border-bottom: 1px solid #f0f0f0; 
    transition: background 0.3s; 
    border-radius: 8px; 
    margin-bottom: 5px; 
    cursor: pointer; 
}

.modern-event.first-of-day { 
    border-top: 2px solid #e6eeff; 
    margin-top: 8px; 
    padding-top: 12px; 
}

.modern-event.first-of-day:first-child { 
    margin-top: 0; 
}

.modern-event:hover { 
    background: #f0f4ff !important; 
    box-shadow: 0 2px 4px rgba(34, 36, 121, 0.1); 
}

.modern-date { 
    min-width: 50px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-right: 15px; 

}


.modern-day { 
    font-size: 28px; 
    font-weight: bold; 
    color: #222479; 
}

.modern-dayname { 
    font-size: 10px; 
    color: #666; 
    text-transform: uppercase; 
}

.modern-content { 
    flex: 1; 
}

.modern-time { 
    color: #666; 
    font-size: 12px; 
    margin-bottom: 2px; 
}

.modern-title { 
    font-weight: 600; 
    margin-bottom: 2px; 
    display: flex; 
    align-items: center; 
}

.modern-location { 
    font-size: 11px; 
    color: #888; 
}

.modern-description { 
    margin-top: 8px; 
    padding: 8px 40px 8px 8px; 
    background: #f8f9fa; 
    border-radius: 4px; 
    font-size: 12px; 
    color: #555; 
    border-left: 3px solid #222479; 
    transition: all 0.3s ease; 
    position: relative; 
}

.info-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 15px; 
    height: 15px; 
    border-radius: 50%; 
    background: #222479; 
    color: white; 
    font-size: 11px; 
    font-weight: bold; 
    margin-left: 8px; 
    cursor: pointer; 
    transition: background 0.3s;
}

.info-btn:hover { 
    background: #1a1d63; 
}

.close-btn { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    color: #666; 
    font-weight: bold; 
    cursor: pointer; 
    padding: 2px 6px; 
    border-radius: 3px; 
    transition: background 0.3s;
    font-size: 16px; 
    line-height: 1;
}

.close-btn:hover { 
    background: #ffebee; 
}

/* Rota assignment indicator */
.rota-indicator {
    background: #28a745;
    color: white;
    border-radius: 50%;
    padding: 2px 4px;
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    cursor: help;
}

/* Favorite star indicator */
.favorite-indicator {
    color: #ffc107;
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
    cursor: help;
}

/* Modern form styles for me.php */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #222479;
    margin-bottom: 5px;
    font-size: 2.5em;
    font-weight: 600;
}

.page-header .subtitle {
    color: #6c757d;
    font-size: 1.2em;
    margin: 0;
}

.user-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    color: #222479;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.form-section h3 {
    color: #495057;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.form-section h4 {
    color: #6c757d;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #222479;
    box-shadow: 0 0 0 2px rgba(34, 36, 121, 0.25);
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: auto;
}

.password-rules {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.password-rules ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.password-rules li {
    margin-bottom: 5px;
    color: #6c757d;
}

.admin-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-top: 30px;
}

.cbid-section {
    position: relative;
}

.cbid-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cbid-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.cbid-item:hover {
    background-color: #f8f9fa;
}

.cbid-item:last-child {
    border-bottom: none;
}

.danger-zone {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.text-danger {
    color: #dc3545;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9em;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;    text-align: center;
}

.form-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn-primary {
    background-color: #222479;
    color: white;
}

.form-btn-primary:hover {
    background-color: #1a1d63;
    transform: translateY(-1px);
}

.form-btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-bottom: 10px;
}

.form-btn-secondary:hover {
    background-color: #5a6268;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .user-form {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.raassignmentdiv table {
    border-collapse: collapse;
    border: none;
}

.raassignmentdiv table th,
.raassignmentdiv table td {
    border: 1px solid #555555;
    border-top: none;
    border-left: none;
    padding: 4px 6px;
}

.raassignmentdiv table th:last-child,
.raassignmentdiv table td:last-child {
    border-right: none;
}

.raassignmentdiv table tr:last-child td {
    border-bottom: none;
}

/* Keep existing cell highlighting for duplicates */
.raassignmentdiv table td.notempty {
    background: #FFFFDD;
}
.raassignmentdiv table td.duplicateok {
    background: #DDFFDD;
}
.raassignmentdiv table td.duplicatebad {
    background: #FFDDDD;
}

.raassignmentdiv table .rafixedcol1,
.raassignmentdiv table .rafixedcol2 {
    text-align: left;
}

.raassignmentdiv table thead.rahead {
    position: -webkit-sticky;
    position: sticky;
    top: 101px; /* Height of header + menu */
    z-index: 95;
}

.raassignmentdiv table thead.rahead th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.modern-admin-add:hover {
    background: #e5f5e8 !important;
    color: #0b3d1a;
    border-color: #28a745;
    box-shadow: 0 0 0 2px #28a74555, 0 2px 8px #28a74533;
    transform: scale(1.13);
    transition: all 0.13s;
    z-index: 3;
}

.modern-admin-delete:hover {
    background: #fbf0f1 !important;
    color: #a71d2a;
    border-color: #c82333;
    box-shadow: 0 0 0 2px #c8233355, 0 2px 8px #c8233340;
    transform: scale(1.13);
    transition: all 0.13s;
    z-index: 3;
}

.modern-admin-edit svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}
.modern-admin-edit .pencil-body {
    fill: #e0b116;
    stroke: #b48a00;
    stroke-width: 1.2;
}
.modern-admin-edit .pencil-tip {
    fill: #fffbe0;
    stroke: #b48a00;
    stroke-width: 1.2;
}
.modern-admin-edit .pencil-lead {
    fill: #444;
    stroke: #222;
    stroke-width: 1;
}
.modern-admin-edit .pencil-eraser {
    fill: #f7b2b7;
    stroke: #b48a00;
    stroke-width: 1.2;
}

.modern-admin-edit:hover {
    background: #f2f6e0 !important;
    color: #b48a00;
    border-color: #e0b116;
    box-shadow: 0 0 0 2px #e0b11655, 0 2px 8px #e0b11640;
    transform: scale(1.13);
    transition: all 0.13s;
    z-index: 3;
}

/* --- Modern admin button styles (smaller, pastel) --- */
.modern-admin-edit, .modern-admin-delete, .modern-admin-add {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0em;
  padding-bottom: 0.225em;
  width: 1.71em;
  height: 1.71em;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 50%;
  border: 2px solid transparent;
  box-sizing: border-box;
  margin-right: 0.27em;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.modern-admin-edit {
  background: #d6dbe7;
  color: #444;
  border-color: #d6dbe7;
}
.modern-admin-edit:hover {
  background: #e9ecf4;
  border-color: #aab3c9;
  box-shadow: 0 2px 8px #d6dbe7aa, 0 0 0 2px #e9ecf4cc;
}

.modern-admin-delete {
  background: #f8d7da;
  color: #a71d2a;
  border-color: #f8d7da;
}
.modern-admin-delete:hover {
  background: #fdebec;
  border-color: #f5c6cb;
  box-shadow: 0 2px 8px #f8d7da99, 0 0 0 2px #fdebeccc;
}

.modern-admin-add {
  background: #d4edda;
  color: #155724;
  border-color: #d4edda;
}
.modern-admin-add:hover {
  background: #eafaf1;
  border-color: #c3e6cb;
  box-shadow: 0 2px 8px #d4edda99, 0 0 0 2px #eafaf1cc;
}
